]> granicus.if.org Git - python/log
python
13 years agoCatch PyUnicode_AS_UNICODE() errors
Victor Stinner [Wed, 16 Nov 2011 23:45:54 +0000 (00:45 +0100)]
Catch PyUnicode_AS_UNICODE() errors

13 years agoFix misused of "PyUnicodeObject" structure name in unicodeobject.h
Victor Stinner [Wed, 16 Nov 2011 23:12:44 +0000 (00:12 +0100)]
Fix misused of "PyUnicodeObject" structure name in unicodeobject.h

13 years agoIssue #13374: Deprecate os.getcwdb() on Windows
Victor Stinner [Wed, 16 Nov 2011 22:43:07 +0000 (23:43 +0100)]
Issue #13374: Deprecate os.getcwdb() on Windows

13 years ago#13406: correct the error message in check_warnings too.
Ezio Melotti [Wed, 16 Nov 2011 07:54:19 +0000 (09:54 +0200)]
#13406: correct the error message in check_warnings too.

13 years ago#13406: silence deprecation warnings in test_codecs.
Ezio Melotti [Wed, 16 Nov 2011 07:39:10 +0000 (09:39 +0200)]
#13406: silence deprecation warnings in test_codecs.

13 years agofixing typos in optparse doc
Eli Bendersky [Wed, 16 Nov 2011 04:03:09 +0000 (06:03 +0200)]
fixing typos in optparse doc

13 years agofixing typos in optparse doc
Eli Bendersky [Wed, 16 Nov 2011 04:02:21 +0000 (06:02 +0200)]
fixing typos in optparse doc

13 years agoIssue #13393: BufferedReader.read1() now asks the full requested size to
Antoine Pitrou [Tue, 15 Nov 2011 23:56:10 +0000 (00:56 +0100)]
Issue #13393: BufferedReader.read1() now asks the full requested size to
the raw stream instead of limiting itself to the buffer size.

13 years agoIssue #13374: Skip deprecation tests for os.symlink() on Windows XP
Victor Stinner [Tue, 15 Nov 2011 23:34:44 +0000 (00:34 +0100)]
Issue #13374: Skip deprecation tests for os.symlink() on Windows XP

To avoid a NotImplementedError('CreateSymbolicLinkW not found') error.

13 years agoWhat's New in 3.3: Add a "Deprecated ..." section
Victor Stinner [Tue, 15 Nov 2011 23:18:57 +0000 (00:18 +0100)]
What's New in 3.3: Add a "Deprecated ..." section

13 years ago"unicode_internal" codec has been deprecated: fix related tests
Victor Stinner [Tue, 15 Nov 2011 21:44:05 +0000 (22:44 +0100)]
"unicode_internal" codec has been deprecated: fix related tests

13 years agoMerge
Antoine Pitrou [Tue, 15 Nov 2011 21:27:43 +0000 (22:27 +0100)]
Merge

13 years agoIssue #13374: The Windows bytes API has been deprecated in the os module. Use
Victor Stinner [Tue, 15 Nov 2011 21:27:41 +0000 (22:27 +0100)]
Issue #13374: The Windows bytes API has been deprecated in the os module. Use
Unicode filenames instead of bytes filenames to not depend on the ANSI code
page anymore and to support any filename.

13 years agoUse PyUnicode_FromFormat() to create the temporary file name.
Antoine Pitrou [Tue, 15 Nov 2011 21:27:32 +0000 (22:27 +0100)]
Use PyUnicode_FromFormat() to create the temporary file name.
Also, as in importlib, append the id of an object to make the file name
pseudo-random.

13 years agoCloses #13297: use bytes type to send and receive binary data through XMLRPC.
Florent Xicluna [Tue, 15 Nov 2011 19:53:25 +0000 (20:53 +0100)]
Closes #13297: use bytes type to send and receive binary data through XMLRPC.

13 years agoFix regression under Windows following b75b41237380 (from issue #13392)
Antoine Pitrou [Tue, 15 Nov 2011 19:40:55 +0000 (20:40 +0100)]
Fix regression under Windows following b75b41237380 (from issue #13392)

13 years agoIssue #13392: Writing a pyc file should now be atomic under Windows as well.
Antoine Pitrou [Tue, 15 Nov 2011 18:15:19 +0000 (19:15 +0100)]
Issue #13392: Writing a pyc file should now be atomic under Windows as well.

13 years agoMerge 3.2
Éric Araujo [Tue, 15 Nov 2011 15:13:16 +0000 (16:13 +0100)]
Merge 3.2

13 years agoBranch merge
Éric Araujo [Tue, 15 Nov 2011 15:12:49 +0000 (16:12 +0100)]
Branch merge

13 years agoBranch merge
Éric Araujo [Tue, 15 Nov 2011 15:12:22 +0000 (16:12 +0100)]
Branch merge

13 years agoMerge
Antoine Pitrou [Tue, 15 Nov 2011 14:26:32 +0000 (15:26 +0100)]
Merge

13 years agoMark test_devpoll as unexpected on most platforms
Antoine Pitrou [Tue, 15 Nov 2011 14:25:59 +0000 (15:25 +0100)]
Mark test_devpoll as unexpected on most platforms

13 years agoRemove obsolete verbose arguments from packaging.
Éric Araujo [Tue, 15 Nov 2011 10:43:20 +0000 (11:43 +0100)]
Remove obsolete verbose arguments from packaging.

Logging replaces verbose arguments.  I haven’t fixed the example in
Doc/install/install.rst because I have major fixes and changes to the
oc under way and will fix or remove that example as part of that task.

13 years agoRemove unused code from packaging.tests.__init__
Éric Araujo [Tue, 15 Nov 2011 09:48:36 +0000 (10:48 +0100)]
Remove unused code from packaging.tests.__init__

13 years agoreST fixes for /dev/poll
Jesus Cea [Tue, 15 Nov 2011 04:42:59 +0000 (05:42 +0100)]
reST fixes for /dev/poll

13 years agoIssue #13333: The UTF-7 decoder now accepts lone surrogates
Antoine Pitrou [Tue, 15 Nov 2011 00:44:16 +0000 (01:44 +0100)]
Issue #13333: The UTF-7 decoder now accepts lone surrogates
(the encoder already accepts them).

13 years agoIssue #13333: The UTF-7 decoder now accepts lone surrogates
Antoine Pitrou [Tue, 15 Nov 2011 00:42:21 +0000 (01:42 +0100)]
Issue #13333: The UTF-7 decoder now accepts lone surrogates
(the encoder already accepts them).

13 years agoIssue #13389: Full garbage collection passes now clear the freelists for
Antoine Pitrou [Mon, 14 Nov 2011 23:00:12 +0000 (00:00 +0100)]
Issue #13389: Full garbage collection passes now clear the freelists for
list and dict objects.  They already cleared other freelists in the
interpreter.

13 years agoRemove redundant setUp/tearDown methods in packaging tests
Éric Araujo [Mon, 14 Nov 2011 18:46:31 +0000 (19:46 +0100)]
Remove redundant setUp/tearDown methods in packaging tests

13 years agoThe error message should contain the key as given, not normalized.
Éric Araujo [Mon, 14 Nov 2011 18:45:30 +0000 (19:45 +0100)]
The error message should contain the key as given, not normalized.

Backout of 2e047702df7f.  Reported by Jeremy Kloth.

13 years agoAdd tests to check initial content of packaging.database caches
Éric Araujo [Mon, 14 Nov 2011 18:43:37 +0000 (19:43 +0100)]
Add tests to check initial content of packaging.database caches

13 years agopackaging cleanup: A few super I missed in 5ae03b1e147a
Éric Araujo [Mon, 14 Nov 2011 18:40:31 +0000 (19:40 +0100)]
packaging cleanup: A few super I missed in 5ae03b1e147a

13 years agoIssue #6397: Support '/dev/poll' polling objects in select module, under Solaris...
Jesus Cea [Mon, 14 Nov 2011 18:07:41 +0000 (19:07 +0100)]
Issue #6397: Support '/dev/poll' polling objects in select module, under Solaris & derivatives.

13 years agoAdapt test and example after e39d1b6f0856.
Éric Araujo [Mon, 14 Nov 2011 17:21:38 +0000 (18:21 +0100)]
Adapt test and example after e39d1b6f0856.

Tarek’s commit fixed the way packaging configuration file markers are
split under Windows, but these two files were not edited.

13 years agoFix a few typos
Éric Araujo [Mon, 14 Nov 2011 17:18:15 +0000 (18:18 +0100)]
Fix a few typos

13 years agoAdd entries for distutils2 contributors (their patches are in packaging)
Éric Araujo [Mon, 14 Nov 2011 17:14:09 +0000 (18:14 +0100)]
Add entries for distutils2 contributors (their patches are in packaging)

13 years agoRemove NEWS entries for packaging test suite fixes.
Éric Araujo [Mon, 14 Nov 2011 17:13:24 +0000 (18:13 +0100)]
Remove NEWS entries for packaging test suite fixes.

I haven’t updated NEWS for every change or fix in packaging, thinking
that the only entry we need for 3.3a1 is “Add packaging module to the
stdlib”.  Other developers have however added entries for these fixes,
but I don’t think they are interesting for users.

Note that the distutils2 backport has a full changelog.

13 years agoClean up byte-compilation code in packaging (#11254 followup).
Éric Araujo [Mon, 14 Nov 2011 17:10:19 +0000 (18:10 +0100)]
Clean up byte-compilation code in packaging (#11254 followup).

- Don't use keyword arguments for debug_override; I find it more
  readable to have a comment explaining that True makes pyc and False
  pyo than to write out the non-obvious (when you haven’t read the doc)
  argument name

- Move duplicate code from build_py and install_lib into cmd

- Remove obsolete verbose argument of util.byte_compile

- Remove obsolete passing of -O/-OO to the Python process spawned by
  util.byte_compile (I’ll remove the whole spawning later, after I write
  more tests to check the contents of pyc and pyo files; now that
  byte_compile does not depend on the value of __debug__ in the calling
  Python, we can call py_compile or compileall directly)

13 years agoFix markup
Éric Araujo [Mon, 14 Nov 2011 17:00:48 +0000 (18:00 +0100)]
Fix markup

13 years ago#1745761, #755670, #13357, #12629, #1200313: merge with 3.2.
Ezio Melotti [Mon, 14 Nov 2011 16:56:11 +0000 (18:56 +0200)]
#1745761, #755670, #13357, #12629, #1200313: merge with 3.2.

13 years ago#1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser.
Ezio Melotti [Mon, 14 Nov 2011 16:53:33 +0000 (18:53 +0200)]
#1745761, #755670, #13357, #12629, #1200313: improve attribute handling in HTMLParser.

13 years agoGroup tests about attributes in a separate class.
Ezio Melotti [Mon, 14 Nov 2011 16:13:22 +0000 (18:13 +0200)]
Group tests about attributes in a separate class.

13 years agoClarify the existence of the <> operator in Grammar/Grammar with a comment. Closes...
Eli Bendersky [Sun, 13 Nov 2011 23:18:24 +0000 (01:18 +0200)]
Clarify the existence of the <> operator in Grammar/Grammar with a comment. Closes issue 13239

13 years agoClarify the existence of the <> operator in Grammar/Grammar with a comment, for issue...
Eli Bendersky [Sun, 13 Nov 2011 23:16:31 +0000 (01:16 +0200)]
Clarify the existence of the <> operator in Grammar/Grammar with a comment, for issue 13239

13 years agoIssue #13217: add missing header dependencies in the Makefile for unicodeobject.o.
Antoine Pitrou [Sun, 13 Nov 2011 18:37:58 +0000 (19:37 +0100)]
Issue #13217: add missing header dependencies in the Makefile for unicodeobject.o.
Patch by John O'Connor.

13 years agoRestore performance of special casings for utf-16 and utf-32 in TextIOWrapper
Antoine Pitrou [Sun, 13 Nov 2011 03:11:37 +0000 (04:11 +0100)]
Restore performance of special casings for utf-16 and utf-32 in TextIOWrapper

13 years agoIn text I/O, optimize scanning for new lines with 1-byte unicode chars
Antoine Pitrou [Sun, 13 Nov 2011 02:53:42 +0000 (03:53 +0100)]
In text I/O, optimize scanning for new lines with 1-byte unicode chars

13 years agoFix memory leak with FLUFL-related syntax errors (!)
Antoine Pitrou [Sun, 13 Nov 2011 00:02:02 +0000 (01:02 +0100)]
Fix memory leak with FLUFL-related syntax errors (!)

13 years agoFix memory leak with FLUFL-related syntax errors (!)
Antoine Pitrou [Sun, 13 Nov 2011 00:01:23 +0000 (01:01 +0100)]
Fix memory leak with FLUFL-related syntax errors (!)

13 years agoFix memory leak in io.StringIO
Antoine Pitrou [Sat, 12 Nov 2011 21:34:28 +0000 (22:34 +0100)]
Fix memory leak in io.StringIO

13 years agoUse the small object allocator for small bytearrays
Antoine Pitrou [Sat, 12 Nov 2011 20:15:28 +0000 (21:15 +0100)]
Use the small object allocator for small bytearrays

13 years agoNull merge
Antoine Pitrou [Sat, 12 Nov 2011 19:39:02 +0000 (20:39 +0100)]
Null merge

13 years agoMerge
Antoine Pitrou [Sat, 12 Nov 2011 19:36:51 +0000 (20:36 +0100)]
Merge

13 years agoRestore smtpd.DEBUGSTREAM at the end of test_smtpd.
Antoine Pitrou [Sat, 12 Nov 2011 19:36:29 +0000 (20:36 +0100)]
Restore smtpd.DEBUGSTREAM at the end of test_smtpd.
(backport of 6b9f547e92d8)

13 years agoRestore smtpd.DEBUGSTREAM at the end of test_smtpd.
Antoine Pitrou [Sat, 12 Nov 2011 19:36:29 +0000 (20:36 +0100)]
Restore smtpd.DEBUGSTREAM at the end of test_smtpd.
This fixes a subsequent refleak in test_smtplib.

13 years agoMerge heads
Petri Lehtinen [Sat, 12 Nov 2011 19:23:46 +0000 (21:23 +0200)]
Merge heads

13 years agoMerge heads
Petri Lehtinen [Sat, 12 Nov 2011 19:23:28 +0000 (21:23 +0200)]
Merge heads

13 years agoMerge branch 3.2
Petri Lehtinen [Sat, 12 Nov 2011 19:15:12 +0000 (21:15 +0200)]
Merge branch 3.2

13 years agoUpdate mailbox.Maildir tests
Petri Lehtinen [Sat, 12 Nov 2011 19:02:42 +0000 (21:02 +0200)]
Update mailbox.Maildir tests

Remove a sleep to fix transient test failures. Use skewfactor of -3 to
make it work on systems that have 1 second precision for time.time().

Closes #11999
Refs #13254

13 years agoIssue 12767: document the argument of threading.Condition.notify
Eli Bendersky [Sat, 12 Nov 2011 18:46:54 +0000 (20:46 +0200)]
Issue 12767: document the argument of threading.Condition.notify

13 years agoIssue #12767: documenting threading.Condition.notify
Eli Bendersky [Sat, 12 Nov 2011 18:44:25 +0000 (20:44 +0200)]
Issue #12767: documenting threading.Condition.notify

13 years agoSanitize reference management in the utf-8 encoder
Antoine Pitrou [Sat, 12 Nov 2011 17:35:19 +0000 (18:35 +0100)]
Sanitize reference management in the utf-8 encoder

13 years agoPlug some (unlikely) refleaks.
Antoine Pitrou [Sat, 12 Nov 2011 17:05:15 +0000 (18:05 +0100)]
Plug some (unlikely) refleaks.

13 years agoIssue #13193: Fix distutils.filelist.FileList and
Antoine Pitrou [Sat, 12 Nov 2011 00:27:19 +0000 (01:27 +0100)]
Issue #13193: Fix distutils.filelist.FileList and
packaging.manifest.Manifest under Windows.  The "recursive-include"
directive now recognizes both legal path separators.

13 years agoAdd NEWS entry for #13193
Antoine Pitrou [Sat, 12 Nov 2011 00:22:11 +0000 (01:22 +0100)]
Add NEWS entry for #13193

13 years agoIssue #13193: fix distutils.filelist.FileList under Windows
Antoine Pitrou [Sat, 12 Nov 2011 00:20:45 +0000 (01:20 +0100)]
Issue #13193: fix distutils.filelist.FileList under Windows

13 years agoRemove unused or redundant imports in concurrent.futures and multiprocessing.
Florent Xicluna [Fri, 11 Nov 2011 19:05:50 +0000 (20:05 +0100)]
Remove unused or redundant imports in concurrent.futures and multiprocessing.

13 years agoMerge 3.2, doc typos.
Florent Xicluna [Fri, 11 Nov 2011 18:58:53 +0000 (19:58 +0100)]
Merge 3.2, doc typos.

13 years agoReformat paragraphs.
Florent Xicluna [Fri, 11 Nov 2011 18:56:26 +0000 (19:56 +0100)]
Reformat paragraphs.

13 years agoFew typos in the documentation.
Florent Xicluna [Fri, 11 Nov 2011 18:55:21 +0000 (19:55 +0100)]
Few typos in the documentation.

13 years agoMerge 3.2, fix typos.
Florent Xicluna [Fri, 11 Nov 2011 18:39:25 +0000 (19:39 +0100)]
Merge 3.2, fix typos.

13 years agoFix few typos.
Florent Xicluna [Fri, 11 Nov 2011 18:35:42 +0000 (19:35 +0100)]
Fix few typos.

13 years agoMerge 3.2. Remove duplicate ACKS and reorder slightly to prevent future dups.
Florent Xicluna [Fri, 11 Nov 2011 18:31:02 +0000 (19:31 +0100)]
Merge 3.2. Remove duplicate ACKS and reorder slightly to prevent future dups.

13 years agoRemove duplicate ACKS.
Florent Xicluna [Fri, 11 Nov 2011 18:21:22 +0000 (19:21 +0100)]
Remove duplicate ACKS.

13 years agoUse unittest.skipUnless to skip the test related to the glibc bug, issue #13309.
Florent Xicluna [Fri, 11 Nov 2011 17:59:30 +0000 (18:59 +0100)]
Use unittest.skipUnless to skip the test related to the glibc bug, issue #13309.

13 years agoMerge 3.2
Brian Curtin [Fri, 11 Nov 2011 15:41:17 +0000 (09:41 -0600)]
Merge 3.2

13 years agoFix #13384. Remove __future__ import in 3.x code.
Brian Curtin [Fri, 11 Nov 2011 15:37:25 +0000 (09:37 -0600)]
Fix #13384. Remove __future__ import in 3.x code.

13 years agoFix range in test.
Ezio Melotti [Fri, 11 Nov 2011 15:00:46 +0000 (17:00 +0200)]
Fix range in test.

13 years agoIssue #13161: fix doc strings of __i*__ operators. Closes #13161
Eli Bendersky [Fri, 11 Nov 2011 15:02:16 +0000 (17:02 +0200)]
Issue #13161: fix doc strings of __i*__ operators. Closes #13161

13 years agoIssue #13161: fix doc strings of __i*__ operators
Eli Bendersky [Fri, 11 Nov 2011 14:57:05 +0000 (16:57 +0200)]
Issue #13161: fix doc strings of __i*__ operators

13 years agoMake test more inclusive
Antoine Pitrou [Fri, 11 Nov 2011 12:35:44 +0000 (13:35 +0100)]
Make test more inclusive

13 years agoEnable commented out test
Antoine Pitrou [Fri, 11 Nov 2011 12:31:59 +0000 (13:31 +0100)]
Enable commented out test

13 years agoFix regression on 2-byte wchar_t systems (Windows)
Antoine Pitrou [Fri, 11 Nov 2011 12:29:12 +0000 (13:29 +0100)]
Fix regression on 2-byte wchar_t systems (Windows)

13 years agoIssue #13191: typo in argparse docs
Eli Bendersky [Fri, 11 Nov 2011 08:58:36 +0000 (10:58 +0200)]
Issue #13191: typo in argparse docs

13 years agoIssue #13191: typo in argparse docs
Eli Bendersky [Fri, 11 Nov 2011 08:57:01 +0000 (10:57 +0200)]
Issue #13191: typo in argparse docs

13 years agoIssue #13365: correct an error in the documentation of str.expandtabs. Patch by John...
Eli Bendersky [Fri, 11 Nov 2011 08:44:22 +0000 (10:44 +0200)]
Issue #13365: correct an error in the documentation of str.expandtabs. Patch by John Feuerstein

13 years agoIssue #13365: correct an error in the documentation of str.expandtabs
Eli Bendersky [Fri, 11 Nov 2011 08:40:14 +0000 (10:40 +0200)]
Issue #13365: correct an error in the documentation of str.expandtabs

13 years agoAvoid a glibc bug in test_time (issue #13309)
Antoine Pitrou [Fri, 11 Nov 2011 02:04:35 +0000 (03:04 +0100)]
Avoid a glibc bug in test_time (issue #13309)

13 years agoAvoid crashing because of an unaligned word access
Antoine Pitrou [Fri, 11 Nov 2011 01:59:42 +0000 (02:59 +0100)]
Avoid crashing because of an unaligned word access

13 years agoSpeed up IDNA for the common case
Antoine Pitrou [Thu, 10 Nov 2011 21:49:20 +0000 (22:49 +0100)]
Speed up IDNA for the common case

13 years agoIssue #13149: Speed up append-only StringIO objects.
Antoine Pitrou [Thu, 10 Nov 2011 20:47:38 +0000 (21:47 +0100)]
Issue #13149: Speed up append-only StringIO objects.
This is very similar to the "lazy strings" idea.

13 years agoFix and deprecated the unicode_internal codec
Victor Stinner [Thu, 10 Nov 2011 19:56:30 +0000 (20:56 +0100)]
Fix and deprecated the unicode_internal codec

unicode_internal codec uses Py_UNICODE instead of the real internal
representation (PEP 393: Py_UCS1, Py_UCS2 or Py_UCS4) for backward
compatibility.

13 years agoFix test_socket when built whithout threads.
Charles-François Natali [Thu, 10 Nov 2011 19:33:36 +0000 (20:33 +0100)]
Fix test_socket when built whithout threads.

13 years agoPrefer Py_UCS4 or wchar_t over Py_UNICODE
Victor Stinner [Thu, 10 Nov 2011 19:31:37 +0000 (20:31 +0100)]
Prefer Py_UCS4 or wchar_t over Py_UNICODE

13 years agoPyUnicode_DecodeCharmap() uses the new Unicode API
Victor Stinner [Thu, 10 Nov 2011 19:30:22 +0000 (20:30 +0100)]
PyUnicode_DecodeCharmap() uses the new Unicode API

13 years agoAvoid PyUnicode_AS_UNICODE in the UTF-8 encoder
Victor Stinner [Thu, 10 Nov 2011 19:21:49 +0000 (20:21 +0100)]
Avoid PyUnicode_AS_UNICODE in the UTF-8 encoder

13 years agoFix "unicode_escape" encoder
Victor Stinner [Thu, 10 Nov 2011 19:15:25 +0000 (20:15 +0100)]
Fix "unicode_escape" encoder

13 years agoFix UTF-7 encoder on Windows
Victor Stinner [Thu, 10 Nov 2011 19:12:49 +0000 (20:12 +0100)]
Fix UTF-7 encoder on Windows

13 years agoFix build on Windows
Victor Stinner [Thu, 10 Nov 2011 19:05:55 +0000 (20:05 +0100)]
Fix build on Windows

13 years agoIssue #7777: socket: Add Reliable Datagram Sockets (PF_RDS) support.
Charles-François Natali [Thu, 10 Nov 2011 18:21:37 +0000 (19:21 +0100)]
Issue #7777: socket: Add Reliable Datagram Sockets (PF_RDS) support.