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.
...definitions of PyModule_AddStringConstant and PyModule_AddObject if the Python version is less than 2.0, which provides compatibility with PyXML on Python 1.5.2. If the platform has a bogus definition for LONG_BIT (the number of bits in a long), an error will be reported at compile time. Fix bugs in _PyTuple_Resize() which caused hard-to-interpret garbage collection crashes and possibly other, unreported crashes. Fixed a memory leak in _PyUnicode_Fini(). Build issues ...
...variable in the middle, rather than right after the for keyword. And in the case where the lower bound is a variable, this is confusing for the casual reader: for i <= j < k: looks similar to for i in j, k: but in one case the loop counter is j, in the other case it is i. The good thing about this PEP is that it quotes and comments on all the previous PEPs that have attempted to solve this issue (204, 212, 276, and 281). I think that the current parse...
...variable, has_ipv6, which is True iff the current Python has IPv6 support. See SF patch #658327. Tkinter wrappers around Tcl variables now pass objects directly to Tcl, instead of first converting them to strings. The .*? pattern in the re module is now special-cased to avoid the recursion limit. (SF patch #720991 -- many thanks to Gary Herron and Greg Chapman.) New function sys.call_tracing() allows pdb to debug code recursively. New function gc.get_referents(obj) returns a list of objects di...
...definition with a platform- specific spelling in that platform's pyconfig.h. You can also override pyport.h's default Py_IS_INFINITY definition now. C API SF patch 1044089: New function PyEval_ThreadsInitialized() returns non-zero if PyEval_InitThreads() has been called. The undocumented and unused extern int _PyThread_Started was removed. The C API calls PyInterpreterState_New() and PyThreadState_New() are two of the very few advertised as being safe to call without holding the GIL. Howe...
...definitions or the initializer structure changed. What I really wanted was code that would analyze the shape and members of the initializer, query the class definitions themselves about their members, and then adjust itself to impedance-match the two sets. This kind of thing is called metaclass hacking and is generally considered fearsomely esoteric -- deep black magic. Most object-oriented languages don't support it at all; in those that do (Perl being one), it tends to be a complicated and fra...
...variables/arrays and get their derivatives via automatic differentiation. Also, one can perform integration, interpolation, solve systems of linear/nonlinear/ODE equations and numerical optimization problems coded in FuncDesigner by OpenOpt. DerApproximator - a tool to get (or check user-supplied) derivatives via finite-difference approximation. SpaceFuncs - a tool for 2D, 3D, N-dimensional geometric modeling with possibilities of parametrized calculations, numerical optimization and solving sys...
...definitions of an OO Programming Language? From: Tim Peters <@email.msn.com> Date: Sun, 29 Mar 1998 18:19:54 -0500 [jeff <nospam@myhost.com>] > Is it not true that a programming language must > enforce "data hiding" or encapsulation to be > considered a true Object Oriented programming > language? Absolutely! Guido (van Rossum, Python's creator) probably doesn't even know how to spell those phrases, though. > (It is true incase you thought...
If you didn't find what you need, try your search in the Python language documentation.