Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Implement PEP 412: Key-sharing dictionaries (closes #13903) | Benjamin Peterson | 2012-04-23 | 12 | -909/+1358 |
| | | | | Patch from Mark Shannon. | ||||
* | inherit maxchar of field value where needed (closes #14648) | Benjamin Peterson | 2012-04-23 | 2 | -0/+5 |
| | |||||
* | merge 3.2 | Benjamin Peterson | 2012-04-23 | 1 | -1/+1 |
|\ | |||||
| * | sleep here | Benjamin Peterson | 2012-04-23 | 1 | -1/+1 |
| | | |||||
* | | Issue #14605: Expose importlib.abc.FileLoader and | Brett Cannon | 2012-04-22 | 17 | -3062/+3232 |
| | | | | | | | | | | | | | | | | importlib.machinery.(FileFinder, SourceFileLoader, _SourcelessFileLoader, ExtensionFileLoader). This exposes all of importlib's mechanisms that will become public on the sys module. | ||||
* | | merge | Brett Cannon | 2012-04-22 | 2 | -2/+2 |
|\ \ | |||||
| * | | Issue #14644: Increased default timeout for SMTPHandler. Note: last commit ↵ | Vinay Sajip | 2012-04-22 | 1 | -1/+1 |
| | | | | | | | | | | | | message referred to the wrong issue number. | ||||
| * | | Issue #14622: Increased default timeout for SMTPHandler. | Vinay Sajip | 2012-04-22 | 1 | -1/+1 |
| | | | |||||
* | | | Change tests for imp.cache_from_source() to follow os.path.join/split | Brett Cannon | 2012-04-22 | 1 | -43/+32 |
|/ / | | | | | | | semantics. | ||||
* | | merge | Brett Cannon | 2012-04-22 | 3 | -12/+13 |
|\ \ | |||||
| * | | Use os.path.samestat() instead of reinventing the wheel. | Charles-François Natali | 2012-04-22 | 1 | -9/+2 |
| | | | |||||
| * | | Resolve #14026 (Merge from 3.2) | Nick Coghlan | 2012-04-22 | 2 | -3/+11 |
| |\ \ | | |/ | |||||
| | * | Close issue #14026 by better testing sys.argv handling in ↵ | Nick Coghlan | 2012-04-22 | 2 | -3/+11 |
| | | | | | | | | | | | | test_cmd_line_script (patch by Jason Yeo) | ||||
| | * | issue2193 - Update 3.2 docs about legal characters allowed in Cookie name | Senthil Kumaran | 2012-04-22 | 1 | -2/+8 |
| | | | |||||
* | | | Issue #13959: Continue to try to accomodate altsep in importlib by not | Brett Cannon | 2012-04-22 | 2 | -2971/+2988 |
|/ / | | | | | | | ignoring altsep if it already exists on a path when doing a join. | ||||
* | | Mention the backwards-incompatible change to ↵ | Brett Cannon | 2012-04-22 | 1 | -0/+5 |
| | | | | | | | | imp.cache_from_source()/source_from_cache(). | ||||
* | | merge | Brett Cannon | 2012-04-22 | 1 | -2/+11 |
|\ \ | |||||
| * | | issue2193 - Update docs about the legal characters allowed in Cookie name | Senthil Kumaran | 2012-04-22 | 1 | -2/+11 |
| | | | |||||
* | | | Revert to os.path.join() semantics for path manipulation in importlib | Brett Cannon | 2012-04-22 | 2 | -2985/+2966 |
|/ / | | | | | | | which is different than what imp.cache_from_source() operates on. | ||||
* | | Update importlib.h | Brett Cannon | 2012-04-22 | 1 | -2967/+2967 |
| | | |||||
* | | Continue the good fight to get Windows to like importlib by fixing a | Brett Cannon | 2012-04-22 | 1 | -1/+3 |
| | | | | | | | | variable name. | ||||
* | | merge | Brett Cannon | 2012-04-22 | 3 | -1/+12 |
|\ \ | |||||
| * \ | merge heads | Senthil Kumaran | 2012-04-22 | 2 | -755/+67 |
| |\ \ | |||||
| * | | | Fix Issue2193 - Allow ":" character in Cookie NAME values | Senthil Kumaran | 2012-04-22 | 3 | -1/+12 |
| | | | | |||||
* | | | | Have importlib look for pre-existing path separators when joining | Brett Cannon | 2012-04-22 | 2 | -2979/+2991 |
| |/ / |/| | | | | | | | | paths. | ||||
* | | | Fix whitespace. | Brett Cannon | 2012-04-22 | 1 | -1/+0 |
| | | | |||||
* | | | Issue #13959: Re-implement imp.find_module() in Lib/imp.py. | Brett Cannon | 2012-04-22 | 2 | -755/+68 |
|/ / | | | | | | | Thanks to Eric Snow for taking an initial stab at the implementation. | ||||
* | | Issue #14637: Fix the UNC import test under Windows to actually use | Brett Cannon | 2012-04-21 | 1 | -4/+8 |
| | | | | | | | | | | | | the UNC path. Also clean up sys.path and invalidate finder caches. Thanks to Vinay Sajip for spotting the use of the wrong path. | ||||
* | | Don't worry about moving imp.get_tag() over to Lib/imp.py. | Brett Cannon | 2012-04-21 | 3 | -3064/+3069 |
| | | |||||
* | | merge | Brett Cannon | 2012-04-21 | 6 | -61/+61 |
|\ \ | |||||
| * | | Remove incorrect comment | Michael Foord | 2012-04-21 | 1 | -1/+0 |
| | | | |||||
| * | | Closes issue 14634. unittest.mock.create_autospec now supports keyword only ↵ | Michael Foord | 2012-04-21 | 3 | -8/+31 |
| | | | | | | | | | | | | arguments. | ||||
| * | | Closes issue 14636. mock objects raise exceptions from an iterable side_effect | Michael Foord | 2012-04-21 | 4 | -53/+31 |
| | | | |||||
* | | | 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. |