summaryrefslogtreecommitdiffstats
path: root/Misc
Commit message (Collapse)AuthorAgeFilesLines
* Issue #18065: For frozen packages set __path__ to [].Brett Cannon2013-06-011-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: IntroduceBrett Cannon2013-05-311-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 Storchaka2013-05-311-0/+3
|\
| * Issue #18094: test_uuid no more reports skipped tests as passed.Serhiy Storchaka2013-05-311-0/+2
| |
* | Remove duplicate entry due to mismerge and incomplete resolution.Terry Jan Reedy2013-05-311-3/+0
| |
* | mergeTerry Jan Reedy2013-05-311-0/+3
|\ \ | |/
| * Issue #15392: Finish news entry.Terry Jan Reedy2013-05-311-1/+1
| |
* | Rename importlib.util.ModuleManager to module_to_load so that the nameBrett Cannon2013-05-301-2/+2
| | | | | | | | explains better what the context manager is providing.
* | Issue #18084: Use sys.byteorder in wave.py.Serhiy Storchaka2013-05-291-0/+1
| | | | | | | | Original patch by Hideaki Takahashi.
* | Issue #9369: The types of `char*` arguments of PyObject_CallFunction() andSerhiy Storchaka2013-05-292-0/+6
| | | | | | | | | | PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck.
* | merge from 3.3Senthil Kumaran2013-05-291-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 Kumaran2013-05-291-0/+4
| | | | | | | | This helps in handling certain types invalid urls in a conservative manner.
* | Issue #18080: merge from 3.3Ned Deily2013-05-281-0/+5
|\ \ | |/
| * Issue #18080: When building a C extension module on OS X, if the compilerNed Deily2013-05-281-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 Cannon2013-05-281-0/+3
| | | | | | | | | | and __package__ unconditionally in order to do the right thing for reloading.
* | Introduce importlib.util.ModuleManager which is a context manager toBrett Cannon2013-05-281-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 rawSerhiy Storchaka2013-05-281-0/+3
|\ \ | |/ | | | | stream's read() returns more bytes than requested.
| * Issue #18025: Fixed a segfault in io.BufferedIOBase.readinto() when rawSerhiy Storchaka2013-05-281-0/+3
| | | | | | | | stream's read() returns more bytes than requested.
* | Move some Misc/NEWS entries to correct place.Serhiy Storchaka2013-05-281-7/+7
| |
* | Issue #18011: base64.b32decode() now raises a binascii.Error if there areSerhiy Storchaka2013-05-281-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 areSerhiy Storchaka2013-05-281-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. Coombs2013-05-281-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.3Terry Jan Reedy2013-05-282-0/+4
|\ \ | |/
| * Issue #15392: Create a unittest framework for IDLE.Terry Jan Reedy2013-05-282-0/+4
| | | | | | | | Preliminary patch by Rajagopalasarma Jayakrishnan.
| * Issue #17953: document that sys.modules shouldn't be replaced (thanksBrett Cannon2013-05-241-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 #18072Brett Cannon2013-05-281-0/+3
| |
* | grammarBenjamin Peterson2013-05-271-3/+3
| |
* | don't expand the operand to Py_XINCREF/XDECREF/CLEAR/DECREF multiple times ↵Benjamin Peterson2013-05-272-0/+5
| | | | | | | | | | | | (closes #17206) A patch from Illia Polosukhin.
* | Move importlib.abc.SourceLoader.source_to_code() to InspectLoader.Brett Cannon2013-05-261-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 Langa2013-05-251-1/+4
| |
* | Issue #8240: Set the SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER flag on SSL sockets.Antoine Pitrou2013-05-251-0/+3
| |
* | (3.3->default) Issue #17269: Workaround for a platform bug in getaddrinfo on OSXRonald Oussoren2013-05-241-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 OSXRonald Oussoren2013-05-241-0/+3
| | | | | | | | | | Without this patch socket.getaddrinfo crashed when called with some unusual argument combinations.
* | Issue #17532: mergeNed Deily2013-05-222-0/+4
|\ \ | |/
| * Issue #17532: Always include Options menu for IDLE on OS X.Ned Deily2013-05-222-0/+4
| | | | | | | | Patch by Guilherme Simões.
* | Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-0/+3
|\ \ | |/ | | | | an internal XML encoding is UTF-8 or US-ASCII.
| * Issue #16986: ElementTree now correctly parses a string input not only whenSerhiy Storchaka2013-05-221-0/+3
| | | | | | | | an internal XML encoding is UTF-8 or US-ASCII.
* | Move a NEWS entity to a correct place.Serhiy Storchaka2013-05-221-3/+3
| |
* | Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.Serhiy Storchaka2013-05-221-1/+2
|\ \ | |/
| * Issue #17844: Add links to encoders and decoders for bytes-to-bytes codecs.Serhiy Storchaka2013-05-221-1/+2
| |
* | Fix issue #17996: expose socket.AF_LINK constant on BSD and OSX.Giampaolo Rodola'2013-05-211-0/+2
| |
* | Issue #17900: Allowed pickling of recursive OrderedDicts. Decreased pickledSerhiy Storchaka2013-05-211-0/+3
| | | | | | | | size and pickling time.
* | Backed out changeset c0f2b038fc12Charles-François Natali2013-05-211-3/+0
| |
* | Issue #17683: socket module: return AF_UNIX addresses in Linux abstractCharles-François Natali2013-05-211-0/+3
| | | | | | | | namespace as string.
* | #14146: merge with 3.3.Roger Serwy2013-05-211-0/+2
|\ \ | |/
| * #14146: Highlight source line while debugging on Windows.Roger Serwy2013-05-211-0/+6
| |
* | Issue #17914: Add os.cpu_count(). Patch by Yogesh Chaudhari, based on anCharles-Francois Natali2013-05-201-0/+3
| | | | | | | | initial patch by Trent Nelson.
* | #14097: merge with 3.3.Ezio Melotti2013-05-201-0/+2
|\ \ | |/
| * #14097: improve the "introduction" page of the tutorial.Ezio Melotti2013-05-201-0/+2
| |
* | Issue #11995: test_pydoc doesn't import all sys.path modules anymore.Antoine Pitrou2013-05-191-1/+5
|\ \ | |/