Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #13959: Re-implement imp.source_from_cache() in Lib/imp.py. | Brett Cannon | 2012-04-21 | 4 | -3169/+3170 |
| | |||||
* | Issue #13959: Re-implement imp.cache_from_source() in Lib/imp.py. | Brett Cannon | 2012-04-21 | 4 | -2999/+2985 |
| | |||||
* | Make path manipulation more robust for platforms with alternative path | Brett Cannon | 2012-04-21 | 2 | -3030/+3074 |
| | | | | separators. | ||||
* | Issue #13959: Keep imp.get_magic() in C code, but cache in importlib | Brett Cannon | 2012-04-20 | 3 | -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 Cannon | 2012-04-20 | 1 | -1/+1 |
| | |||||
* | Merge | Brett Cannon | 2012-04-20 | 3 | -29/+52 |
|\ | |||||
| * | Issue #14630: Merge fix from 3.2. | Mark Dickinson | 2012-04-20 | 3 | -3/+18 |
| |\ | |||||
| | * | Issue #14630: Fix an incorrect access of ob_digit[0] for a zero instance of ↵ | Mark Dickinson | 2012-04-20 | 3 | -3/+18 |
| | | | | | | | | | | | | an int subclass. | ||||
| * | | Issue #14339: Improve speed of bin, oct and hex builtins. Patch by Serhiy ↵ | Mark Dickinson | 2012-04-20 | 2 | -26/+34 |
| | | | | | | | | | | | | Storchaka (with minor modifications). | ||||
* | | | Use a skipUnless decorator instead of conditional renaming. | Brett Cannon | 2012-04-20 | 1 | -3/+1 |
|/ / | |||||
* | | Issue #14628: Document the fact that import always returns the module | Brett Cannon | 2012-04-20 | 1 | -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 under | Brett Cannon | 2012-04-20 | 2 | -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 loading | Brett Cannon | 2012-04-20 | 2 | -2/+18 |
| | | | | | | | | extension modules. | ||||
* | | merge | Brett Cannon | 2012-04-20 | 1 | -0/+1 |
|\ \ | |||||
| * | | Defensive programming: mpd_isspecial(r) already implies mpd_isspecial(q), but | Stefan Krah | 2012-04-20 | 1 | -0/+1 |
| | | | | | | | | | | | | this is more readable. | ||||
* | | | Issue #14599: Generalize a test for ImportError.path and add support | Brett Cannon | 2012-04-20 | 4 | -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 Krah | 2012-04-20 | 1 | -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 Cannon | 2012-04-20 | 1 | -1/+4 |
| | | |||||
* | | Issue #14629: Mention the filename in SyntaxError exceptions from | Brett Cannon | 2012-04-20 | 3 | -3/+51 |
| | | | | | | | | tokenizer.detect_encoding() (when available). | ||||
* | | Issue #14633: Simplify imp.find_modue() test after fixes from issue | Brett Cannon | 2012-04-20 | 1 | -4/+2 |
| | | | | | | | | #14629 changed the message. | ||||
* | | Issue #14581: Windows users are allowed to import modules w/o taking | Brett Cannon | 2012-04-20 | 2 | -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 make | Brett Cannon | 2012-04-20 | 1 | -0/+1 |
| | | | | | | | | sure finders from importlib are used instead of _frozen_importlib. | ||||
* | | merge 3.2: issue 14629 | Martin v. Löwis | 2012-04-20 | 3 | -2/+18 |
|\ \ | |/ | |||||
| * | Issue #14629: Raise SyntaxError in tokenizer.detect_encoding | Martin v. Löwis | 2012-04-20 | 3 | -2/+18 |
| | | | | | | | | if the first two lines have non-UTF-8 characters without an encoding declaration. | ||||
* | | Close #14386: Register types.MappingProxyType as a Mapping | Victor Stinner | 2012-04-19 | 1 | -1/+3 |
| | | |||||
* | | Issue #14127: Add st_{cma}time_ns fields to os.stat() result object. | Larry Hastings | 2012-04-19 | 6 | -33/+96 |
| | | |||||
* | | Issue #14308: Fix an exception when a dummy thread is in the threading ↵ | Antoine Pitrou | 2012-04-19 | 3 | -0/+35 |
|\ \ | |/ | | | | | module's active list after a fork(). | ||||
| * | Issue #14308: Fix an exception when a "dummy" thread is in the threading ↵ | Antoine Pitrou | 2012-04-19 | 3 | -0/+35 |
| | | | | | | | | module's active list after a fork(). | ||||
* | | Fix refleak: PyObject_GetItem returns a new reference, not a borrowed one ↵ | Antoine Pitrou | 2012-04-19 | 1 | -3/+3 |
| | | | | | | | | like PyDict_GetItem. | ||||
* | | Issue #14098: New functions PyErr_GetExcInfo and PyErr_SetExcInfo. | Martin v. Löwis | 2012-04-19 | 6 | -0/+120 |
| | | | | | | | | Patch by Stefan Behnel. | ||||
* | | Merge from 3.2 | Nick Coghlan | 2012-04-19 | 3 | -1/+5 |
|\ \ | |/ | |||||
| * | Close #14032: fix incorrect variable reference in test_cmd_line_script | Nick Coghlan | 2012-04-19 | 3 | -1/+5 |
| | | |||||
* | | #14538: merge with 3.2. | Ezio Melotti | 2012-04-19 | 3 | -3/+16 |
|\ \ | |/ | |||||
| * | #14538: HTMLParser can now parse correctly start tags that contain a bare /. | Ezio Melotti | 2012-04-19 | 3 | -3/+16 |
| | | |||||
* | | Issue #14385: Support other types than dict for __builtins__ | Victor Stinner | 2012-04-18 | 4 | -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 Deily | 2012-04-18 | 1 | -7/+2 |
|\ \ | |/ | | | | | option. | ||||
| * | Remove webbrowser doc reference to the previously removed internet-config ↵ | Ned Deily | 2012-04-18 | 1 | -7/+2 |
| | | | | | | | | option. | ||||
* | | update importlib... | Benjamin Peterson | 2012-04-18 | 1 | -885/+891 |
| | | |||||
* | | don't bother keeping a set we'll never use | Benjamin Peterson | 2012-04-18 | 1 | -1/+2 |
| | | |||||
* | | Issue #11750: The Windows API functions scattered in the _subprocess and | Antoine Pitrou | 2012-04-18 | 15 | -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 Krah | 2012-04-18 | 1 | -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 Krah | 2012-04-18 | 1 | -6/+35 |
| | | |||||
* | | Cosmetic change: initialize digits to 1 (redundant). | Stefan Krah | 2012-04-18 | 1 | -1/+1 |
| | | |||||
* | | Remove redundant finalization of the result. | Stefan Krah | 2012-04-18 | 1 | -2/+0 |
| | | |||||
* | | Fix comments and whitespace. | Stefan Krah | 2012-04-18 | 1 | -8/+8 |
| | | |||||
* | | Support mythical ones' complement machines. | Stefan Krah | 2012-04-18 | 1 | -1/+1 |
| | | |||||
* | | The previous code is correct, but hard to verify: The libmpdec documentation | Stefan Krah | 2012-04-18 | 1 | -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.2 | Benjamin Peterson | 2012-04-18 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | improve | Benjamin Peterson | 2012-04-18 | 1 | -1/+1 |
| | | |||||
* | | merge 3.2 (#14612) | Benjamin Peterson | 2012-04-18 | 3 | -2/+17 |
|\ \ | |/ |