summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Issue #13959: Re-implement imp.source_from_cache() in Lib/imp.py.Brett Cannon2012-04-214-3169/+3170
|
* Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py.Brett Cannon2012-04-214-2999/+2985
|
* Make path manipulation more robust for platforms with alternative pathBrett Cannon2012-04-212-3030/+3074
| | | | separators.
* Issue #13959: Keep imp.get_magic() in C code, but cache in importlibBrett Cannon2012-04-203-1503/+1514
| | | | | | 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.
* Fix a cleanup.Brett Cannon2012-04-201-1/+1
|
* MergeBrett Cannon2012-04-203-29/+52
|\
| * Issue #14630: Merge fix from 3.2.Mark Dickinson2012-04-203-3/+18
| |\
| | * Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of ↵Mark Dickinson2012-04-203-3/+18
| | | | | | | | | | | | an int subclass.
| * | Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy ↵Mark Dickinson2012-04-202-26/+34
| | | | | | | | | | | | Storchaka (with minor modifications).
* | | Use a skipUnless decorator instead of conditional renaming.Brett Cannon2012-04-201-3/+1
|/ /
* | Issue #14628: Document the fact that import always returns the moduleBrett Cannon2012-04-201-1/+2
| | | | | | | | | | as found in sys.modules and not as what the loader returns (even though it is required to by PEP 302).
* | Issue #14585: test_import now runs all tests underBrett Cannon2012-04-202-15/+35
| | | | | | | | | | importlib.test.import_ using builtins.__import__() instead of just the relative import tests.
* | Issue #14599: Support ImportError.path on AIX and HPUX when loadingBrett Cannon2012-04-202-2/+18
| | | | | | | | extension modules.
* | mergeBrett Cannon2012-04-201-0/+1
|\ \
| * | Defensive programming: mpd_isspecial(r) already implies mpd_isspecial(q), butStefan Krah2012-04-201-0/+1
| | | | | | | | | | | | this is more readable.
* | | Issue #14599: Generalize a test for ImportError.path and add supportBrett Cannon2012-04-204-27/+26
|/ / | | | | | | | | | | | | 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.
* | The divmod function for large numbers now has an ACL2 proof. Related changes:Stefan Krah2012-04-201-45/+140
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Rename _mpd_qbarrett_divmod into _mpd_base_ndivmod: The function is only marginally related to either Barrett's algorithm or to the version in Hasselstrom's paper. 2) In places where the proof assumes exact operations, use new versions of add/sub/multiply that set NaN/Invalid_operation if this condition is not met. According to the proof this cannot happen, so this should be regarded as an extra safety net. 3) Raise Division_impossible for operands with a number of digits greater than MPD_MAX_PREC. This facilitates the audit of the function and can practically only occur in the 32-bit version under conditions where a MemoryError is already imminent. 4) Use _mpd_qmul() in places where the result can exceed MPD_MAX_PREC in a well defined manner. 5) Test for mpd_isspecial(qq) in a place where the addition of one can theoretically trigger a Malloc_error. 6) Remove redundant code in _mpd_qdivmod(). 7) Add many comments.
* | Try to debug a Windows failure on the buildbots.Brett Cannon2012-04-201-1/+4
| |
* | Issue #14629: Mention the filename in SyntaxError exceptions fromBrett Cannon2012-04-203-3/+51
| | | | | | | | tokenizer.detect_encoding() (when available).
* | Issue #14633: Simplify imp.find_modue() test after fixes from issueBrett Cannon2012-04-201-4/+2
| | | | | | | | #14629 changed the message.
* | Issue #14581: Windows users are allowed to import modules w/o takingBrett Cannon2012-04-202-899/+933
| | | | | | | | | | the file suffix's case into account, even when doing a case-sensitive import.
* | Have importlib.test.regrtest clear sys.path_importer_cache to makeBrett Cannon2012-04-201-0/+1
| | | | | | | | sure finders from importlib are used instead of _frozen_importlib.
* | merge 3.2: issue 14629Martin v. Löwis2012-04-203-2/+18
|\ \ | |/
| * Issue #14629: Raise SyntaxError in tokenizer.detect_encodingMartin v. Löwis2012-04-203-2/+18
| | | | | | | | if the first two lines have non-UTF-8 characters without an encoding declaration.
* | Close #14386: Register types.MappingProxyType as a MappingVictor Stinner2012-04-191-1/+3
| |
* | Issue #14127: Add st_{cma}time_ns fields to os.stat() result object.Larry Hastings2012-04-196-33/+96
| |
* | Issue #14308: Fix an exception when a dummy thread is in the threading ↵Antoine Pitrou2012-04-193-0/+35
|\ \ | |/ | | | | module's active list after a fork().
| * Issue #14308: Fix an exception when a "dummy" thread is in the threading ↵Antoine Pitrou2012-04-193-0/+35
| | | | | | | | module's active list after a fork().
* | 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-196-0/+120
| | | | | | | | Patch by Stefan Behnel.
* | Merge from 3.2Nick Coghlan2012-04-193-1/+5
|\ \ | |/
| * Close #14032: fix incorrect variable reference in test_cmd_line_scriptNick Coghlan2012-04-193-1/+5
| |
* | #14538: merge with 3.2.Ezio Melotti2012-04-193-3/+16
|\ \ | |/
| * #14538: HTMLParser can now parse correctly start tags that contain a bare /.Ezio Melotti2012-04-193-3/+16
| |
* | Issue #14385: Support other types than dict for __builtins__Victor Stinner2012-04-184-52/+134
| | | | | | | | | | | | 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__.
* | Remove webbrowser doc reference to the previously removed internet-config ↵Ned Deily2012-04-181-7/+2
|\ \ | |/ | | | | option.
| * Remove webbrowser doc reference to the previously removed internet-config ↵Ned Deily2012-04-181-7/+2
| | | | | | | | option.
* | update importlib...Benjamin Peterson2012-04-181-885/+891
| |
* | don't bother keeping a set we'll never useBenjamin Peterson2012-04-181-1/+2
| |
* | Issue #11750: The Windows API functions scattered in the _subprocess andAntoine Pitrou2012-04-1815-1665/+1562
| | | | | | | | | | _multiprocessing.win32 modules now live in a single module "_winapi". Patch by sbt.
* | 1) Simplify comment -- one has to read the complete proof (available in ACL2)Stefan Krah2012-04-181-7/+6
| | | | | | | | | | | | | | | | in order to understand the algorithm anyway. 2) v->exp == -v->digits may be assumed. 3) Fix comment (v always shares data with a).
* | Explain the strategy to avoid huge alignment shifts in _mpd_qadd() in detail.Stefan Krah2012-04-181-6/+35
| |
* | Cosmetic change: initialize digits to 1 (redundant).Stefan Krah2012-04-181-1/+1
| |
* | Remove redundant finalization of the result.Stefan Krah2012-04-181-2/+0
| |
* | Fix comments and whitespace.Stefan Krah2012-04-181-8/+8
| |
* | Support mythical ones' complement machines.Stefan Krah2012-04-181-1/+1
| |
* | The previous code is correct, but hard to verify: The libmpdec documentationStefan Krah2012-04-181-1/+2
| | | | | | | | | | | | | | | | | | | | | | rightfully states that an mpd_t with a coefficient flagged as MPD_CONST_DATA must not be in the position of the result operand. In this particular case several assumptions guarantee that a resize will never occur in all possible code paths, which was the reason for using MPD_CONST_DATA and saving an instruction by omitting the initialization of tmp.alloc. For readability, tmp is now flagged as MPD_STATIC_DATA and tmp.alloc is initialized.
* | merge 3.2Benjamin Peterson2012-04-181-1/+1
|\ \ | |/
| * improveBenjamin Peterson2012-04-181-1/+1
| |
* | merge 3.2 (#14612)Benjamin Peterson2012-04-183-2/+17
|\ \ | |/