Notice: While JavaScript is not essential for this website, your interaction with the content will be limited. Please turn JavaScript on for the full experience.
...KeyError on the GI of the node (which only appears as the _value_ in any dictionary). So, thinks I (with nudging from Guido) it's a refcount error... so, I forge ahead and say "dang the memory leaks", adding Py_INCREF's everywhere. No go :( Exactly the same behaviour. Hmm... This sounds like using an automatic weapon to kill a mosquito. Know thy enemy before choosing thy weapon. The problem is, of course, with what "everywhere" is. You may easily miss the one crucial place bec...
...KeyError | +-- ArithmeticError(*) | | | +-- OverflowError | +-- ZeroDivisionError | +-- FloatingPointError | +-- ValueError +-- SystemError +-- MemoryError The root class for all exceptions is the new exception Exception. From this, two additional classes are derived, StandardError, which is the root class for all standard exceptions, and SystemExit. It is recommended that user-defined exceptions in new ...
...KeyError: raise AttributeError, name if type(value) is not types.FunctionType: return value return BoundMethod(value, self) class BoundMethod: def __init__(self, function, instance): self.function = function self.instance = instance def __call__(self, *args): print "calling", self.function, "for", self.instance, "with", args return apply(self.function, (self.instance,) + args) Trace = Tracing('Trace',...
...KeyError was being raised by Thread.__delete() for dummy_threading when called by atexit if an instance of Thread was created in an interpreter running in -O. The exception was of no importance and thus is now thrown away if raised. Bug #930024: posixpath.realpath() now detects loops from symlinks and returns the longest path before the loop begins. Bug #980327/Patch #988607: ntpath now compresses extra slashes between the drive letter and the rest of the path properly. Also removed ambiguity ...
...KeyError: return self.default This example shows a few things. The __init__() method extends the dict.__init__() method. Like __init__() methods are wont to do, it has a different argument list than the base class __init__() method. Likewise, the __getitem__() method extends the base class __getitem__() method. The __getitem__() method could also be written as follows, using the new "key in dict" test introduced in Python 2.2: def __getitem__(self, k...
...KeyError: return self.default This example shows a few things. The __init__() method extends the dict.__init__() method. Like __init__() methods are wont to do, it has a different argument list than the base class __init__() method. Likewise, the __getitem__() method extends the base class __getitem__() method. The __getitem__() method could also be written as follows, using the new "key in dict" test introduced in Python 2.2: def __getitem__(self, key): ...
...KeyError in 'threading' being raised during interpreter shutdown from a registered function with atexit when dummy_threading is being used. Bug #857297/Patch #916874. Fix an error when extracting a hard link from a tarfile. Patch #846659. Fix an error in tarfile.py when using GNU longname/longlink creation. The obsolete FCNTL.py has been deleted. The builtin fcntl module has been available (on platforms that support fcntl) since Python 1.5a3, and all FCNTL.py did is export fcntl's names, a...
If you didn't find what you need, try your search in the Python language documentation.