MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / EnvironmentError_init

Function EnvironmentError_init

Objects/exceptions.c:594–634  ·  view source on GitHub ↗

Where a function has a single filename, such as open() or some * of the os module functions, PyErr_SetFromErrnoWithFilename() is * called, giving a third argument which is the filename. But, so * that old code using in-place unpacking doesn't break, e.g.: * * except IOError, (errno, strerror): * * we hack args so that it only contains two items. This also * means we need our own __str__(

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

WindowsError_initFunction · 0.85

Calls 2

BaseException_initFunction · 0.85
PyArg_UnpackTupleFunction · 0.85

Tested by

no test coverage detected