Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | PEP 418: Rename adjusted attribute to adjustable in time.get_clock_info() result | Victor Stinner | 2012-06-12 | 1 | -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. | ||||
* | Signal condition variables with the mutex held. Destroy condition variables | Kristján Valur Jónsson | 2012-06-05 | 2 | -10/+14 |
| | | | | before their mutexes. | ||||
* | Eric Snow's implementation of PEP 421. | Barry Warsaw | 2012-06-03 | 1 | -2/+70 |
| | | | | Issue 14673: Add sys.implementation | ||||
* | merge 3.2 | Benjamin Peterson | 2012-06-02 | 1 | -4/+2 |
|\ | |||||
| * | don't leak if the __class__ closure is set | Benjamin Peterson | 2012-06-02 | 1 | -4/+2 |
| | | |||||
| * | Issue #14761: Fix potential leak on an error case in the import machinery. | Antoine Pitrou | 2012-05-09 | 1 | -1/+2 |
| | | |||||
* | | check return for error | Benjamin Peterson | 2012-06-01 | 1 | -0/+2 |
| | | |||||
* | | Issue #14744: Use the new _PyUnicodeWriter internal API to speed up str%args ↵ | Victor Stinner | 2012-05-29 | 1 | -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 ready | Victor Stinner | 2012-05-29 | 1 | -1/+4 |
| | | |||||
* | | Close #14857: fix regression in references to PEP 3135 implicit __class__ ↵ | Nick Coghlan | 2012-05-27 | 3 | -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 Coghlan | 2012-05-27 | 1 | -1857/+1859 |
| | | | | | | | | issue #14857 without breaking imports | ||||
* | | Remove some redundant decorators. | Brett Cannon | 2012-05-26 | 1 | -1305/+1302 |
| | | |||||
* | | Implemented PEP 405 (Python virtual environments). | Vinay Sajip | 2012-05-26 | 1 | -0/+4 |
| | | |||||
* | | issue 14660: Implement PEP 420, namespace packages. | Eric V. Smith | 2012-05-25 | 1 | -3303/+3694 |
| | | |||||
* | | Issue #9260: A finer-grained import lock. | Antoine Pitrou | 2012-05-17 | 2 | -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 Pitrou | 2012-05-16 | 2 | -1/+3 |
| | | |||||
* | | use Py_ssize_t for ast sequence lengths | Benjamin Peterson | 2012-05-15 | 1 | -2/+2 |
| | | |||||
* | | Document f4d7ad6c9d6e. | Martin v. Löwis | 2012-05-15 | 1 | -2/+2 |
| | | |||||
* | | Widen ASDL sequences to Py_ssize_t lengths to better match PEP 353. | Martin v. Löwis | 2012-05-15 | 2 | -4/+4 |
| | | |||||
* | | apparently importlib.h wants to be updated | Benjamin Peterson | 2012-05-15 | 1 | -7/+7 |
| | | |||||
* | | PEP 415: Implement suppression of __context__ display with an exception ↵ | Benjamin Peterson | 2012-05-15 | 2 | -15/+15 |
| | | | | | | | | | | | | attribute This replaces the original PEP 409 implementation. See #14133. | ||||
* | | Fix #13210. Port the Windows build from VS2008 to VS2010. | Brian Curtin | 2012-05-13 | 1 | -0/+8 |
| | | |||||
* | | Issue #13959: Have | Brett Cannon | 2012-05-11 | 1 | -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.h | Brett Cannon | 2012-05-11 | 1 | -2852/+2853 |
| | | |||||
* | | Issue #14746: Remove redundant paragraphs from skipitem() in Python/getargs.c. | Larry Hastings | 2012-05-09 | 1 | -18/+8 |
| | | |||||
* | | Merge from 3.2. Issue #14749: Add support for 'Z' to skipitem(). | Larry Hastings | 2012-05-08 | 1 | -0/+1 |
|\ \ | |/ | |||||
| * | Issue #14749: Add support for 'Z' to skipitem() in Python/getargs.c. | Larry Hastings | 2012-05-08 | 1 | -0/+1 |
| | | |||||
* | | Issue #14583: Fix importlib bug when a package's __init__.py would first ↵ | Antoine Pitrou | 2012-05-07 | 2 | -306/+309 |
| | | | | | | | | import one of its modules then raise an error. | ||||
* | | Issue #14705: Added support for the new 'p' format unit to skipitem(). | Larry Hastings | 2012-05-07 | 1 | -0/+1 |
| | | |||||
* | | Fix too early decrefs. | Antoine Pitrou | 2012-05-06 | 1 | -2/+2 |
| | | |||||
* | | Issue #14705: Add 'p' format character to PyArg_ParseTuple* for bool support. | Larry Hastings | 2012-05-05 | 1 | -0/+12 |
| | | |||||
* | | Fix typo in changeset eb5c5c23ca9b. | Nadeem Vawda | 2012-05-05 | 1 | -1/+1 |
| | | |||||
* | | Clean up a docstring. | Brett Cannon | 2012-05-04 | 1 | -122/+112 |
| | | |||||
* | | Simplify code for load_dynamic() | Antoine Pitrou | 2012-05-04 | 1 | -43/+3 |
| | | |||||
* | | Issue #13959: Move module type constants to Lib/imp.py. | Brett Cannon | 2012-05-04 | 2 | -37/+0 |
| | | |||||
* | | Remove dead Windows code which no longer will compile. | Brett Cannon | 2012-05-04 | 1 | -6/+0 |
| | | |||||
* | | update importlib.h | Brett Cannon | 2012-05-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #13959: Re-implement imp.get_suffixes() in Lib/imp.py. | Brett Cannon | 2012-05-04 | 11 | -3067/+2898 |
| | | | | | | | | | | | | This introduces a new function, imp.extension_suffixes(), which is currently undocumented. That is forthcoming once issue #14657 is resolved and how to expose file suffixes is decided. | ||||
* | | Issue #14127: Add ns= parameter to utime, futimes, and lutimes. | Larry Hastings | 2012-05-03 | 1 | -1/+1 |
| | | | | | | | | | | | | Removed futimens as it is now redundant. Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat and ns= parameter to utime--it once again preserves exact metadata on Linux! | ||||
* | | strip is_ prefixes on clock_info fields | Benjamin Peterson | 2012-05-01 | 1 | -9/+9 |
| | | |||||
* | | Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py. | Brett Cannon | 2012-04-29 | 3 | -103/+12 |
| | | | | | | | | Thanks to Eric Snow for the patch. | ||||
* | | Issue #13959: Re-implement imp.NullImporter in Lib/imp.py. | Brett Cannon | 2012-04-29 | 1 | -139/+2 |
| | | |||||
* | | Issue #14521: Make result of float('nan') and float('-nan') more consistent ↵ | Mark Dickinson | 2012-04-29 | 2 | -5/+84 |
| | | | | | | | | across platforms. Further, don't rely on Py_HUGE_VAL for float('inf'). | ||||
* | | Issue #14428, #14397: Implement the PEP 418 | Victor Stinner | 2012-04-29 | 1 | -8/+54 |
| | | | | | | | | | | | | | | | | | | * Rename time.steady() to time.monotonic() * On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of QueryPerformanceCounter() * time.monotonic() uses CLOCK_HIGHRES if available * Add time.get_clock_info(), time.perf_counter() and time.process_time() functions | ||||
* | | Issue #14646: __import__() now sets __loader__ if need be. | Brett Cannon | 2012-04-27 | 1 | -2398/+2435 |
| | | | | | | | | | | | | importlib.util.module_for_loader also will set __loader__ along with __package__. This is in conjunction to a forthcoming update to PEP 302 which will make these two attributes required for loaders to set. | ||||
* | | Issue #14605: Don't error out if get_importer() returns None. | Brett Cannon | 2012-04-27 | 1 | -1104/+1097 |
| | | |||||
* | | Issue #14605: Use None in sys.path_importer_cache to represent no | Brett Cannon | 2012-04-27 | 2 | -1105/+1066 |
| | | | | | | | | finder instead of using some (now non-existent) implicit finder. | ||||
* | | Issue #14605: Stop having implicit entries for sys.meta_path. | Brett Cannon | 2012-04-27 | 1 | -2961/+2967 |
| | | | | | | | | ImportWarning is raised if sys.meta_path is found to be empty. | ||||
* | | Check newly created consistency using _PyUnicode_CheckConsistency(str, 1) | Victor Stinner | 2012-04-27 | 3 | -4/+8 |
| | | | | | | | | | | | | * In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError() | ||||
* | | merge heads | Benjamin Peterson | 2012-04-26 | 3 | -3062/+2986 |
|\ \ |