summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Implement PEP 412: Key-sharing dictionaries (closes #13903)Benjamin Peterson2012-04-2312-909/+1358
| | | | Patch from Mark Shannon.
* inherit maxchar of field value where needed (closes #14648)Benjamin Peterson2012-04-232-0/+5
|
* merge 3.2Benjamin Peterson2012-04-231-1/+1
|\
| * sleep hereBenjamin Peterson2012-04-231-1/+1
| |
* | Issue #14605: Expose importlib.abc.FileLoader andBrett Cannon2012-04-2217-3062/+3232
| | | | | | | | | | | | | | | | importlib.machinery.(FileFinder, SourceFileLoader, _SourcelessFileLoader, ExtensionFileLoader). This exposes all of importlib's mechanisms that will become public on the sys module.
* | mergeBrett Cannon2012-04-222-2/+2
|\ \
| * | Issue #14644: Increased default timeout for SMTPHandler. Note: last commit ↵Vinay Sajip2012-04-221-1/+1
| | | | | | | | | | | | message referred to the wrong issue number.
| * | Issue #14622: Increased default timeout for SMTPHandler.Vinay Sajip2012-04-221-1/+1
| | |
* | | Change tests for imp.cache_from_source() to follow os.path.join/splitBrett Cannon2012-04-221-43/+32
|/ / | | | | | | semantics.
* | mergeBrett Cannon2012-04-223-12/+13
|\ \
| * | Use os.path.samestat() instead of reinventing the wheel.Charles-François Natali2012-04-221-9/+2
| | |
| * | Resolve #14026 (Merge from 3.2)Nick Coghlan2012-04-222-3/+11
| |\ \ | | |/
| | * Close issue #14026 by better testing sys.argv handling in ↵Nick Coghlan2012-04-222-3/+11
| | | | | | | | | | | | test_cmd_line_script (patch by Jason Yeo)
| | * issue2193 - Update 3.2 docs about legal characters allowed in Cookie nameSenthil Kumaran2012-04-221-2/+8
| | |
* | | Issue #13959: Continue to try to accomodate altsep in importlib by notBrett Cannon2012-04-222-2971/+2988
|/ / | | | | | | ignoring altsep if it already exists on a path when doing a join.
* | Mention the backwards-incompatible change to ↵Brett Cannon2012-04-221-0/+5
| | | | | | | | imp.cache_from_source()/source_from_cache().
* | mergeBrett Cannon2012-04-221-2/+11
|\ \
| * | issue2193 - Update docs about the legal characters allowed in Cookie nameSenthil Kumaran2012-04-221-2/+11
| | |
* | | Revert to os.path.join() semantics for path manipulation in importlibBrett Cannon2012-04-222-2985/+2966
|/ / | | | | | | which is different than what imp.cache_from_source() operates on.
* | Update importlib.hBrett Cannon2012-04-221-2967/+2967
| |
* | Continue the good fight to get Windows to like importlib by fixing aBrett Cannon2012-04-221-1/+3
| | | | | | | | variable name.
* | mergeBrett Cannon2012-04-223-1/+12
|\ \
| * \ merge headsSenthil Kumaran2012-04-222-755/+67
| |\ \
| * | | Fix Issue2193 - Allow ":" character in Cookie NAME valuesSenthil Kumaran2012-04-223-1/+12
| | | |
* | | | Have importlib look for pre-existing path separators when joiningBrett Cannon2012-04-222-2979/+2991
| |/ / |/| | | | | | | | paths.
* | | Fix whitespace.Brett Cannon2012-04-221-1/+0
| | |
* | | Issue #13959: Re-implement imp.find_module() in Lib/imp.py.Brett Cannon2012-04-222-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 useBrett Cannon2012-04-211-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 Cannon2012-04-213-3064/+3069
| |
* | mergeBrett Cannon2012-04-216-61/+61
|\ \
| * | Remove incorrect commentMichael Foord2012-04-211-1/+0
| | |
| * | Closes issue 14634. unittest.mock.create_autospec now supports keyword only ↵Michael Foord2012-04-213-8/+31
| | | | | | | | | | | | arguments.
| * | Closes issue 14636. mock objects raise exceptions from an iterable side_effectMichael Foord2012-04-214-53/+31
| | |
* | | 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.