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.
...dynamic modules in multiple interpreters. Patch #798145: Return correct information from nl_langinfo(RADIXCHAR). Bug #797447: Correct confusing error message for unsupported locales. Patch #798534: fixed memory leak in os.popen(). Bug #793826: re-ordered the reference counting code in itertools.izip() to prevent re-entrancy anomalies. Also, if given zero arguments, it now returns an empty iterator rather than raising a type error. Bug #770485: cStringIO did not support the f.closed attribute....
...dynamic instance variables, just like classic classes: >>> a.default = -1 >>> print a["noway"] -1 >>> a.default = -1000 >>> print a["noway"] -1000 >>> print a.__dict__.keys() ['default'] >>> a.x1 = 100 >>> a.x2 = 200 >>> print a.x1 100 >>> print a.__dict__.keys() ['default', 'x2', 'x1'] >>> print a.__dict__ {'default': -1000, 'x2': 200, 'x1': 100} >>> This is not always what you want; in particular, u...
...dynamic instance variables, just like classic classes: >>> a.default = -1 >>> print a["noway"] -1 >>> a.default = -1000 >>> print a["noway"] -1000 >>> print a.__dict__.keys() ['default'] >>> a.x1 = 100 >>> a.x2 = 200 >>> print a.x1 100 >>> print a.__dict__.keys() ['default', 'x2', 'x1'] >>> print a.__dict__ {'default': -1000, 'x2': 200, 'x1': 100} >>> This is not always what you want; in particular, using a separate dictionary to hold a single instance variable doubl...
...dynamic no longer exists). This configure patch makes things right. What's New in Python 2.4.1c2? Release date: 17-MAR-2005 Library Fixed decimal operator and comparison methods to return NotImplemented instead of raising a TypeError when interacting with other types. Allows other classes to successfully implement __radd__ style methods. Bug #1163325: Decimal infinities failed to hash. Attempting to hash a NaN raised an InvalidOperation instead of a TypeError. Bug #1160802: can't build Z...
...dynamically. 1999-11-04 lpd Edited comments slightly for automatic TOC extraction. 1999-10-18 lpd Fixed typo in header comment (ansi2knr rather than md5); added conditionalization for C++ compilation from Martin Purschke <purschke@bnl.gov>. 1999-05-03 lpd Original version. Asynchronous socket services¶ The asynchat and asyncore modules contain the following notice: Copyright 1996 by Sam Rushing All Rights Reserved Permission to use,...
...dynamic embedding of Python. See patch #938302, by Bob Ippolito. Added a new macro, PySequence_Fast_ITEMS, which retrieves a fast sequence's underlying array of PyObject pointers. Useful for high speed looping. Created a new method flag, METH_COEXIST, which causes a method to be loaded even if already defined by a slot wrapper. This allows a __contains__ method, for example, to co-exist with a defined sq_contains slot. This is helpful because the PyCFunction can take advantage of optimized c...
If you didn't find what you need, try your search in the Python language documentation.