Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Close #17932: Fix an integer overflow issue on Windows 64-bit in iterators: | Victor Stinner | 2013-06-04 | 2 | -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 locale | Victor Stinner | 2013-06-03 | 3 | -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, and | Victor Stinner | 2013-06-03 | 3 | -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-bit | Victor Stinner | 2013-05-16 | 1 | -1/+1 |
| | | |||||
* | | merge from 3.3 | Senthil Kumaran | 2013-06-02 | 1 | -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 Kumaran | 2013-06-02 | 1 | -1/+2 |
| | | | | | | | | | | os.path.join(*self.dirs) produces an invalid path on windows. ftp paths are always forward-slash seperated like this. /pub/dir. | ||||
* | | merge | Raymond Hettinger | 2013-06-02 | 1 | -10/+10 |
|\ \ | |/ | |||||
| * | Clarify which dictionaries are updateable | Raymond Hettinger | 2013-06-02 | 1 | -10/+10 |
| | | | | | | | | by using the wording from the Py2.7 docs. | ||||
* | | merge from 3.3 | Senthil Kumaran | 2013-06-01 | 1 | -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 when | Senthil Kumaran | 2013-06-01 | 1 | -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 module | Andrew Kuchling | 2013-06-01 | 1 | -12/+1 |
| | | |||||
* | | merge from 3.3 | Senthil Kumaran | 2013-06-01 | 1 | -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 directory | Senthil Kumaran | 2013-06-01 | 1 | -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 Peterson | 2013-06-01 | 1 | -1/+1 |
| | | |||||
* | | Issue #18065: For frozen packages set __path__ to []. | Brett Cannon | 2013-06-01 | 4 | -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 whitespace | Brett Cannon | 2013-05-31 | 1 | -1/+1 |
| | | |||||
* | | Issues #18088, 18089: Introduce | Brett Cannon | 2013-05-31 | 10 | -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 cleanup | Brett Cannon | 2013-05-31 | 1 | -2/+3 |
| | | |||||
* | | Fix for last commit on adding reset_name to module_to_load | Brett Cannon | 2013-05-31 | 1 | -3/+6 |
| | | |||||
* | | Add a reset_name argument to importlib.util.module_to_load in order to | Brett Cannon | 2013-05-31 | 3 | -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 change | Brett Cannon | 2013-05-31 | 1 | -1/+1 |
| | | |||||
* | | Add a reference to module_to_load | Brett Cannon | 2013-05-31 | 1 | -2/+1 |
| | | |||||
* | | Issue #18094: test_uuid no more reports skipped tests as passed. | Serhiy Storchaka | 2013-05-31 | 2 | -51/+30 |
|\ \ | |/ | |||||
| * | Issue #18094: test_uuid no more reports skipped tests as passed. | Serhiy Storchaka | 2013-05-31 | 2 | -51/+29 |
| | | |||||
* | | 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 | 6 | -3527/+3548 |
| | | | | | | | | explains better what the context manager is providing. | ||||
* | | Fixed #18075 - Infinite recursion tests triggering a segfault on Mac OS X | Łukasz Langa | 2013-05-30 | 2 | -0/+12 |
| | | | | | | | | Patch by Ronald Oussoren | ||||
* | | Merge heads | Serhiy Storchaka | 2013-05-29 | 2 | -8/+4 |
|\ \ | |||||
| * | | Issue #18084: Use sys.byteorder in wave.py. | Serhiy Storchaka | 2013-05-29 | 2 | -8/+4 |
| | | | | | | | | | | | | Original patch by Hideaki Takahashi. | ||||
* | | | Merge 3.3. | Stefan Krah | 2013-05-29 | 1 | -7/+8 |
|\ \ \ | | |/ | |/| | |||||
| * | | Support multiarch build in tests. | Stefan Krah | 2013-05-29 | 1 | -7/+8 |
| | | | |||||
* | | | Null merge. | Stefan Krah | 2013-05-29 | 0 | -0/+0 |
|\ \ \ | |/ / | |||||
| * | | Backport bff16086f03b and bcaaaa00425b. | Stefan Krah | 2013-05-29 | 2 | -5/+18 |
| | | | |||||
* | | | Mark untestable lines for gcov. | Stefan Krah | 2013-05-29 | 1 | -5/+5 |
| |/ |/| | |||||
* | | test_decimal: add __sizeof__() tests for code coverage. | Stefan Krah | 2013-05-29 | 1 | -0/+13 |
| | | |||||
* | | Issue #9369: The types of `char*` arguments of PyObject_CallFunction() and | Serhiy Storchaka | 2013-05-29 | 6 | -22/+42 |
| | | | | | | | | | | PyObject_CallMethod() now changed to `const char*`. Based on patches by Jörg Müller and Lars Buitinck. | ||||
* | | Merge 3.3. | Stefan Krah | 2013-05-29 | 5 | -16/+64 |
|\ \ | |/ | |||||
| * | Issue #17768: Support newline fill character in decimal.py and NUL fill | Stefan Krah | 2013-05-29 | 5 | -16/+64 |
| | | | | | | | | character in _decimal.c. | ||||
* | | merge from 3.3 | Senthil Kumaran | 2013-05-29 | 3 | -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 Kumaran | 2013-05-29 | 3 | -0/+17 |
| | | | | | | | | This helps in handling certain types invalid urls in a conservative manner. | ||||
* | | Merge with 3.3 | Terry Jan Reedy | 2013-05-29 | 2 | -8/+8 |
|\ \ | |/ | |||||
| * | Issue #15392: Do not run tests if threading/_thread not available. Otherwise | Terry Jan Reedy | 2013-05-29 | 2 | -8/+8 |
| | | | | | | | | touchup test_idle. Rename README.txt. | ||||
* | | #1554133: Document PyOS_InputHook, PyOS_ReadlineFunctionPointer | Andrew Kuchling | 2013-05-29 | 1 | -1/+23 |
| | | |||||
* | | Issue #18080: merge from 3.3 | Ned Deily | 2013-05-28 | 3 | -4/+47 |
|\ \ | |/ | |||||
| * | Issue #18080: When building a C extension module on OS X, if the compiler | Ned Deily | 2013-05-28 | 3 | -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 directly | Brett Cannon | 2013-05-28 | 1 | -5/+1 |
| | | |||||
* | | Issue #18070: importlib.util.module_for_loader() now sets __loader__ | Brett Cannon | 2013-05-28 | 6 | -3474/+3451 |
| | | | | | | | | | | and __package__ unconditionally in order to do the right thing for reloading. | ||||
* | | Clarify some documentation | Brett Cannon | 2013-05-28 | 1 | -31/+17 |
| | |