- 24 Feb, 2011 3 commits
-
-
Benjamin Peterson authored
-
Benjamin Peterson authored
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r88535 | brett.cannon | 2011-02-23 13:46:46 -0600 (Wed, 23 Feb 2011) | 1 line Add lib2to3.__main__ for easy testing from the console. ........
-
Raymond Hettinger authored
-
- 23 Feb, 2011 11 commits
-
-
Brett Cannon authored
-
Victor Stinner authored
Fix the test for last module changes (r88520).
-
Victor Stinner authored
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses universal newline (replace '\r\n' by '\n').
-
Lars Gustäbel authored
regression in _FileInFile which is used in file-like objects returned by TarFile.extractfile(). The inefficient design of the _FileInFile.read() method causes various dramatic side-effects and errors: - The data segment of a file member is read completely into memory every(!) time a small block is accessed. This is not only slow but may cause unexpected MemoryErrors with very large files. - Reading members from compressed tar archives is even slower because of the excessive backwards seeking which is done when the same data segment is read over and over again. - As a backwards seek on a TarFile opened in stream mode is not possible, using extractfile() fails with a StreamError.
-
Victor Stinner authored
-
Raymond Hettinger authored
-
Georg Brandl authored
-
Georg Brandl authored
-
Raymond Hettinger authored
-
Victor Stinner authored
repr(module) uses %R to format module name and filenames, instead of '%s' and '%U', so surrogates from undecodable bytes in a filename (PEP 383) are escaped.
-
Victor Stinner authored
And as a consequence, mark also name argument of _PyImport_FindExtensionUnicode() constant too. But I plan to change this argument type to PyObject* later.
-
- 22 Feb, 2011 20 commits
-
-
Victor Stinner authored
-
Victor Stinner authored
The first argument, fqname, was not used.
-
Victor Stinner authored
This function was not declared in Python public API (in any .h file) and not documented. Mark it as private to prepare a change of its API.
-
Brett Cannon authored
-
Brett Cannon authored
by making methods() into a module attribute as it is statically calculated.
-
Antoine Pitrou authored
(probably an OS-related issue with mmap)
-
Brett Cannon authored
-
Brett Cannon authored
-
Giampaolo Rodolà authored
-
Giampaolo Rodolà authored
-
Brett Cannon authored
-
Giampaolo Rodolà authored
-
Sean Reifscheider authored
-
Brett Cannon authored
The module stored away the 'open' object as found in the global namespace (which fell through to the built-in namespace) since it defined its own 'open'. Problem is that if you reloaded the module it then grabbed the 'open' defined in the previous load, leading to code that infinite recursed. Switched to simply call builtins.open directly.
-
Brett Cannon authored
Thanks to Nadeem Vawda for the find and an initial fix.
-
Brett Cannon authored
Various tests fail when run under coverage. A primary culprit is refcount tests which fail as the counts are thrown off by the coverage code. A new decorator -- test.support.refcount_test -- is used to decorate tests which test refcounts and to skip them when running under coverage. Other tests simply fail because of changes in the system (e.g., __local__ suddenly appearing). Thanks to Kristian Vlaardingerbroek for helping to diagnose the test failures.
-
Brett Cannon authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
-
Raymond Hettinger authored
called collections.abc, following the pattern used by importlib.abc. For backwards compatibility, the names continue to also be imported into the collections module.
-
- 21 Feb, 2011 6 commits
-
-
Antoine Pitrou authored
4GB, even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows.
-
Antoine Pitrou authored
to open door files.
-
Victor Stinner authored
Issue #10830: Fix PyUnicode_FromFormatV("%c") for non-BMP characters on narrow build.
-
Victor Stinner authored
Issue #11168: Remove filename debug variable from PyEval_EvalFrameEx(). It encoded the Unicode filename to UTF-8, but the encoding fails on undecodable filename (on surrogate characters) which raises an unexpected UnicodeEncodeError on recursion limit.
-
Victor Stinner authored
Issue #11169: compileall module uses repr() to format filenames and paths to escape surrogate characters and show spaces.
-
Victor Stinner authored
Issue #11187: Remove bootstrap code (use ASCII) of PyUnicode_AsEncodedString(), it was replaced by a better fallback (use the locale encoding) in PyUnicode_EncodeFSDefault(). Prepare also empty sections in NEWS.
-