Brett Cannon
710513ef83
Clarify what "re-initialization" means for init_builtin() and init_dynamic().
...
Also remove warning about re-initialization as possibly raising an execption as
both call _PyImport_FindExtension() which pulls any module that was already
imported from the Python process' extension cache and just copies the __dict__
into the module stored in sys.modules.
2006-10-05 22:02:31 +00:00
Phillip J. Eby
f7575d0cb7
Bug #1529871 : The speed enhancement patch #921466 broke Python's compliance
...
with PEP 302. This was fixed by adding an ``imp.NullImporter`` type that is
used in ``sys.path_importer_cache`` to cache non-directory paths and avoid
excessive filesystem operations during imports.
2006-07-28 21:12:07 +00:00
Brett Cannon
7706c2da14
Update references specifying "Macintosh" to mean OS X semantics and not Mac OS
...
9.
Applies patch #1095802 . Thanks Jack Jansen.
2005-02-13 22:50:04 +00:00
Johannes Gijsbers
8e3bec5418
Correct argument specifications of load_compiled and load_source: the file
...
argument is optional on both (the format string is "ss|O!").
2004-08-20 14:38:56 +00:00
Neal Norwitz
2294c0d4ec
Cleanup from patch #683257 :
...
Add missing INCREFs and re-indent returns to be consistent.
Add \n\ for lines in docstring
Add a pathetic test
Add docs
2003-02-12 23:02:21 +00:00
Just van Rossum
8982595870
Backing out patch #642578 in anticipation of final acceptance of PEP 302.
2002-12-25 23:13:34 +00:00
Just van Rossum
3eb166b49b
Slightly improved version of patch #642578 : "Expose PyImport_FrozenModules
...
in imp". This adds two functions to the imp module: get_frozenmodules()
and set_frozenmodules().
2002-11-29 20:47:40 +00:00
Neal Norwitz
6b35370c65
Update docs for bool changes by Guido around April 6
2002-04-09 18:15:00 +00:00
Fred Drake
bc82ab1c9f
Do not call "knee" a standard module, and point to the new location.
...
This addresses the issue in SF bug #515745 .
2002-04-08 05:22:30 +00:00
Tim Peters
692323488b
Add a new function imp.lock_held(), and use it to skip test_threaded_import
...
when that test is doomed to deadlock.
2001-08-30 05:16:13 +00:00
Fred Drake
91f2f26d75
Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
...
translation more difficult, as well as reading the English more
difficult for non-native speakers.
2001-07-06 19:28:48 +00:00
Fred Drake
90badd1286
Add a missing newline in an example; caught by Chris Ryland
...
<cpr@emsoftware.com>.
2001-01-17 05:12:13 +00:00
Fred Drake
2c4f554b78
Fixed a large number of small problems, mostly noted by Detlef Lannert
...
<lannert@lannert.rz.uni-duesseldorf.de>.
2000-10-10 22:00:03 +00:00
Thomas Wouters
f8316638af
Rob W. W. Hooft's spelling fixes for the Library Reference. I hope
...
SourceForge doesn't choke on this batch :-)
I'm not entirely sure this is 100% correct. The patch changes an
\index{persistency} to \index{presistence}, and I don't know what \index{}
does. But it seems to do so persi--er, consistently, so I hope it isn't a
problem.
2000-07-16 19:01:10 +00:00
Fred Drake
28b1770521
Improve index entry for "import"; responding to comments by Stefan
...
Franke <sfranke@cdc-group.com>.
1999-06-10 22:08:16 +00:00
Fred Drake
4a406c619b
Shorten the section title.
1999-04-22 20:52:44 +00:00
Fred Drake
64c105d3d2
Added index entries.
...
Small markup nits.
1998-08-11 15:18:45 +00:00
Fred Drake
295da24eaf
New section header style.
...
Fix up a few synopses.
1998-08-10 19:42:37 +00:00
Fred Drake
b91e934cf1
Adjusted to use the new module synopsis support macros.
1998-07-23 17:59:49 +00:00
Fred Drake
3a0351cf85
Remove all uses of \sectcode; we can now use logical markup everywhere.
1998-04-04 07:23:21 +00:00
Fred Drake
cce1090d49
Change "\," to just "," in function signatures. This is easier to maintain,
...
works better with LaTeX2HTML, and allows some simplification of the python.sty
macros.
1998-03-17 06:33:25 +00:00
Fred Drake
bccc64020e
Logical markup.
...
Spell emdash right.
1998-03-08 06:41:57 +00:00
Fred Drake
c83db33781
Added \label{} for logical addressing.
1998-02-19 20:50:52 +00:00
Fred Drake
1947991c2f
Remove all \bcode / \ecode cruft; this is no longer needed. See previous
...
checkin of myformat.sty.
Change "\renewcommand{\indexsubitem}{(...)}" to "\setindexsubitem{(...)}"
everywhere.
Some other minor nits that I happened to come across.
1998-02-13 06:58:54 +00:00
Fred Drake
c9a32ab26b
Normalize some markup.
...
Use \file{} instead of \code{} for a directory name (Tools/freeze).
Consistently use "()" at the end of a function name in running text.
1998-01-07 18:57:01 +00:00
Fred Drake
cc97454987
Added missing "\" to "var{P}.\var{M}" in load_module() description.
1997-12-29 17:16:24 +00:00
Guido van Rossum
3cdb8f3286
Update the description and the example to the new functionality, which
...
is mostly concentrated in a generalized find_module() and the new
load_module(). Added the new module type constants. Declare that
SEARCH_ERROR and a whole bunch of module-type-specific functions are
obsolete.
1997-09-09 20:53:37 +00:00
Guido van Rossum
e47da0ae04
AMK's megapatch:
...
* \bcode, \ecode added everywhere
* \label{module-foo} added everywhere
* A few \seealso sections added.
* Indentation fixed inside verbatim in lib*tex files
1997-07-17 16:34:52 +00:00
Guido van Rossum
4d206541be
Slight update; file args are no longer optional.
1996-06-26 19:21:24 +00:00
Guido van Rossum
0bbbea15e6
typos only
1995-08-10 14:21:11 +00:00
Guido van Rossum
d6ac380d39
fix bug in example (should close file at all times)
1995-07-07 23:01:27 +00:00
Guido van Rossum
96628a90c4
typos, layout and other small things
1995-04-10 11:34:00 +00:00
Guido van Rossum
ecde781dd1
restructured library manual accordiung to functional group
1995-03-28 13:35:14 +00:00
Guido van Rossum
470be14c8a
mass changes; fix titles; add examples; correct typos; clarifications;
...
unified style; etc.
1995-03-17 16:07:09 +00:00
Guido van Rossum
6bb1adc7ee
small changes by Soren Larsen
1995-03-13 10:03:32 +00:00
Guido van Rossum
6c4f003202
changes (suggested) by Soren Larsen
1995-03-07 10:14:09 +00:00
Guido van Rossum
8675115e5f
a few typographical changes (e.g. -- => ---) and lots of new stuff in the WWW chapter
1995-02-28 17:14:32 +00:00
Guido van Rossum
4f4c9b42ba
make __import__ 4-args
1995-02-15 15:52:13 +00:00
Guido van Rossum
946805d418
new module
1995-01-10 10:51:08 +00:00