05b84439a3541ea3a2fdda9f8abfd46b64c431e8 |
|
17-Oct-2016 |
Berker Peksag <berker.peksag@gmail.com> |
Issue #21720: Improve exception message when the type of fromlist is unicode
/external/python/cpython2/Python/import.c
|
bf00bc783fd87544c1717b2db163736cea6412aa |
|
08-Sep-2016 |
Eric Snow <ericsnowcurrently@gmail.com> |
Issue #15578: Correctly incref the parent module while importing.
/external/python/cpython2/Python/import.c
|
1c496178d2c863f135bd4a43e32e0f099480cd06 |
|
10-Feb-2016 |
Serhiy Storchaka <storchaka@gmail.com> |
Issue #25698: Importing module if the stack is too deep no longer replaces imported module with the empty one.
/external/python/cpython2/Python/import.c
|
3ce7873fddef05ecd6c5da2d5bd40206fee3805c |
|
19-Apr-2015 |
Christian Heimes <christian@python.org> |
Issue #23998: PyImport_ReInitLock() now checks for lock allocation error
/external/python/cpython2/Python/import.c
|
9fade768c89e3fbb497ac2851fbf540c3f054757 |
|
24-Dec-2012 |
Mark Dickinson <dickinsm@gmail.com> |
Issue #13863: fix incorrect .pyc timestamps on Windows / NTFS (apparently due to buggy fstat)
/external/python/cpython2/Python/import.c
|
b48c028ca7b1f8a0215cfe12bbc32961743a554b |
|
19-Oct-2012 |
Nick Coghlan <ncoghlan@gmail.com> |
Issue #6074: Restore the long-broken support for running with read-only source files on Windows
/external/python/cpython2/Python/import.c
|
c5bef75c77af414c2f6c5901b6838d3071313bc7 |
|
15-Aug-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #15604: Update uses of PyObject_IsTrue() to check for and handle errors correctly. Patch by Serhiy Storchaka.
/external/python/cpython2/Python/import.c
|
92636bf243873bce70f7056c1fa8a125a1146526 |
|
14-Aug-2012 |
Matthias Klose <doko@ubuntu.com> |
- Issue #15647: Make isdir static for windows and posix
/external/python/cpython2/Python/import.c
|
284fa08eb783a48f98eabda25aaaebefb5937cce |
|
09-May-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #14761: Fix potential leak on an error case in the import machinery.
/external/python/cpython2/Python/import.c
|
a72aa843b66e80cc6f97a5e3571952d941e82404 |
|
19-Apr-2012 |
Gregory P. Smith <greg@krypto.org> |
Fix compiler warning related to issue #14331. harmless.
/external/python/cpython2/Python/import.c
|
fcdf04becc33add8bdc791466c7e96847f5335fc |
|
19-Mar-2012 |
Gregory P. Smith <greg@krypto.org> |
Fixes Issue #14331: Use significantly less stack space when importing modules by allocating path buffers on the heap instead of the stack.
/external/python/cpython2/Python/import.c
|
0e17dfbdcfe24be57889ae93cddc90843432e6d6 |
|
08-Mar-2012 |
Jason R. Coombs <jaraco@jaraco.com> |
Test in 6c218b9c5c4c was inadvertently converted from #ifdef to #if. Now #ifdef again.
/external/python/cpython2/Python/import.c
|
0737b7281e32b5c7c4fabed99365e71644ea2dda |
|
13-Jan-2012 |
Jason R. Coombs <jaraco@jaraco.com> |
Fix indentation
/external/python/cpython2/Python/import.c
|
fa93cf8e3ea4f34804932ffdf841173ed0f1d088 |
|
13-Jan-2012 |
Jason R. Coombs <jaraco@jaraco.com> |
Extracted Windows directory detection from NullImporter.__init__. This greatly simplifies the code and fixes issue6727.
/external/python/cpython2/Python/import.c
|
925ff7495bbeff59327b4738272ea0b95071beeb |
|
13-Jan-2012 |
Jason R. Coombs <jaraco@jaraco.com> |
Moved directory detection into an isdir function
/external/python/cpython2/Python/import.c
|
6f25d75f25ae83285e3c3e95ca279e49ce5da691 |
|
25-Jan-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Remove debug output, fix assert (hopefully) and exercise signedness issues a bit more.
/external/python/cpython2/Python/import.c
|
b744cef654d037cee1c6c07d9c0b6ff073fd5604 |
|
25-Jan-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Fix temporary debug output (so, time_t is 8 bytes on some Windows builds)
/external/python/cpython2/Python/import.c
|
11cc480ed0d55086067bfed09eb74ed1ba3af562 |
|
25-Jan-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Temporary debug for Windows buildbots.
/external/python/cpython2/Python/import.c
|
0e5fd59a27925ee5387717f3ed1f8ca2f3d64cbc |
|
25-Jan-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Make guard more dynamic (apparently the size of a filesystem timestamp may vary under Windows).
/external/python/cpython2/Python/import.c
|
d1c818a9c0a3684f57d7d00c6ec43763783ccf2a |
|
24-Jan-2012 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #11235: Fix OverflowError when trying to import a source file whose modification time doesn't fit in a 32-bit timestamp.
/external/python/cpython2/Python/import.c
|
63c22fac727a72f0a4da8f72b12cd5f9b480376b |
|
23-Sep-2011 |
Victor Stinner <victor.stinner@haypocalc.com> |
Issue #7732: Fix a crash on importing a module if a directory has the same name than a Python module (e.g. "__init__.py"): don't close the file twice. PyFile_FromFile() does also close the file if PyString_FromString() failed. It did already close the file on fill_file_fields() error (e.g. if the file is a directory).
/external/python/cpython2/Python/import.c
|
ed36c06f1dbc8888d94491d3c2e83aa296e9b33a |
|
15-Sep-2011 |
Victor Stinner <victor.stinner@haypocalc.com> |
Fix the import machinery if there is an error on sys.path or sys.meta_path find_module() now raises a RuntimeError, instead of ImportError, on an error on sys.path or sys.meta_path because load_package() and import_submodule() returns None and clear the exception if a ImportError occurred.
/external/python/cpython2/Python/import.c
|
871a0fbf460ed392e0e42ee7eee7ed6266216ae8 |
|
02-Sep-2011 |
Victor Stinner <victor.stinner@haypocalc.com> |
Remove unused variable if Python is build without threads
/external/python/cpython2/Python/import.c
|
eb3cd301aea85de122c828afa6473bfc6c9eb10e |
|
20-May-2010 |
Brett Cannon <bcannon@gmail.com> |
Turned out that if you used explicit relative import syntax (e.g. from .os import sep) and it failed, import would still try the implicit relative import semantics of an absolute import (from os import sep). That's not right, so when level is negative, only do explicit relative import semantics. Fixes issue #7902. Thanks to Meador Inge for the patch.
/external/python/cpython2/Python/import.c
|
c83ea137d7e717f764e2f31fc2544f522de7d857 |
|
09-May-2010 |
Antoine Pitrou <solipsis@pitrou.net> |
Untabify C files. Will watch buildbots.
/external/python/cpython2/Python/import.c
|
b166afc17cfc49fffbac6bbc6de67994fe037f72 |
|
05-May-2010 |
Brett Cannon <bcannon@gmail.com> |
Fix whitespace.
/external/python/cpython2/Python/import.c
|
417439e6cdc072baea8217a3c60d5f52f353394a |
|
05-May-2010 |
Brett Cannon <bcannon@gmail.com> |
Partially revert the over-reaching r80813.
/external/python/cpython2/Python/import.c
|
0b03f10afb301560c711b953b6ca2ecef3181eed |
|
05-May-2010 |
Brett Cannon <bcannon@gmail.com> |
Remove three unneeded variable assignments. Found using Clang's static analyzer.
/external/python/cpython2/Python/import.c
|
06638735fc23da143d787575fd448c2a0aea9e51 |
|
26-Mar-2010 |
Benjamin Peterson <benjamin@python.org> |
make naming convention consistent
/external/python/cpython2/Python/import.c
|
6664426d7cdb63b88d973a731cc442ecba10047a |
|
10-Mar-2010 |
Victor Stinner <victor.stinner@haypocalc.com> |
Issue #3137: Don't ignore errors at startup, especially a keyboard interrupt (SIGINT). If an error occurs while importing the site module, the error is printed and Python exits. Initialize the GIL before importing the site module.
/external/python/cpython2/Python/import.c
|
9e5d1327f8a6f3a266b76118e0c660c7bcb12ce9 |
|
01-Mar-2010 |
Gregory P. Smith <greg@mad-scientist.com> |
Issue #7242: On Solaris 9 and earlier calling os.fork() from within a thread could raise an incorrect RuntimeError about not holding the import lock. The import lock is now reinitialized after fork.
/external/python/cpython2/Python/import.c
|
b646547bb45fe1df6abefd94f892c633798d91d2 |
|
11-Jan-2010 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Issue #2333: Backport set and dict comprehensions syntax.
/external/python/cpython2/Python/import.c
|
ee936a21308679654b2d458166ff094ed735fef7 |
|
10-Jan-2010 |
Alexandre Vassalotti <alexandre@peadrop.com> |
Issue #2335: Backport set literals syntax from Python 3.x.
/external/python/cpython2/Python/import.c
|
c4dcb3801e6e64327e95821034a7578f5f31bf94 |
|
16-Sep-2009 |
Thomas Wouters <thomas@python.org> |
Fix issue #1590864, multiple threads and fork() can cause deadlocks, by acquiring the import lock around fork() calls. This prevents other threads from having that lock while the fork happens, and is the recommended way of dealing with such issues. There are two other locks we care about, the GIL and the Thread Local Storage lock. The GIL is obviously held when calling Python functions like os.fork(), and the TLS lock is explicitly reallocated instead, while also deleting now-orphaned TLS data. This only fixes calls to os.fork(), not extension modules or embedding programs calling C's fork() directly. Solving that requires a new set of API functions, and possibly a rewrite of the Python/thread_*.c mess. Add a warning explaining the problem to the documentation in the mean time. This also changes behaviour a little on AIX. Before, AIX (but only AIX) was getting the import lock reallocated, seemingly to avoid this very same problem. This is not the right approach, because the import lock is a re-entrant one, and reallocating would do the wrong thing when forking while holding the import lock. Will backport to 2.6, minus the tiny AIX behaviour change.
/external/python/cpython2/Python/import.c
|
982b2fa32dffb3e18862aa8d492c9d151a69cfe4 |
|
25-Jul-2009 |
Amaury Forgeot d'Arc <amauryfa@gmail.com> |
Better name a variable: 'buf' seems to imply a mutable buffer.
/external/python/cpython2/Python/import.c
|
3310a10a68228c4a84a2ed517af6b0b81e7f0b15 |
|
07-Jul-2009 |
R. David Murray <rdmurray@bitdance.com> |
Update issue 6070 patch to match the patch that was actually tested on Windows.
/external/python/cpython2/Python/import.c
|
23a736a4f06cabf9c1f1b57fd6bd7b4fabc8ca08 |
|
07-Jul-2009 |
R. David Murray <rdmurray@bitdance.com> |
Issue 6070: when creating a compiled file, after copying the mode bits, on posix zap the execute bit in case it was set on the .py file, since the compiled files are not directly executable on posix. Patch by Marco N.
/external/python/cpython2/Python/import.c
|
1880d8b8231d0085700d5d3c03ee9b16c619720d |
|
25-May-2009 |
Benjamin Peterson <benjamin@python.org> |
add a SETUP_WITH opcode It speeds up the with statement and correctly looks up the special methods involved.
/external/python/cpython2/Python/import.c
|
238cedcd6339e747daa6e2a383678d893482ef6d |
|
02-Apr-2009 |
Brett Cannon <bcannon@gmail.com> |
Fix two issues introduced by issue #71031 by changing the signature of PyImport_AppendInittab() to take a const char *.
/external/python/cpython2/Python/import.c
|
c4f90ebea78fab0d45340f4fb4b11298ee3ffdca |
|
02-Apr-2009 |
Brett Cannon <bcannon@gmail.com> |
PyImport_AppendInittab() took a char * as a first argument even though that string was stored beyond the life of the call. Changed the signature to be const char * to help make this point. Closes issue #1419652.
/external/python/cpython2/Python/import.c
|
68d68520061a5a4aa3437f8c74ba383b2da50280 |
|
28-Feb-2009 |
Jeffrey Yasskin <jyasskin@gmail.com> |
Backport r69961 to trunk, replacing JUMP_IF_{TRUE,FALSE} with POP_JUMP_IF_{TRUE,FALSE} and JUMP_IF_{TRUE,FALSE}_OR_POP. This avoids executing a POP_TOP on each conditional and sometimes allows the peephole optimizer to skip a JUMP_ABSOLUTE entirely. It speeds up list comprehensions significantly.
/external/python/cpython2/Python/import.c
|
3b2a6b819d93868c960da91aeebca7093d6f1627 |
|
09-Jan-2009 |
Kristján Valur Jónsson <kristjan@ccpgames.com> |
Issue 3677: Fix import from UNC paths on Windows.
/external/python/cpython2/Python/import.c
|
e96d4ea4e235645452ae8a6c8ab557d31d2bb485 |
|
06-Jan-2009 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #1180193: When importing a module from a .pyc (or .pyo) file with an existing .py counterpart, override the co_filename attributes of all code objects if the original filename is obsolete (which can happen if the file has been renamed, moved, or if it is accessed through different paths). Patch by Ziga Seilnacht and Jean-Paul Calderone.
/external/python/cpython2/Python/import.c
|
0fa10b3cd5de4090b86c8f88c5f30d2e6a9686ac |
|
03-Jan-2009 |
Martin v. Löwis <martin@v.loewis.de> |
Issue #4817: Remove unused function PyOS_GetLastModificationTime.
/external/python/cpython2/Python/import.c
|
d0c3515bc5b31a19d00bfc685d7657ad7d79fa94 |
|
17-Dec-2008 |
Antoine Pitrou <solipsis@pitrou.net> |
Issue #2183: Simplify and optimize bytecode for list comprehensions.
/external/python/cpython2/Python/import.c
|
17f03ca9628d358628efcb91667b598c1f1e7980 |
|
01-Sep-2008 |
Benjamin Peterson <benjamin@python.org> |
Fix compilation when --without-threads is given #3683 Reviewer: Georg Brandl, Benjamin Peterson
/external/python/cpython2/Python/import.c
|
3aa2a49ec97d8a56f7f748116d8cd584185c301d |
|
07-Aug-2008 |
Brett Cannon <bcannon@gmail.com> |
Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in has been removed there.
/external/python/cpython2/Python/import.c
|
b028f509119d5ea7dd85d7f38df366ccc9d7bdb4 |
|
13-Jul-2008 |
Nick Coghlan <ncoghlan@gmail.com> |
Fix issue 3221 by emitting a RuntimeWarning instead of raising SystemError when the parent module can't be found during an absolute import (likely due to non-PEP 361 aware code which sets a module level __package__ attribute)
/external/python/cpython2/Python/import.c
|
dd96db63f689e2f0d8ae5a1436b3b3395eec7de5 |
|
09-Jun-2008 |
Gregory P. Smith <greg@mad-scientist.com> |
This reverts r63675 based on the discussion in this thread: http://mail.python.org/pipermail/python-dev/2008-June/079988.html Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names in the spirit of 3.0 are available via a #define only. See the email thread.
/external/python/cpython2/Python/import.c
|
593daf545bd9b7e7bcb27b498ecc6f36db9ae395 |
|
26-May-2008 |
Christian Heimes <christian@cheimes.de> |
Renamed PyString to PyBytes
/external/python/cpython2/Python/import.c
|
61e4590ec98c82d9e397df28979601a853d7e8b4 |
|
27-Mar-2008 |
Christian Heimes <christian@cheimes.de> |
Build bots are working again - removing the hack
/external/python/cpython2/Python/import.c
|
81caa790b603735c05193e9a266991dd9cc72bb2 |
|
27-Mar-2008 |
Christian Heimes <christian@cheimes.de> |
Quick 'n dirty hack: Increase the magic by 2 to force a rebuild of pyc/pyo files on the build bots
/external/python/cpython2/Python/import.c
|
7f23d86107dfea69992322577c5033f2edbc3b4f |
|
26-Mar-2008 |
Christian Heimes <christian@cheimes.de> |
Initialize PyCompilerFlags cf_flags with 0
/external/python/cpython2/Python/import.c
|
3c60833e1e53f6239825b44f76fa22172feb1790 |
|
26-Mar-2008 |
Christian Heimes <christian@cheimes.de> |
Patch #2477: Added from __future__ import unicode_literals The new PyParser_*Ex() functions are based on Neal's suggestion and initial patch. The new __future__ feature makes all '' and r'' unicode strings. b'' and br'' stay (byte) strings.
/external/python/cpython2/Python/import.c
|
7af53be66f8c074902e0e7e7c452a280538582bc |
|
07-Mar-2008 |
Nick Coghlan <ncoghlan@gmail.com> |
Speed up with statements by storing the __exit__ method on the stack instead of in a temp variable (bumps the magic number for pyc files)
/external/python/cpython2/Python/import.c
|
5e8e6d2454258d76611444a7260f05094f66d205 |
|
24-Feb-2008 |
Christian Heimes <christian@cheimes.de> |
MS Windows doesn't have mode_t but stat.st_mode is defined as unsigned short.
/external/python/cpython2/Python/import.c
|
4034685a58de66073a4e190dd8c9a2ef4dca67b5 |
|
23-Feb-2008 |
Christian Heimes <christian@cheimes.de> |
Issue #2051 and patch from Alexander Belopolsky: Permission for pyc and pyo files are inherited from the py file.
/external/python/cpython2/Python/import.c
|
0d9244332b4c9dad8722f7ed651fb922de93afe6 |
|
30-Jan-2008 |
Christian Heimes <christian@cheimes.de> |
Fixed some references leaks in sys.
/external/python/cpython2/Python/import.c
|
3403f1589d769a5596dfc261a9cab31b307fb059 |
|
09-Jan-2008 |
Christian Heimes <christian@cheimes.de> |
Fixed #1776. __import__() no longer imports modules by file name
/external/python/cpython2/Python/import.c
|
aed6c66aa8c9d1d2af9e60323e688452dfd6b6c7 |
|
07-Jan-2008 |
Georg Brandl <georg@python.org> |
patch #1668: clarify envvar docs; rename THREADDEBUG to PYTHONTHREADDEBUG.
/external/python/cpython2/Python/import.c
|
2da0fceba7dd70334aacbab0708a8cbdff92e31d |
|
07-Jan-2008 |
Georg Brandl <georg@python.org> |
Patch #602345 by Neal Norwitz and me: add -B option and PYTHONDONTWRITEBYTECODE envvar to skip writing bytecode.
/external/python/cpython2/Python/import.c
|
000a074c955a1964959ee908300ef49b41170a06 |
|
03-Jan-2008 |
Christian Heimes <christian@cheimes.de> |
Modified PyImport_Import and PyImport_ImportModule to always use absolute imports by calling __import__ with an explicit level of 0 Added a new API function PyImport_ImportModuleNoBlock. It solves the problem with dead locks when mixing threads and imports
/external/python/cpython2/Python/import.c
|
effde12f5fe41bab9c27269bd77237200d953afd |
|
18-Dec-2007 |
Raymond Hettinger <python@rcn.com> |
Speed-up dictionary constructor by about 10%. New opcode, STORE_MAP saves the compiler from awkward stack manipulations and specializes for dicts using PyDict_SetItem instead of PyObject_SetItem. Old disassembly: 0 BUILD_MAP 0 3 DUP_TOP 4 LOAD_CONST 1 (1) 7 ROT_TWO 8 LOAD_CONST 2 ('x') 11 STORE_SUBSCR 12 DUP_TOP 13 LOAD_CONST 3 (2) 16 ROT_TWO 17 LOAD_CONST 4 ('y') 20 STORE_SUBSCR New disassembly: 0 BUILD_MAP 0 3 LOAD_CONST 1 (1) 6 LOAD_CONST 2 ('x') 9 STORE_MAP 10 LOAD_CONST 3 (2) 13 LOAD_CONST 4 ('y') 16 STORE_MAP
/external/python/cpython2/Python/import.c
|
ef01d822aaea11ae25f78cb0be32865a5df07620 |
|
03-Dec-2007 |
Nick Coghlan <ncoghlan@gmail.com> |
Implement PEP 366
/external/python/cpython2/Python/import.c
|
327a39b047e3abcecb08aabe4f4fcb683dd06ef5 |
|
18-Nov-2007 |
Nick Coghlan <ncoghlan@gmail.com> |
Patch #1739468: Directories and zipfiles containing __main__.py are now executable
/external/python/cpython2/Python/import.c
|
004c1c15621eff6bda20c66ce4e5d5c49c90ff25 |
|
07-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
Backport of Guido's review of my patch.
/external/python/cpython2/Python/import.c
|
cea681be192d9aa9cc33f15f78f3645424a0974f |
|
07-Nov-2007 |
Christian Heimes <christian@cheimes.de> |
Backported fix for bug #1392 from py3k branch r58903.
/external/python/cpython2/Python/import.c
|
add36e5fdf2272c9f2c7fb9239bc4a6621e46d2d |
|
23-Aug-2007 |
Georg Brandl <georg@python.org> |
Second half of #1752175: #ifdef out references to PyImport_DynLoadFiletab if HAVE_DYNAMIC_LOADING is not defined.
/external/python/cpython2/Python/import.c
|
d7e9f608c33264f151264eb604bbcfdafe8c7a02 |
|
21-Aug-2007 |
Georg Brandl <georg@python.org> |
Revert accidental checkins from last commit.
/external/python/cpython2/Python/import.c
|
fdca6d8599e46ee7fc7844a798666fc60923fbe5 |
|
21-Aug-2007 |
Georg Brandl <georg@python.org> |
Demand version 2.5.1 since 2.5 has a bug with codecs.open context managers.
/external/python/cpython2/Python/import.c
|
6819210b9e4e5719a6f7f9c1725f8fa70a8936f6 |
|
21-Jul-2007 |
Martin v. Löwis <martin@v.loewis.de> |
PEP 3123: Provide forward compatibility with Python 3.0, while keeping backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT.
/external/python/cpython2/Python/import.c
|
2fca81cc4cd3473bacbc555f2b867518518f9458 |
|
30-May-2007 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix indentation (whitespace only).
/external/python/cpython2/Python/import.c
|
67387fb4aadbbe1dbb498398b0786ca01d92552e |
|
25-Apr-2007 |
Kristján Valur Jónsson <kristjan@ccpgames.com> |
Make pythoncore compile cleanly with VisualStudio 2005. Used an explicit typecast to get a 64 bit integer, and undefined the Yield macro that conflicts with winbase.h
/external/python/cpython2/Python/import.c
|
47c52a8b60444e4f0aae9c0e91794d214b68bd45 |
|
14-Mar-2007 |
Collin Winter <collinw@gmail.com> |
Inline PyImport_GetModulesReloading().
/external/python/cpython2/Python/import.c
|
75c7c80ee5838a967abf815c08b60ef1eadc42d1 |
|
13-Mar-2007 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix some style nits: * lines too long * wrong indentation * space after a function name * wrong function name in error string * simplifying some logic Also add an error check to PyDict_SetItemString.
/external/python/cpython2/Python/import.c
|
276887b16dc86e3423760c6ed9353591708fba17 |
|
12-Mar-2007 |
Collin Winter <collinw@gmail.com> |
Bug #742342: make Python stop segfaulting on infinitely-recursive reload()s. Fixed by patch #922167. Will backport.
/external/python/cpython2/Python/import.c
|
74780961483ef3ec92b8a8ea4c1cf46125e75a4d |
|
10-Mar-2007 |
Georg Brandl <georg@python.org> |
Typos.
/external/python/cpython2/Python/import.c
|
cbeb687c687e6edebd3afdb63be0a623294e744c |
|
14-Oct-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Update the peephole optimizer to remove more dead code (jumps after returns) and inline jumps to returns.
/external/python/cpython2/Python/import.c
|
5a9aa4f31ce54a0dee6549480c13e3a2c117933e |
|
03-Oct-2006 |
Brett Cannon <bcannon@gmail.com> |
Fix minor typo in a comment.
/external/python/cpython2/Python/import.c
|
94b69f6ba30c186a3ba753235828dee1b87a6970 |
|
29-Sep-2006 |
Brett Cannon <bcannon@gmail.com> |
Very minor grammatical fix in a comment.
/external/python/cpython2/Python/import.c
|
2a399b0f1128f2663769a3cd8522d35601712ae5 |
|
11-Sep-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Properly handle a NULL returned from PyArena_New(). (Also fix some whitespace) Klocwork #364.
/external/python/cpython2/Python/import.c
|
98775dfebc86aca40b27dcca5e4f4fd3a07e8acb |
|
06-Sep-2006 |
Georg Brandl <georg@python.org> |
Bug #1550983: emit better error messages for erroneous relative imports (if not in package and if beyond toplevel package).
/external/python/cpython2/Python/import.c
|
dac090d3e62cadd24fc6b73ab177bf98326c1849 |
|
05-Sep-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1520864 (again): unpacking singleton tuples in list comprehensions and generator expressions (x for x, in ... ) works again. Sigh, I only fixed for loops the first time, not list comps and genexprs too. I couldn't find any more unpacking cases where there is a similar bug lurking. This code should be refactored to eliminate the duplication. I'm sure the listcomp/genexpr code can be refactored. I'm not sure if the for loop can re-use any of the same code though. Will backport to 2.5 (the only place it matters).
/external/python/cpython2/Python/import.c
|
3cb31ac704c98fa8a5b9e31a3bd4a8f25bf3d679 |
|
13-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
cpathname could be NULL if it was longer than MAXPATHLEN. Don't try to write the .pyc to NULL. Check results of PyList_GetItem() and PyModule_GetDict() are not NULL. Klocwork 282, 283, 285
/external/python/cpython2/Python/import.c
|
9a70f95ee84007d1aef64fd89e1168dba2ae2b83 |
|
04-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
There were really two issues
/external/python/cpython2/Python/import.c
|
4ffedadb1032a4310e756d476310d056ad209310 |
|
04-Aug-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1191458: tracing over for loops now produces a line event on each iteration. I'm not positive this is the best way to handle this. I'm also not sure that there aren't other cases where the lnotab is generated incorrectly. It would be great if people that use pdb or tracing could test heavily. Also: * Remove dead/duplicated code that wasn't used/necessary because we already handled the docstring prior to entering the loop. * add some debugging code into the compiler (#if 0'd out).
/external/python/cpython2/Python/import.c
|
0d62a062066a4cbc8aabab9c305d60ebf7922c8c |
|
30-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Patch #1531113: Fix augmented assignment with yield expressions. Also fix a SystemError when trying to assign to yield expressions.
/external/python/cpython2/Python/import.c
|
f7575d0cb7a10b252cc1e05a1d24facc2294a195 |
|
28-Jul-2006 |
Phillip J. Eby <pje@telecommunity.com> |
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.
/external/python/cpython2/Python/import.c
|
33722aec5755f1fa8c0660094639174dbbeefb1d |
|
21-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Speel initialise write. Tanks Anthony.
/external/python/cpython2/Python/import.c
|
e1fdb32ff2bb1f4b46b56fc1de03f8016bc6c780 |
|
21-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Handle allocation failures gracefully. Found with failmalloc. Many (all?) of these could be backported.
/external/python/cpython2/Python/import.c
|
c0cde4da2a3d7992b7405ed5e11bc43f7d2391a0 |
|
16-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix memory leak under some conditions. Reported by Klocwork, #98.
/external/python/cpython2/Python/import.c
|
a1f10901097e1a3788314a6aee49edf3690dd0b4 |
|
12-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Actually change the MAGIC #. Create a new section for 2.5c1 and mention the impact of changing the MAGIC #.
/external/python/cpython2/Python/import.c
|
edef2be4af973f1766b593cf48188db2e320dcbe |
|
12-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Bug #1520864: unpacking singleton tuples in for loop (for x, in) work again.
/external/python/cpython2/Python/import.c
|
a4df11d9c34952ae6d98b17fb92cbb35f8880cc8 |
|
06-Jul-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix refleaks reported by Shane Hathaway in SF patch #1515361. This change contains only the changes related to leaking the copy variable.
/external/python/cpython2/Python/import.c
|
5f6861df9300f455d600b6cd237faf429d9a06b0 |
|
28-May-2006 |
Georg Brandl <georg@python.org> |
Correct None refcount issue in Mac modules. (Are they still used?)
/external/python/cpython2/Python/import.c
|
0fd1291c38a8b8aed57bcdbf030fffe3fb42a241 |
|
28-May-2006 |
Georg Brandl <georg@python.org> |
The empty string is a valid import path. (fixes #1496539)
/external/python/cpython2/Python/import.c
|
f4ef11659cda2ef0d56df499525818a132e6836a |
|
26-May-2006 |
Georg Brandl <georg@python.org> |
Need for speed: Patch #921466 : sys.path_importer_cache is now used to cache valid and invalid file paths for the built-in import machinery which leads to fewer open calls on startup. Also fix issue with PEP 302 style import hooks which lead to more open() calls than necessary.
/external/python/cpython2/Python/import.c
|
684fd0c8ec0bad54d3ff39ae15873f80e119478b |
|
25-May-2006 |
Georg Brandl <georg@python.org> |
Replace PyObject_CallFunction calls with only object args with PyObject_CallFunctionObjArgs, which is 30% faster.
/external/python/cpython2/Python/import.c
|
9df4e6f6735af274813cf1b611ee1a342955ad63 |
|
28-Apr-2006 |
Thomas Wouters <thomas@python.org> |
- Add new Warning class, ImportWarning - Warn-raise ImportWarning when importing would have picked up a directory as package, if only it'd had an __init__.py. This swaps two tests (for case-ness and __init__-ness), but case-test is not really more expensive, and it's not in a speed-critical section. - Test for the new warning by importing a common non-package directory on sys.path: site-packages - In regrtest.py, silence warnings generated by the build-environment because Modules/ (which is added to sys.path for Setup-created modules) has 'zlib' and '_ctypes' directories without __init__.py's.
/external/python/cpython2/Python/import.c
|
ac6bd46d5c30f4e643120aeef1ccd531801a2181 |
|
13-Apr-2006 |
Anthony Baxter <anthonybaxter@gmail.com> |
spread the extern "C" { } magic pixie dust around. Python itself builds now using a C++ compiler. Still lots and lots of errors in the modules built by setup.py, and a bunch of warnings from g++ in the core.
/external/python/cpython2/Python/import.c
|
4bdaa271d6fb56f766a9fc05e8134eee2e515ff9 |
|
05-Apr-2006 |
Thomas Wouters <thomas@python.org> |
Fix refleak in __import__("") (probably the cause of the 2 refleaks in test_builtin.)
/external/python/cpython2/Python/import.c
|
8ddab27182d7d00f32f423955d2344b8ba40b9d7 |
|
04-Apr-2006 |
Thomas Wouters <thomas@python.org> |
Fix __import__("") to raise ValueError rather than return None.
/external/python/cpython2/Python/import.c
|
4ec3c2695265d070d14b4f8c6c9573e77aab6086 |
|
25-Mar-2006 |
Skip Montanaro <skip@pobox.com> |
Found this in an old email message from Hartmut Goebel.
/external/python/cpython2/Python/import.c
|
2aa9a5dfdd2966c57036dc836ba8e91ad47ecf14 |
|
20-Mar-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Use macro versions instead of function versions when we already know the type. This will hopefully get rid of some Coverity warnings, be a hint to developers, and be marginally faster. Some asserts were added when the type is currently known, but depends on values from another function.
/external/python/cpython2/Python/import.c
|
f669436189dd44a841caa9ab1ad97a3f7662bf58 |
|
10-Mar-2006 |
Guido van Rossum <guido@python.org> |
Um, I thought I'd already checked this in. Anyway, this is the changes to the with-statement so that __exit__ must return a true value in order for a pending exception to be ignored. The PEP (343) is already updated.
/external/python/cpython2/Python/import.c
|
725507b52ec40ab49ad87596fff7434322b9b5b1 |
|
07-Mar-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Change int to Py_ssize_t in several places. Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows.
/external/python/cpython2/Python/import.c
|
f7f438ba3b05eb4356e7511401686b07d9dfb6d8 |
|
28-Feb-2006 |
Thomas Wouters <thomas@python.org> |
SF patch #1438387, PEP 328: relative and absolute imports. - IMPORT_NAME takes an extra argument from the stack: the relativeness of the import. Only passed to __import__ when it's not -1. - __import__() takes an optional 5th argument for the same thing; it __defaults to -1 (old semantics: try relative, then absolute) - 'from . import name' imports name (be it module or regular attribute) from the current module's *package*. Likewise, 'from .module import name' will import name from a sibling to the current module. - Importing from outside a package is not allowed; 'from . import sys' in a toplevel module will not work, nor will 'from .. import sys' in a (single-level) package. - 'from __future__ import absolute_import' will turn on the new semantics for import and from-import: imports will be absolute, except for from-import with dots. Includes tests for regular imports and importhooks, parser changes and a NEWS item, but no compiler-package changes or documentation changes.
/external/python/cpython2/Python/import.c
|
c2e20744b2b7811632030470971c31630f0975e2 |
|
27-Feb-2006 |
Guido van Rossum <guido@python.org> |
PEP 343 -- the with-statement. This was started by Mike Bland and completed by Guido (with help from Neal). This still needs a __future__ statement added; Thomas is working on Michael's patch for that aspect. There's a small amount of code cleanup and refactoring in ast.c, compile.c and ceval.c (I fixed the lltrace behavior when EXT_POP is used -- however I had to make lltrace a static global).
/external/python/cpython2/Python/import.c
|
18e165558b24d29e7e0ca501842b9236589b012a |
|
15-Feb-2006 |
Martin v. Löwis <martin@v.loewis.de> |
Merge ssize_t branch.
/external/python/cpython2/Python/import.c
|
1ac754fa10f5d199d19911e21185d0970cb3073f |
|
19-Jan-2006 |
Neal Norwitz <nnorwitz@gmail.com> |
Check return result from Py_InitModule*(). This API can fail. Probably should be backported.
/external/python/cpython2/Python/import.c
|
adb69fcdffdc50ee3e1d33b00cd874020197b445 |
|
17-Dec-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Merge from ast-arena. This reduces the code in Python/ast.c by ~300 lines, simplifies a lot of error handling code, and fixes many memory leaks.
/external/python/cpython2/Python/import.c
|
af68c874a6803b4e90b616077a602c0593719a1d |
|
10-Dec-2005 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add const to several API functions that take char *. In C++, it's an error to pass a string literal to a char* function without a const_cast(). Rather than require every C++ extension module to put a cast around string literals, fix the API to state the const-ness. I focused on parts of the API where people usually pass literals: PyArg_ParseTuple() and friends, Py_BuildValue(), PyMethodDef, the type slots, etc. Predictably, there were a large set of functions that needed to be fixed as a result of these changes. The most pervasive change was to make the keyword args list passed to PyArg_ParseTupleAndKewords() to be a const char *kwlist[]. One cast was required as a result of the changes: A type object mallocs the memory for its tp_doc slot and later frees it. PyTypeObject says that tp_doc is const char *; but if the type was created by type_new(), we know it is safe to cast to char *.
/external/python/cpython2/Python/import.c
|
aee2e2829db8e8d4ea9f5b0bc900564cdebe9414 |
|
21-Oct-2005 |
Michael W. Hudson <mwh@python.net> |
the ast-branch changed the stack discipline of MAKE_CLOSURE, so we need to bump MAGIC.
/external/python/cpython2/Python/import.c
|
3e0055f8c65c407e74ce476b8e2b1fb889723514 |
|
20-Oct-2005 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Merge ast-branch to head This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.
/external/python/cpython2/Python/import.c
|
708e51a6b1e995ddfe9e15947dc02e4078c6d01a |
|
03-Oct-2005 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug #976608, Unhelpful error message when mtime of a module is -1 Will backport.
/external/python/cpython2/Python/import.c
|
8ee3e5aa9306a00573817e237bed4a482473e818 |
|
14-Sep-2005 |
Guido van Rossum <guido@python.org> |
- Changes donated by Elemental Security to make it work on AIX 5.3 with IBM's 64-bit compiler (SF patch #1284289). This also closes SF bug #105470: test_pwd fails on 64bit system (Opteron).
/external/python/cpython2/Python/import.c
|
0c55f2946b559bd5f6dec457accdc2f2c9c55d3a |
|
14-Sep-2005 |
Georg Brandl <georg@python.org> |
Patch #1290454: Fix reload() error message when parent module is not in sys.modules.
/external/python/cpython2/Python/import.c
|
df88846ebca9186514e86bc2067242233ade4608 |
|
03-Jun-2005 |
Michael W. Hudson <mwh@python.net> |
This is my patch: [ 1180995 ] binary formats for marshalling floats Adds 2 new type codes for marshal (binary floats and binary complexes), a new marshal version (2), updates MAGIC and fiddles the de-serializing of code objects to be less likely to clobber the real reason for failing if it fails.
/external/python/cpython2/Python/import.c
|
7961aa6135e5a26c1cc14bbcaa2668d2ec98b0b9 |
|
20-May-2005 |
Jason Tishler <jason@tishler.net> |
Patch #1197318: Cygwin case-sensitive import patch A problem regarding importing symlinked modules was recently reported on the Cygwin mailing list: http://cygwin.com/ml/cygwin/2005-04/msg00257.html The following test case demonstrates the problem: $ ls -l total 1 lrwxrwxrwx 1 jt None 6 Apr 23 13:32 bar.py -> foo.py -rw-r--r-- 1 jt None 24 Apr 18 20:13 foo.py $ python -c 'import bar' Traceback (most recent call last): File "<string>", line 1, in ? ImportError: No module named bar Since Cygwin's case_ok() uses a modified version of the Windows's version, the symlinked bar module actually resolves to file foo.py instead of bar.py. This obviously causes the matching code to fail (regardless of case). The patch fixes this problem by making Cygwin use the Mac OS X case_ok() instead of a modified Window's version.
/external/python/cpython2/Python/import.c
|
db29e0fe8cab58c68d1263487ba5bac7b99c7612 |
|
07-Oct-2004 |
Raymond Hettinger <python@rcn.com> |
SF patch #1035498: -m option to run a module as a script (Contributed by Nick Coghlan.)
/external/python/cpython2/Python/import.c
|
7ec642a4d2ee98dfc0b67431255046374abc4ed7 |
|
23-Sep-2004 |
Phillip J. Eby <pje@telecommunity.com> |
Fix for SF bug #1029475 : reload() doesn't work with PEP 302 loaders.
/external/python/cpython2/Python/import.c
|
2c31a058eb719da8908ea9d9c2f1b748ecc7a4ca |
|
22-Sep-2004 |
Raymond Hettinger <python@rcn.com> |
SF patch #1031667: Fold tuples of constants into a single constant Example: >>> import dis >>> dis.dis(compile('1,2,3', '', 'eval')) 0 0 LOAD_CONST 3 ((1, 2, 3)) 3 RETURN_VALUE
/external/python/cpython2/Python/import.c
|
fd2d1f7870ec5cd639ab7867a33c6f8628ca1dfb |
|
24-Aug-2004 |
Raymond Hettinger <python@rcn.com> |
SF Patch #1013667: Cleanup Peepholer Output * Make a pass to eliminate NOPs. Produce code that is more readable, more compact, and a tiny bit faster. Makes the peepholer more flexible in the scope of allowable transformations. * With Guido's okay, bumped up the magic number so that this patch gets widely exercised before the alpha goes out.
/external/python/cpython2/Python/import.c
|
1cd701732fe324adace84a955d48a3dc7753ee59 |
|
02-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
PyImport_ExecCodeModuleEx(): remove module from sys.modules in error cases. PyImport_ReloadModule(): restore the module to sys.modules in error cases. load_package(): semantic-neutral refactoring from an earlier stab at this patch; giving it a common error exit made the code easier to follow, so retaining that part. _RemoveModule(): new little utility to delete a key from sys.modules.
/external/python/cpython2/Python/import.c
|
a7c650934d8e3b62d7e0b2aeaf30fd486922d484 |
|
02-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
lock_held() docs: Use True/False instead of 1/0. The LaTeX docs were already correct, so not changed here.
/external/python/cpython2/Python/import.c
|
86c7d2f2207f3a6f3814c98688311afa68bf5d4a |
|
02-Aug-2004 |
Tim Peters <tim.peters@gmail.com> |
Trimmed trailing whitespace.
/external/python/cpython2/Python/import.c
|
ef82d2fdfe1aba18e29abbd59b22d19d490e9fca |
|
27-Jun-2004 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #923098: Share interned strings in marshal.
/external/python/cpython2/Python/import.c
|
25653242fe7523b9b66ec836066908a74a49cda1 |
|
07-Jun-2004 |
Thomas Heller <theller@ctypes.org> |
Fix a refcount bug in an obscure code corner. Already backported.
/external/python/cpython2/Python/import.c
|
8759090562103c5f592e987f2864116af99466c5 |
|
28-May-2004 |
Fred Drake <fdrake@acm.org> |
starting to add comments to explain what's here
/external/python/cpython2/Python/import.c
|
d4ceb3166435aad2849281137f18b318a3311efb |
|
01-Apr-2004 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Bump the magic number to avoid sharing bytecode between 2.3 and 2.4. Revise the long comment that explained details of the magic number in gory detail.
/external/python/cpython2/Python/import.c
|
01ab279056c0452516e58d47979be70455d3f581 |
|
26-Mar-2004 |
Armin Rigo <arigo@tunes.org> |
Marshal clean-up (SF patch #873224)
/external/python/cpython2/Python/import.c
|
e5662aedef12b8d49c5c6c52d0e3fb47e66dbe0a |
|
24-Mar-2004 |
Nicholas Bastin <nick.bastin@gmail.com> |
Changed random calls to PyThreadState_Get() to use the macro
/external/python/cpython2/Python/import.c
|
83969eeeeb08fa27d8564303792107750ff09598 |
|
23-Mar-2004 |
Martin v. Löwis <martin@v.loewis.de> |
Decref all if ensure_fromlist fails. Fixes #876533. Backported to 2.3.
/external/python/cpython2/Python/import.c
|
ecd9129c94318135b38578f896d00f895f1b231a |
|
03-Jan-2004 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Add comment to mollify Tim.
/external/python/cpython2/Python/import.c
|
eddc1449bae39414aaf7a4f63ccd3b69c4fb069e |
|
20-Nov-2003 |
Jack Jansen <jack.jansen@cwi.nl> |
Getting rid of all the code inside #ifdef macintosh too.
/external/python/cpython2/Python/import.c
|
f0dfc7ac5c2f76baaae0c3b45bc339281cfa2adc |
|
20-Oct-2003 |
Walter Dörwald <walter@livinglogic.de> |
Fix a bunch of typos in documentation, docstrings and comments. (From SF patch #810751)
/external/python/cpython2/Python/import.c
|
6bc06eca70f4c41f01bca5f39d54ff5f71a39092 |
|
04-Sep-2003 |
Jason Tishler <jason@tishler.net> |
Bug #794140: cygwin builds do not embed The embed2.diff patch solves the user's problem by exporting the missing symbols from the Python core so Python can be embedded in another Cygwin application (well, at lest vim).
/external/python/cpython2/Python/import.c
|
1e5fc55c4dcddcd97951d54c04b321c0a284affa |
|
11-Jul-2003 |
Fred Drake <fdrake@acm.org> |
- fix typo - there's a weird variable name here (zimpimport), but I'll leave that for someone that's familiar with the ZIP import support
/external/python/cpython2/Python/import.c
|
00b0966f20e5d47291f2440e40d551525c1510a5 |
|
16-Jun-2003 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Don't use the module object setattr when importing submodules. Instead, operate on the module dictionary directly. This prevents spurious depreciation warnings from being raised if a submodule name shadows a builtin name.
/external/python/cpython2/Python/import.c
|
a11e4c13b1774a9fe463518b2a2a4e24f4da84d0 |
|
23-Mar-2003 |
Neal Norwitz <nnorwitz@gmail.com> |
SF patch #708201, unchecked return value in import.c by Jason Harper Will backport.
/external/python/cpython2/Python/import.c
|
08ea61ad45928e26da9ef2dade7776e61dbfbff2 |
|
17-Feb-2003 |
Neal Norwitz <nnorwitz@gmail.com> |
Remove PyArg_ParseTuple() for methods which take no args, use METH_NOARGS instead
/external/python/cpython2/Python/import.c
|
2294c0d4ecd81d01ddf741fff02cc04bd8de0638 |
|
13-Feb-2003 |
Neal Norwitz <nnorwitz@gmail.com> |
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
/external/python/cpython2/Python/import.c
|
c4f4ca91e112a55b2fac5853718a5f05797f30b5 |
|
12-Feb-2003 |
Guido van Rossum <guido@python.org> |
Provide access to the import lock, fixing SF bug #580952. This is mostly from SF patch #683257, but I had to change unlock_import() to return an error value to avoid fatal error. Should this be backported? The patch requested this, but it's a new feature.
/external/python/cpython2/Python/import.c
|
9363dca3f818fa046bdef5d8dbd73f2cbde42fb0 |
|
24-Jan-2003 |
Jack Jansen <jack.jansen@cwi.nl> |
MacPython-OS9 specific fix: If there are non-string items on sys.path don't try to intern them. This has the theoretical problem that resource filenames on sys.path cannot be unicode objects, but in practice that shouldn't matter.
/external/python/cpython2/Python/import.c
|
52e14d640be3a7fa2c17f5a2a6bc9626d622aa40 |
|
30-Dec-2002 |
Just van Rossum <just@letterror.com> |
PEP 302 + zipimport: - new import hooks in import.c, exposed in the sys module - new module called 'zipimport' - various changes to allow bootstrapping from zip files I hope I didn't break the Windows build (or anything else for that matter), but then again, it's been sitting on sf long enough... Regarding the latest discussions on python-dev: zipimport sets pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as /path/to/Archive.zip/subdir/ are supported again.
/external/python/cpython2/Python/import.c
|
89825958705d1aaf2aa7cdf96f79d2f292f3274c |
|
26-Dec-2002 |
Just van Rossum <just@letterror.com> |
Backing out patch #642578 in anticipation of final acceptance of PEP 302.
/external/python/cpython2/Python/import.c
|
72f3b7a5ded370e835a23be2f091bbee4e538b4c |
|
13-Dec-2002 |
Jack Jansen <jack.jansen@cwi.nl> |
Added missing casts.
/external/python/cpython2/Python/import.c
|
79acb9edfa893b5072350c82fd0645d023b13b03 |
|
06-Dec-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #614055: Support OpenVMS.
/external/python/cpython2/Python/import.c
|
3eb166b49b2a290441f7597c413082ae45b59bb6 |
|
29-Nov-2002 |
Just van Rossum <just@letterror.com> |
Slightly improved version of patch #642578: "Expose PyImport_FrozenModules in imp". This adds two functions to the imp module: get_frozenmodules() and set_frozenmodules().
/external/python/cpython2/Python/import.c
|
f689492070e9640a6d9e0e4629f78d5748b9437e |
|
31-Aug-2002 |
Guido van Rossum <guido@python.org> |
Because MWH changed the bytecode again, moved the magic number *back* to 62011. This should get the snake-farm to throw away its old .pyc files, amongst others.
/external/python/cpython2/Python/import.c
|
dd32a91cc0c8ba178d7ee5e78c30b6920aff66f4 |
|
15-Aug-2002 |
Michael W. Hudson <mwh@python.net> |
This is my patch [ 587993 ] SET_LINENO killer Remove SET_LINENO. Tracing is now supported by inspecting co_lnotab. Many sundry changes to document and adapt to this change.
/external/python/cpython2/Python/import.c
|
6238d2b024f061159b2613387ff700695c10deef |
|
30-Jun-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #569753: Remove support for WIN16. Rename all occurrences of MS_WIN32 to MS_WINDOWS.
/external/python/cpython2/Python/import.c
|
3430d70e03fa3f7d93feb965a33dd2d2311c566d |
|
17-Jun-2002 |
Walter Dörwald <walter@livinglogic.de> |
Apply diff2.txt from SF patch http://www.python.org/sf/566999 This patch enhances Python/import.c/find_module() so that unicode objects found in sys.path will be treated as legal directory names (The current code ignores anything that is not a str). The unicode name is converted to str using Py_FileSystemDefaultEncoding.
/external/python/cpython2/Python/import.c
|
7fdcb411312db260e77f291b4e8a865aa61b7c6a |
|
14-Jun-2002 |
Neal Norwitz <nnorwitz@gmail.com> |
Fix SF bug # 561858 Assertion with very long lists Write 4 bytes for co_stacksize, etc. to prevent writing out bad .pyc files which can cause a crash when read back in.
/external/python/cpython2/Python/import.c
|
14f8b4cfcb98de74b9c6e9316539be9e2a5cd31f |
|
13-Jun-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Patch #568124: Add doc string macros.
/external/python/cpython2/Python/import.c
|
5e2c5fa1bd9f0ed602ce2977c7c6772433c8de4d |
|
30-May-2002 |
Guido van Rossum <guido@python.org> |
imp_load_module(): correct and comment the sense of the test for '+' in the mode (it's forbidden).
/external/python/cpython2/Python/import.c
|
4ae6faed9f618c53c42816e868c4cb7194cd045f |
|
30-May-2002 |
Jeremy Hylton <jeremy@alum.mit.edu> |
Cover a few corners in the 'U' mode integration to make imp work. get_file() must convert 'U' to "r" PY_STDIOTEXTMODE before calling fopen(). imp_load_module() must accept 'r' or 'U' or something with '+'. Also reflow some long lines.
/external/python/cpython2/Python/import.c
|
c88da1faa5bfa9b72b38822cb9745ad7be7606a3 |
|
28-May-2002 |
Jack Jansen <jack.jansen@cwi.nl> |
File modes in filedescr entries are also passed to Python, so we now put "U" in there, and convert it to "rb" (or "r" for non-universal-newline builds) before passing it to fopen(). Fixes #561326.
/external/python/cpython2/Python/import.c
|
7b8c7546ebc1fc3688ef95768fa8b82f0f205490 |
|
14-Apr-2002 |
Jack Jansen <jack.jansen@cwi.nl> |
Mass checkin of universal newline support. Highlights: import and friends will understand any of \r, \n and \r\n as end of line. Python file input will do the same if you use mode 'U'. Everything can be disabled by configuring with --without-universal-newlines. See PEP278 for details.
/external/python/cpython2/Python/import.c
|
8ab04b4d65586829887822a78d038a33ee7a69fd |
|
11-Apr-2002 |
Jack Jansen <jack.jansen@cwi.nl> |
Got rid of ifdefs for long-obsolete GUSI versions.
/external/python/cpython2/Python/import.c
|
50ee94fd41fa125b9a4e73bcc5a66e54260e4b67 |
|
09-Apr-2002 |
Guido van Rossum <guido@python.org> |
is_builtin() is not a Boolean -- it can return -1, 0, 1. [SF #541652]
/external/python/cpython2/Python/import.c
|
b8bff3f4a9e3be8b43a394d3795a46af2831fe5e |
|
07-Apr-2002 |
Guido van Rossum <guido@python.org> |
Return bools from functions named is_<whatever>().
/external/python/cpython2/Python/import.c
|
031829d3ef22fcc0f5a6d325fee075ee11186599 |
|
31-Mar-2002 |
Neal Norwitz <nnorwitz@gmail.com> |
Use symbolic METH_VARARGS instead of 1 for ml_flags
/external/python/cpython2/Python/import.c
|
1f7df3595a0ddc5ef545d686bbb2933b11b7c8ce |
|
29-Mar-2002 |
Tim Peters <tim.peters@gmail.com> |
Remove the CACHE_HASH and INTERN_STRINGS preprocessor symbols.
/external/python/cpython2/Python/import.c
|
d940054ad4bcd39e31f6e22d0fd6f674ec4a99b3 |
|
26-Feb-2002 |
Andrew MacIntyre <andymac@bullseye.apana.org.au> |
OS/2 EMX port changes (Python part of patch #450267): Python/ dynload_shlib.c // EMX port emulates dlopen() etc. for DL extensions import.c // changes to support 8.3 DLL name limit (VACPP+EMX) // and case sensitive import semantics importdl.h thread_os2.h
/external/python/cpython2/Python/import.c
|
bd3be8f0ca4fd70d53d9330489ba565f83530b3b |
|
07-Feb-2002 |
Marc-André Lemburg <mal@egenix.com> |
Fix to the UTF-8 encoder: it failed on 0-length input strings. Fix for the UTF-8 decoder: it will now accept isolated surrogates (previously it raised an exception which causes round-trips to fail). Added new tests for UTF-8 round-trip safety (we rely on UTF-8 for marshalling Unicode objects, so we better make sure it works for all Unicode code points, including isolated surrogates). Bumped the PYC magic in a non-standard way -- please review. This was needed because the old PYC format used illegal UTF-8 sequences for isolated high surrogates which now raise an exception.
/external/python/cpython2/Python/import.c
|
cdc445122208cb90a59a468a7396b227e223c43a |
|
12-Jan-2002 |
Martin v. Löwis <martin@v.loewis.de> |
Include <unistd.h> in Python.h. Fixes #500924.
/external/python/cpython2/Python/import.c
|
36515e28ed1c0b6170c4972761ca4a96d4af0075 |
|
18-Nov-2001 |
Tim Peters <tim.peters@gmail.com> |
Since the MAGIC number scheme is going to break on January 1st, document what it is more carefully and point out some of the subtleties.
/external/python/cpython2/Python/import.c
|
550fdae2f5bb1cdff849c3f47c1ae7c2b780e83b |
|
30-Oct-2001 |
Jack Jansen <jack.jansen@cwi.nl> |
On the macintosh don't take a quick exit in find_module() for frozen submodule imports: the frozen import goes through a different mechanism.
/external/python/cpython2/Python/import.c
|
9cd0efcee9d7ee29cd87eb0d1072351fbb986e08 |
|
25-Oct-2001 |
Fred Drake <fdrake@acm.org> |
Use PyDict_Copy() and PyDict_Update() instead of using PyObject_CallMethod() to call the corresponding methods. This is not a performance improvement since the times are still swamped by disk I/O, but cleans up the code just a little.
/external/python/cpython2/Python/import.c
|
e2ae77b8b8a62e648bb1864a9b36ef3280984404 |
|
24-Oct-2001 |
Guido van Rossum <guido@python.org> |
SF patch #474590 -- RISC OS support
/external/python/cpython2/Python/import.c
|
8f4d3316deac9ba3222370c6fb7dfa851a0b39a5 |
|
18-Oct-2001 |
Guido van Rossum <guido@python.org> |
First part of SF patch #416704: More robust freeze, by Toby Dickenson. This fixes the behavior reported by SF bug #404545, where a file x.y.py could be imported by the statement "import x.y" when there's a frozen package x (I believe even if x.y also exists as a frozen module).
/external/python/cpython2/Python/import.c
|
201baee7ea44b862d5cddcd61b89688fd1203d18 |
|
04-Oct-2001 |
Greg Ward <gward@python.net> |
Remove a couple of unused local variables (bug #445960, compiler warnings on IRIX 6.5).
/external/python/cpython2/Python/import.c
|
692323488baf518117d3ede90189812723f39948 |
|
30-Aug-2001 |
Tim Peters <tim.peters@gmail.com> |
Add a new function imp.lock_held(), and use it to skip test_threaded_import when that test is doomed to deadlock.
/external/python/cpython2/Python/import.c
|
928833891a06bfc6db37c806ceb997aca2d102f3 |
|
14-Aug-2001 |
Barry Warsaw <barry@python.org> |
Fixed typo in comment leading up to _PyImport_FixupExtension().
/external/python/cpython2/Python/import.c
|
11d03c57de36e1e5085c706b4e6275baf04a2388 |
|
08-Aug-2001 |
Martin v. Löwis <martin@v.loewis.de> |
Put conditional S_IFMT definition into pyport.h.
/external/python/cpython2/Python/import.c
|
f9836ba4fea66d74fc2afddc434a147265a9caa7 |
|
08-Aug-2001 |
Martin v. Löwis <martin@v.loewis.de> |
Put conditional S_ISDIR definition(s) into pyport.h.
/external/python/cpython2/Python/import.c
|
c1731373914622dcaa4de259b96ec44d490b5e2c |
|
04-Aug-2001 |
Tim Peters <tim.peters@gmail.com> |
Derived from SF patch #446899 Permit import of .pyw under Windows, from David Bolen.
/external/python/cpython2/Python/import.c
|
6d6c1a35e08b95a83dbe47dbd9e6474daff00354 |
|
02-Aug-2001 |
Tim Peters <tim.peters@gmail.com> |
Merge of descr-branch back into trunk.
/external/python/cpython2/Python/import.c
|
7d4bb9f179f1888a472fd5d5a30df4ec3c55fea5 |
|
23-Jul-2001 |
Neil Schemenauer <nascheme@enme.ucalgary.ca> |
Add -E command line switch (ignore environment variables like PYTHONHOME and PYTHONPATH).
/external/python/cpython2/Python/import.c
|
f48f11cd793a545251b83a6037e609a77f080c00 |
|
23-Jul-2001 |
Guido van Rossum <guido@python.org> |
SF Patch #441791, with changes: when "import foo.bar" fails with an exception in the execution of bar, ensure that foo.bar exists. (Previously, while sys.modules['foo.bar'] would exist, foo.bar would only be created upon successful execution of bar. This is inconvenient; some would say wrong. :-)
/external/python/cpython2/Python/import.c
|
0f9431fb180986767c58416b7c8fa3da66933802 |
|
05-Jul-2001 |
Tim Peters <tim.peters@gmail.com> |
SF bug #438295: [Windows] __init__.py cause strange behavior Probable fix (the bug report doesn't have enough info to say for sure). find_init_module(): Insist on a case-sensitive match for __init__ files. Given __INIT__.PY instead, find_init_module() thought that was fine, but the later attempt to do find_module("__INIT__.PY") didn't and its caller silently suppressed the resulting ImportError. Now find_init_module() refuses to accept __INIT__.PY to begin with. Bugfix candidate; specific to platforms with case-insensitive filesystems.
/external/python/cpython2/Python/import.c
|
cab3f68f612a7f088bed4005b335078a913b7b0f |
|
30-Apr-2001 |
Tim Peters <tim.peters@gmail.com> |
SF bug #417093: Case sensitive import: dir and .py file w/ same name Directory containing Spam.py spam/__init__.py Then "import Spam" caused a SystemError, because code checking for the existence of "Spam/__init__.py" finds it on a case-insensitive filesystem, but then bails because the directory it finds it in doesn't match case, and then old code assumed that was still an error even though it isn't anymore. Changed the code to just continue looking in this case (instead of calling it an error). So import Spam and import spam both work now.
/external/python/cpython2/Python/import.c
|
59d1d2b434e8cf79e8b1321f148254c68f56c1f7 |
|
20-Apr-2001 |
Guido van Rossum <guido@python.org> |
Iterators phase 1. This comprises: new slot tp_iter in type object, plus new flag Py_TPFLAGS_HAVE_ITER new C API PyObject_GetIter(), calls tp_iter new builtin iter(), with two forms: iter(obj), and iter(function, sentinel) new internal object types iterobject and calliterobject new exception StopIteration new opcodes for "for" loops, GET_ITER and FOR_ITER (also supported by dis.py) new magic number for .pyc files new special method for instances: __iter__() returns an iterator iteration over dictionaries: "for x in dict" iterates over the keys iteration over files: "for x in file" iterates over lines TODO: documentation test suite decide whether to use a different way to spell iter(function, sentinal) decide whether "for key in dict" is a good idea use iterators in map/filter/reduce, min/max, and elsewhere (in/not in?) speed tuning (make next() a slot tp_next???)
/external/python/cpython2/Python/import.c
|
37832f0c8d02861f1171fc59e0e0cb5965dfecfb |
|
13-Apr-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
split long line
/external/python/cpython2/Python/import.c
|
4df3c5284f334fc77ffdf7cf7f32e6a93b787440 |
|
21-Mar-2001 |
Jack Jansen <jack.jansen@cwi.nl> |
Case-checking was broken on the Macintosh. Fixed.
/external/python/cpython2/Python/import.c
|
a76ba6ed9b1dcaa66daee71961e0d528d64b07f0 |
|
06-Mar-2001 |
Fred Drake <fdrake@acm.org> |
Add some spaces around the "=" in assignments.
/external/python/cpython2/Python/import.c
|
48a680c097f0e53a4cdcd61fbed35e1b6c1de388 |
|
02-Mar-2001 |
Guido van Rossum <guido@python.org> |
RISCOS changes by dschwertberger.
/external/python/cpython2/Python/import.c
|
677898a3918470d718550aee9969cebcd4b1a61b |
|
02-Mar-2001 |
Tim Peters <tim.peters@gmail.com> |
Thanks to Steven Majewski, finally putting MacOS X imports to bed for 2.1b1.
/external/python/cpython2/Python/import.c
|
d1e87a8288b18541ab555fc95ab94d06758015a0 |
|
01-Mar-2001 |
Tim Peters <tim.peters@gmail.com> |
More MacOSX fiddling. As noted in a comment, I believe all variations of these "search the directory" schemes (including this one) are still prone to making mistakes.
/external/python/cpython2/Python/import.c
|
dbe6ebbeff8c9d9a8d138469aa63d8495bb78cc7 |
|
01-Mar-2001 |
Tim Peters <tim.peters@gmail.com> |
More fiddling w/ the new-fangled Mac import code.
/external/python/cpython2/Python/import.c
|
c63d3e9453c860cd255d5a77fb3853aaac95bd8f |
|
01-Mar-2001 |
Fred Drake <fdrake@acm.org> |
Suppress a compiler warning under OpenVMS; time_t is unsigned on (at least) the more recent versions of that platform, so we use the value (time_t)(-1) as the error value. This is the type used in the OpenVMS documentation: http://www.openvms.compaq.com/commercial/c/5763p048.htm#inde This closes SF tracker bug #404240. Also clean up an exception message when detecting overflow of time_t values beyond 4 bytes.
/external/python/cpython2/Python/import.c
|
5819aa8b32a1722495868afb66a3dd4dc63df51d |
|
01-Mar-2001 |
Tim Peters <tim.peters@gmail.com> |
Remove extra close curly in code #ifdef'ed out on my box.
/external/python/cpython2/Python/import.c
|
430f5d401df053ebc458987b713c6d29f2b731f2 |
|
01-Mar-2001 |
Tim Peters <tim.peters@gmail.com> |
In Steven's apparent absence, check in *something* with a non-zero chance of making new-fangled Mac imports work again. May not work, and may not even compile on his boxes, but should be at worst very close on both.
/external/python/cpython2/Python/import.c
|
e860f9b983568efad41ab8cc828a107cf2096cb4 |
|
28-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Ack -- my eyes are getting bleary. Typos in the comment typo repairs.
/external/python/cpython2/Python/import.c
|
f91ed2ddcfa18ae7bb821a402791ed8afdf2476d |
|
28-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Comment typos.
/external/python/cpython2/Python/import.c
|
50d8d37b3f594db8b9ab228a55a1bf56ea846b4b |
|
28-Feb-2001 |
Tim Peters <tim.peters@gmail.com> |
Implement PEP 235: Import on Case-Insensitive Platforms. http://python.sourceforge.net/peps/pep-0235.html Renamed check_case to case_ok. Substantial code rearrangement to get this stuff in one place in the file. Innermost loop of find_module() now much simpler and #ifdef-free, and I want to keep it that way (it's bad enough that the innermost loop is itself still in an #ifdef!). Windows semantics tested and are fine. Jason, Cygwin *should* be fine if and only if what you did before "worked" for case_ok. Jack, the semantics on your flavor of Mac have definitely changed (see the PEP), and need to be tested. The intent is that your flavor of Mac now work the same as everything else in the "lower left" box, including respecting PYTHONCASEOK. Steven, sorry, you did the most work here so far but you got screwed the worst. Happy to work with you on repairing it, but I don't understand anything about all your Mac variants. We need to add another branch (or two, three, ...?) inside case_ok. But we should not need to change anything else.
/external/python/cpython2/Python/import.c
|
85cd1d690cfd0bad9b6ee98578fadf2a7d8988e9 |
|
20-Feb-2001 |
Guido van Rossum <guido@python.org> |
The code in PyImport_Import() tried to save itself a bit of work and save the __builtin__ module in a static variable. But this doesn't work across Py_Finalise()/Py_Initialize()! It also doesn't work when using multiple interpreter states created with PyInterpreterState_New(). So I'm ripping out this small optimization. This was probably broken since PyImport_Import() was introduced in 1997! We really need a better test suite for multiple interpreter states and repeatedly initializing. This fixes the problems Barry reported in Demo/embed/loop.c.
/external/python/cpython2/Python/import.c
|
3c61c3525f4cf23acae95c5229abd10fe0998d28 |
|
09-Feb-2001 |
Marc-André Lemburg <mal@egenix.com> |
This modified version of a patch by Thomas Heller allows __import__ hooks to take over the Python import machinery at a very early stage in the Python startup phase. If there are still places in the Python interpreter which need to bypass the __import__ hook, these places must now use PyImport_ImportModuleEx() instead. So far no other places than in the import mechanism itself have been identified.
/external/python/cpython2/Python/import.c
|
b1cbc1e36b1b9010c25a0c4a2177f25abba1c6e6 |
|
02-Feb-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
bump the magic number; the compiler has changed since 2.1a1
/external/python/cpython2/Python/import.c
|
914a0b1db61963e885fa5ee341c958a75b46f65c |
|
02-Feb-2001 |
Barry Warsaw <barry@python.org> |
Steve Majewski's patch #103495, MatchFilename() and find_module() patch for case-preserving HFS+ suport. Untested except to verify that it builds and doesn't break anything on Linux RH6.1.
/external/python/cpython2/Python/import.c
|
d9b9ac855c6bb297e7d5549e0d140ff7f48ebee6 |
|
28-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
It's unclear whether PyMarshal_XXX() are part of the public or private API. They're named as if public, so I did a Bad Thing by changing PyMarshal_ReadObjectFromFile() to suck up the remainder of the file in one gulp: anyone who counted on that leaving the file pointer merely at the end of the next object would be screwed. So restored PyMarshal_ReadObjectFromFile() to its earlier state, renamed the new greedy code to PyMarshal_ReadLastObjectFromFile(), and changed Python internals to call the latter instead.
/external/python/cpython2/Python/import.c
|
64949cb753f206c0ca1d83f55d07afd3c179b81a |
|
25-Jan-2001 |
Jeremy Hylton <jeremy@alum.mit.edu> |
PEP 227 implementation The majority of the changes are in the compiler. The mainloop changes primarily to implement the new opcodes and to pass a function's closure to eval_code2(). Frames and functions got new slots to hold the closure. Include/compile.h Add co_freevars and co_cellvars slots to code objects. Update PyCode_New() to take freevars and cellvars as arguments Include/funcobject.h Add func_closure slot to function objects. Add GetClosure()/SetClosure() functions (and corresponding macros) for getting at the closure. Include/frameobject.h PyFrame_New() now takes a closure. Include/opcode.h Add four new opcodes: MAKE_CLOSURE, LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF. Remove comment about old requirement for opcodes to fit in 7 bits. compile.c Implement changes to code objects for co_freevars and co_cellvars. Modify symbol table to use st_cur_name (string object for the name of the current scope) and st_cur_children (list of nested blocks). Also define st_nested, which might more properly be called st_cur_nested. Add several DEF_XXX flags to track def-use information for free variables. New or modified functions of note: com_make_closure(struct compiling *, PyCodeObject *) Emit LOAD_CLOSURE opcodes as needed to pass cells for free variables into nested scope. com_addop_varname(struct compiling *, int, char *) Emits opcodes for LOAD_DEREF and STORE_DEREF. get_ref_type(struct compiling *, char *name) Return NAME_CLOSURE if ref type is FREE or CELL symtable_load_symbols(struct compiling *) Decides what variables are cell or free based on def-use info. Can now raise SyntaxError if nested scopes are mixed with exec or from blah import *. make_scope_info(PyObject *, PyObject *, int, int) Helper functions for symtable scope stack. symtable_update_free_vars(struct symtable *) After a code block has been analyzed, it must check each of its children for free variables that are not defined in the block. If a variable is free in a child and not defined in the parent, then it is defined by block the enclosing the current one or it is a global. This does the right logic. symtable_add_use() is now a macro for symtable_add_def() symtable_assign(struct symtable *, node *) Use goto instead of for (;;) Fixed bug in symtable where name of keyword argument in function call was treated as assignment in the scope of the call site. Ex: def f(): g(a=2) # a was considered a local of f ceval.c eval_code2() now take one more argument, a closure. Implement LOAD_CLOSURE, LOAD_DEREF, STORE_DEREF, MAKE_CLOSURE> Also: When name error occurs for global variable, report that the name was global in the error mesage. Objects/frameobject.c Initialize f_closure to be a tuple containing space for cellvars and freevars. f_closure is NULL if neither are present. Objects/funcobject.c Add support for func_closure. Python/import.c Change the magic number. Python/marshal.c Track changes to code objects.
/external/python/cpython2/Python/import.c
|
60f42b50d894d3c9798c50e063ae758a1a5987a2 |
|
18-Jan-2001 |
Tim Peters <tim.peters@gmail.com> |
Move distributed and duplicated config for stat() and fstat() into pyport.h.
/external/python/cpython2/Python/import.c
|
4c3f57cf05c9d7ea5b1ff681703b95ce034f16c3 |
|
10-Jan-2001 |
Guido van Rossum <guido@python.org> |
SF Patch #103154 by jlt63: Cygwin Check Import Case Patch. Note: I've reordered acconfig.h and config.h.in to obtain alphabetical order (modulo case and leading _).
/external/python/cpython2/Python/import.c
|
215c340aa30b72a3dd4f078520b61a05a0e663f3 |
|
13-Nov-2000 |
Guido van Rossum <guido@python.org> |
Rip out DOS-8x3 support.
/external/python/cpython2/Python/import.c
|
84294487dfbe394812512debb85e4b682cec8e57 |
|
03-Oct-2000 |
Barry Warsaw <barry@python.org> |
_PyImport_Fini(): Closed small memory leak when an embedded app calls Py_Initialize()/Py_Finalize() in a loop. _PyImport_Filetab needed to be deallocated. Partial closure of SF #110681, Jitterbug PR#398.
/external/python/cpython2/Python/import.c
|
42c83afd14e1c7270124e581e42163ff5ef98ed8 |
|
29-Sep-2000 |
Tim Peters <tim.peters@gmail.com> |
The 2.0b2 change to write .pyc files in exclusive mode (if possible) unintentionally caused them to get written in text mode under Windows. As a result, when .pyc files were later read-- in binary mode --the magic number was always wrong (note that .pyc magic numbers deliberately include \r and \n characters, so this was "good" breakage, 100% across all .pyc files, not random corruption in a subset). Fixed that.
/external/python/cpython2/Python/import.c
|
55a8338d7fed65d3e0bdcf9c68f65bcbeb06ba50 |
|
20-Sep-2000 |
Guido van Rossum <guido@python.org> |
On Unix, use O_EXCL when creating the .pyc/.pyo files, to avoid a race condition
/external/python/cpython2/Python/import.c
|
8586991099e4ace18ee94163a96b8ea1bed77ebe |
|
02-Sep-2000 |
Guido van Rossum <guido@python.org> |
REMOVED all CWI, CNRI and BeOpen copyright markings. This should match the situation in the 1.6b1 tree.
/external/python/cpython2/Python/import.c
|
dd13e4f91ff2d8824e852afaec59d95d7dd409b3 |
|
27-Aug-2000 |
Thomas Wouters <thomas@python.org> |
Replace the run-time 'future-bytecode-stream-inspection' hack to find out how 'import' was called with a compiletime mechanism: create either a tuple of the import arguments, or None (in the case of a normal import), add it to the code-block constants, and load it onto the stack before calling IMPORT_NAME.
/external/python/cpython2/Python/import.c
|
434d0828d81855692d45c3fdc0905a67c17d83ba |
|
24-Aug-2000 |
Thomas Wouters <thomas@python.org> |
Support for three-token characters (**=, >>=, <<=) which was written by Michael Hudson, and support in general for the augmented assignment syntax. The graminit.c patch is large!
/external/python/cpython2/Python/import.c
|
45ab2b65f695dbb4c334fb442f4da483f6deed9f |
|
21-Aug-2000 |
Barry Warsaw <barry@python.org> |
Thomas reminds me to bump the MAGIC number for the extended print opcode additions.
/external/python/cpython2/Python/import.c
|
5215225ea1e3200b572775639d567f5e3f489a15 |
|
18-Aug-2000 |
Thomas Wouters <thomas@python.org> |
Apply SF patch #101135, adding 'import module as m' and 'from module import name as n'. By doing some twists and turns, "as" is not a reserved word. There is a slight change in semantics for 'from module import name' (it will now honour the 'global' keyword) but only in cases that are explicitly undocumented.
/external/python/cpython2/Python/import.c
|
0be5aab04d2f441323e8a7681f79137d26fd2e30 |
|
12-Aug-2000 |
Thomas Wouters <thomas@python.org> |
Merge UNPACK_LIST and UNPACK_TUPLE into a single UNPACK_SEQUENCE, since they did the same anyway. I'm not sure what to do with Tools/compiler/compiler/* -- that isn't part of distutils, is it ? Should it try to be compatible with old bytecode version ?
/external/python/cpython2/Python/import.c
|
2f2370bfc99e95a4f5edaf4d29cd47afd54fb1b7 |
|
23-Jul-2000 |
Thomas Wouters <thomas@python.org> |
Oops. One of last nights ANSIfication patches accidentily upped the bytecode MAGIC number. When updating it next time, be sure it's higher than 50715 * constants. (Shouldn't be a problem if everyone keeps to the proper algorithm.)
/external/python/cpython2/Python/import.c
|
b4bd21cf79166e769b7027d14c2de002ec6ec9cb |
|
23-Jul-2000 |
Thomas Wouters <thomas@python.org> |
ANSIfy as many declarations as possible.
/external/python/cpython2/Python/import.c
|
f70ef4f8606f99744252a804229d53a4d97601c1 |
|
22-Jul-2000 |
Thomas Wouters <thomas@python.org> |
Mass ANSIfication of function definitions. Doesn't cover all 'extern' declarations yet, those come later.
/external/python/cpython2/Python/import.c
|
cbf630f0a916b6e34295379db01a6e2950e05012 |
|
11-Jul-2000 |
Jack Jansen <jack.jansen@cwi.nl> |
Include macglue.h for some function prototypes, and renamed a few mac-specific functions to have a PyMac_ name.
/external/python/cpython2/Python/import.c
|
dbd9ba6a6c19c3d06f5684b3384a934f740038db |
|
09-Jul-2000 |
Tim Peters <tim.peters@gmail.com> |
Nuke all remaining occurrences of Py_PROTO and Py_FPROTO.
/external/python/cpython2/Python/import.c
|
63e97ad4eaa1f5249cf08ad9de307300ac9fc47f |
|
01-Jul-2000 |
Guido van Rossum <guido@python.org> |
Jack Jansen, Mac patch: Include stat.h if needed; different Mac filename compare
/external/python/cpython2/Python/import.c
|
ffcc3813d82e6b96db79f518f4e67b940a13ce64 |
|
01-Jul-2000 |
Guido van Rossum <guido@python.org> |
Change copyright notice - 2nd try.
/external/python/cpython2/Python/import.c
|
fd71b9e9d496caa510dec56a9b69966558d6ba5d |
|
01-Jul-2000 |
Guido van Rossum <guido@python.org> |
Change copyright notice.
/external/python/cpython2/Python/import.c
|
4c82b2366ff2eb38f062fc5da1b15ddd1c01fa4b |
|
30-Jun-2000 |
Fred Drake <fdrake@acm.org> |
Trent Mick <trentm@activestate.com>: This patch fixes possible overflow in the use of PyOS_GetLastModificationTime in getmtime.c and Python/import.c. Currently PyOS_GetLastModificationTime returns a C long. This can overflow on Win64 where sizeof(time_t) > sizeof(long). Besides it should logically return a time_t anyway (this patch changes this). As well, import.c uses PyOS_GetLastModificationTime for .pyc timestamping. There has been recent discussion about the .pyc header format on python-dev. This patch adds oveflow checking to import.c so that an exception will be raised if the modification time overflows. There are a few other minor 64-bit readiness changes made to the module as well: - size_t instead of int or long for function-local buffer and string length variables - one buffer overflow check was added (raises an exception on possible overflow, this overflow chance exists on 32-bit platforms as well), no other possible buffer overflows existed (from my analysis anyway) Closes SourceForge patch #100509.
/external/python/cpython2/Python/import.c
|
9262b8ab1fc49b1beb36bbcd60efc7946e770cd5 |
|
30-Jun-2000 |
Jeremy Hylton <jeremy@alum.mit.edu> |
another typo caught by Rob Hooft
/external/python/cpython2/Python/import.c
|
b18618dab7b6b85bb05b084693706e59211fa180 |
|
04-May-2000 |
Guido van Rossum <guido@python.org> |
Vladimir Marangozov's long-awaited malloc restructuring. For more comments, read the patches@python.org archives. For documentation read the comments in mymalloc.h and objimpl.h. (This is not exactly what Vladimir posted to the patches list; I've made a few changes, and Vladimir sent me a fix in private email for a problem that only occurs in debug mode. I'm also holding back on his change to main.c, which seems unnecessary to me.)
/external/python/cpython2/Python/import.c
|
96774c1347a9849fb49b006b5451c8d156c51446 |
|
01-May-2000 |
Guido van Rossum <guido@python.org> |
Marc-Andre Lemburg: Changed all references to the MAGIC constant to use a global pyc_magic instead. This global is initially set to MAGIC, but can be changed by the _PyImport_Init() function to provide for special features implemented in the compiler which are settable using command line switches and affect the way PYC files are generated. Currently this change is only done for the -U flag.
/external/python/cpython2/Python/import.c
|
22b65a8edcb86fc878dd925aaf9e68f099fbb4cb |
|
01-May-2000 |
Guido van Rossum <guido@python.org> |
Robin Becker: The following patch seems to fix a module case bug in 1.6a2 caused by wrong return values in routine allcaps83. [GvR: I also changed the case for end-s>8 to return 0.]
/external/python/cpython2/Python/import.c
|
1cb6cd0ec5453d22d224d01ecd824ea9753232de |
|
28-Apr-2000 |
Guido van Rossum <guido@python.org> |
As Marc-Andre Lemburg points out, the magic number needs to change because we've added Unicode marshalling to the repertoire.
/external/python/cpython2/Python/import.c
|
b33aa1a51e1a7a204c5ad41f812d02f249aa56eb |
|
24-Apr-2000 |
Guido van Rossum <guido@python.org> |
Jack Jansen: The new version of the GUSI i/o library on the Macintosh has a few slightly different calls from the old one.
/external/python/cpython2/Python/import.c
|
43713e5a2899930a8698e244b0d0fef59a676d17 |
|
29-Feb-2000 |
Guido van Rossum <guido@python.org> |
Massive patch by Skip Montanaro to add ":name" to as many PyArg_ParseTuple() format string arguments as possible.
/external/python/cpython2/Python/import.c
|
96a8fb7e99aa8d612473a1dd87e4c1deb8408898 |
|
22-Dec-1999 |
Guido van Rossum <guido@python.org> |
Cleanup patches from Greg Stein: * in import.c, #ifdef out references to dynamic loading based on HAVE_DYNAMIC_LOADING * clean out the platform-specific crud from importdl.c. [ maybe fold this function into import.c and drop the importdl.c file? Greg.] * change GetDynLoadFunc's "funcname" parameter to "shortname". change "name" to "fqname" for clarification. * each GetDynLoadFunc now creates its own funcname value. WARNING: as I mentioned previously, we may run into an issue with a missing "_" on some platforms. Testing will show this pretty quickly, however. * move pathname munging into dynload_shlib.c
/external/python/cpython2/Python/import.c
|
ed1170e49fe775b3af0926db7fa6c984a79ecc8f |
|
20-Dec-1999 |
Guido van Rossum <guido@python.org> |
In _PyImport_Init(), dynamically construct the table of legal suffixes from two static tables (one standard, one provided by the platform's dynload_*.c variant). This is part of a set of patches by Greg Stein.
/external/python/cpython2/Python/import.c
|
2571cc8bf50a9e08bc45116ee7f39de78139a6ca |
|
07-Apr-1999 |
Guido van Rossum <guido@python.org> |
Changes by Mark Hammond for Windows CE. Mostly of the form #ifdef DONT_HAVE_header_H ... #endif around #include <header.h>.
/external/python/cpython2/Python/import.c
|
3879333b9eef62541a68d8c7fd3e95e544a1ebda |
|
27-Jan-1999 |
Barry Warsaw <barry@python.org> |
PyImport_ReloadModule(): Nailed a small memory leak. In the else-clause of the subname test, the parentname object was never DECREF'd.
/external/python/cpython2/Python/import.c
|
6058eb49ee34171fbe2843f74360cddde0441bdc |
|
21-Dec-1998 |
Guido van Rossum <guido@python.org> |
Improve comment for PyImport_Import() as suggested by Bill Tutt.
/external/python/cpython2/Python/import.c
|
65d5b5763c6bbd99d2e2c6b219570f4562382ff0 |
|
21-Dec-1998 |
Guido van Rossum <guido@python.org> |
Thanks to Chris Herborth, the thread primitives now have proper Py* names in the source code (they already had those for the linker, through some smart macros; but the source still had the old, un-Py names).
/external/python/cpython2/Python/import.c
|
66468568df6e9e56b914b15f36dc091f81117150 |
|
22-Oct-1998 |
Guido van Rossum <guido@python.org> |
Jim Fulton writes: """ I had originally not realized that PyEval_GetGlobals did not INCREF it's return value. The fix is to add the INCREF, as shown below. """
/external/python/cpython2/Python/import.c
|
2f3667a7b92b4ef5d3d3db986b0723cf27706930 |
|
12-Oct-1998 |
Guido van Rossum <guido@python.org> |
Replace fprintf(stderr, ...) with PySys_WriteStderr(...).
/external/python/cpython2/Python/import.c
|
49b560698b0bba848c4f8325803a26a4477fb12d |
|
01-Oct-1998 |
Guido van Rossum <guido@python.org> |
Renamed thread.h to pythread.h.
/external/python/cpython2/Python/import.c
|
566373e974413de66ad1d627f322908597eb2efd |
|
01-Oct-1998 |
Guido van Rossum <guido@python.org> |
While scalling sys.modules, skip entries that don't have string keys, to protect us from jokers who put items with non-string keys in sys.modules. Reported by Greg Stein.
/external/python/cpython2/Python/import.c
|
a0f0a33d0574108c71eeaa5833387658f3b92135 |
|
14-Sep-1998 |
Guido van Rossum <guido@python.org> |
Mac-specific mod to enable aliases on import paths. (Jack Jansen and/or Just van Rossum)
/external/python/cpython2/Python/import.c
|
afd3daedded4f77f9803a3a486ca00f9fe363859 |
|
25-Aug-1998 |
Guido van Rossum <guido@python.org> |
__file__ used to be always set to the .pyc (or .pyo) file, even if that file in fact did not exist or at least was not used. Change this so that __file__ is *only* set to the .pyc/.pyo file when it actually read the code object from it; otherwise __file__ is set to the .py file.
/external/python/cpython2/Python/import.c
|
0506a431d58b3ef4cebefad6ea246883ba41963c |
|
11-Aug-1998 |
Guido van Rossum <guido@python.org> |
Patch by Just van Rossum that changes how we search for submodules of frozen packages. (I *think* this means that we can now have a built-in module bar that's a submodule of a frozen package foo, by registering the built-in module with a name "foo.bar" in the table of builtin modules.)
/external/python/cpython2/Python/import.c
|
0f84a349bb6e83d61ee7fa53743c4ab50656c769 |
|
06-Aug-1998 |
Guido van Rossum <guido@python.org> |
Added handling for Mac code resource modules (Jack Jansen).
/external/python/cpython2/Python/import.c
|
1a8791e0b875df8e9428c2d9969f64e5967ac0b4 |
|
05-Aug-1998 |
Guido van Rossum <guido@python.org> |
Changes for BeOS, QNX and long long, by Chris Herborth.
/external/python/cpython2/Python/import.c
|
b68cd421e151c78c065679948529ebef6c41d96a |
|
01-Jul-1998 |
Guido van Rossum <guido@python.org> |
Fix two smal memory leaks discovered by Vadim Chugunov.
/external/python/cpython2/Python/import.c
|
323bf5e1f7b9e562c98ca6b47c63120618b42679 |
|
24-Jun-1998 |
Guido van Rossum <guido@python.org> |
Ignore Windows case check for ALL CAPS 8.3 files
/external/python/cpython2/Python/import.c
|
9c0afe5dc71bb072f7aa471b572799fabda52e40 |
|
19-May-1998 |
Guido van Rossum <guido@python.org> |
Fix a curious bug: statements like "import sys.time" would succeed, because the path through the code would notice that sys.__path__ did not exist and it would fall back to the default path (builtins + sys.path) instead of failing). No longer.
/external/python/cpython2/Python/import.c
|
09cae1f8cd57b24b711c3024056562e5124c3b65 |
|
14-May-1998 |
Guido van Rossum <guido@python.org> |
New APIs for embedding applications that want to add their own entries to the table of built-in modules. This should normally be called *before* Py_Initialize(). When the malloc() or realloc() call fails, -1 is returned and the existing table is unchanged. After a similar function by Just van Rossum. int PyImport_ExtendInittab(struct _inittab *newtab); int PyImport_AppendInittab(char *name, void (*initfunc)());
/external/python/cpython2/Python/import.c
|
111c20b992e523dd094d9b3c459aa21eb2778cea |
|
11-Apr-1998 |
Guido van Rossum <guido@python.org> |
Reject empty module names -- otherwise __import__("") does something weird!
/external/python/cpython2/Python/import.c
|
8766a7797e4092aac751e08ac4356072755a2c7b |
|
11-Apr-1998 |
Guido van Rossum <guido@python.org> |
Comment out a label on an #endif.
/external/python/cpython2/Python/import.c
|
39b0f8976caeb81e475454424f2a8d6e39609f52 |
|
10-Apr-1998 |
Guido van Rossum <guido@python.org> |
Address warnings issued by the MSVC++ compiler
/external/python/cpython2/Python/import.c
|
a5568d349bd0a2f4ca427e97f19d237ba4c0925a |
|
05-Mar-1998 |
Guido van Rossum <guido@python.org> |
Support for frozen packages, matching the revamped Tools/freeze. Frozen packages are indicated by a negative size (the code string is the __import__.py file). A frozen package module has its __path__ set to a string, the package name.
/external/python/cpython2/Python/import.c
|
d65911b3f3a2f8d72d170cc3537aa832d42591b6 |
|
03-Mar-1998 |
Guido van Rossum <guido@python.org> |
Oops -- overuse of dabbrev-expand introduced a strange bug, where instead of 'locals' I was passing 'lock_import' to import_module_ex().
/external/python/cpython2/Python/import.c
|
75acc9ca1c2415717951ac11347714563894b325 |
|
03-Mar-1998 |
Guido van Rossum <guido@python.org> |
Add a single Python-wide (!) lock on import. Only one thread at a time can be in PyImport_ImportModuleEx(). Recursive calls from the same thread are okay. Potential problems: - The lock should really be part of the interpreter state rather than global, but that would require modifying more files, and I first want to figure out whether this works at all. - One could argue that the lock should be per module -- however that would be complicated to implement. We would have to have a linked list of locks per module name, *or* invent a new object type to represent a lock, so we can store the locks in the module or in a separate dictionary. Both seem unwarranted. The one situation where this can cause problems is when loading a module takes a long time, e.g. when the module's initialization code interacts with the user -- during that time, no other threads can run. I say, "too bad."
/external/python/cpython2/Python/import.c
|
05f9dce34f3a91e1a9d69e3e85c93c506e0cc6ba |
|
19-Feb-1998 |
Guido van Rossum <guido@python.org> |
Moved clear_carefully() to _PyModule_Clear() in moduleobject.c (modified) and use that. Some differences in the cleanup algorithm: - Clear __main__ before the other modules. - Delete more sys variables: including ps1, ps2, exitfunc, argv, and even path -- this will prevent new imports! - Restore stdin, stdout, stderr from __stdin__, __stdout__, __stderr__, effectively deleting hooks that the user might have installed -- so their (the hooks') destructors will run.
/external/python/cpython2/Python/import.c
|
aeca79b0f6b1bc7e9e3b415254b353a5288eefbb |
|
18-Feb-1998 |
Guido van Rossum <guido@python.org> |
Small patches to the DJGPP version of check_case().
/external/python/cpython2/Python/import.c
|
4d1b3b921dd63ec20c8f20d4781dfa5adb52b63c |
|
14-Feb-1998 |
Guido van Rossum <guido@python.org> |
Added DJGPP version of check_case(), by Pit Scrorpion (Hans Nowak). (BTW, the Mac version was by Jack Jansen.)
/external/python/cpython2/Python/import.c
|
0980bd9233f5054d62311503963efad8b30171a4 |
|
13-Feb-1998 |
Guido van Rossum <guido@python.org> |
Add case checking feature on import. This is an option for OS-es with case-insensitive but case-preserving filesystems. It is currently supported for Win32 and MacOS. To enable it, #define CHECK_IMPORT_CASE in your platform specific config.h. It is enabled by default on those systems where it is supported. On Win32, it can be disabled at runtime by setting the environment variable PYTHONCASEOK (to any value). When enabled, the feature checks that the case of the requested module name matches that of the filename found in the filesystem, and raises a NameError exception when they don't match.
/external/python/cpython2/Python/import.c
|
e32bf6ead2ae610f5b318c4fbd1c926241fbc3b1 |
|
11-Feb-1998 |
Guido van Rossum <guido@python.org> |
Added PyImport_ExecCodeModuleEx(), which adds an extra parameter to pass it the true file. This is used to set __file__ properly, instead of believing what the code object carries with it. (If the pointer is NULL, the code object's co_filename is still used.)
/external/python/cpython2/Python/import.c
|
a0fec2b5df6827300bf80511a1fd6596e6f71e21 |
|
06-Feb-1998 |
Guido van Rossum <guido@python.org> |
Two more refinements of the cleanup process. (1) Explicitly clear __builtin__._ and sys.{last,exc}_* before clearing anything else. These are common places where user values hide and people complain when their destructors fail. Since the modules containing them are deleted *last* of all, they would come too late in the normal destruction order. Sigh. (2) Add some debugging aid to cleanup (after a suggestion by Marc Lemburg) -- print the names of the modules being cleaned, and (when -vv is used) print the names of the variables being cleared.
/external/python/cpython2/Python/import.c
|
758eec01728e41bce41ccc31ae96a856a4de6abc |
|
19-Jan-1998 |
Guido van Rossum <guido@python.org> |
Rewritten PyImport_Cleanup() and its helper, clear_carefully(). They now implement the following finalization strategy. 1. Whenever this code deletes a module, its directory is cleared carefully, as follows: - set all names to None that begin with exactly one underscore - set all names to None that don't begin with two underscores - clear the directory 2. Modules are deleted in the following order: - modules with a reference count of 1, except __builtin__ or __sys__ - repeat until no more are found with a reference count of 1 - __main__ if it's still there - all remaining modules except __builtin__ or sys - sys _ __builtin__
/external/python/cpython2/Python/import.c
|
e8c27bb3eabe0550f4ddaf652bd8ebda23876d4e |
|
17-Dec-1997 |
Guido van Rossum <guido@python.org> |
Oops! Should've renamed dos_8x3 to dos-8x3 here, too.
/external/python/cpython2/Python/import.c
|
595d7ba06981edcddaa89c58e67300ef6d92f3c7 |
|
05-Dec-1997 |
Guido van Rossum <guido@python.org> |
Jeff Rush: add definition for S_IFMT for VisualAge C/C++ under OS2.
/external/python/cpython2/Python/import.c
|
197346fafe41332b896999b5bbdc7b1dabe57262 |
|
31-Oct-1997 |
Guido van Rossum <guido@python.org> |
New policy for package imports: only a directory containing __init__.py (or __init__.pyc/.pyo, whichever applies) is considered a package. All other subdirectories are left alone. Should make Konrad Hinsen happy!
/external/python/cpython2/Python/import.c
|
771c6c8f7a834baf41ea73914a13835325718fa9 |
|
31-Oct-1997 |
Guido van Rossum <guido@python.org> |
Instead of using _PyImport_Inittab[] directly, use the new "official" pointer *PyImport_Inittab which is initialized to _PyImport_Inittab.
/external/python/cpython2/Python/import.c
|
9a61dc90e21b2cdf9e0d805991fa69e1eefa3953 |
|
08-Oct-1997 |
Guido van Rossum <guido@python.org> |
Moved mac-specific speedup to a different place (Jack)
/external/python/cpython2/Python/import.c
|
a7f2e813c94468506a6e10e8b5b97392a48da34d |
|
03-Oct-1997 |
Guido van Rossum <guido@python.org> |
Remove unreachable "return 1" at end of ensure_fromlist().
/external/python/cpython2/Python/import.c
|
0207e6de3868b54f680aa1603009531c2b548779 |
|
10-Sep-1997 |
Guido van Rossum <guido@python.org> |
Added docstrings. Not for the obsolete functions though.
/external/python/cpython2/Python/import.c
|
c172f26861415ea7ec94df92e47564f00fc153cc |
|
09-Sep-1997 |
Guido van Rossum <guido@python.org> |
Deleted find_module_in_package and find_module_in_directory -- they aren't needed and it was a mistake to add them.
/external/python/cpython2/Python/import.c
|
a86f77d4dd5dc6dc8062c8645a2f6e5fbba3767d |
|
09-Sep-1997 |
Guido van Rossum <guido@python.org> |
Crrected a flow control error that caused the wrong error message when load-module() didn't find a built-in or frozen module. Also got rid of is_frozen(), which duplicated the functionality of find_frozen()!=NULL.
/external/python/cpython2/Python/import.c
|
9905ef966939ff15de6514a4fb994ad0f030d7cf |
|
08-Sep-1997 |
Guido van Rossum <guido@python.org> |
Added support for __all__, which should be a list of modules to be imported when the user says "from package import *".
/external/python/cpython2/Python/import.c
|
0c81945808a4696054052169d6a23012b478fb01 |
|
07-Sep-1997 |
Guido van Rossum <guido@python.org> |
Bugfix: import A.B from inside package was busted by mark_miss optimization.
/external/python/cpython2/Python/import.c
|
f5f5fdbdd05c187dd56e5f36f3e2e7f27948f944 |
|
06-Sep-1997 |
Guido van Rossum <guido@python.org> |
Significant speedup -- when a submodule imports a global module, add a dummy entry to sys.modules, marking the absence of a submodule by the same name. Thus, if module foo.bar executes the statement "import time", sys.modules['foo.time'] will be set to None, once the absence of a module foo.time is confirmed (by looking for it in foo's path). The next time when foo.bar (or any other submodule of foo) executes "import time", no I/O is necessary to determine that there is no module foo.time. (Justification: It may seem strange to pollute sys.modules. However, since we're doing the lookup anyway it's definitely the fastest solution. This is the same convention that 'ni' uses and I haven't heard any complaints.)
/external/python/cpython2/Python/import.c
|
222ef56bbf30cd1435dffb61f3c41b3a93cda9d3 |
|
06-Sep-1997 |
Guido van Rossum <guido@python.org> |
Fix reload() for package submodules.
/external/python/cpython2/Python/import.c
|
17fc85f2f581cd5fcbd139aeb1b5078e0e509cc1 |
|
06-Sep-1997 |
Guido van Rossum <guido@python.org> |
Phase two of package import. "import a.b.c" and all variants now do the right thing. Still to do: - Make reload() of a submodule work. - Performance tweaks -- currently, a submodule that tries to import a global module *always* searches the package directory first, even if the global module was already imported. Not sure how to solve this one; probably need to record misses per package. - Documentation!
/external/python/cpython2/Python/import.c
|
aee0bad0a50f9f533267d241bea97a0b2118f238 |
|
05-Sep-1997 |
Guido van Rossum <guido@python.org> |
First part of package support. This doesn't yet support "import a.b.c" or "from a.b.c import x", but it does recognize directories. When importing a directory, it initializes __path__ to a list containing the directory name, and loads the __init__ module if found. The (internal) find_module() and load_module() functions are restructured so that they both also handle built-in and frozen modules and Mac resources (and directories of course). The imp module's find_module() and (new) load_module() also have this functionality. Moreover, imp unconditionally defines constants for all module types, and has two more new functions: find_module_in_package() and find_module_in_directory(). There's also a new API function, PyImport_ImportModuleEx(), which takes all four __import__ arguments (name, globals, locals, fromlist). The last three may be NULL. This is currently the same as PyImport_ImportModule() but in the future it will be able to do relative dotted-path imports. Other changes: - bltinmodule.c: in __import__, call PyImport_ImportModuleEx(). - ceval.c: always pass the fromlist to __import__, even if it is a C function, so PyImport_ImportModuleEx() is useful. - getmtime.c: the function has a second argument, the FILE*, on which it applies fstat(). According to Sjoerd this is much faster. The first (pathname) argument is ignored, but remains for backward compatibility (so the Mac version still works without changes). By cleverly combining the new imp functionality, the full support for dotted names in Python (mini.py, not checked in) is now about 7K, lavishly commented (vs. 14K for ni plus 11K for ihooks, also lavishly commented). Good night!
/external/python/cpython2/Python/import.c
|
7c14103d77e02f3ee66d39d15fda6090ab2965f7 |
|
15-Aug-1997 |
Guido van Rossum <guido@python.org> |
Keep gcc -Wall happy
/external/python/cpython2/Python/import.c
|
d47a0a86b4ae4afeb17d8e64e1c447e4d4025f10 |
|
14-Aug-1997 |
Guido van Rossum <guido@python.org> |
Added Jim Fulton's PyImport_Import(), which calls whatever __import__() hook is currently installed.
/external/python/cpython2/Python/import.c
|
741689d5f3570a2e56bf166e6dfc6417749b0790 |
|
12-Aug-1997 |
Guido van Rossum <guido@python.org> |
Use string interning and caching to get speedups on the mac (Jack).
/external/python/cpython2/Python/import.c
|
085d269f1d91bcbe051ee423089230dd072d1cc4 |
|
05-Aug-1997 |
Guido van Rossum <guido@python.org> |
New rules for deleting modules. Rather than having an elaborate scheme based on object's types, have a simple two-phase scheme based on object's *names*: /* To make the execution order of destructors for global objects a bit more predictable, we first zap all objects whose name starts with a single underscore, before we clear the entire dictionary. We zap them by replacing them with None, rather than deleting them from the dictionary, to avoid rehashing the dictionary (to some extent). */
/external/python/cpython2/Python/import.c
|
25ce566661c1b7446b3ddb4076513a62f93ce08d |
|
02-Aug-1997 |
Guido van Rossum <guido@python.org> |
The last of the mass checkins for separate (sub)interpreters. Everything should now work again. See the comments for the .h files mass checkin (e.g. pystate.h) for more detail.
/external/python/cpython2/Python/import.c
|
ef3d02ebb955d01b2a8484d7c25f5ced4bf2036d |
|
21-Jul-1997 |
Guido van Rossum <guido@python.org> |
Removed some variables that are used to exchange data between import.c and importdl.c: the MAXSUFFIXSIZE macro is now defined in importdl.h, and the modules dictionary is now passed using PyImport_GetModuleDict(). Also undefine USE_SHLIB for AIX -- in AIX 4.2 and up, dlfcn.h exists but we don't want to use it.
/external/python/cpython2/Python/import.c
|
b65e85cb738e4bc555dd65111b57c56f27259677 |
|
10-Jul-1997 |
Guido van Rossum <guido@python.org> |
Fix problem discovered by Greg McFarlane: when an imported module replaces its own entry in sys.module, reference count errors ensue; even if there is no reference count problem, it would be preferable for the import to yield the new thing in sys.modules anyway (if only because that's what later imports will yield). This opens the road to an official hack to implement a __getattr__ like feature for modules: stick an instance in sys.modules[__name__].
/external/python/cpython2/Python/import.c
|
af5dfb4cebd670679612ddb0a0520fe711830a1d |
|
14-May-1997 |
Guido van Rossum <guido@python.org> |
One last rename glitch: import_modules -> _PyImport_Modules.
/external/python/cpython2/Python/import.c
|
b05a5c7698cd8dff3e5c02e513db765ba12281f0 |
|
07-May-1997 |
Guido van Rossum <guido@python.org> |
Instead of importing graminit.h whenever one of the three grammar 'root' symbols is needed, define these in Python.h with a Py_ prefix.
/external/python/cpython2/Python/import.c
|
0bac33b420a8c83ade95dd632b7fc861fd7903e0 |
|
29-Apr-1997 |
Guido van Rossum <guido@python.org> |
Oops, forgot one: inittab.
/external/python/cpython2/Python/import.c
|
79f25d9a7b853a9f491a0cfe4b81eeb9e2d19569 |
|
29-Apr-1997 |
Guido van Rossum <guido@python.org> |
Quickly renamed the remaining files -- this directory is done.
/external/python/cpython2/Python/import.c
|
6bf62dad9e83003a70aef4158df063697926ba7c |
|
11-Apr-1997 |
Guido van Rossum <guido@python.org> |
Keep gcc -Wall and Microsoft VC happy.
/external/python/cpython2/Python/import.c
|
0824f63cfc4336b9fc6ff6e2f067a9fcd80aa162 |
|
11-Mar-1997 |
Guido van Rossum <guido@python.org> |
When -O is given, use ".pyo" instead of ".pyc".
/external/python/cpython2/Python/import.c
|
99d182550b397ef1f7b50ae4384a59e3d7d13bba |
|
24-Jan-1997 |
Guido van Rossum <guido@python.org> |
New magin number (because of linenumber table).
/external/python/cpython2/Python/import.c
|
dd5db439058df23ceca517620cda9e6420aff4cf |
|
17-Jan-1997 |
Guido van Rossum <guido@python.org> |
New MAGIC number (code objects have one more item when marshalled).
/external/python/cpython2/Python/import.c
|
80bb9655f0e0843199b46719b032f2dc737cf013 |
|
06-Dec-1996 |
Guido van Rossum <guido@python.org> |
Keep gcc -Wall happy.
/external/python/cpython2/Python/import.c
|
d266eb460e20ded087d01a29da0a230e235afc40 |
|
25-Oct-1996 |
Guido van Rossum <guido@python.org> |
New permission notice, includes CNRI.
/external/python/cpython2/Python/import.c
|
ac279109d4c4cdcda01afea224464b7d9ebe314e |
|
23-Aug-1996 |
Guido van Rossum <guido@python.org> |
PYTHONWIN -> MS_COREDLL
/external/python/cpython2/Python/import.c
|
1741d607255226e721098c8b723f11586887344e |
|
08-Aug-1996 |
Guido van Rossum <guido@python.org> |
Added casts from unsigned char to char when calling rds_object() on frozen code.
/external/python/cpython2/Python/import.c
|
8861b74445560c078d11ff6800a3ce20a869ea93 |
|
30-Jul-1996 |
Guido van Rossum <guido@python.org> |
Changes for slice and ellipses
/external/python/cpython2/Python/import.c
|
42cd305b252b176a51e1377bd08710726be2999b |
|
21-Jul-1996 |
Guido van Rossum <guido@python.org> |
new .pyc magic number (** operator)
/external/python/cpython2/Python/import.c
|
6f489d989d947169e70a8668cd265780a0a13d5e |
|
28-Jun-1996 |
Guido van Rossum <guido@python.org> |
Slightly different Windows ifdefs
/external/python/cpython2/Python/import.c
|
0e41c8c8485def35d30d56ba8420641472e273e1 |
|
20-Jun-1996 |
Guido van Rossum <guido@python.org> |
Cosmetic change to the dox_8x3 hack.
/external/python/cpython2/Python/import.c
|
cfd0a222529cd56a1875ded124e464c501e9b47f |
|
17-Jun-1996 |
Guido van Rossum <guido@python.org> |
struct frozen is now struct _frozen and comes from import.h.
/external/python/cpython2/Python/import.c
|
40f470f7e024430d21c0976862f6f3bc1a55c0b9 |
|
24-May-1996 |
Guido van Rossum <guido@python.org> |
moved verbose decl to pydebug.h; added dos_8x3 feature
/external/python/cpython2/Python/import.c
|
9c9a07c9c9a7532e1b89c80ab765cb3aade27d1b |
|
16-May-1996 |
Guido van Rossum <guido@python.org> |
Remember source filename as <module>.__file__.
/external/python/cpython2/Python/import.c
|
a5a3db70d445b0cf9064c76d9946dcde18fb775e |
|
09-Apr-1996 |
Guido van Rossum <guido@python.org> |
Under NT, interface to mysterious module registry. (Mark H.)
/external/python/cpython2/Python/import.c
|
be1a6e29e3a92c8de9533cec58f35401109cf884 |
|
21-Feb-1996 |
Guido van Rossum <guido@python.org> |
Change Mac creator from 'PYTH' to 'Pyth' -- 'PYTH' was already taken by someone else, 'Pyth' is now officially registered by the PSA.
/external/python/cpython2/Python/import.c
|
95ffa23597b1263b371581e4f14650356e81fba2 |
|
03-Oct-1995 |
Jack Jansen <jack.jansen@cwi.nl> |
Removed unused variables
/external/python/cpython2/Python/import.c
|
6ec1efb645d1c98d0892904bb1bf3d09628555d6 |
|
04-Aug-1995 |
Guido van Rossum <guido@python.org> |
add imp.get_frozen_object()
/external/python/cpython2/Python/import.c
|
614cf816061f47e48c6ad01ac8c6e8a9634bb3ec |
|
28-Jul-1995 |
Jack Jansen <jack.jansen@cwi.nl> |
Undef 'argument' before including mac headers
/external/python/cpython2/Python/import.c
|
ce0a6ded4d62384d8a2cdadfd86f4be7784ba26c |
|
26-Jul-1995 |
Guido van Rossum <guido@python.org> |
never close the file in imp.load_...
/external/python/cpython2/Python/import.c
|
681d79aaf397850778608f35585d091fa7fe370a |
|
18-Jul-1995 |
Guido van Rossum <guido@python.org> |
keyword arguments and faster calls
/external/python/cpython2/Python/import.c
|
7faeab3103dd81d8e9cc7ff1d95d4909d6523032 |
|
08-Jul-1995 |
Guido van Rossum <guido@python.org> |
new MAGIC; some changes to default files for imp.load_... functions
/external/python/cpython2/Python/import.c
|
ae12e19409b3dbaaea7b989735b02099e5d73fb4 |
|
18-Jun-1995 |
Jack Jansen <jack.jansen@cwi.nl> |
Added PY_RESOURCE (mac only) to imp module
/external/python/cpython2/Python/import.c
|
fbe6d33ffd64ce1b31b2dab332c617f96b5e3fbf |
|
12-Jun-1995 |
Sjoerd Mullender <sjoerd@acm.org> |
Check if we've already loaded a dynamic module under a different name.
/external/python/cpython2/Python/import.c
|
c388068431943e7d1760aa52ed06fd6eb7987e39 |
|
19-Feb-1995 |
Guido van Rossum <guido@python.org> |
magic number changes of CR/LF are swapped
/external/python/cpython2/Python/import.c
|
9c96a923fb3be046489ff486d41194658c9b015a |
|
15-Feb-1995 |
Jack Jansen <jack.jansen@cwi.nl> |
Added hooks to support importing pyc code from a resource on the mac.
/external/python/cpython2/Python/import.c
|
0b3449010e15a08977e669cfdb8146bb789a5809 |
|
07-Feb-1995 |
Guido van Rossum <guido@python.org> |
init_frozen non-static, frozenmain.c not in Makefile any more
/external/python/cpython2/Python/import.c
|
90f0e07a5b149869460663e2734eb1186fc56900 |
|
30-Jan-1995 |
Guido van Rossum <guido@python.org> |
fix glaring bug in get_magic
/external/python/cpython2/Python/import.c
|
0de81bfec9cda58648f0f085144a8e60b5f12b65 |
|
26-Jan-1995 |
Guido van Rossum <guido@python.org> |
don't dictclear deleted modules in doneimport
/external/python/cpython2/Python/import.c
|
7f9fa97ca22e56a6cde2dfd3f2ba1704db8e463f |
|
20-Jan-1995 |
Guido van Rossum <guido@python.org> |
fix import related leaks
/external/python/cpython2/Python/import.c
|
94390ec2a6ea5acbea9dead528ce067c396a0301 |
|
12-Jan-1995 |
Guido van Rossum <guido@python.org> |
use getbuiltins() everywhere, it defaults to getbuiltidict()
/external/python/cpython2/Python/import.c
|
6135a87f2b1474be6caf1bf776024d0c6d10a6d1 |
|
09-Jan-1995 |
Guido van Rossum <guido@python.org> |
__builtins__ mods (and sys_checkinterval for ceval.c)
/external/python/cpython2/Python/import.c
|
6d023c98b06e8b4558f3558335433f371a89cc9b |
|
04-Jan-1995 |
Guido van Rossum <guido@python.org> |
Added 1995 to copyright message. bltinmodule.c: fixed coerce() nightmare in ternary pow(). modsupport.c (initmodule2): pass METH_FREENAME flag to newmethodobject(). pythonrun.c: move flushline() into and around print_error().
/external/python/cpython2/Python/import.c
|
1ae940a5870df2f706fa884afd533847f6b0b1a8 |
|
02-Jan-1995 |
Guido van Rossum <guido@python.org> |
Lots of changes, most minor (fatal() instead of abort(), use of err_fetch/err_restore and so on). But... NOTE: import.c has been rewritten and all the DL stuff is now in the new file importdl.c.
/external/python/cpython2/Python/import.c
|
06fe7e5c2ce3d6483da52ada2583c8da3af16326 |
|
14-Dec-1994 |
Sjoerd Mullender <sjoerd@acm.org> |
Added comment symbols around word after #endif.
/external/python/cpython2/Python/import.c
|
6c849697fd0085ea4415b7ef5bdef30e734092b2 |
|
26-Sep-1994 |
Guido van Rossum <guido@python.org> |
Fix various potential buffer overrun problems.
/external/python/cpython2/Python/import.c
|
fdef2715503a56aa02716ee4bd0afcd431ba7c25 |
|
14-Sep-1994 |
Guido van Rossum <guido@python.org> |
* Import/pythonrun.h, Python/{import,pythonrun}.c, mac/macsetfiletype.c: changes by Jack to execute .pyc file passed as command line argument. On the Mac .pyc files are given a special type so they can be double-clicked
/external/python/cpython2/Python/import.c
|
ae311bd50361f38f689791d6099ca634ff33e046 |
|
12-Sep-1994 |
Guido van Rossum <guido@python.org> |
Mods for HP-UX dynamic loading.
/external/python/cpython2/Python/import.c
|
74e6a118caa67a5ea3671c03203fe6946df381dd |
|
29-Aug-1994 |
Guido van Rossum <guido@python.org> |
* Python/import.c: support *.o/*.so as alternative for *module.o/*module.so * Python/import.c: if initializing a module did not enter the module into sys.modules, it may have raised an exception -- don't override this exception. Merged NT changes * Python/import.c: add lost NT-specific code back in Fixed NT changes
/external/python/cpython2/Python/import.c
|
590baa4a7a43b596119b47f605e3e570c2b3b0ee |
|
30-Nov-1993 |
Guido van Rossum <guido@python.org> |
* import.c (get_module): pass .py filename to parse_file, not .pyc filename! * funcobject.c (func_repr): don't call getstringvalue(None) for anonymous functions. * bltinmodule.c: removed lambda (which is now a built-in function); removed implied lambda for string arg to filter/map/reduce. * Grammar, graminit.[ch], compile.[ch]: replaced lambda as built-in function by lambda as grammar entity: instead of "lambda('x: x+1')" you write "lambda x: x+1". * Xtmodule.c (checkargdict): return 0, not NULL, for error.
/external/python/cpython2/Python/import.c
|
c45611d0e33ddd96fb9fffa8dc42a96384d5d270 |
|
17-Nov-1993 |
Guido van Rossum <guido@python.org> |
* import.c (get_module): total rewrite, to ensure proper search order: for each dir in sys.path, try each possible extension. (Note: C extensions are loaded before Python modules in the same directory, to allow having a C version used when dynamic loading is supported and a Python version as a back-up.) * import.c (reload_module): test for error from getmodulename() * moduleobject.c: implement module name as dict entry '__name__' instead of special-casing it in module_getattr(); this way a module (or function!) can access its own module name, and programs that know what they are doing can rename modules. * stdwinmodule.c (initstdwin): strip ".py" suffix of argv[0].
/external/python/cpython2/Python/import.c
|
5a2a683e7299a8d8f03c7125c22eb813e3030808 |
|
25-Oct-1993 |
Guido van Rossum <guido@python.org> |
* filemodule.c: added writelines() -- analogous to readlines() * import.c: fixed core dump when out-of-date .pyc file encountered (again!)
/external/python/cpython2/Python/import.c
|
52c1f515547a96898879fe60e2432b69ff95cca0 |
|
25-Oct-1993 |
Sjoerd Mullender <sjoerd@acm.org> |
import.c: When something is wrong with the .pyc, properly open the .py file. object.c: Write allocation statistics to stderr.
/external/python/cpython2/Python/import.c
|
89b3325dc4d6999bb00068e048a76f7eba23a7a5 |
|
22-Oct-1993 |
Guido van Rossum <guido@python.org> |
* import.c (MAGIC): Changed magic word to avoid confusion about exec function vs. exec statement * bltinmodule.c: renamed the module to __builtin__. * posixmodule.c (posix_execv): renamed exec --> execv since it is now a reserved word.
/external/python/cpython2/Python/import.c
|
cacd9579d48cb1e2acc3536c9701987b118edf8c |
|
18-Oct-1993 |
Guido van Rossum <guido@python.org> |
* stdwinmodule.c (stdwin_done): interface to shutdown stdwin (now this is no longer done by config.c). * stdwinmodule.c (initstdwin), config.c (initall): get command line arguments from sys.argv instead of special-casing stdwin in config.c * import.c (get_module): fix core dump when foomodule.o does not define initfoo(). * ChangeLog: documented changes by Sjoerd.
/external/python/cpython2/Python/import.c
|
21d335ed9ef6fbb16341809fe224b45a3f41243f |
|
15-Oct-1993 |
Guido van Rossum <guido@python.org> |
Makefile, import.c: Lance's alternative module search (allow .pyc file without .py file); Bill's dynamic loading for SunOS using shared libraries. pwdmodule.c (mkgrent): remove DECREF of uninitialized variable. classobject.c (instance_getattr): Fix case when class lookup returns unbound method instead of function.
/external/python/cpython2/Python/import.c
|
eb6b33a837a180221b635331e005f990024bdb30 |
|
25-May-1993 |
Guido van Rossum <guido@python.org> |
* classobject.c: in instance_getattr, don't make a method out of a function found as instance data. * socketmodule.c: added 'flags' argument sendto/recvfrom, rewrite argument parsing in send/recv. * More changes related to access (terminology change: owner instead of class; allow any object as owner; local/global variables are owned by their dictionary, only class/instance data is owned by the class; "from...import *" now only imports objects with public access; etc.)
/external/python/cpython2/Python/import.c
|
81daa32c15cfa9f05eda037916cdbfd5b4323431 |
|
20-May-1993 |
Guido van Rossum <guido@python.org> |
Access checks now work, at least for instance data (not for methods yet). The class is now passed to eval_code and stored in the current frame. It is also stored in instance method objects. An "unbound" instance method is now returned when a function is retrieved through "classname.funcname", which when called passes the class to eval_code.
/external/python/cpython2/Python/import.c
|
25831652fd4c03323066d4cafdc0551c396a993e |
|
19-May-1993 |
Guido van Rossum <guido@python.org> |
Several changes in one: (1) dictionaries/mappings now have attributes values() and items() as well as keys(); at the C level, use the new function mappinggetnext() to iterate over a dictionary. (2) "class C(): ..." is now illegal; you must write "class C: ...". (3) Class objects now know their own name (finally!); and minor improvements to the way how classes, functions and methods are represented as strings. (4) Added an "access" statement and semantics. (This is still experimental -- as long as you don't use the keyword 'access' nothing should be changed.)
/external/python/cpython2/Python/import.c
|
f56e3db1dd4bedc9331933504f5008a03f5d3131 |
|
01-Apr-1993 |
Guido van Rossum <guido@python.org> |
Support for frozen scripts; added -i option.
/external/python/cpython2/Python/import.c
|
8b17d6bd89cd79820c76bd88bc064e44fc03a1bd |
|
30-Mar-1993 |
Guido van Rossum <guido@python.org> |
Changes to speed up local variables enormously, by avoiding dictionary lookup (opcode.h, ceval.[ch], compile.c, frameobject.[ch], pythonrun.c, import.c). The .pyc MAGIC number is changed again. Added get_menu_text to flmodule.
/external/python/cpython2/Python/import.c
|
9bfef44d97d1ae24e03717e3d59024b44626a9de |
|
29-Mar-1993 |
Guido van Rossum <guido@python.org> |
* Changed all copyright messages to include 1993. * Stubs for faster implementation of local variables (not yet finished) * Added function name to code object. Print it for code and function objects. THIS MAKES THE .PYC FILE FORMAT INCOMPATIBLE (the version number has changed accordingly) * Print address of self for built-in methods * New internal functions getattro and setattro (getattr/setattr with string object arg) * Replaced "dictobject" with more powerful "mappingobject" * New per-type functio tp_hash to implement arbitrary object hashing, and hashobject() to interface to it * Added built-in functions hash(v) and hasattr(v, 'name') * classobject: made some functions static that accidentally weren't; added __hash__ special instance method to implement hash() * Added proper comparison for built-in methods and functions
/external/python/cpython2/Python/import.c
|
34679b7661873ec65e5157ddd1ea2be8269632d0 |
|
26-Jan-1993 |
Guido van Rossum <guido@python.org> |
* Added Fixcprt.py: script to fix copyright message. * various modules: added 1993 to copyright. * thread.c: added copyright notice. * ceval.c: minor change to error message for "+" * stdwinmodule.c: check for error from wfetchcolor * config.c: MS-DOS fixes (define PYTHONPATH, use DELIM, use osdefs.h) * Add declaration of inittab to import.h * sysmodule.c: added sys.builtin_module_names * xxmodule.c, xxobject.c: fix minor errors
/external/python/cpython2/Python/import.c
|
ff4949eeee7f86117d4a69599777ff5564315e39 |
|
05-Aug-1992 |
Guido van Rossum <guido@python.org> |
* Makefile: cosmetics * socketmodule.c: get rid of makepair(); fix makesocketaddr to fix broken recvfrom() * socketmodule: get rid of getStrarg() * ceval.h: move eval_code() to new file eval.h, so compile.h is no longer needed. * ceval.c: move thread comments to ceval.h; always make save/restore thread functions available (for dynloaded modules) * cdmodule.c, listobject.c: don't include compile.h * flmodule.c: include ceval.h * import.c: include eval.h instead of ceval.h * cgen.py: add forground(); noport(); winopen(""); to initgl(). * bltinmodule.c, socketmodule.c, fileobject.c, posixmodule.c, selectmodule.c: adapt to threads (add BGN/END SAVE macros) * stdwinmodule.c: adapt to threads and use a special stdwin lock. * pythonmain.c: don't include getpythonpath(). * pythonrun.c: use BGN/END SAVE instead of direct calls; also more BGN/END SAVE calls etc. * thread.c: bigger stack size for sun; change exit() to _exit() * threadmodule.c: use BGN/END SAVE macros where possible * timemodule.c: adapt better to threads; use BGN/END SAVE; add longsleep internal function if BSD_TIME; cosmetics
/external/python/cpython2/Python/import.c
|
bab9d0385585fcddf6ee96a4ca38dd18e3517f54 |
|
05-Apr-1992 |
Guido van Rossum <guido@python.org> |
Copyright for 1992 added
/external/python/cpython2/Python/import.c
|
4cd8b5cad8236baebaccc62e57c3f7828d49a667 |
|
27-Mar-1992 |
Guido van Rossum <guido@python.org> |
Print messages about where from modules are imported when -v is given.
/external/python/cpython2/Python/import.c
|
d8bac6de5719d081423d9123ba3dce5e65dcf29a |
|
26-Feb-1992 |
Guido van Rossum <guido@python.org> |
Move SEP to osdefs.h. Use MAXPATHLEN from osdefs.h.
/external/python/cpython2/Python/import.c
|
e0513dee58578e308bad7f6ad7b5b124f7a18c7b |
|
26-Jan-1992 |
Guido van Rossum <guido@python.org> |
getbinaryname is now part of dl_loadmod.
/external/python/cpython2/Python/import.c
|
e25c25635e6e646addf4bfefeda6b33a0d91de5f |
|
19-Jan-1992 |
Guido van Rossum <guido@python.org> |
Support for dynamic loading added.
/external/python/cpython2/Python/import.c
|
4135e782041517e2de473fd9b6f5375878c48e68 |
|
24-Dec-1991 |
Guido van Rossum <guido@python.org> |
Use IOError and ImportError when import fails.
/external/python/cpython2/Python/import.c
|
6e93c07a06d8a2b7e0aa651a11310182216abf94 |
|
16-Dec-1991 |
Guido van Rossum <guido@python.org> |
Change RuntimeError into IOError when module file not found on reload.
/external/python/cpython2/Python/import.c
|
3ddee714d1d4473f8fa04a6d8356d3eafb695a50 |
|
16-Dec-1991 |
Guido van Rossum <guido@python.org> |
New magic word; and check it.
/external/python/cpython2/Python/import.c
|
f0ada4a130c24a5b10b02f3b51ee0b7cd632cb4b |
|
16-Aug-1991 |
Guido van Rossum <guido@python.org> |
Use more dict2 functions./
/external/python/cpython2/Python/import.c
|
d6a15ada727e586dc7b2cce8115e65d0abb0d1aa |
|
25-Jun-1991 |
Guido van Rossum <guido@python.org> |
Generalize to macintosh.
/external/python/cpython2/Python/import.c
|
c405b7b2fa2b18aa8f3fc62ca422cdee90138583 |
|
04-Jun-1991 |
Guido van Rossum <guido@python.org> |
Support ".pyc" files: cached compilation results. (Similar to Emacs ".elc" files.)
/external/python/cpython2/Python/import.c
|
175a9ea8c8794039c65ec2c160316791dad3633e |
|
05-May-1991 |
Guido van Rossum <guido@python.org> |
Pre-define MS-DOS separator
/external/python/cpython2/Python/import.c
|
66f1fa83f1e9fbad76cf2ab5fb6dfcf1858d561b |
|
03-Apr-1991 |
Guido van Rossum <guido@python.org> |
Added forward declaration (to satisfy Standard C).
/external/python/cpython2/Python/import.c
|
f70e43a073b36c6f6e9894c01025243a77a452d4 |
|
19-Feb-1991 |
Guido van Rossum <guido@python.org> |
Added copyright notice.
/external/python/cpython2/Python/import.c
|
7f133ed0732d216e00eda8456911f08a10bbc493 |
|
19-Feb-1991 |
Guido van Rossum <guido@python.org> |
Call the init function of a built-in module here. ,
/external/python/cpython2/Python/import.c
|
3f5da24ea304e674a9abbdcffc4d671e32aa70f1 |
|
20-Dec-1990 |
Guido van Rossum <guido@python.org> |
"Compiling" version
/external/python/cpython2/Python/import.c
|
330497564798cd231b8bac991c35807b131d9a56 |
|
18-Nov-1990 |
Guido van Rossum <guido@python.org> |
Add extra DECREF.
/external/python/cpython2/Python/import.c
|
8d15b5d036af79b26e98f6c909fd0de97369291f |
|
26-Oct-1990 |
Guido van Rossum <guido@python.org> |
Added reload() functionality.
/external/python/cpython2/Python/import.c
|
85a5fbbdfea617f6cc8fae82c9e8c2b5c424436d |
|
14-Oct-1990 |
Guido van Rossum <guido@python.org> |
Initial revision
/external/python/cpython2/Python/import.c
|