Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #18065: For frozen packages set __path__ to []. | Brett Cannon | 2013-06-01 | 1 | -0/+6 |
| | | | | | | | 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 | 1 | -1/+7 |
| | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Issue #18094: test_uuid no more reports skipped tests as passed. | Serhiy Storchaka | 2013-05-31 | 1 | -0/+3 |
|\ | |||||
| * | Issue #18094: test_uuid no more reports skipped tests as passed. | Serhiy Storchaka | 2013-05-31 | 1 | -0/+2 |
| | | |||||
* | | Remove duplicate entry due to mismerge and incomplete resolution. | Terry Jan Reedy | 2013-05-31 | 1 | -3/+0 |
| | | |||||
* | | merge | Terry Jan Reedy | 2013-05-31 | 1 | -0/+3 |
|\ \ | |/ | |||||
| * | Issue #15392: Finish news entry. | Terry Jan Reedy | 2013-05-31 | 1 | -1/+1 |
| | | |||||
* | | Rename importlib.util.ModuleManager to module_to_load so that the name | Brett Cannon | 2013-05-30 | 1 | -2/+2 |
| | | | | | | | | explains better what the context manager is providing. | ||||
* | | Issue #18084: Use sys.byteorder in wave.py. | Serhiy Storchaka | 2013-05-29 | 1 | -0/+1 |
| | | | | | | | | Original patch by Hideaki Takahashi. | ||||
* | | Issue #9369: The types of `char*` arguments of PyObject_CallFunction() and | Serhiy Storchaka | 2013-05-29 | 2 | -0/+6 |
| | | | | | | | | | | PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck. | ||||
* | | merge from 3.3 | Senthil Kumaran | 2013-05-29 | 1 | -0/+4 |
|\ \ | |/ | | | | | | | | | #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/+4 |
| | | | | | | | | This helps in handling certain types invalid urls in a conservative manner. | ||||
* | | Issue #18080: merge from 3.3 | Ned Deily | 2013-05-28 | 1 | -0/+5 |
|\ \ | |/ | |||||
| * | Issue #18080: When building a C extension module on OS X, if the compiler | Ned Deily | 2013-05-28 | 1 | -0/+5 |
| | | | | | | | | | | | | is overriden with the CC environment variable, use the new compiler as the default for linking if LDSHARED is not also overriden. This restores Distutils behavior introduced in 3.2.3 and inadvertently dropped in 3.3.0. | ||||
* | | Issue #18070: importlib.util.module_for_loader() now sets __loader__ | Brett Cannon | 2013-05-28 | 1 | -0/+3 |
| | | | | | | | | | | 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/+3 |
| | | | | | | | | | | | | | | | | 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/+3 |
|\ \ | |/ | | | | | 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/+3 |
| | | | | | | | | stream's read() returns more bytes than requested. | ||||
* | | Move some Misc/NEWS entries to correct place. | Serhiy Storchaka | 2013-05-28 | 1 | -7/+7 |
| | | |||||
* | | Issue #18011: base64.b32decode() now raises a binascii.Error if there are | Serhiy Storchaka | 2013-05-28 | 1 | -0/+4 |
|\ \ | |/ | | | | | | | 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 | -0/+4 |
| | | | | | | | | | | non-alphabet characters present in the input string to conform a docstring. Updated the module documentation. | ||||
| * | Issue #13772: Restored directory detection of targets in `os.symlink` on ↵ | Jason R. Coombs | 2013-05-28 | 1 | -0/+5 |
| | | | | | | | | 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 | 2 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #15392: Create a unittest framework for IDLE. | Terry Jan Reedy | 2013-05-28 | 2 | -0/+4 |
| | | | | | | | | Preliminary patch by Rajagopalasarma Jayakrishnan. | ||||
| * | Issue #17953: document that sys.modules shouldn't be replaced (thanks | Brett Cannon | 2013-05-24 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | to interp->modules) and that deleting essential items from the dict can cause Python to blow up. Thanks to Terry Reedy for coming up with initial wording and Yogesh Chaudhari for coming up with a patch using that wording in parallel to my own patch. | ||||
* | | NEWS entry for issue #18072 | Brett Cannon | 2013-05-28 | 1 | -0/+3 |
| | | |||||
* | | grammar | Benjamin Peterson | 2013-05-27 | 1 | -3/+3 |
| | | |||||
* | | don't expand the operand to Py_XINCREF/XDECREF/CLEAR/DECREF multiple times ↵ | Benjamin Peterson | 2013-05-27 | 2 | -0/+5 |
| | | | | | | | | | | | | (closes #17206) A patch from Illia Polosukhin. | ||||
* | | Move importlib.abc.SourceLoader.source_to_code() to InspectLoader. | Brett Cannon | 2013-05-26 | 1 | -1/+1 |
| | | | | | | | | | | | | | | 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. | ||||
* | | Mention issue #16832 in Misc/NEWS | Łukasz Langa | 2013-05-25 | 1 | -1/+4 |
| | | |||||
* | | Issue #8240: Set the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag on SSL sockets. | Antoine Pitrou | 2013-05-25 | 1 | -0/+3 |
| | | |||||
* | | (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. | ||||
* | | Issue #17532: merge | Ned Deily | 2013-05-22 | 2 | -0/+4 |
|\ \ | |/ | |||||
| * | Issue #17532: Always include Options menu for IDLE on OS X. | Ned Deily | 2013-05-22 | 2 | -0/+4 |
| | | | | | | | | Patch by Guilherme Simões. | ||||
* | | Issue #16986: ElementTree now correctly parses a string input not only when | Serhiy Storchaka | 2013-05-22 | 1 | -0/+3 |
|\ \ | |/ | | | | | 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 | -0/+3 |
| | | | | | | | | an internal XML encoding is UTF-8 or US-ASCII. | ||||
* | | Move a NEWS entity to a correct place. | Serhiy Storchaka | 2013-05-22 | 1 | -3/+3 |
| | | |||||
* | | Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs. | Serhiy Storchaka | 2013-05-22 | 1 | -1/+2 |
|\ \ | |/ | |||||
| * | Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs. | Serhiy Storchaka | 2013-05-22 | 1 | -1/+2 |
| | | |||||
* | | Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX. | Giampaolo Rodola' | 2013-05-21 | 1 | -0/+2 |
| | | |||||
* | | Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickled | Serhiy Storchaka | 2013-05-21 | 1 | -0/+3 |
| | | | | | | | | size and pickling time. | ||||
* | | Backed out changeset c0f2b038fc12 | Charles-François Natali | 2013-05-21 | 1 | -3/+0 |
| | | |||||
* | | Issue #17683: socket module: return AF_UNIX addresses in Linux abstract | Charles-François Natali | 2013-05-21 | 1 | -0/+3 |
| | | | | | | | | namespace as string. | ||||
* | | #14146: merge with 3.3. | Roger Serwy | 2013-05-21 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | #14146: Highlight source line while debugging on Windows. | Roger Serwy | 2013-05-21 | 1 | -0/+6 |
| | | |||||
* | | Issue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an | Charles-Francois Natali | 2013-05-20 | 1 | -0/+3 |
| | | | | | | | | initial patch by Trent Nelson. | ||||
* | | #14097: merge with 3.3. | Ezio Melotti | 2013-05-20 | 1 | -0/+2 |
|\ \ | |/ | |||||
| * | #14097: improve the "introduction" page of the tutorial. | Ezio Melotti | 2013-05-20 | 1 | -0/+2 |
| | | |||||
* | | Issue #11995: test_pydoc doesn't import all sys.path modules anymore. | Antoine Pitrou | 2013-05-19 | 1 | -1/+5 |
|\ \ | |/ |