Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove unused variable `trim_get_code`. | Antoine Pitrou | 2012-08-04 | 1 | -4/+0 |
| | |||||
* | Close #13119: use "\r\n" newline for sys.stdout/err on Windows | Victor Stinner | 2012-08-03 | 1 | -5/+8 |
| | | | | sys.stdout and sys.stderr are now using "\r\n" newline on Windows, as Python 2. | ||||
* | Issue #15502: Bring the importlib.PathFinder docs and docstring more in line ↵ | Nick Coghlan | 2012-08-02 | 1 | -1276/+1277 |
| | | | | with the new import system documentation, and fix various parts of the new docs that weren't quite right given PEP 420 or were otherwise a bit misleading. Also note the key terminology problem still being discussed in the issue | ||||
* | Close #15519: Properly expose WindowsRegistryFinder in importlib and bring ↵ | Nick Coghlan | 2012-08-02 | 1 | -2491/+2489 |
| | | | | the name into line with normal import terminology. Original patch by Eric Snow | ||||
* | Close #15486: Simplify the mechanism used to remove importlib frames from ↵ | Nick Coghlan | 2012-07-31 | 2 | -3552/+3456 |
| | | | | tracebacks when they just introduce irrelevant noise | ||||
* | Fix initialization of the faulthandler module | Victor Stinner | 2012-07-31 | 1 | -4/+4 |
| | | | | | | | faulthandler requires the importlib if "-X faulthandler" option is present on the command line, so initialize faulthandler after importlib. Add also an unit test. | ||||
* | Issue #15508: Fix the docstring for __import__ to not mention negative | Brett Cannon | 2012-07-30 | 1 | -3/+2 |
| | | | | | | 'level' values and set its document default value to 0. Thanks to Arfrever Frehtes Taifersar Arahesis for filing the bug. | ||||
* | Issue #15463: the faulthandler module truncates strings to 500 characters, | Victor Stinner | 2012-07-30 | 1 | -1/+1 |
| | | | | instead of 100, to be able to display long file paths | ||||
* | Close #15425: Eliminate more importlib related traceback noise | Nick Coghlan | 2012-07-29 | 2 | -4107/+4154 |
| | |||||
* | Issue #14578: Support modules registered in the Windows registry again. | Martin v. Löwis | 2012-07-28 | 1 | -3943/+4128 |
| | | | | Patch by Amaury Forgeot d'Arc. | ||||
* | Issue #15466: Stop using TYPE_INT64 in marshal, | Martin v. Löwis | 2012-07-28 | 2 | -2332/+2326 |
| | | | | | to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems. | ||||
* | Issue #15365: Make traceback reporting ignore any errors when printing out | Kristján Valur Jónsson | 2012-07-19 | 1 | -1/+4 |
| | | | | | the source line. Such errors can't be reported anyway. This makes error reporting work, even if the "io" module can't be loaded. | ||||
* | remove unused variable | Benjamin Peterson | 2012-07-18 | 1 | -1/+1 |
| | |||||
* | Issue #15368: fixing variable typo. | Meador Inge | 2012-07-18 | 1 | -1/+1 |
|\ | |||||
| * | Issue #15368: fixing variable typo. | Meador Inge | 2012-07-18 | 1 | -1/+1 |
| | | |||||
* | | Issue #15368: make bytecode generation deterministic. | Meador Inge | 2012-07-18 | 1 | -2/+22 |
|\ \ | |/ | |||||
| * | Issue #15368: make bytecode generation deterministic. | Meador Inge | 2012-07-18 | 1 | -2/+22 |
| | | |||||
* | | Refcounting fixes | Nick Coghlan | 2012-07-15 | 1 | -3/+7 |
| | | |||||
* | | Make set_main_loader static (noticed by Antoine Pitrou) | Nick Coghlan | 2012-07-15 | 1 | -1/+1 |
| | | |||||
* | | Issue #15343: A lot more than just unicode decoding can go wrong when ↵ | Nick Coghlan | 2012-07-15 | 1 | -2102/+2121 |
| | | | | | | | | retrieving a source file | ||||
* | | Actually initialize __main__.__loader__ with loader instances, not the ↵ | Nick Coghlan | 2012-07-15 | 1 | -2/+6 |
| | | | | | | | | corresponding type objects | ||||
* | | Take the first step in resolving the messy pkgutil vs importlib edge cases ↵ | Nick Coghlan | 2012-07-15 | 1 | -7/+58 |
| | | | | | | | | by basing pkgutil explicitly on importlib, deprecating its internal import emulation and setting __main__.__loader__ correctly so that runpy still works (Affects #15343, #15314, #15357) | ||||
* | | Issues #15169, #14599: Make PyImport_ExecCodeModuleWithPathnames() use | Brett Cannon | 2012-07-13 | 2 | -3986/+3972 |
| | | | | | | | | | | | | | | | | | | | | | | | | Lib/imp.py for imp.source_from_cache() instead of its own C version. Also change PyImport_ExecCodeModuleObject() to not infer the source path from the bytecode path like PyImport_ExecCodeModuleWithPathnames() does. This makes the function less magical. This also has the side-effect of removing all uses of MAXPATHLEN in Python/import.c which can cause failures on really long filenames. | ||||
* | | Fix compilation under Windows | Antoine Pitrou | 2012-07-10 | 1 | -1/+2 |
| | | |||||
* | | Issue #15111: When a module was imported using a 'from import' | Brett Cannon | 2012-07-10 | 1 | -400/+397 |
| | | | | | | | | | | | | | | statement (e.g. ``from distutils import msvc9compiler``) that triggers an ImportError of its own (e.g. the non-existence of winreg), let that exception propagate instead of raising a generic ImportError for the module being requested (e.g. msvc9compiler). | ||||
* | | fix refleak | Benjamin Peterson | 2012-07-10 | 1 | -1/+3 |
| | | |||||
* | | initialize variable for compiler happiness | Benjamin Peterson | 2012-07-09 | 1 | -3/+2 |
| | | |||||
* | | Issue #15167 (as part of #13959): imp.get_magic() is no implemented in | Brett Cannon | 2012-07-09 | 2 | -3894/+3798 |
| | | | | | | | | Lib/imp.py. | ||||
* | | Issue #15242: Have PyImport_GetMagicTag() return a const char * | Brett Cannon | 2012-07-09 | 2 | -28/+22 |
| | | | | | | | | | | | | | | defined in sysmodule.c instead of straight out of a Unicode object. Thanks to Amaury Forgeot d'Arc for noticing the bug and Eric Snow for writing the patch. | ||||
* | | Issue #15056: imp.cache_from_source() and source_from_cache() raise | Brett Cannon | 2012-07-09 | 1 | -3759/+3784 |
| | | | | | | | | | | | | NotimplementedError when sys.implementation.cache_tag is None. Thanks to Pranav Ravichandran for taking an initial stab at the patch. | ||||
* | | Issue #15110: Also hide importlib frames when importing a builtin module fails. | Amaury Forgeot d'Arc | 2012-07-08 | 1 | -2701/+2716 |
| | | |||||
* | | add gc support to the AST base type (closes #15293) | Benjamin Peterson | 2012-07-08 | 1 | -4/+17 |
| | | |||||
* | | Issue #15291: Fix a memory leak where AST nodes where not properly deallocated. | Antoine Pitrou | 2012-07-08 | 1 | -0/+1 |
| | | |||||
* | | Issue #15110: Fix the tracebacks generated by "import xxx" to not show the ↵ | Antoine Pitrou | 2012-07-08 | 2 | -2460/+2603 |
| | | | | | | | | importlib stack frames. | ||||
* | | Check-in compiled importlib changes (you must run "make" after modifying the ↵ | Antoine Pitrou | 2012-07-07 | 1 | -3422/+3408 |
| | | | | | | | | importlib sources). | ||||
* | | Issue #15020: The program name used to search for Python's path is now ↵ | Antoine Pitrou | 2012-07-05 | 1 | -0/+4 |
|\ \ | |/ | | | | | python3 under Unix, not python. | ||||
| * | Issue #15020: The program name used to search for Python's path is now ↵ | Antoine Pitrou | 2012-07-05 | 1 | -0/+4 |
| | | | | | | | | "python3" under Unix, not "python". | ||||
* | | Issue #15166: Re-implement imp.get_tag() using sys.implementation. | Brett Cannon | 2012-07-02 | 2 | -193/+185 |
| | | | | | | | | | | | | | | Also eliminates some C code in Python/import.c as well. Patch by Eric Snow with verification by comparing against another patch from Jeff Knupp. | ||||
* | | Comment out a dead increment. | Brett Cannon | 2012-06-25 | 1 | -1/+1 |
| | | | | | | | | Found by Clang's static analyzer. | ||||
* | | Issue #15181: importlib bytecode is unsigned and shouldn't have negative ↵ | Antoine Pitrou | 2012-06-25 | 1 | -644/+644 |
| | | | | | | | | | | | | numbers. This fixes a compiler warning with suncc. | ||||
* | | Fixes issue 15039: namespace packages are no longer imported in preference ↵ | Eric V. Smith | 2012-06-24 | 1 | -954/+957 |
| | | | | | | | | to modules of the same name. | ||||
* | | Remove outdated statement | Antoine Pitrou | 2012-06-23 | 1 | -7/+1 |
| | | |||||
* | | A better repr() for FileFinder | Antoine Pitrou | 2012-06-23 | 1 | -1072/+1086 |
| | | |||||
* | | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵ | David Malcolm | 2012-06-22 | 2 | -1/+24 |
| | | | | | | | | allocation issues | ||||
* | | Issue #15042: Add PyState_AddModule and PyState_RemoveModule. | Martin v. Löwis | 2012-06-22 | 1 | -2/+43 |
| | | | | | | | | | | | | Add version guard for Py_LIMITED_API additions. Issue #15081: Document PyState_FindModule. Patch by Robin Schreiber. | ||||
* | | format_obj: make it static | doko@ubuntu.com | 2012-06-21 | 1 | -1/+1 |
| | | |||||
* | | Issue #14928: Fix importlib bootstrap issues by using a custom executable ↵ | Antoine Pitrou | 2012-06-19 | 3 | -681/+650 |
| | | | | | | | | (Modules/_freeze_importlib) to build Python/importlib.h. | ||||
* | | Issue #15038: Document caveats with the emulated condition variables. | Kristjan Valur Jonsson | 2012-06-19 | 1 | -0/+29 |
| | | |||||
* | | Issue #15103: remove the NUL character (serving as a Mercurial binary ↵ | Antoine Pitrou | 2012-06-19 | 2 | -9/+8 |
| | | | | | | | | | | | | marker) from Python/importlib.h. Instead the email notification hook uses a configuration option to omit importlib.h diffs. | ||||
* | | Issue #15038: | Kristjan Valur Jonsson | 2012-06-19 | 1 | -5/+13 |
| | | | | | | | | | | | | Fix incorrect test of the condition variable state, spotted by Richard Oudkerk. This could cause the internal condition variable to grow without bounds. |