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.
...types and its dynamic typing. For example, a Python programmer wastes no time declaring the types of arguments or variables, and Python's powerful polymorphic list and dictionary types, for which rich syntactic support is built straight into the language, find a use in almost every Python program. Because of the run-time typing, Python's run time must work harder than Java's. For example, when evaluating the expression a+b, it must first inspect the objects a and b to find out their type,...
...type and you're in business. There's a new built-in name, "dict", for the type of dictionaries. (In version 2.2b1 and before, this was called "dictionary"; while in general I don't like abbreviations, "dictionary" was just too long to type, and we've been saying "dict" for years.) This is really just sugar, since there are already two other ways to name this type: type({}) and (after importing the types module) types.DictType (and a third, types.DictionaryType). But now that types p...
...type object and type(x) is y. repr() and str() of class and instance objects now reflect the package/module in which the class is defined. Module "ni" has been removed. (If you really need it, it's been renamed to "ni1". Let me know if this causes any problems for you. Package authors are encouraged to write __init__.py files that support both ni and 1.5 package support, so the same version can be used with Python 1.4 as well as 1.5.) The thread module is now automatically ...
...type declarations are not used. Second, the standard library and third-party modules available for Python are breathtaking in their coverage. Almost every time a problem was encountered, a Python library that helped speed the solution process was found. These libraries, both standard and third-party, were high-quality and tended to have helpful communities of users. Finally, the ease with which code can be read and comprehended quickly, even months after being written, has helped to keep LoveInt...
...type='String' /> <property name='RevNum' type='Integer' /> <property name='Subject' type='String' /> <property name='ModDate' type='Date' /> </props> We can write a C++ file with inlined Python code: // SchemaPropEnum.h enum SchemaPropEnum { /* [[[cog import cog, handyxml for p in handyxml.xpath('Properties.xml', '//property'): cog.outl("Property%s," % p.name) ]]] */ // [[[end]]...
...TYPE="s">pathExpr</SYMBOL> <CODE> </CODE> </RULE> <RULE> <SYMBOL TYPE="s">unionExpr</SYMBOL> <SYMBOL TYPE="s">'|'</SYMBOL> <SYMBOL TYPE="s">pathExpr</SYMBOL> <CODE> <VARIABLE TYPE="PyObject*" NAME="right"></VARIABLE> <VARIABLE TYPE="PyObject*" NAME="left"></VARIABLE> <VARIABLE TYPE="PyObject*" NAME="expr"></VARIABLE> <CODE_SNIPPE...
...type's coercion if both arguments have the same type but this type has the CHECKTYPES flag set. This is to better support proxies. The type of tp_free has been changed from "void (*)(PyObject *)" to "void (*)(void *)". PyObject_Del, PyObject_GC_Del are now functions instead of macros. A type can now inherit its metatype from its base type. Previously, when PyType_Ready() was called, if ob_type was found to be NULL, it was always set to &PyType_Type; now it is set to bas...
Version: None
Released: Feb. 23, 2014
Python 3.3.5 includes fixes for these important issues: a 3.3.4 regression in zipimport (see http://bugs.python.org/issue20621) a 3.3.4 regression executing scripts with a coding declared and Windows newlines (see http://bugs.python.org/issue20731) potential DOS using compression codecs in bytes.decode() (see http://bugs.python.org/issue19619 and http://bugs.python.org/issue20404) and also fixes quite a few other …
View Release Notes
Released: March 2, 2014
Released: March 9, 2014
Python 3.3.5 release Python 3.3.x has reached end-of-life. Python 3.3.7, the final security-fix release, is available here. Python 3.3.5 was released on March 9th, 2014. Python 3.3.5 includes fixes for these important issues: a 3.3.4 regression in zipimport (see http://bugs.python.org/issue20621) a 3.3.4 regression executing scripts with a coding declared and Windows newlines (see http://bugs.python.org/issue20731) potential DOS using compression codecs in bytes.decode() (see http://bugs.pyt...
...type: def nesw(name, **data): """ Make four nodes for n, e, w, s from a location. Keys: images: ni, ei, wi, si. destinations: n, e, w, s. """ # (code omitted) The first argument is the base name for the new nodes (the node names are made by appending ":n", ":w", etc). The remaining arguments are specified by keyword: ni is the image name for the north node, n is the node to the north; wi is the image for the...
...types, and C/C++ extensibility. In addition, it had maturity, lots of documentation, and an active development community behind it. Since supporting the BSL interpreter was becoming cumbersome, and because BSL code happened to be very easy to port to Python, I approached the senior developers with the suggestion that we change horses in mid-stream and replace BSL with Python. This proposal was initially met with mixed reactions. There was some concern as to whether any scripting language (either...
...type which is the base class for str (8-bit strings) and unicode. Primarily used to simplify tests for string-ness to isinstance(x, basestring). bool, True, False - these were introduced as ints in Python 2.2.1, but are now a separate type (a subtype of int). This means that True and False are now printed as the strings 'True' and 'False', respectively. As of 2.3b1, bool() without arguments returns False. (PEP 285) compile(), eval(), exec - fully support Unicode, and no longer issue a SyntaxE...
...type of the operands: after all, that's what all other numeric operators do. But we can't simply change Python so that 1/2 yield 0.5, because (like removing the string module) it would break too much existing code. What to do? The solution, too complex to describe here in detail, will have to span several Python releases, and involves gradually increasing pressure on Python programmers (first through documentation, then through deprecation warnings, and eventually through errors) to c...
If you didn't find what you need, try your search in the Python language documentation.