Commit Graph

45519 Commits

Author SHA1 Message Date
Giampaolo Rodolà
18e8bcb289 Issue 10784: adds os.getpriority() and os.setpriority() functions. 2011-02-25 20:57:54 +00:00
Antoine Pitrou
211b81dd09 Issue #11114: Fix catastrophic performance of tell() on text files (up
to 1000x faster in some cases).  It is still one to two order of magnitudes
slower than binary tell().
2011-02-25 20:27:33 +00:00
Giampaolo Rodolà
d2751fb482 (issue 11214) - fix asyncore.strerror test failure on AIX 2011-02-25 20:05:48 +00:00
Giampaolo Rodolà
46134645aa Skip os.sendfile() test if threading module is not available. 2011-02-25 20:01:05 +00:00
Alexander Belopolsky
1d52146a25 Issue #11303: Added shortcuts for utf8 and latin1 encodings.
Documented the list of optimized encodings as CPython implementation
detail.
2011-02-25 19:19:57 +00:00
Vinay Sajip
eea22d2d66 logging: enabled test which was intermittently failing on buildbots. 2011-02-25 17:02:43 +00:00
Vinay Sajip
a29a9dd156 Documented QueueListener change. 2011-02-25 16:05:26 +00:00
Vinay Sajip
aa7c179285 Improved QueueListener implementation - queue sentinel addition made extensible. 2011-02-25 15:56:55 +00:00
Marc-André Lemburg
8f36af7a4c Normalize the encoding names for Latin-1 and UTF-8 to
'latin-1' and 'utf-8'.

These are optimized in the Python Unicode implementation
to result in more direct processing, bypassing the codec
registry.

Also see issue11303.
2011-02-25 15:42:01 +00:00
Georg Brandl
a391b11320 Rename internal helper function and make it static. 2011-02-25 15:23:18 +00:00
Georg Brandl
941f956d1b Regenerate configure after r88580. 2011-02-25 15:21:47 +00:00
Giampaolo Rodolà
61a0bf5864 (issue 11232) - fix asyncore documentation issue (patch by Sandro Tosi) 2011-02-25 14:50:57 +00:00
Giampaolo Rodolà
c9c2c8b034 Issue 10882: add os.sendfile(). (patch provided by Ross Lagerwall) 2011-02-25 14:39:16 +00:00
Antoine Pitrou
59db1f3df6 Fix .hgeol 2011-02-25 14:32:24 +00:00
Antoine Pitrou
71219dad3e More eol-style's 2011-02-25 14:31:09 +00:00
Antoine Pitrou
7f1e174c7a Make svn:eol-style's more consistent 2011-02-25 14:19:48 +00:00
Benjamin Peterson
2ec8cbc75f rewrite with assertIs 2011-02-25 14:05:42 +00:00
Benjamin Peterson
83a0efd303 run autoconf 2011-02-25 14:01:05 +00:00
Georg Brandl
c9c9bc02a8 Add 3.3 whatsnew to index. 2011-02-25 11:28:22 +00:00
Georg Brandl
15995f7dc7 Remove unused m4 define. 2011-02-25 11:03:15 +00:00
Eli Bendersky
67ebabd152 Removed fcmp and FUZZ from test.support, following the discussion on python-dev:
http://mail.python.org/pipermail/python-dev/2011-January/107735.html
2011-02-25 10:14:17 +00:00
Eli Bendersky
cbbaa96036 Issue #10516: adding list.clear() and list.copy() methods 2011-02-25 05:47:53 +00:00
Giampaolo Rodolà
3108f98319 Adds Python 3.3 what's new document. 2011-02-24 20:59:48 +00:00
Antoine Pitrou
5bffa79c22 Issue #11286: Raise a ValueError from calling PyMemoryView_FromBuffer with
a buffer struct having a NULL data pointer.
2011-02-24 20:50:49 +00:00
Alexander Belopolsky
1ce92dc20d Issue #11286: Fixed unpickling of empty 2.x strings. 2011-02-24 19:40:09 +00:00
Éric Araujo
6c3787cb70 Allow usage of SomeABC.register as a class decorator. Patch by Edoardo Spadolini (#10868). 2011-02-24 18:03:10 +00:00
Benjamin Peterson
5390d00cc6 rewrite 2011-02-24 02:53:05 +00:00
Benjamin Peterson
634ef9cb81 this seems to be pointlessly nested 2011-02-24 02:46:00 +00:00
Benjamin Peterson
a6f85e2270 Merged revisions 88535 via svnmerge from
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.
........
2011-02-24 01:41:46 +00:00
Raymond Hettinger
c38f025a55 Issue #11304: Input/output tutorial - PI is rounded not truncated. 2011-02-24 00:08:13 +00:00
Brett Cannon
e457f0d220 Revert r88503 as Benjamin's request. 2011-02-23 18:48:52 +00:00
Victor Stinner
e1ea8298c6 Issue #3080: Fix test_reprlib on Windows
Fix the test for last module changes (r88520).
2011-02-23 14:14:48 +00:00
Victor Stinner
c0f1a1afae Issue #11272: Fix input() and sys.stdin for Windows newline
On Windows, input() strips '\r' (and not only '\n'), and sys.stdin uses
universal newline (replace '\r\n' by '\n').
2011-02-23 12:07:37 +00:00
Lars Gustäbel
dd071045e7 Issue #11224: Improved sparse file read support (r85916) introduced a
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.
2011-02-23 11:42:22 +00:00
Victor Stinner
3eeee83391 dynload_dl.c: replace tabs by spaces 2011-02-23 11:29:28 +00:00
Raymond Hettinger
499e19340e Add tests for the _ChainMap helper class. 2011-02-23 07:56:53 +00:00
Georg Brandl
08f5cf51dc Indent "versionadded" properly. 2011-02-23 07:31:24 +00:00
Georg Brandl
5329123ee0 Add new subdirectory to LIBSUBDIRS. 2011-02-23 07:30:12 +00:00
Raymond Hettinger
57d1a887e7 Fix imports from collections.abc 2011-02-23 00:46:28 +00:00
Victor Stinner
bd475115c4 Issue #3080: Add PyModule_GetNameObject()
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.
2011-02-23 00:21:43 +00:00
Victor Stinner
501c09a754 Issue #3080: Mark _PyImport_FindBuiltin() argument as constant
And as a consequence, mark also name argument of
_PyImport_FindExtensionUnicode() constant too. But I plan to change this
argument type to PyObject* later.
2011-02-23 00:02:00 +00:00
Victor Stinner
d7e76405c7 Issue #3080: document encoding used by import functions 2011-02-22 23:38:34 +00:00
Victor Stinner
42040fb665 Issue #3080: Remove unused argument of _PyImport_GetDynLoadFunc()
The first argument, fqname, was not used.
2011-02-22 23:16:19 +00:00
Victor Stinner
9b99b448f7 Issue #3080: Mark PyWin_FindRegisteredModule() as private
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.
2011-02-22 23:12:28 +00:00
Brett Cannon
cfbcdbbbf2 A crypt algorithm may not be available by returning None. 2011-02-22 21:55:51 +00:00
Brett Cannon
daa5799cb8 Make Lib/crypt.py meet PEP 8 standards. This also led to a tweak in the new API
by making methods() into a module attribute as it is statically calculated.
2011-02-22 21:48:06 +00:00
Antoine Pitrou
543b7f3ee9 Issue #11277: finally fix Snow Leopard crash following r88460.
(probably an OS-related issue with mmap)
2011-02-22 21:42:56 +00:00
Brett Cannon
292ee5dc43 Fix test.test_crypt.test_methods() to pass on OS X. 2011-02-22 20:17:14 +00:00
Brett Cannon
b94767ff44 Issue #8914: fix various warnings from the Clang static analyzer v254. 2011-02-22 20:15:44 +00:00
Giampaolo Rodolà
79da6b7075 In FTP.close() method, make sure to also close the socket object, not only the file. 2011-02-22 19:24:33 +00:00