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.
...module __main__ carefully before any other modules. [This used to be done after the next step.] M4. Loop over all modules repeatedly, looking for modules with a reference count of one. Each module with a reference count of one is cleared carefully. The loop stops when no more modules with a reference count of one are found. The modules __builtin__ and sys are excluded from the loop. M5. Clear all remaining modules carefully, except __builtin__ and sys. M6. Clear sys...
...module. "Package import" is a method to structure Python's module namespace by using "dotted module names". For example, the module name A.B designates a submodule named B in a package named A. Just like the use of modules saves the authors of different modules from having to worry about each other's global variable names, the use of dotted module names saves the authors of multi-module packages like NumPy or PIL from having to worry about each other's module names. Starting with P...
...module import failed, versions of 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 upg...
...Module Distribution Utilities for Python, or distutils for short, are needed to fill a number of long-standing holes in the Python distribution and culture. In roughly decreasing order of priority: There must be an easy, standardized way for users and administrators to add new modules (including extension modules) to an existing Python installation on any platform supported by Python itself. There must be an easy, standardi...
...modules is a hash mapping names of C source files (each containing a Python extension module) to a nested hash of information about how to build that module. The allowed keys to this nested hash are: - other_c: other C files that must be compiled and linked with the main C file to create the module - c_libraries: C libraries that must be included in the link ... """ No doubt the ext_modules nested hashes would have mo...
...module, extension module (extension for short), and package will keep their conventional Pythonic meanings: a single .py file meant to be imported by other modules or scripts, a module written in C, and a collection of modules grouped under a directory containing an __init__.py file. I proposed distribution (or module distribution when absolute clarity is needed) as a stand-in for package, which is already taken. A module distribution contains one or more mo...
...modules. New module 'fileinput' to iterate over the lines of a list of files. New module 'locale' for localized number formatting and string case sensitivity. New module 'xmllib' to parse XML files. Some more support for Tk extensions (PIL, TIX, BLT, TOGL). Fixed address list parsing in module 'rfc822'. More deployment (and only one fix) for the 're' module. New Python mode for Emacs. OS/2 support. From 1.5b1 to 1.5b2 Thanks to all who contributed doc strings for library modules! The portabi...
...module. This is a much more efficient version of the venerable profile.py module that's shipped with Python for many many years. GSoC also gave us a rewritten mailbox module that can both read and write mailboxes in a variety of formats. The struct module was updated to support a new Struct object. These are similar to the re module's compiled form of regular expressions. Some other smaller modules added to the standard library include uuid, msilib and spwd.
...module has been removed. The SocketServer module has been renamed to socketserver. Fixed the __all__ setting on collections to include UserList and UserString. The sre module has been removed. The Queue module has been renamed to queue. The copy_reg module has been renamed to copyreg. The mhlib module has been removed. The ihooks module has been removed. The fpformat module has been removed. The dircache module has been removed. The Canvas module has been removed. The Decimal module gained the m...
...Modules This is for end-users, system administrators, and Python programmers who need to install third-party modules to their existing Python installation. It focusses on using the Distutils, but also covers older ways of installing Python modules and extensions. Distributing Python Modules This is for module and extension developers who want to share their efforts with the wo...
...module(s) containing the registered instance's class(es), potentially leading to data loss or arbitrary code execution. If the registered object is a module, the danger is particularly serious. For example, if the registered module imports the os module, an attacker could invoke the os.system() function.</p> <p>But the attack is not limited to registered object modules; for example, the code in the Python cookbook recipe at <a href="http://aspn.activestate.com/ASPN/Cookbook...
...module. Additional API sugar could also be added, probably in a new module. HTML and XML parsing are pretty solid, but a critical lack on the client side is the lack of a CSS parser. On the server side, things are a bit more dire. The stdlib contains three web server modules, BaseHTTPServer, SimpleHTTPServer, and CGIHTTPServer, none of which are up to today's web tasks. I'd suggest a similar strategy here: pick a Web framework that already exists, make a functionality checklist from it, and ...
...module. Non-matching ranges are indicated by -1, not None. (The documentation said None, but the PRE implementation used -1; changing to None would break existing code.) The winreg module has been renamed to _winreg. (There are plans for a higher-level API called winreg, but this has not yet materialized in a form that is acceptable to the experts.) The _locale module is enabled by default. Fixed the configuration line for the _curses module. A few crashes have been fixed, not...
...Module Index (for quick access to all modules) Library Reference (keep this under your pillow) Macintosh Library Modules (this too, if you use a Macintosh) Language Reference (for language lawyers) Extending and Embedding (tutorial for C/C++ programmers) Python/C API (reference for C/C++ programmers) Documenting Python (information for documentation authors) Installing Python Modules (information for installers & sys-admins) Distributing Python Modules (sharing module...
If you didn't find what you need, try your search in the Python language documentation.