Notice: This page displays a fallback because interactive scripts did not run. Possible causes include disabled JavaScript or failure to load scripts or stylesheets.
...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 carefully. M7. Clear __builtin__ ca...
...modules of the package. For example, the Sound.Effects package might contain platform specific submodules. It could use the following directory structure: Sound/ __init__.py Effects/ # Generic versions of effects modules __init__.py echo.py surround.py reverse.py ... plat-ix86/ # Intel x86 specific effects modules echo.py surround.py plat-PPC/ # PPC specific effects modu...
...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 - the sets module, introduced in 2.3, has now been implement...
...modules (including extension modules) to an existing Python installation on any platform supported by Python itself. There must be an easy, standardized way to characterize "meta-data" about a module distribution such as its name, version number, area of applicability, description, and so forth, for the use of indexing and search tools. There must be an easy, standardized way to create "built distributions" (read...
...modules = ['mymod.py', 'my_othermod.py'], ext_modules = {'myext.c': {'other_c': ['extra1.c', 'extra2.c'], 'c_libraries': ['mylib']} } setup (distclass = MyDistribution) A couple of things to note: I'm not afraid to use deeply nested data structures; if you're writing and distributing Python modules, this shouldn't be a problem! every attribute has a partic...
...modules written in C) or plain ol' "modules" (written in Python) with no difference in the user interface. People also seemed to accept the idea of "building" everything -- C modules, Python modules, eventually documentation -- to a temporary "build library" directory, tentatively called blib/. (This is one of the few implementation details of Perl's MakeMaker that survived the session.) The blib/directory serves (at least) two purposes: it makes installation n...
...modules are warning-free. The freeze tool now supports hierarchical module names. New standard modules: threading, getpass, imaplib, poplib, smtplib, Tkdnd (Tkinter drag-and-drop). Some modules that were declared obsolete a while ago have been moved out of the standard library path. From 1.4 To 1.5 - Highlights It's much faster (almost twice for the Lib/test/pystone.py benchmark.) There is now an assert statement: assert <condition> or assert <condition>, <errormessage>. I...
...modules and packages In keeping with the theme of adding tried and true packages to the standard library, in 2.5 we've added ctypes, ElementTree, hashlib, sqlite3 and wsgiref to the standard library that ships with Python. Google's summer of code resulted in a new cProfile profiling 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 ...
...modules as http.server. The xmlrpc package was created; it contains the old xmlrpclib module as xmlrpc.client and the content of the old SimpleXMLRPCServer and DocXMLRPCServer modules as xmlrpc.server. The dbm package was created, containing the old modules anydbm and whichdb in its __init__.py, and having dbm.gnu (was gdbm), dbm.bsd (was dbhash), dbm.ndbm (was dbm) and dbm.dumb (was dumbdbm) as submodules. The repr module has been renamed to reprlib. The statvfs module has been removed. Issue #...
...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...
...modules. The flaw only affects Python XML-RPC servers that use the register_instance() method to register an object without a _dispatch() method. Servers using only register_function() are not affected.</p> <p>On vulnerable XML-RPC servers, a remote attacker may be able to view or modify globals of the 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 particula...
...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 add that functionality to a new webserver module. I'd start with Medusa, since I'm familiar with it and pretty happy with it, but something else might be better. The other major problem on the server side is the lack of server-side SSL support, critical in today's hosti...
...modules and lots of bugs have been fixed. A list of all new modules is included below. Probably the most pervasive change is the addition of Unicode support. We've added a new fundamental datatype, the Unicode string, a new build-in function unicode(), an numerous C APIs to deal with Unicode and encodings. See the file Misc/unicode.txt for details, or http://starship.python.net/crew/lemburg/unicode-proposal.txt. Two other big changes, related to the Unicode support, are the additio...
...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 modules with others) If you have comments...
If you didn't find what you need, try your search in the Python language documentation.