summaryrefslogtreecommitdiffstats
path: root/Python
Commit message (Collapse)AuthorAgeFilesLines
* Issue #14127: Add ns= parameter to utime, futimes, and lutimes.Larry Hastings2012-05-031-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 fieldsBenjamin Peterson2012-05-011-9/+9
|
* Issues #13959, 14647: Re-implement imp.reload() in Lib/imp.py.Brett Cannon2012-04-293-103/+12
| | | | Thanks to Eric Snow for the patch.
* Issue #13959: Re-implement imp.NullImporter in Lib/imp.py.Brett Cannon2012-04-291-139/+2
|
* Issue #14521: Make result of float('nan') and float('-nan') more consistent ↵Mark Dickinson2012-04-292-5/+84
| | | | across platforms. Further, don't rely on Py_HUGE_VAL for float('inf').
* Issue #14428, #14397: Implement the PEP 418Victor Stinner2012-04-291-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 Cannon2012-04-271-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 Cannon2012-04-271-1104/+1097
|
* Issue #14605: Use None in sys.path_importer_cache to represent noBrett Cannon2012-04-272-1105/+1066
| | | | finder instead of using some (now non-existent) implicit finder.
* Issue #14605: Stop having implicit entries for sys.meta_path.Brett Cannon2012-04-271-2961/+2967
| | | | ImportWarning is raised if sys.meta_path is found to be empty.
* Check newly created consistency using _PyUnicode_CheckConsistency(str, 1)Victor Stinner2012-04-273-4/+8
| | | | | | * In debug mode, fill the string data with invalid characters * Simplify also reference counting in PyCodec_BackslashReplaceErrors() and PyCodec_XMLCharRefReplaceError()
* merge headsBenjamin Peterson2012-04-263-3062/+2986
|\
| * Issue #14605: Make explicit the entries on sys.path_hooks that used toBrett Cannon2012-04-262-3060/+2984
| | | | | | | | | | | | | | | | | | | | | | | | be implicit. Added a warning for when sys.path_hooks is found to be empty. Also changed the meaning of None in sys.path_importer_cache to represent trying sys.path_hooks again (an interpretation of previous semantics). Also added a warning for when None was found. The long-term goal is for None in sys.path_importer_cache to represent the same as imp.NullImporter: no finder found for that sys.path entry.
| * Update importlib.hBrett Cannon2012-04-261-7/+7
| |
| * MergeBrett Cannon2012-04-261-113/+113
| |\
| * | Issue #14605: Insert to the front of sys.path_hooks instead of appending.Brett Cannon2012-04-251-2/+2
| | |
* | | only incref when using borrowing functionsBenjamin Peterson2012-04-261-1/+1
| |/ |/|
* | Issue #14605 and #14642:Marc-Andre Lemburg2012-04-251-113/+113
|/ | | | | | Issue a warning in case Python\importlib.h needs to be rebuilt, but there's no Python interpreter around to freeze the bootstrap script.
* Issue #14605: Rename _SourcelessFileLoader to SourcelessFileLoader.Marc-Andre Lemburg2012-04-251-1421/+1421
| | | | | This time also recreating the Python/importlib.h file to make make happy. See the ticket for details.
* Close #14648: Compute correctly maxchar in str.format() for substrinVictor Stinner2012-04-231-4/+2
|
* Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-231-57/+18
| | | | Patch from Mark Shannon.
* inherit maxchar of field value where needed (closes #14648)Benjamin Peterson2012-04-231-0/+3
|
* Issue #14605: Expose importlib.abc.FileLoader andBrett Cannon2012-04-221-2971/+2904
| | | | | | | | importlib.machinery.(FileFinder, SourceFileLoader, _SourcelessFileLoader, ExtensionFileLoader). This exposes all of importlib's mechanisms that will become public on the sys module.
* Issue #13959: Continue to try to accomodate altsep in importlib by notBrett Cannon2012-04-221-2966/+2977
| | | | ignoring altsep if it already exists on a path when doing a join.
* Revert to os.path.join() semantics for path manipulation in importlibBrett Cannon2012-04-221-2974/+2964
| | | | which is different than what imp.cache_from_source() operates on.
* Update importlib.hBrett Cannon2012-04-221-2967/+2967
|
* Have importlib look for pre-existing path separators when joiningBrett Cannon2012-04-221-2977/+2981
| | | | paths.
* Issue #13959: Re-implement imp.find_module() in Lib/imp.py.Brett Cannon2012-04-221-751/+0
| | | | Thanks to Eric Snow for taking an initial stab at the implementation.
* Don't worry about moving imp.get_tag() over to Lib/imp.py.Brett Cannon2012-04-211-3061/+3064
|
* Issue #13959: Re-implement imp.source_from_cache() in Lib/imp.py.Brett Cannon2012-04-212-3167/+3140
|
* Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py.Brett Cannon2012-04-212-2991/+2955
|
* Make path manipulation more robust for platforms with alternative pathBrett Cannon2012-04-211-3014/+3047
| | | | separators.
* Issue #13959: Keep imp.get_magic() in C code, but cache in importlibBrett Cannon2012-04-201-1498/+1503
| | | | | | for performance. While get_magic() could move to Lib/imp.py, having to support PyImport_GetMagicNumber() would lead to equal, if not more, C code than sticking with the status quo.
* Issue #14599: Support ImportError.path on AIX and HPUX when loadingBrett Cannon2012-04-202-2/+18
| | | | extension modules.
* Issue #14599: Generalize a test for ImportError.path and add supportBrett Cannon2012-04-202-5/+15
| | | | | | | in Python/dynload_shlibs.c. This should fix the remaining importlib test failure on Windows. Support in AIX and HP-UX will be in a separate checkin.
* Issue #14581: Windows users are allowed to import modules w/o takingBrett Cannon2012-04-201-898/+916
| | | | | the file suffix's case into account, even when doing a case-sensitive import.
* Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.Larry Hastings2012-04-191-0/+11
|
* Fix refleak: PyObject_GetItem returns a new reference, not a borrowed one ↵Antoine Pitrou2012-04-191-3/+3
| | | | like PyDict_GetItem.
* Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo.Martin v. Löwis2012-04-191-0/+33
| | | | Patch by Stefan Behnel.
* Issue #14385: Support other types than dict for __builtins__Victor Stinner2012-04-181-48/+94
| | | | | | It is now possible to use a custom type for the __builtins__ namespace, instead of a dict. It can be used for sandboxing for example. Raise also a NameError instead of ImportError if __build_class__ name if not found in __builtins__.
* update importlib...Benjamin Peterson2012-04-181-885/+891
|
* Merge headsAntoine Pitrou2012-04-182-480/+469
|\
| * rollback 005fd1fe31ab (see #14609 and #14582)Benjamin Peterson2012-04-182-480/+469
| | | | | | | | | | Being able to overload a sys.module entry during import of a module was broken by this changeset.
* | Fix it for good :-)Antoine Pitrou2012-04-181-3/+1
|/
* fix refcnt/style/debuging oversightsBenjamin Peterson2012-04-181-5/+7
|
* Fix email post-commit review comments.Brian Curtin2012-04-181-8/+11
| | | | | | Add INCREFs, fix args->kwargs, and a second args==NULL check was removed, left over from a merger with another function. Instead, checking msg==NULL does what that used to do in a roundabout way.
* MergeBrett Cannon2012-04-181-1/+5
|\
| * merge 3.2 (#14607)Benjamin Peterson2012-04-171-1/+5
| |\
| | * mangle keyword-only argname when loading defaults (closes #14607)Benjamin Peterson2012-04-171-1/+5
| | |
* | | Issue #12599: Be more strict in accepting None vs. a false-like objectBrett Cannon2012-04-181-1201/+1202
|/ / | | | | | | | | | | | | in importlib. Thanks to PJE for pointing out the issue and Nick Coghlan for filing the bug.