Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | frozen modules now apparently have empty __path__ | Benjamin Peterson | 2013-06-01 | 1 | -1/+1 |
| | |||||
* | Issue #18065: For frozen packages set __path__ to []. | Brett Cannon | 2013-06-01 | 1 | -1/+1 |
| | | | | | | | Previously __path__ was set to [__name__], but that could lead to bad results if someone managed to circumvent the frozen importer and somehow ended up with a finder that thought __name__ was a legit directory/location. | ||||
* | Issues #18088, 18089: Introduce | Brett Cannon | 2013-05-31 | 3 | -30/+229 |
| | | | | | | | | | | | | | | | | | | | | | importlib.abc.Loader.init_module_attrs() and implement importlib.abc.InspectLoader.load_module(). The importlib.abc.Loader.init_module_attrs() method sets the various attributes on the module being loaded. It is done unconditionally to support reloading. Typically people used importlib.util.module_for_loader, but since that's a decorator there was no way to override it's actions, so init_module_attrs() came into existence to allow for overriding. This is also why module_for_loader is now pending deprecation (having its other use replaced by importlib.util.module_to_load). All of this allowed for importlib.abc.InspectLoader.load_module() to be implemented. At this point you can now implement a loader with nothing more than get_code() (which only requires get_source(); package support requires is_package()). Thanks to init_module_attrs() the implementation of load_module() is basically a context manager containing 2 methods calls, a call to exec(), and a return statement. | ||||
* | Add a reset_name argument to importlib.util.module_to_load in order to | Brett Cannon | 2013-05-31 | 1 | -0/+12 |
| | | | | | control whether to reset the module's __name__ attribute in case a reload is being done. | ||||
* | Issue #18094: test_uuid no more reports skipped tests as passed. | Serhiy Storchaka | 2013-05-31 | 1 | -51/+27 |
|\ | |||||
| * | Issue #18094: test_uuid no more reports skipped tests as passed. | Serhiy Storchaka | 2013-05-31 | 1 | -51/+27 |
| | | |||||
| * | Backport bff16086f03b and bcaaaa00425b. | Stefan Krah | 2013-05-29 | 1 | -0/+13 |
| | | |||||
* | | Rename importlib.util.ModuleManager to module_to_load so that the name | Brett Cannon | 2013-05-30 | 1 | -7/+7 |
| | | | | | | | | explains better what the context manager is providing. | ||||
* | | test_decimal: add __sizeof__() tests for code coverage. | Stefan Krah | 2013-05-29 | 1 | -0/+13 |
| | | |||||
* | | Merge 3.3. | Stefan Krah | 2013-05-29 | 1 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #17768: Support newline fill character in decimal.py and NUL fill | Stefan Krah | 2013-05-29 | 1 | -0/+4 |
| | | | | | | | | character in _decimal.c. | ||||
* | | merge from 3.3 | Senthil Kumaran | 2013-05-29 | 1 | -0/+12 |
|\ \ | |/ | | | | | | | | | #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline. This helps in handling certain types invalid urls in a conservative manner. Patch contributed by Mher Movsisyan. | ||||
| * | #17403: urllib.parse.robotparser normalizes the urls before adding to ruleline. | Senthil Kumaran | 2013-05-29 | 1 | -0/+12 |
| | | | | | | | | This helps in handling certain types invalid urls in a conservative manner. | ||||
* | | Merge with 3.3 | Terry Jan Reedy | 2013-05-29 | 1 | -8/+8 |
|\ \ | |/ | |||||
| * | Issue #15392: Do not run tests if threading/_thread not available. Otherwise | Terry Jan Reedy | 2013-05-29 | 1 | -8/+8 |
| | | | | | | | | touchup test_idle. Rename README.txt. | ||||
* | | Issue #18070: importlib.util.module_for_loader() now sets __loader__ | Brett Cannon | 2013-05-28 | 1 | -1/+12 |
| | | | | | | | | | | and __package__ unconditionally in order to do the right thing for reloading. | ||||
* | | Introduce importlib.util.ModuleManager which is a context manager to | Brett Cannon | 2013-05-28 | 1 | -0/+50 |
| | | | | | | | | | | | | | | | | handle providing (and cleaning up if needed) the module to be loaded. A future commit will use the context manager in Lib/importlib/_bootstrap.py and thus why the code is placed there instead of in Lib/importlib/util.py. | ||||
* | | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when raw | Serhiy Storchaka | 2013-05-28 | 1 | -0/+9 |
|\ \ | |/ | | | | | stream's read() returns more bytes than requested. | ||||
| * | Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when raw | Serhiy Storchaka | 2013-05-28 | 1 | -0/+9 |
| | | | | | | | | stream's read() returns more bytes than requested. | ||||
* | | Issue #17746: Skip test_shutil.test_non_matching_mode when run as root or | Serhiy Storchaka | 2013-05-28 | 1 | -0/+4 |
|\ \ | |/ | | | | | on unsuitable platform/environment. | ||||
| * | Issue #17746: Skip test_shutil.test_non_matching_mode when run as root or | Serhiy Storchaka | 2013-05-28 | 1 | -0/+4 |
| | | | | | | | | on unsuitable platform/environment. | ||||
* | | Issue #18011: base64.b32decode() now raises a binascii.Error if there are | Serhiy Storchaka | 2013-05-28 | 1 | -3/+5 |
|\ \ | |/ | | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation. | ||||
| * | Issue #18011: base64.b32decode() now raises a binascii.Error if there are | Serhiy Storchaka | 2013-05-28 | 1 | -3/+5 |
| | | | | | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation. | ||||
* | | Merge with 3.3 | Jason R. Coombs | 2013-05-28 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Use simple call to os.symlink for broken link (intended for previous commit) | Jason R. Coombs | 2013-05-28 | 1 | -1/+1 |
| | | |||||
* | | Merge with 3.3 | Jason R. Coombs | 2013-05-28 | 1 | -8/+36 |
|\ \ | |/ | |||||
| * | Issue #13772: Restored directory detection of targets in `os.symlink` on ↵ | Jason R. Coombs | 2013-05-28 | 1 | -8/+36 |
| | | | | | | | | Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory. | ||||
* | | Merge with 3.3 | Terry Jan Reedy | 2013-05-28 | 1 | -0/+14 |
|\ \ | |/ | |||||
| * | Issue #15392: Create a unittest framework for IDLE. | Terry Jan Reedy | 2013-05-28 | 1 | -0/+14 |
| | | | | | | | | Preliminary patch by Rajagopalasarma Jayakrishnan. | ||||
* | | Issue #18072: Implement get_code() for importlib.abc.InspectLoader and | Brett Cannon | 2013-05-28 | 1 | -8/+88 |
| | | | | | | | | ExecutionLoader. | ||||
* | | Move importlib.abc.SourceLoader.source_to_code() to InspectLoader. | Brett Cannon | 2013-05-26 | 1 | -3/+47 |
| | | | | | | | | | | | | | | While the previous location was fine, it makes more sense to have the method higher up in the inheritance chain, especially at a point where get_source() is defined which is the earliest source_to_code() could programmatically be used in the inheritance tree in importlib.abc. | ||||
* | | Issue #18063: fix some struct specifications in the tests for sys.getsizeof(). | Antoine Pitrou | 2013-05-25 | 1 | -5/+5 |
|\ \ | |/ | |||||
| * | Issue #18063: fix some struct specifications in the tests for sys.getsizeof(). | Antoine Pitrou | 2013-05-25 | 1 | -5/+5 |
| | | |||||
* | | Fix #16832 - expose cache validity checking support in ABCMeta | Łukasz Langa | 2013-05-25 | 1 | -0/+3 |
| | | |||||
* | | Clean-up duplicated code in tests | Eli Bendersky | 2013-05-25 | 1 | -46/+0 |
|\ \ | |/ | |||||
| * | Clean-up duplicated code in tests | Eli Bendersky | 2013-05-25 | 1 | -46/+0 |
| | | |||||
* | | Issue #13612: handle unknown encodings without a buffer overflow. | Eli Bendersky | 2013-05-25 | 1 | -0/+92 |
|\ \ | |/ | | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka. | ||||
| * | Issue #13612: handle unknown encodings without a buffer overflow. | Eli Bendersky | 2013-05-25 | 1 | -0/+92 |
| | | | | | | | | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka. | ||||
* | | Fix test_bad_address on Ubuntu 13.04 | Antoine Pitrou | 2013-05-25 | 1 | -1/+4 |
|\ \ | |/ | |||||
| * | Fix test_bad_address on Ubuntu 13.04 | Antoine Pitrou | 2013-05-25 | 1 | -1/+4 |
| | | |||||
* | | Closes #18046: Simplified logging internals relating to levels and their ↵ | Vinay Sajip | 2013-05-25 | 1 | -3/+6 |
| | | | | | | | | names. Thanks to Alex Gaynor for the patch. | ||||
* | | Fix #17272 - Make Request.full_url and Request.get_full_url return same ↵ | Senthil Kumaran | 2013-05-24 | 2 | -0/+23 |
| | | | | | | | | | | | | result under all circumstances. Document the change of Request.full_url to a property. | ||||
* | | (3.3->default) Issue #17269: Workaround for a platform bug in getaddrinfo on OSX | Ronald Oussoren | 2013-05-24 | 1 | -0/+3 |
|\ \ | |/ | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations. | ||||
| * | Issue #17269: Workaround for a platform bug in getaddrinfo on OSX | Ronald Oussoren | 2013-05-24 | 1 | -0/+3 |
| | | | | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations. | ||||
* | | merge 3.3 | Benjamin Peterson | 2013-05-22 | 1 | -0/+6 |
|\ \ | |/ | |||||
| * | add test for inequality | Benjamin Peterson | 2013-05-22 | 1 | -0/+6 |
| | | |||||
* | | Issue #16986: ElementTree now correctly parses a string input not only when | Serhiy Storchaka | 2013-05-22 | 1 | -15/+30 |
|\ \ | |/ | | | | | an internal XML encoding is UTF-8 or US-ASCII. | ||||
| * | Issue #16986: ElementTree now correctly parses a string input not only when | Serhiy Storchaka | 2013-05-22 | 1 | -15/+30 |
| | | | | | | | | an internal XML encoding is UTF-8 or US-ASCII. | ||||
* | | Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickled | Serhiy Storchaka | 2013-05-21 | 1 | -2/+11 |
| | | | | | | | | size and pickling time. | ||||
* | | Backed out changeset c0f2b038fc12 | Charles-François Natali | 2013-05-21 | 1 | -6/+6 |
| | |