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.
...arguments. Keyword Argument Support Python supports the specification of particular function arguments by name, rather than by position. Goal: Implementation of a feature which allows keyword arguments to be used from Python for wrapped C++ functions. Generic C++ to Python Object Interface It is often necessary for C++ functions to manipulate objects passed to them directly from Python, without converting them to some other representation. Currently Boost.P...
...Python 1.5 Standard Exception Classes in Python 1.5 (updated for Python 1.5.2 -baw) User-defined Python exceptions can be either strings or Python classes. Since classes have many nice properties when used as exceptions, it is desirable to migrate to a situation where classes are used exclusively. Prior to Python 1.5 alpha 4, Python's standard exceptions (IOError, TypeError, etc.) were defined as strings. Changing these to classes posed some particularly nasty backward compatibil...
...Python 1.5 Metaclasses in Python 1.5 (A.k.a. The Killer Joke :-) (Postscript: reading this essay is probably not the best way to understand the metaclass hook described here. See a message posted by Vladimir Marangozov which may give a gentler introduction to the matter. You may also want to search Deja News for messages with "metaclass" in the subject posted to comp.lang.python in July and August 1998.) In previous Python releases (and still in 1.5), there is something c...
...Python 2.2.1</h2> <p>This page now exists only to clarify incompatibilities between Python version 2.2[.x] and versions before 2.2. <h3>Incompatibilities between Python 2.1[.x] and Python 2.2[.x]</h3> <p>The following visible differences between Python 2.2 and previous versions are intentional. <ul> <p><li>Not everything is listed here; for the full list see the <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/python/pytho...
Python Distutils-SIG: Design Proposal Python Distutils-SIG (Prerequisites: please read the proposed interface before trying to plough through this design document; it is very much a sequel to the interface document.) Design Proposal The Distutils' point of view setup.py only has to import one module, distutils.core. This module is responsible for parsing all command-line arguments to setup.py (even though the interpretation of options is di...
...Python 2.1[.x] and 2.2[.x] <h3>Incompatibilities between Python 2.1[.x] and Python 2.2[.x]</h3> <p>The following visible differences between Python 2.2 and previous versions are intentional. <ul> <p><li>Not listed here are various deprecated modules and features that may issue warnings: the warnings shouldn't affect the correct execution of your program, and they can be disabled with a command line option or programmatically; see the documentation for the wa...
...Python 2.1[.x] and 2.2[.x] <h3>Incompatibilties between Python 2.2.2 and Python 2.2.3</h3> <p>The following visible differences between Python 2.2.2 and Python 2.2.3 are intentional. <ul> <p><li>It is no longer possible to use object.__setattr__ to circumvent the restrictions on setting attributes of type objects. <p><li>list.extend() works with any iterable. <p><li>In pdb, you can no longer enable breakpoints with negative numbers...
...python.org/">documentation bundle</a> ("Distributing Python Modules"). </ul> <h3>Incompatibilities between Python 2.1[.1] and Python 2.2</h3> <p>The following visible differences between Python 2.2 and previous versions are intentional. <ul> <p><li>Not everything is listed here; for the full list see the <a href="http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/~checkout~/python/python/dist/src/Misc/NEWS?rev=1.337.2.4 "...
Python Patterns - Implementing Graphs Warning This page stays here for historical reasons and it may contain outdated or incorrect information. Change notes: 2/22/98, 3/2/98, 12/4/00: This version of this essay fixes several bugs in the code. 6/10/19: Retraction of find_shortest_path as "nearly optimal". 8/11/19: Fix accidental usage of find_graph() instead of find_path() Copyright (c) 1998, 2000, 2003, 2019 Python Software Foundation. All rights reserved. License...
...Python 2.2 Unifying types and classes in Python 2.2 Python Version: 2.2.2 (For a newer version of this tutorial, see Python 2.2.3) Guido van Rossum This paper is an incomplete draft. I am soliciting feedback. If you find any problems, please write me at guido@python.org. Table of Contents Change Log Introduction Subclassing built-in types Built-in types as factory functions Introspecting instances of built-in types Static methods and class methods Proper...
...Python ever, and yet it can be done with very few backwards incompatibilities. The changes are described in minute detail in a series of PEPs (Python Enhancement Proposals). PEPs are not designed to be tutorials, and the PEPs describing the type/class unification are sometimes hard to read. They also aren't finished yet. That's where this paper comes in: it introduces the key elements of the type/class unification for the average Python programmer. A bit of terminology: "classic Pyt...
...Python 2.2 Unifying types and classes in Python 2.2 Python Version: 2.2.1 (For a newer version of this tutorial, see Python 2.2.3) Guido van Rossum This paper is an incomplete draft. I am soliciting feedback. If you find any problems, please write me at guido@python.org. Table of Contents Change Log Introduction Subclassing built-in types Built-in types as factory functions Introspecting instances of built-in types Static methods and class methods Proper...
...Python will be released under a GPL-compatible license if at all possible. See CNRI's Python 1.6 License FAQ for answers to frequently asked questions about the CNRI license. Python 1.6 is no longer the latest Python release: Python 2.0 has been released and work has begun on Python 2.1. A "bugfix release" named Python 1.6.1 has been released. This is the first step towards solving the GPL incompatibility. Download The final version of Python 1.6 is available for download n...
...Python 2.2 Unifying types and classes in Python 2.2 Python Version: 2.2 (For a newer version of this tutorial, see Python 2.2.3) Guido van Rossum This paper is an incomplete draft. I am soliciting feedback. If you find any problems, please write me at guido@python.org. Table of Contents Introduction Subclassing built-in types Built-in types as factory functions Introspecting instances of built-in types Static methods and class methods Properties: attributes...
...Python 2.4 beta 2? Release date: 03-NOV-2004 License The Python Software Foundation changed the license under which Python is released, to remove Python version numbers. There were no other changes to the license. So, for example, wherever the license for Python 2.3 said "Python 2.3", the new license says "Python". The intent is to make it possible to refer to the PSF license in a more durable way. For example, some people say they're confused by that the Open Source Ini...
...Python prior to 2.4a2 would leave a broken module in sys.modules - subsequent attempts to import the failing module would silently succeed, but use the broken module object. The import machinery now removes the failing module from sys.modules if the import fails. The -m command line option - python -m modulename will find a module in the standard library, and invoke it. For example, python -m pdb is equivalent to python /usr/lib/python2.4/pdb.py New or upgraded built-ins built-in sets - th...
...pythonw" that runs your script with an interpreter living in such a .app bundle, this interpreter should be used to run any Python script using the window manager (including Tkinter or wxPython scripts). Most of Mac/Lib has moved to Lib/plat-mac, which is again used both in MacPython-OSX and MacPython-OS9. The only modules remaining in Mac/Lib are specifically for MacPython-OS9 (CFM support, preference resources, etc). A new utility PythonLauncher will start a Python interpreter when a .py ...
...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 results in an immediate crash; there's not much we can do about this. Check your PYTHONPATH environment variable! Overview of Changes since 1.5.2 For this overview, I have borrowed from the document "What's New in Python 2.0" by Andrew Kuchling and Moshe Zadka: http://starship.python.net/crew/amk/python/...
If you didn't find what you need, try your search in the Python language documentation.