summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #15365: Make traceback reporting ignore any errors when printing outKristján Valur Jónsson2012-07-191-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 variableBenjamin Peterson2012-07-181-1/+1
|
* Issue #15368: fixing variable typo.Meador Inge2012-07-181-1/+1
|\
| * Issue #15368: fixing variable typo.Meador Inge2012-07-181-1/+1
| |
* | Issue #15368: make bytecode generation deterministic.Meador Inge2012-07-181-2/+22
|\ \ | |/
| * Issue #15368: make bytecode generation deterministic.Meador Inge2012-07-181-2/+22
| |
* | Refcounting fixesNick Coghlan2012-07-151-3/+7
| |
* | Make set_main_loader static (noticed by Antoine Pitrou)Nick Coghlan2012-07-151-1/+1
| |
* | Issue #15343: A lot more than just unicode decoding can go wrong when ↵Nick Coghlan2012-07-151-2102/+2121
| | | | | | | | retrieving a source file
* | Actually initialize __main__.__loader__ with loader instances, not the ↵Nick Coghlan2012-07-151-2/+6
| | | | | | | | corresponding type objects
* | Take the first step in resolving the messy pkgutil vs importlib edge cases ↵Nick Coghlan2012-07-151-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() useBrett Cannon2012-07-132-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 WindowsAntoine Pitrou2012-07-101-1/+2
| |
* | Issue #15111: When a module was imported using a 'from import'Brett Cannon2012-07-101-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 refleakBenjamin Peterson2012-07-101-1/+3
| |
* | initialize variable for compiler happinessBenjamin Peterson2012-07-091-3/+2
| |
* | Issue #15167 (as part of #13959): imp.get_magic() is no implemented inBrett Cannon2012-07-092-3894/+3798
| | | | | | | | Lib/imp.py.
* | Issue #15242: Have PyImport_GetMagicTag() return a const char *Brett Cannon2012-07-092-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() raiseBrett Cannon2012-07-091-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'Arc2012-07-081-2701/+2716
| |
* | add gc support to the AST base type (closes #15293)Benjamin Peterson2012-07-081-4/+17
| |
* | Issue #15291: Fix a memory leak where AST nodes where not properly deallocated.Antoine Pitrou2012-07-081-0/+1
| |
* | Issue #15110: Fix the tracebacks generated by "import xxx" to not show the ↵Antoine Pitrou2012-07-082-2460/+2603
| | | | | | | | importlib stack frames.
* | Check-in compiled importlib changes (you must run "make" after modifying the ↵Antoine Pitrou2012-07-071-3422/+3408
| | | | | | | | importlib sources).
* | Issue #15020: The program name used to search for Python's path is now ↵Antoine Pitrou2012-07-051-0/+4
|\ \ | |/ | | | | python3 under Unix, not python.
| * Issue #15020: The program name used to search for Python's path is now ↵Antoine Pitrou2012-07-051-0/+4
| | | | | | | | "python3" under Unix, not "python".
* | Issue #15166: Re-implement imp.get_tag() using sys.implementation.Brett Cannon2012-07-022-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 Cannon2012-06-251-1/+1
| | | | | | | | Found by Clang's static analyzer.
* | Issue #15181: importlib bytecode is unsigned and shouldn't have negative ↵Antoine Pitrou2012-06-251-644/+644
| | | | | | | | | | | | numbers. This fixes a compiler warning with suncc.
* | Fixes issue 15039: namespace packages are no longer imported in preference ↵Eric V. Smith2012-06-241-954/+957
| | | | | | | | to modules of the same name.
* | Remove outdated statementAntoine Pitrou2012-06-231-7/+1
| |
* | A better repr() for FileFinderAntoine Pitrou2012-06-231-1072/+1086
| |
* | Issue #14785: Add sys._debugmallocstats() to help debug low-level memory ↵David Malcolm2012-06-222-1/+24
| | | | | | | | allocation issues
* | Issue #15042: Add PyState_AddModule and PyState_RemoveModule.Martin v. Löwis2012-06-221-2/+43
| | | | | | | | | | | | Add version guard for Py_LIMITED_API additions. Issue #15081: Document PyState_FindModule. Patch by Robin Schreiber.
* | format_obj: make it staticdoko@ubuntu.com2012-06-211-1/+1
| |
* | Issue #14928: Fix importlib bootstrap issues by using a custom executable ↵Antoine Pitrou2012-06-193-681/+650
| | | | | | | | (Modules/_freeze_importlib) to build Python/importlib.h.
* | Issue #15038: Document caveats with the emulated condition variables.Kristjan Valur Jonsson2012-06-191-0/+29
| |
* | Issue #15103: remove the NUL character (serving as a Mercurial binary ↵Antoine Pitrou2012-06-192-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 Jonsson2012-06-191-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.
* | Issue #15038: Optimize python Locks on WindowsKristján Valur Jónsson2012-06-183-191/+484
| | | | | | | | | | Extract cross-platform condition variable support into a separate file and provide user-mode non-recursive locks for Windows.
* | Issue #13783: the PEP 380 implementation no longer expands the public C APINick Coghlan2012-06-171-1/+1
| |
* | Try to fix issue #15086: build failure on Ubuntu shared buildbot.Antoine Pitrou2012-06-161-2323/+2328
| |
* | get_sourcefile(): use PyUnicode_READ() to avoid the creation of a temporaryVictor Stinner2012-06-161-12/+11
| | | | | | | | Py_UCS4 buffer
* | Optimize _PyUnicode_FastCopyCharacters() when maxchar(from) > maxchar(to)Victor Stinner2012-06-161-2/+4
| |
* | MergeBrett Cannon2012-06-151-7/+4
|\ \
| * | PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() resultVictor Stinner2012-06-121-7/+4
| | | | | | | | | | | | | | | | | | | | | | | | Fix also its value on Windows and Linux according to its documentation: "adjustable" indicates if the clock *can be* adjusted, not if it is or was adjusted. In most cases, it is not possible to indicate if a clock is or was adjusted.
* | | Update importlib.h by touching Lib/importlib/_bootstrap.py.Brett Cannon2012-06-111-1850/+1850
|/ /
* | Signal condition variables with the mutex held. Destroy condition variablesKristján Valur Jónsson2012-06-052-10/+14
| | | | | | | | before their mutexes.
* | Eric Snow's implementation of PEP 421.Barry Warsaw2012-06-031-2/+70
| | | | | | | | Issue 14673: Add sys.implementation
* | merge 3.2Benjamin Peterson2012-06-021-4/+2
|\ \ | |/