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.
...cations are rarely CPU bound, and simply do not need the intensive performance that the fastest languages can give you. For interactive desktop applications, the speed difference between C# and IronPython would rarely be discernible by the user. Some programs do require significant CPU performance, either because they are crunching large data sets or because they must scale across many users on a server. In such a project, it is often a very small proportion of the code which actually requires t...
...cause Python's cyclic gc had no knowledge of Python's weakref objects. It does now. When weakrefs with callbacks become part of cyclic garbage now, those weakrefs are cleared first. The callbacks don't trigger then, preventing the problems. If you need callbacks to trigger, then just as when cyclic gc is not involved, you need to write your code so that weakref objects outlive the objects they weakly reference. Critical bugfix, for SF bug 840829: if cyclic garbage collection happened to occ...
...ckle.py and cPickle.c: when unpickling an instance of a class that doesn't define the __getinitargs__() method, the __init__() constructor is no longer called. This makes a much larger group of classes picklable by default, but may occasionally change semantics. To force calling __init__() on unpickling, define a __getinitargs__() method. Other changes too, in particular cPickle now handles classes defined in packages correctly. The same change applies to copying instances with copy.py. Loca...
...criptors, except for __class__. raw_input() - can now return Unicode objects (if sys.stdin is Unicode-capable). (New in 2.3a2.) slice() and buffer() - these are now types rather than functions. The constructors have the same signature as the functions in the past. PyThreadState_SetAsyncEnc() - A new API (deliberately accessible only from C) to interrupt a thread by sending it an exception. New or upgraded modules and packages Many new doctest extensions from Jim Fulton, which among other e...
...ces in the new Numeric acts the same as in the old version, and don't make copies as I mistakenly thought.) Quoting Perry Greenfield: [...] the new version is becoming more and more backward- compatible. In fact, the major differences that remain are: difference coercion rules when scalars are combined with arrays. At the scientific Python BoF, there was consensus that this change was a Good Thing. Types are represented by type objects rather than single character...
...ch comparison overloading" (PEP 207). C extension types can provide a rich comparison function in the new tp_richcompare slot in the type object. The cmp() function and the C function PyObject_Compare() first try the new rich comparison operators before trying the old 3-way comparison. There is also a new C API PyObject_RichCompare() (which also falls back on the old 3-way comparison, but does not constrain the outcome of the rich comparison to a Boolean result). The rich comparison func...
...cument, and the CNRI Open Source License is-- according to CNRI --as simple as they were able to make it at this time while still maintaining a balance between the need for access and other use of Python with CNRI's rights. Are you saying that the CWI license did not protect our rights? CNRI has held copyright and other rights to the code but never codified them into a CNRI-blessed license prior to 1.6. The CNRI Open Source License is a binding contract between CNRI and Python 1...
...ce could be performed with respect to certain abstraction boundaries and aspects of the code. A program slice that presents the functional aspect of a program without including concurrency-specific code may be useful for understanding the program structure. (Of course, the concurrency-specific code is important to understand, but may be a separate concern.) A third area of work is one automatic generation of scripting language interfaces to low-level code such as C, C++, or Java. The SWIG...
If you didn't find what you need, try your search in the Python language documentation.