]> granicus.if.org Git - python/log
python
12 years agonull merge from 2.6
Barry Warsaw [Wed, 22 Feb 2012 19:27:53 +0000 (14:27 -0500)]
null merge from 2.6

12 years agoBackport from 2.7:
Barry Warsaw [Wed, 22 Feb 2012 18:50:04 +0000 (13:50 -0500)]
Backport from 2.7:

    changeset:   75153:9b7c6dd19e25
    branch:      2.7
    parent:      75151:b1a02c17b327
    user:        Antoine Pitrou <solipsis@pitrou.net>
    date:        Tue Feb 21 22:02:04 2012 +0100
    files:       Lib/test/test_os.py

12 years agonull merge from 2.6
Barry Warsaw [Wed, 22 Feb 2012 18:39:59 +0000 (13:39 -0500)]
null merge from 2.6

12 years agoBackport from 2.7 branch.
Barry Warsaw [Wed, 22 Feb 2012 18:34:18 +0000 (13:34 -0500)]
Backport from 2.7 branch.

    changeset:   75165:780008020c40
    user:        Antoine Pitrou <solipsis@pitrou.net>
    date:        Wed Feb 22 03:33:56 2012 +0100
    summary:     Fix (presumably) test_hash under big-endian systems (PPC).

12 years agoFix (presumably) test_hash under big-endian systems (PPC).
Antoine Pitrou [Wed, 22 Feb 2012 02:33:56 +0000 (03:33 +0100)]
Fix (presumably) test_hash under big-endian systems (PPC).

12 years agoIssue #14053: Fix "make patchcheck" to work with MQ.
Nadeem Vawda [Wed, 22 Feb 2012 09:40:09 +0000 (11:40 +0200)]
Issue #14053: Fix "make patchcheck" to work with MQ.

Patch by Francisco Martín Brugué

12 years agoAvoid py3k warnings related to sort() of unrelated types.
Antoine Pitrou [Tue, 21 Feb 2012 23:28:46 +0000 (00:28 +0100)]
Avoid py3k warnings related to sort() of unrelated types.

12 years agomerge with 2.6
Georg Brandl [Tue, 21 Feb 2012 21:38:31 +0000 (22:38 +0100)]
merge with 2.6

12 years agoRemove reST markup from --help output. Also: O(n**2) is dict construction, not singl...
Georg Brandl [Tue, 21 Feb 2012 21:36:27 +0000 (22:36 +0100)]
Remove reST markup from --help output.  Also: O(n**2) is dict construction, not single insertion.

12 years agoFix flaky os.urandom test.
Antoine Pitrou [Tue, 21 Feb 2012 21:02:04 +0000 (22:02 +0100)]
Fix flaky os.urandom test.

12 years agomerge 2.6
Benjamin Peterson [Tue, 21 Feb 2012 20:09:08 +0000 (15:09 -0500)]
merge 2.6

12 years agodon't need this hack anymore
Benjamin Peterson [Tue, 21 Feb 2012 20:08:51 +0000 (15:08 -0500)]
don't need this hack anymore

12 years agoNull merge
Antoine Pitrou [Tue, 21 Feb 2012 19:52:54 +0000 (20:52 +0100)]
Null merge

12 years agoFix crash at startup with -W options.
Antoine Pitrou [Tue, 21 Feb 2012 19:42:48 +0000 (20:42 +0100)]
Fix crash at startup with -W options.

12 years agoFix crash at startup with -W options.
Antoine Pitrou [Tue, 21 Feb 2012 19:42:48 +0000 (20:42 +0100)]
Fix crash at startup with -W options.

12 years agoIssue #6807: Run msisupport.mak earlier.
Martin v. Löwis [Tue, 21 Feb 2012 17:12:02 +0000 (18:12 +0100)]
Issue #6807: Run msisupport.mak earlier.

12 years agomerge 2.6
Benjamin Peterson [Tue, 21 Feb 2012 16:24:21 +0000 (11:24 -0500)]
merge 2.6

12 years agomerge heads
Benjamin Peterson [Tue, 21 Feb 2012 16:23:21 +0000 (11:23 -0500)]
merge heads

12 years agomerge 2.7
Barry Warsaw [Tue, 21 Feb 2012 16:19:00 +0000 (11:19 -0500)]
merge 2.7

12 years agomerge 2.6
Barry Warsaw [Tue, 21 Feb 2012 16:16:52 +0000 (11:16 -0500)]
merge 2.6

12 years agoBackport fix from default branch for ./python -R -Wd where hash('d') would not
Barry Warsaw [Tue, 21 Feb 2012 16:16:06 +0000 (11:16 -0500)]
Backport fix from default branch for ./python -R -Wd where hash('d') would not
have gotten randomized.

12 years agoensure no one tries to hash things before the random seed is found
Benjamin Peterson [Tue, 21 Feb 2012 16:08:50 +0000 (11:08 -0500)]
ensure no one tries to hash things before the random seed is found

12 years agoIssue #10580: Minor grammar change in Windows installer.
Martin v. Löwis [Tue, 21 Feb 2012 16:07:32 +0000 (17:07 +0100)]
Issue #10580: Minor grammar change in Windows installer.

12 years agonull merge from 2.6
Barry Warsaw [Tue, 21 Feb 2012 15:23:27 +0000 (10:23 -0500)]
null merge from 2.6

12 years agoLet's sort the keys so that this test passes even with random hashes.
Barry Warsaw [Tue, 21 Feb 2012 15:22:34 +0000 (10:22 -0500)]
Let's sort the keys so that this test passes even with random hashes.

12 years agocarefully don't depend on any dict order
Benjamin Peterson [Tue, 21 Feb 2012 14:07:40 +0000 (09:07 -0500)]
carefully don't depend on any dict order

12 years agoremove extra zero
Benjamin Peterson [Tue, 21 Feb 2012 13:08:29 +0000 (08:08 -0500)]
remove extra zero

12 years agosqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures
Petri Lehtinen [Tue, 21 Feb 2012 11:58:40 +0000 (13:58 +0200)]
sqlite3: Fix 64-bit integer handling in user functions on 32-bit architectures

Closes #8033.

12 years agoHTMLParser is now able to handle slashes in the start tag.
Ezio Melotti [Tue, 21 Feb 2012 07:22:16 +0000 (09:22 +0200)]
HTMLParser is now able to handle slashes in the start tag.

12 years agokill interned strings computed before random initialization
Benjamin Peterson [Tue, 21 Feb 2012 05:40:14 +0000 (00:40 -0500)]
kill interned strings computed before random initialization

12 years agodon't rely on dict order
Benjamin Peterson [Tue, 21 Feb 2012 05:15:10 +0000 (00:15 -0500)]
don't rely on dict order

12 years agoa frozenset is better here
Benjamin Peterson [Tue, 21 Feb 2012 04:13:20 +0000 (23:13 -0500)]
a frozenset is better here

12 years agouse set
Benjamin Peterson [Tue, 21 Feb 2012 04:11:19 +0000 (23:11 -0500)]
use set

12 years agodon't rely on dict order
Benjamin Peterson [Tue, 21 Feb 2012 04:06:22 +0000 (23:06 -0500)]
don't rely on dict order

12 years agothis was supposed to die
Benjamin Peterson [Tue, 21 Feb 2012 03:33:33 +0000 (22:33 -0500)]
this was supposed to die

12 years agofix for real this time...
Benjamin Peterson [Tue, 21 Feb 2012 03:00:46 +0000 (22:00 -0500)]
fix for real this time...

12 years agobelately resolve conflicts here
Benjamin Peterson [Tue, 21 Feb 2012 02:57:25 +0000 (21:57 -0500)]
belately resolve conflicts here

12 years agofix test_gdb under hash randomization
Benjamin Peterson [Tue, 21 Feb 2012 02:55:32 +0000 (21:55 -0500)]
fix test_gdb under hash randomization

12 years agodon't rely on dict order here
Benjamin Peterson [Tue, 21 Feb 2012 02:47:54 +0000 (21:47 -0500)]
don't rely on dict order here

12 years agomerge 2.6 with hash randomization fix
Benjamin Peterson [Tue, 21 Feb 2012 02:44:56 +0000 (21:44 -0500)]
merge 2.6 with hash randomization fix

12 years agoWhitespace normalization
Barry Warsaw [Tue, 21 Feb 2012 01:44:15 +0000 (20:44 -0500)]
Whitespace normalization

12 years ago- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
Barry Warsaw [Tue, 21 Feb 2012 01:42:21 +0000 (20:42 -0500)]
- Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
  environment variable, to provide an opt-in way to protect against denial of
  service attacks due to hash collisions within the dict and set types.  Patch
  by David Malcolm, based on work by Victor Stinner.

12 years agodon't rely on the order of module clearing
Benjamin Peterson [Mon, 20 Feb 2012 20:20:37 +0000 (15:20 -0500)]
don't rely on the order of module clearing

12 years agonull merge from 2.6
Barry Warsaw [Mon, 20 Feb 2012 19:45:45 +0000 (14:45 -0500)]
null merge from 2.6

12 years agonull merge from 2.6
Barry Warsaw [Mon, 20 Feb 2012 19:44:26 +0000 (14:44 -0500)]
null merge from 2.6

12 years agoBack port Python 2.7 fix for test_invalid_redirect() in test_urllib.py.
Barry Warsaw [Mon, 20 Feb 2012 19:43:22 +0000 (14:43 -0500)]
Back port Python 2.7 fix for test_invalid_redirect() in test_urllib.py.

12 years agologging: clarified documentation for Handler.handleError.
Vinay Sajip [Mon, 20 Feb 2012 18:34:07 +0000 (18:34 +0000)]
logging: clarified documentation for Handler.handleError.

13 years agoAdd missing “::” markup and wrap overlong lines
Éric Araujo [Mon, 20 Feb 2012 01:08:01 +0000 (02:08 +0100)]
Add missing “::” markup and wrap overlong lines

13 years agoFix typo
Éric Araujo [Mon, 20 Feb 2012 01:07:31 +0000 (02:07 +0100)]
Fix typo

13 years agodon't split 'Hye-Shik Chang' name; thanks to Sergey from docs@
Sandro Tosi [Sun, 19 Feb 2012 11:29:43 +0000 (12:29 +0100)]
don't split 'Hye-Shik Chang' name; thanks to Sergey from docs@

13 years agouse Py_CLEAR
Benjamin Peterson [Sun, 19 Feb 2012 06:11:56 +0000 (01:11 -0500)]
use Py_CLEAR

13 years agoFix Test for issue #13500
Jesus Cea [Sun, 19 Feb 2012 03:20:45 +0000 (04:20 +0100)]
Fix Test for issue #13500

13 years agoTest for issue #13500
Jesus Cea [Sun, 19 Feb 2012 02:54:08 +0000 (03:54 +0100)]
Test for issue #13500

13 years agoIssue #12627: Implement PEP 394 for OS X framework builds.
Ned Deily [Sun, 19 Feb 2012 01:19:12 +0000 (02:19 +0100)]
Issue #12627: Implement PEP 394 for OS X framework builds.
OS X framework builds already created versioned symlinks for all
executables and scripts installed in the framework bin directory,
of the general form ${cmd} - ${cmd}2.7.  The changes here add a
hierarchy of ${cmd} -> ${cmd}2 -> ${cmd}2.7.  Per previous
practice, all of the links are created in the framework bin
directory for both the install and altinstall targets.  This is
consistent with the long-standing recommendation to manage multiple
framework versions by adding and ordering framework bin directories
on $PATH.  Also, per past practice, symlinks to all framework bin
entries are created in $prefix/bin (by default, /usr/local/bin)
for the install target and only versioned links are created for
altinstall, although the use of these links is not recommended
for framework builds and their installation is optional with
the standard OS X installers.

13 years agoRefer to 'time' and 'datetime' submodules; thanks to Erik Johnson from docs@
Sandro Tosi [Sat, 18 Feb 2012 19:28:35 +0000 (20:28 +0100)]
Refer to 'time' and 'datetime' submodules; thanks to Erik Johnson from docs@

This is needed after the move to Sphinx 1.x and it's the same way 3.x braches
managed it.

13 years agoIssue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
Charles-François Natali [Sat, 18 Feb 2012 13:30:34 +0000 (14:30 +0100)]
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.

13 years agoIssue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
Charles-François Natali [Sat, 18 Feb 2012 13:15:38 +0000 (14:15 +0100)]
Issue #14001: CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer
upon malformed POST request.

13 years ago#14020: improve HTMLParser documentation.
Ezio Melotti [Fri, 17 Feb 2012 23:46:04 +0000 (01:46 +0200)]
#14020: improve HTMLParser documentation.

13 years agoFix a variable scoping error in an sqlite3 test
Petri Lehtinen [Fri, 17 Feb 2012 19:34:41 +0000 (21:34 +0200)]
Fix a variable scoping error in an sqlite3 test

Initial patch by Torsten Landschoff.

Closes #11689.

13 years agoImplement PEP 394 for Python 2.7
Nick Coghlan [Fri, 17 Feb 2012 12:10:38 +0000 (22:10 +1000)]
Implement PEP 394 for Python 2.7

13 years agoFix errors in sqlite3's Cursor.rowcount documentation
Petri Lehtinen [Thu, 16 Feb 2012 19:42:34 +0000 (21:42 +0200)]
Fix errors in sqlite3's Cursor.rowcount documentation

Closes #13995.

13 years agonews entry for previous commit
Gregory P. Smith [Thu, 16 Feb 2012 08:44:50 +0000 (00:44 -0800)]
news entry for previous commit

13 years agoIssue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.
Gregory P. Smith [Thu, 16 Feb 2012 08:40:03 +0000 (00:40 -0800)]
Issue #2489: Fix bug in _copy loop that could consume 100% cpu on EOF.

13 years agoIssue #11836: document multiprocessing.queues.SimpleQueue
Sandro Tosi [Wed, 15 Feb 2012 21:39:52 +0000 (22:39 +0100)]
Issue #11836: document multiprocessing.queues.SimpleQueue

13 years agoIssue #13014: Fix a possible reference leak in SSLSocket.getpeercert().
Antoine Pitrou [Wed, 15 Feb 2012 21:25:27 +0000 (22:25 +0100)]
Issue #13014: Fix a possible reference leak in SSLSocket.getpeercert().

13 years agoFix test failure for shared builds caused by #1326113 fix
Éric Araujo [Wed, 15 Feb 2012 17:13:45 +0000 (18:13 +0100)]
Fix test failure for shared builds caused by #1326113 fix

13 years agoImprove doc for atexit.register (#12297)
Éric Araujo [Wed, 15 Feb 2012 16:08:34 +0000 (17:08 +0100)]
Improve doc for atexit.register (#12297)

13 years agoFix parsing of build_ext --libraries option (#1326113)
Éric Araujo [Wed, 15 Feb 2012 15:28:20 +0000 (16:28 +0100)]
Fix parsing of build_ext --libraries option (#1326113)

13 years ago#13987: HTMLParser is now able to handle malformed start tags.
Ezio Melotti [Wed, 15 Feb 2012 11:19:10 +0000 (13:19 +0200)]
#13987: HTMLParser is now able to handle malformed start tags.

13 years ago#13987: HTMLParser is now able to handle EOFs in the middle of a construct.
Ezio Melotti [Wed, 15 Feb 2012 10:44:23 +0000 (12:44 +0200)]
#13987: HTMLParser is now able to handle EOFs in the middle of a construct.

13 years agoFix indentation.
Antoine Pitrou [Wed, 15 Feb 2012 01:57:19 +0000 (02:57 +0100)]
Fix indentation.

13 years agoIssue #13020: Fix a reference leak when allocating a structsequence object fails.
Antoine Pitrou [Wed, 15 Feb 2012 01:51:43 +0000 (02:51 +0100)]
Issue #13020: Fix a reference leak when allocating a structsequence object fails.
Patch by Suman Saha.

13 years agoIssue #13015: Fix a possible reference leak in defaultdict.__repr__.
Antoine Pitrou [Wed, 15 Feb 2012 01:42:46 +0000 (02:42 +0100)]
Issue #13015: Fix a possible reference leak in defaultdict.__repr__.
Patch by Suman Saha.

13 years agoIssue #13979: Fix ctypes.util.find_library ldconfig regex
Meador Inge [Tue, 14 Feb 2012 04:22:06 +0000 (22:22 -0600)]
Issue #13979: Fix ctypes.util.find_library ldconfig regex

13 years agore.escape os.sep so that \ is interpreted properly in the regex.
Gregory P. Smith [Tue, 14 Feb 2012 00:45:47 +0000 (16:45 -0800)]
re.escape os.sep so that \ is interpreted properly in the regex.

13 years agoIssue #13930: fix a / to use os.sep so that the test works on Windows.
Gregory P. Smith [Tue, 14 Feb 2012 00:28:54 +0000 (16:28 -0800)]
Issue #13930: fix a / to use os.sep so that the test works on Windows.

13 years agoIssue #13193: Fix distutils.filelist tests to always use / as path separator.
Nadeem Vawda [Mon, 13 Feb 2012 19:33:51 +0000 (21:33 +0200)]
Issue #13193: Fix distutils.filelist tests to always use / as path separator.

13 years agoFix an index, add more tests, avoid raising errors for unknown declarations, and...
Ezio Melotti [Mon, 13 Feb 2012 18:36:55 +0000 (20:36 +0200)]
Fix an index, add more tests, avoid raising errors for unknown declarations, and clean up comments.

13 years agoshutil copy module reference doc fix.
Senthil Kumaran [Mon, 13 Feb 2012 15:17:45 +0000 (23:17 +0800)]
shutil copy module reference doc fix.

13 years ago#13993: HTMLParser is now able to handle broken end tags.
Ezio Melotti [Mon, 13 Feb 2012 14:28:54 +0000 (16:28 +0200)]
#13993: HTMLParser is now able to handle broken end tags.

13 years ago#13960: HTMLParser is now able to handle broken comments.
Ezio Melotti [Mon, 13 Feb 2012 14:10:44 +0000 (16:10 +0200)]
#13960: HTMLParser is now able to handle broken comments.

13 years agofix whitespace normalization before pushing.
Gregory P. Smith [Sun, 12 Feb 2012 23:59:35 +0000 (15:59 -0800)]
fix whitespace normalization before pushing.

13 years agoIssue #13930: Adds ability for 2to3 to write its output to a different
Gregory P. Smith [Sun, 12 Feb 2012 23:51:21 +0000 (15:51 -0800)]
Issue #13930: Adds ability for 2to3 to write its output to a different
directory tree instead of overwriting the input files.  Adds three command
line options: -o/--output-dir, -W/--write-unchanged-files and --add-suffix.

Feature backports into stable release branches for 2to3 are allowed by
a special exemption:
 http://mail.python.org/pipermail/python-dev/2011-December/115089.html

13 years agoAdd myself to Misc/ACKS
Petri Lehtinen [Sun, 12 Feb 2012 19:11:38 +0000 (21:11 +0200)]
Add myself to Misc/ACKS

13 years agoFix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes
Petri Lehtinen [Sun, 12 Feb 2012 19:03:02 +0000 (21:03 +0200)]
Fix sqlite3.Connection.iterdump on tables/fields with reserved names or quotes

Closes #9750

13 years agoTypo in Misc/NEWS.
Florent Xicluna [Sun, 12 Feb 2012 13:49:03 +0000 (14:49 +0100)]
Typo in Misc/NEWS.

13 years agoUpdate mention of Subversion repo in the FAQ
Éric Araujo [Sun, 12 Feb 2012 03:54:43 +0000 (04:54 +0100)]
Update mention of Subversion repo in the FAQ

13 years agoFix distutils.filelist.FileList under Windows (#13193).
Éric Araujo [Sun, 12 Feb 2012 03:41:36 +0000 (04:41 +0100)]
Fix distutils.filelist.FileList under Windows (#13193).

The code used to call os.path.join to build a regex but without escaping
the backslash, which lead to test failures on Windows.  Antoine Pitrou
fixed it in 557a973709de by enhancing the code to accept both / and \,
with proper escaping, but in my opinion this goes against the distutils
feature freeze, hence this change.

13 years agoIssue #13994: Earler partial revert of Distutils enhancements in 2.7
Ned Deily [Sat, 11 Feb 2012 19:40:24 +0000 (20:40 +0100)]
Issue #13994: Earler partial revert of Distutils enhancements in 2.7
has left two versions of customize_compiler, the original in
distutils.sysconfig and another copy in distutils.ccompiler, with some
parts of distutils calling one and others using the other.
Complete the revert back to only having one in distutils.sysconfig as
is the case in 3.x.

13 years agothis is only a borrowed ref in Brett's branch
Benjamin Peterson [Fri, 10 Feb 2012 13:46:54 +0000 (08:46 -0500)]
this is only a borrowed ref in Brett's branch

13 years agoIssue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building
Ned Deily [Fri, 10 Feb 2012 11:59:06 +0000 (12:59 +0100)]
Issue #13590: On OS X 10.7 and 10.6 with Xcode 4.2, building
Distutils-based packages with C extension modules may fail because
Apple has removed gcc-4.2, the version used to build python.org
64-bit/32-bit Pythons.  If the user does not explicitly override
the default C compiler by setting the CC environment variable,
Distutils will now attempt to compile extension modules with clang
if gcc-4.2 is required but not found. Also as a convenience, if
the user does explicitly set CC, substitute its value as the default
compiler in the Distutils LDSHARED configuration variable for OS X.
(Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u
SDK, neither of which are available in Xcode 4.  This change does not
attempt to override settings to support their use with Xcode 4.)

13 years agodistutils 2.7’s Extension does not support optional (#13865).
Éric Araujo [Fri, 10 Feb 2012 04:31:28 +0000 (05:31 +0100)]
distutils 2.7’s Extension does not support optional (#13865).

Reported by Miki Tebeka.

13 years agoIssue #9021: Add an introduction to the copy module. Doc changes suggested by Terry...
Senthil Kumaran [Thu, 9 Feb 2012 10:22:01 +0000 (18:22 +0800)]
Issue #9021: Add an introduction to the copy module. Doc changes suggested by Terry Reedy.

13 years agoFix Issue #6005: Examples in the socket library documentation use sendall,
Senthil Kumaran [Thu, 9 Feb 2012 09:43:31 +0000 (17:43 +0800)]
Fix Issue #6005: Examples in the socket library documentation use sendall,
where relevant, instead send method. Patch contributed by Brian Brazil.

13 years agoSkip test_threading.test_reinit_tls_after_fork() on platforms where fork()
Charles-François Natali [Wed, 8 Feb 2012 20:27:56 +0000 (21:27 +0100)]
Skip test_threading.test_reinit_tls_after_fork() on platforms where fork()
can't be called reliably from a worker thread.

13 years agoIssue #10811: Fix recursive usage of cursors. Instead of crashing, raise a Programmin...
Petri Lehtinen [Mon, 9 May 2011 10:24:09 +0000 (12:24 +0200)]
Issue #10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.

13 years agobltinmod is borrowed, so it shouldn't be decrefed
Benjamin Peterson [Mon, 6 Feb 2012 16:28:45 +0000 (11:28 -0500)]
bltinmod is borrowed, so it shouldn't be decrefed

13 years agoIssue #10881: Fix test_site failures with OS X framework builds.
Ned Deily [Sun, 5 Feb 2012 23:55:50 +0000 (00:55 +0100)]
Issue #10881: Fix test_site failures with OS X framework builds.

13 years agoIssue 964437 Make IDLE help window non-modal.
Terry Jan Reedy [Sun, 5 Feb 2012 20:10:55 +0000 (15:10 -0500)]
Issue 964437 Make IDLE help window non-modal.
Patch by Guilherme Polo and Roger Serwy.

13 years ago#13933 refine patch using 'new' builtin
Terry Jan Reedy [Sun, 5 Feb 2012 19:30:43 +0000 (14:30 -0500)]
#13933 refine patch using 'new' builtin