summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Close #17932: Fix an integer overflow issue on Windows 64-bit in iterators:Victor Stinner2013-06-042-1/+4
| | | | change the C type of seqiterobject.it_index from long to Py_ssize_t.
* (Merge 3.3) Close #18109: os.uname() now decodes fields from the localeVictor Stinner2013-06-033-10/+14
|\ | | | | | | | | encoding, and socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
| * Close #18109: os.uname() now decodes fields from the locale encoding, andVictor Stinner2013-06-033-10/+14
| | | | | | | | | | socket.gethostname() now decodes the hostname from the locale encoding, instead of using the UTF-8 encoding in strict mode.
* | Fix compilater warnings on Windows 64-bitVictor Stinner2013-05-161-1/+1
| |
* | merge from 3.3Senthil Kumaran2013-06-021-1/+2
|\ \ | |/ | | | | | | | | | | Fix #17967 - Fix related to regression on Windows. os.path.join(*self.dirs) produces an invalid path on windows. ftp paths are always forward-slash seperated like this. /pub/dir.
| * Fix #17967 - Fix related to regression on Windows.Senthil Kumaran2013-06-021-1/+2
| | | | | | | | | | os.path.join(*self.dirs) produces an invalid path on windows. ftp paths are always forward-slash seperated like this. /pub/dir.
* | mergeRaymond Hettinger2013-06-021-10/+10
|\ \ | |/
| * Clarify which dictionaries are updateableRaymond Hettinger2013-06-021-10/+10
| | | | | | | | by using the wording from the Py2.7 docs.
* | merge from 3.3Senthil Kumaran2013-06-011-1/+4
|\ \ | |/ | | | | | | | | Fix thishost helper funtion in urllib. Returns the ipaddress of localhost when hostname is resolvable by socket.gethostname for local machine. This all fixes certain freebsd builtbot failures.
| * Fix thishost helper funtion in urllib. Returns the ipaddress of localhost whenSenthil Kumaran2013-06-011-1/+4
| | | | | | | | | | hostname is resolvable by socket.gethostname for local machine. This all fixes certain freebsd builtbot failures.
* | #18066: remove vestigial code depending on the sgi moduleAndrew Kuchling2013-06-011-12/+1
| |
* | merge from 3.3Senthil Kumaran2013-06-011-2/+1
|\ \ | |/ | | | | | | | | Fix #17967: For ftp urls CWD to target instead of hopping to each directory towards target. This fixes a bug where target is accessible, but parent directories are restricted.
| * Fix #17967: For ftp urls CWD to target instead of hopping to each directorySenthil Kumaran2013-06-011-2/+1
| | | | | | | | | | towards target. This fixes a bug where target is accessible, but parent directories are restricted.
* | frozen modules now apparently have empty __path__Benjamin Peterson2013-06-011-1/+1
| |
* | Issue #18065: For frozen packages set __path__ to [].Brett Cannon2013-06-014-5/+16
| | | | | | | | | | | | | | 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.
* | fix whitespaceBrett Cannon2013-05-311-1/+1
| |
* | Issues #18088, 18089: IntroduceBrett Cannon2013-05-3110-3634/+3931
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Docstring cleanupBrett Cannon2013-05-311-2/+3
| |
* | Fix for last commit on adding reset_name to module_to_loadBrett Cannon2013-05-311-3/+6
| |
* | Add a reset_name argument to importlib.util.module_to_load in order toBrett Cannon2013-05-313-2/+30
| | | | | | | | | | control whether to reset the module's __name__ attribute in case a reload is being done.
* | Update What's New for importlib.util.module_to_load name changeBrett Cannon2013-05-311-1/+1
| |
* | Add a reference to module_to_loadBrett Cannon2013-05-311-2/+1
| |
* | Issue #18094: test_uuid no more reports skipped tests as passed.Serhiy Storchaka2013-05-312-51/+30
|\ \ | |/
| * Issue #18094: test_uuid no more reports skipped tests as passed.Serhiy Storchaka2013-05-312-51/+29
| |
* | 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-306-3527/+3548
| | | | | | | | explains better what the context manager is providing.
* | Fixed #18075 - Infinite recursion tests triggering a segfault on Mac OS XŁukasz Langa2013-05-302-0/+12
| | | | | | | | Patch by Ronald Oussoren
* | Merge headsSerhiy Storchaka2013-05-292-8/+4
|\ \
| * | Issue #18084: Use sys.byteorder in wave.py.Serhiy Storchaka2013-05-292-8/+4
| | | | | | | | | | | | Original patch by Hideaki Takahashi.
* | | Merge 3.3.Stefan Krah2013-05-291-7/+8
|\ \ \ | | |/ | |/|
| * | Support multiarch build in tests.Stefan Krah2013-05-291-7/+8
| | |
* | | Null merge.Stefan Krah2013-05-290-0/+0
|\ \ \ | |/ /
| * | Backport bff16086f03b and bcaaaa00425b.Stefan Krah2013-05-292-5/+18
| | |
* | | Mark untestable lines for gcov.Stefan Krah2013-05-291-5/+5
| |/ |/|
* | test_decimal: add __sizeof__() tests for code coverage.Stefan Krah2013-05-291-0/+13
| |
* | Issue #9369: The types of `char*` arguments of PyObject_CallFunction() andSerhiy Storchaka2013-05-296-22/+42
| | | | | | | | | | PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck.
* | Merge 3.3.Stefan Krah2013-05-295-16/+64
|\ \ | |/
| * Issue #17768: Support newline fill character in decimal.py and NUL fillStefan Krah2013-05-295-16/+64
| | | | | | | | character in _decimal.c.
* | merge from 3.3Senthil Kumaran2013-05-293-0/+17
|\ \ | |/ | | | | | | | | #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-293-0/+17
| | | | | | | | This helps in handling certain types invalid urls in a conservative manner.
* | Merge with 3.3Terry Jan Reedy2013-05-292-8/+8
|\ \ | |/
| * Issue #15392: Do not run tests if threading/_thread not available. OtherwiseTerry Jan Reedy2013-05-292-8/+8
| | | | | | | | touchup test_idle. Rename README.txt.
* | #1554133: Document PyOS_InputHook, PyOS_ReadlineFunctionPointerAndrew Kuchling2013-05-291-1/+23
| |
* | Issue #18080: merge from 3.3Ned Deily2013-05-283-4/+47
|\ \ | |/
| * Issue #18080: When building a C extension module on OS X, if the compilerNed Deily2013-05-283-4/+47
| | | | | | | | | | | | 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.
* | Undo a recommendation as load_module() methods might be called directlyBrett Cannon2013-05-281-5/+1
| |
* | Issue #18070: importlib.util.module_for_loader() now sets __loader__Brett Cannon2013-05-286-3474/+3451
| | | | | | | | | | and __package__ unconditionally in order to do the right thing for reloading.
* | Clarify some documentationBrett Cannon2013-05-281-31/+17
| |