summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* 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
|\ \ | |/
| * don't leak if the __class__ closure is setBenjamin Peterson2012-06-021-4/+2
| |
| * Issue #14761: Fix potential leak on an error case in the import machinery.Antoine Pitrou2012-05-091-1/+2
| |
* | check return for errorBenjamin Peterson2012-06-011-0/+2
| |
* | Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args ↵Victor Stinner2012-05-291-194/+218
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and str.format(args) * Formatting string, int, float and complex use the _PyUnicodeWriter API. It avoids a temporary buffer in most cases. * Add _PyUnicodeWriter_WriteStr() to restore the PyAccu optimization: just keep a reference to the string if the output is only composed of one string * Disable overallocation when formatting the last argument of str%args and str.format(args) * Overallocation allocates at least 100 characters: add min_length attribute to the _PyUnicodeWriter structure * Add new private functions: _PyUnicode_FastCopyCharacters(), _PyUnicode_FastFill() and _PyUnicode_FromASCII() The speed up is around 20% in average.
* | PyArg_Parse*("U"): ensure that the Unicode string is readyVictor Stinner2012-05-291-1/+4
| |
* | Close #14857: fix regression in references to PEP 3135 implicit __class__ ↵Nick Coghlan2012-05-273-13/+11
| | | | | | | | closure variable. Reopens issue #12370, but also updates unittest.mock to workaround that issue
* | Tweak importlib._bootstrap to avoid zero-argument super so I can work on ↵Nick Coghlan2012-05-271-1857/+1859
| | | | | | | | issue #14857 without breaking imports
* | Remove some redundant decorators.Brett Cannon2012-05-261-1305/+1302
| |
* | Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-261-0/+4
| |
* | issue 14660: Implement PEP 420, namespace packages.Eric V. Smith2012-05-251-3303/+3694
| |
* | Issue #9260: A finer-grained import lock.Antoine Pitrou2012-05-172-2975/+3389
| | | | | | | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports.
* | Avoid "warning: no newline at end of file" in importlib.h.Antoine Pitrou2012-05-162-1/+3
| |
* | use Py_ssize_t for ast sequence lengthsBenjamin Peterson2012-05-151-2/+2
| |
* | Document f4d7ad6c9d6e.Martin v. Löwis2012-05-151-2/+2
| |
* | Widen ASDL sequences to Py_ssize_t lengths to better match PEP 353.Martin v. Löwis2012-05-152-4/+4
| |
* | apparently importlib.h wants to be updatedBenjamin Peterson2012-05-151-7/+7
| |
* | PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson2012-05-152-15/+15
| | | | | | | | | | | | attribute This replaces the original PEP 409 implementation. See #14133.
* | Fix #13210. Port the Windows build from VS2008 to VS2010.Brian Curtin2012-05-131-0/+8
| |
* | Issue #13959: HaveBrett Cannon2012-05-111-2311/+2332
| | | | | | | | | | | | | | | | | | | | importlib.abc.FileLoader.load_module()/get_filename() and importlib.machinery.ExtensionFileLoader.load_module() have their single argument be optional as the loader's constructor has all the ncessary information. This allows for the deprecation of imp.load_source()/load_compile()/load_package().
* | Update importlib.hBrett Cannon2012-05-111-2852/+2853
| |
* | Issue #14746: Remove redundant paragraphs from skipitem() in Python/getargs.c.Larry Hastings2012-05-091-18/+8
| |
* | Merge from 3.2. Issue #14749: Add support for 'Z' to skipitem().Larry Hastings2012-05-081-0/+1
|\ \ | |/
| * Issue #14749: Add support for 'Z' to skipitem() in Python/getargs.c.Larry Hastings2012-05-081-0/+1
| |
* | Issue #14583: Fix importlib bug when a package's __init__.py would first ↵Antoine Pitrou2012-05-072-306/+309
| | | | | | | | import one of its modules then raise an error.