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.
...floats in IEEE formats (struct.pack's <f, >f, <d, and >d codes; pickle and cPickle's protocol 1 pickling of floats) ignored that rounding can cause a carry to propagate. The worst consequence was that, in rare cases, <f and >f could produce strings that, when unpacked again, were a factor of 2 away from the original float. This has been fixed. See SF bug #705836. New function time.tzset() provides access to the C library tzset() function, if supported. (SF patch #675422.) U...
...Float/long comparison anomaly. Prior to 2.4b1, when an integer was compared to a float, the integer was coerced to a float. That could yield spurious overflow errors (if the integer was very large), and to anomalies such as long(1e200)+1 == 1e200 == long(1e200)-1. Coercion to float is no longer performed, and cases like long(1e200)-1 < 1e200, long(1e200)+1 > 1e200 and (1 << 20000) > 1e200 are computed correctly now. Extension modules collections.deque objects didn't play qui...
...floats, repr() now gives 17 digits of precision, to ensure no precision is lost (on all current hardware). The -X option is gone. Built-in exceptions are now always classes. Many more library modules also have been converted to class-based exceptions. Binary Incompatibilities Third party extensions built for Python 1.5.x cannot be used with Python 1.6; these extensions will have to be rebuilt for Python 1.6. On Windows, attempting to import a third party extension b...
...Floating point representation inconsistency between Windows and the rest of the world. We had to perform some nasty tricks to circumvent (partially) this inconsistency. Conclusion After so much developing time and so many lines of code we can say without hesitation: "Hail Python, we believe in you!" It was, and it is still, a pleasure to develop in a such a friendly and powerful language. About the Author Alessandro Iob is the CEO and co-founder of D-Level s.r.l., makers of the De...
...floats, repr() now gives 17 digits of precision, to ensure no precision is lost (on all current hardware). The -X option is gone. Built-in exceptions are now always classes. Many more library modules also have been converted to class-based exceptions. Binary Incompatibilities Third party extensions built for Python 1.5.x cannot be used with Python 1.6; these extensions will have to be rebuilt for Python 1.6. On Windows, attempting to import a third party extension built for Python 1.5.x res...
...float to C functions expecting an integer now issues a DeprecationWarning; in the future this will become a TypeError. (New in 2.3a2.) Package index and metadata for distutils. This is support for the Python catalog, now open for business at cheeseshop.python.org/pypi. (PEP 301) Support for generators is on by default -- 'yield' is always a keyword, 'from __future__ import generators' is no longer necessary (but still allowed). (PEP 255) Extended slices - the standard sequence types (string,...
...floating that we need to get a grip on, most of it is now almost a year old and some of it almost 2 years old." R. Hettinger indicated that he could help. 8 The Python African Tour Request S. Deibel noted that we received email on October 10 from Kamon Ayeva about "The Python African Tour project" (http://www.openplans.org/projects/python-african-tour), to discuss the PSF's possible association and support. S. Holden: First, they asked to use the PSF's na...
...Float_FromString takes a second argument, pend, that was effectively useless. It is now officially useless but preserved for backwards compatibility. If the pend argument is not NULL, *pend is set to NULL. PyObject_GetAttr() and PyObject_SetAttr() now accept Unicode objects for the attribute name. See note on getattr() above. A few bug fixes to argument processing for Unicode. PyArg_ParseTupleAndKeywords() now accepts "es#" and "es". PyArg_Parse() special cases "s#" fo...
...float repr(). sgmllib.py now calls handle_decl() for simple <!...> declarations. It is illegal to assign to the name __debug__, which is set when the interpreter starts. It is effectively a compile-time constant. A warning will be issued if a global statement for a variable follows a use or assignment of that variable. Standard library unittest.py, a unit testing framework by Steve Purcell (PyUNIT, inspired by JUnit), is now part of the standard library. You now have a choice of two te...
If you didn't find what you need, try your search in the Python language documentation.