python_lang:hongbins-mirror.git
8 years agoTagging for release of Python 2.5.5 r255
martin.v.loewis [Sun, 31 Jan 2010 12:39:06 +0000 (12:39 +0000)]
Tagging for release of Python 2.5.5

git-svn-id: http://svn.python.org/projects/python/tags/r255@77873 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoPrepare for 2.5.5.
martin.v.loewis [Sun, 31 Jan 2010 12:38:29 +0000 (12:38 +0000)]
Prepare for 2.5.5.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@77872 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoPrepare for 2.5.5c2.
martin.v.loewis [Sun, 24 Jan 2010 14:24:46 +0000 (14:24 +0000)]
Prepare for 2.5.5c2.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@77725 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago- expat: Fix DoS via malformed XML (CVE-2009-3720).
matthias.klose [Thu, 21 Jan 2010 17:43:31 +0000 (17:43 +0000)]
- expat: Fix DoS via malformed XML (CVE-2009-3720).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@77666 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago- Fix DoS via XML document with malformed UTF-8 sequences (CVE_2009_3560).
matthias.klose [Thu, 21 Jan 2010 17:41:47 +0000 (17:41 +0000)]
- Fix DoS via XML document with malformed UTF-8 sequences (CVE_2009_3560).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@77665 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoPrepare for 2.5.5c1.
martin.v.loewis [Thu, 14 Jan 2010 17:41:58 +0000 (17:41 +0000)]
Prepare for 2.5.5c1.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@77503 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoRestore the svn property changes in r76754
mark.dickinson [Fri, 11 Dec 2009 20:09:24 +0000 (20:09 +0000)]
Restore the svn property changes in r76754

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@76756 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7470: logging: fix bug in Unicode encoding fallback.
vinay.sajip [Fri, 11 Dec 2009 09:16:01 +0000 (09:16 +0000)]
Issue #7470: logging: fix bug in Unicode encoding fallback.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@76754 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years agoIssue #7403: logging: Fixed possible race condition in lock creation.
vinay.sajip [Fri, 27 Nov 2009 15:34:35 +0000 (15:34 +0000)]
Issue #7403: logging: Fixed possible race condition in lock creation.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@76554 6015fed2-1504-0410-9fe1-9d1591cc4771

8 years ago#6990: clear threading.local's key only after its thread state is removed:
philip.jenvey [Tue, 29 Sep 2009 05:30:42 +0000 (05:30 +0000)]
#6990: clear threading.local's key only after its thread state is removed:
fixes local subclasses leaving old state around after a ref cycle GC which
could be recycled by new locals
(backported from r75123)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@75127 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoAvoid EOFError being passed to the caller (restoring the
lars.gustaebel [Sun, 22 Mar 2009 21:34:05 +0000 (21:34 +0000)]
Avoid EOFError being passed to the caller (restoring the
old behavior).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@70530 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop
lars.gustaebel [Sun, 22 Mar 2009 20:48:03 +0000 (20:48 +0000)]
Issue #5068: Fixed the tarfile._BZ2Proxy.read() method that would loop
forever on incomplete input. That caused tarfile.open() to hang when used
with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or
partial bzip2 compressed data.

(backported from r70523)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@70527 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoNews for issue 5389 fix.
guido.van.rossum [Thu, 5 Mar 2009 21:49:40 +0000 (21:49 +0000)]
News for issue 5389 fix.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@70200 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoAvoid potential for undefined variable 'startinpos' in PyUnicode_DecodeUTF7().
guido.van.rossum [Thu, 5 Mar 2009 21:47:33 +0000 (21:47 +0000)]
Avoid potential for undefined variable 'startinpos' in PyUnicode_DecodeUTF7().
See issue #5389.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@70199 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoPrepare for 2.5.4.
martin.v.loewis [Tue, 23 Dec 2008 13:18:53 +0000 (13:18 +0000)]
Prepare for 2.5.4.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67916 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4689: Fix typo.
martin.v.loewis [Tue, 23 Dec 2008 13:15:02 +0000 (13:15 +0000)]
Issue #4689: Fix typo.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67915 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago Revert patch for #1706039, as it can crash the interpreter.
martin.v.loewis [Tue, 23 Dec 2008 13:10:43 +0000 (13:10 +0000)]
 Revert patch for #1706039, as it can crash the interpreter.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67914 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r67908:
martin.v.loewis [Tue, 23 Dec 2008 13:07:51 +0000 (13:07 +0000)]
Backport of r67908:
Added test case to ensure attempts to read from a file opened for writing
fail.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67913 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoPost 2.5.3.
martin.v.loewis [Sat, 20 Dec 2008 03:38:16 +0000 (03:38 +0000)]
Post 2.5.3.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67867 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoPrepare for 2.5.3.
martin.v.loewis [Fri, 19 Dec 2008 15:08:45 +0000 (15:08 +0000)]
Prepare for 2.5.3.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67855 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBuild against system Tcl framework.
martin.v.loewis [Fri, 19 Dec 2008 15:05:38 +0000 (15:05 +0000)]
Build against system Tcl framework.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67854 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIn the OSX installer, update SQLite to 3.6.7, and change bsddb URL.
martin.v.loewis [Wed, 17 Dec 2008 18:03:01 +0000 (18:03 +0000)]
In the OSX installer, update SQLite to 3.6.7, and change bsddb URL.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67825 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoAdd 2.5.3 final section.
martin.v.loewis [Sat, 13 Dec 2008 22:32:24 +0000 (22:32 +0000)]
Add 2.5.3 final section.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67745 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoPrepare for 2.5.3c1.
martin.v.loewis [Sat, 13 Dec 2008 15:42:40 +0000 (15:42 +0000)]
Prepare for 2.5.3c1.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67742 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoAdd 2.5.3.
martin.v.loewis [Sat, 13 Dec 2008 15:40:54 +0000 (15:40 +0000)]
Add 2.5.3.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67741 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #1706039: Support continued reading from a file even after
martin.v.loewis [Sat, 13 Dec 2008 15:36:49 +0000 (15:36 +0000)]
Issue #1706039: Support continued reading from a file even after
EOF was hit.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67740 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #1040026: Fix os.times result on systems where HZ is incorrect.
martin.v.loewis [Sat, 13 Dec 2008 15:14:30 +0000 (15:14 +0000)]
Issue #1040026: Fix os.times result on systems where HZ is incorrect.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67739 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #3767: Convert Tk object to string in tkColorChooser.
martin.v.loewis [Sat, 13 Dec 2008 15:09:44 +0000 (15:09 +0000)]
Issue #3767: Convert Tk object to string in tkColorChooser.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67738 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r59654.
martin.v.loewis [Sat, 13 Dec 2008 15:04:58 +0000 (15:04 +0000)]
Backport of r59654.
Issue #4342: Always convert Text.index result to string.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67737 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r64212
martin.v.loewis [Sat, 13 Dec 2008 14:59:04 +0000 (14:59 +0000)]
Backport of r64212
Issue #1683: prevent forking from interfering in threading storage.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67736 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue 3248: Allow placing ScrolledText in a PanedWindow.
martin.v.loewis [Sat, 13 Dec 2008 14:48:13 +0000 (14:48 +0000)]
Issue 3248: Allow placing ScrolledText in a PanedWindow.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67735 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r66703:
martin.v.loewis [Sat, 13 Dec 2008 14:42:53 +0000 (14:42 +0000)]
Backport of r66703:
Issue #3863: Disabled a unit test of fork being called from a thread
when running on platforms known to exhibit OS bugs when attempting that.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67734 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4228: Pack negative values the same way as 2.4
martin.v.loewis [Sat, 13 Dec 2008 14:34:06 +0000 (14:34 +0000)]
Issue #4228: Pack negative values the same way as 2.4
in struct's L format.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67733 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4368: Don't define _XOPEN_SOURCE on FreeBSD 4.*.
martin.v.loewis [Sat, 13 Dec 2008 14:13:52 +0000 (14:13 +0000)]
Issue #4368: Don't define _XOPEN_SOURCE on FreeBSD 4.*.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67732 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4446: Add platforms keyword.
martin.v.loewis [Sat, 13 Dec 2008 14:07:35 +0000 (14:07 +0000)]
Issue #4446: Add platforms keyword.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67731 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4084: fix bug in handling of NaNs in Decimal.max, Decimal.min,
mark.dickinson [Thu, 11 Dec 2008 09:06:49 +0000 (09:06 +0000)]
Issue #4084:  fix bug in handling of NaNs in Decimal.max, Decimal.min,
Decimal.max_mag and Decimal.min_mag.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67699 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#4259: update the URL pattern for module documentation
andrew.kuchling [Thu, 11 Dec 2008 02:09:36 +0000 (02:09 +0000)]
#4259: update the URL pattern for module documentation

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67693 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport issue 4597 to python 2.5.3: Fixed several opcodes that weren't always
jeffrey.yasskin [Wed, 10 Dec 2008 17:23:20 +0000 (17:23 +0000)]
Backport issue 4597 to python 2.5.3: Fixed several opcodes that weren't always
propagating exceptions.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67687 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4302: Minor corrections to smtplib. (Backport r60975)
hirokazu.yamamoto [Wed, 10 Dec 2008 09:54:59 +0000 (09:54 +0000)]
Issue #4302: Minor corrections to smtplib. (Backport r60975)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67686 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackported issue #4589 to Python 2.5.3: Propagated an exception thrown by a
jeffrey.yasskin [Wed, 10 Dec 2008 07:28:12 +0000 (07:28 +0000)]
Backported issue #4589 to Python 2.5.3: Propagated an exception thrown by a
context manager's __exit__ method's result while it's being converted to bool.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67684 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago- Tools/faqwiz/move-faqwiz.sh: Fix unsecure use of temporary files
matthias.klose [Sun, 30 Nov 2008 13:31:22 +0000 (13:31 +0000)]
- Tools/faqwiz/move-faqwiz.sh: Fix unsecure use of temporary files

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67452 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r67373: checking for errors from NEW_IDENTIFIER
benjamin.peterson [Tue, 25 Nov 2008 22:49:28 +0000 (22:49 +0000)]
backport r67373: checking for errors from NEW_IDENTIFIER

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67388 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#4317: Fix an Array Bounds Read in imageop.rgb2rgb8.
amaury.forgeotdarc [Tue, 18 Nov 2008 22:35:48 +0000 (22:35 +0000)]
#4317: Fix an Array Bounds Read in imageop.rgb2rgb8.

Backport of r67266

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67268 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r67246 from the trunk
benjamin.peterson [Mon, 17 Nov 2008 23:35:24 +0000 (23:35 +0000)]
backport r67246 from the trunk

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67251 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoregenerate configure
benjamin.peterson [Sun, 16 Nov 2008 17:57:31 +0000 (17:57 +0000)]
regenerate configure

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67236 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#4316: configure.in markup fix (backport from r67227).
georg.brandl [Sun, 16 Nov 2008 08:01:08 +0000 (08:01 +0000)]
#4316: configure.in markup fix (backport from r67227).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67228 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport r66813: per Greg Ward, optparse is no longer being externally maintained.
andrew.kuchling [Fri, 14 Nov 2008 00:17:12 +0000 (00:17 +0000)]
Backport r66813: per Greg Ward, optparse is no longer being externally maintained.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67217 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport r66804: #1415508 from Rocky Bernstein: add docstrings for enable_intersperse...
andrew.kuchling [Fri, 14 Nov 2008 00:11:12 +0000 (00:11 +0000)]
Backport r66804: #1415508 from Rocky Bernstein: add docstrings for enable_interspersed_args(), disable_interspersed_args()

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67216 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #3774: Fixed an error when create a Tkinter menu item without command
hirokazu.yamamoto [Mon, 3 Nov 2008 18:18:08 +0000 (18:18 +0000)]
Issue #3774: Fixed an error when create a Tkinter menu item without command
and then remove it. Written by Guilherme Polo (gpolo). Backport of r67082.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67084 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r67077 from the trunk: parser module now correctly validates relative imports
benjamin.peterson [Mon, 3 Nov 2008 15:19:35 +0000 (15:19 +0000)]
backport r67077 from the trunk: parser module now correctly validates relative imports

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67079 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4176: Pickle would crash the interpreter when a __reduce__ function
amaury.forgeotdarc [Thu, 30 Oct 2008 21:40:05 +0000 (21:40 +0000)]
Issue #4176: Pickle would crash the interpreter when a __reduce__ function
does not return an iterator for the 4th and 5th items.
(sequence-like and mapping-like state)

Backport of r67049.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@67056 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoModify ctypes types with 'official' functions. Backport from trunk,
thomas.heller [Sat, 18 Oct 2008 21:33:44 +0000 (21:33 +0000)]
Modify ctypes types with 'official' functions.  Backport from trunk,
snv rev 59943 and 59946.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66972 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport a fix for setup.py's -R
benjamin.peterson [Thu, 16 Oct 2008 18:58:19 +0000 (18:58 +0000)]
backport a fix for setup.py's -R

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66914 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #4046: Backport of issue #3312's patch: fixes two crashes in the sqlite3
gerhard.haering [Wed, 8 Oct 2008 08:45:16 +0000 (08:45 +0000)]
Issue #4046: Backport of issue #3312's patch: fixes two crashes in the sqlite3
module.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66843 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoFix a refleak introduced by r66678 (backport of r66700).
brett.cannon [Tue, 30 Sep 2008 17:47:50 +0000 (17:47 +0000)]
Fix a refleak introduced by r66678 (backport of r66700).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66701 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r66689: imageop could segfault due to poor argument validation
benjamin.peterson [Tue, 30 Sep 2008 01:46:48 +0000 (01:46 +0000)]
backport r66689: imageop could segfault due to poor argument validation

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66690 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoFix issue #3547 for MingW, update comments (backport from trunk).
thomas.heller [Mon, 29 Sep 2008 20:04:02 +0000 (20:04 +0000)]
Fix issue #3547 for MingW, update comments (backport from trunk).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66685 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r66677: _lsprof crasher when a bad external timer is used during
brett.cannon [Mon, 29 Sep 2008 03:57:24 +0000 (03:57 +0000)]
Backport of r66677: _lsprof crasher when a bad external timer is used during
garbage collection of a Profiler object.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66678 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#3967: Correct a crash in count() and find() methods of string-like objects.
amaury.forgeotdarc [Fri, 26 Sep 2008 22:46:01 +0000 (22:46 +0000)]
#3967: Correct a crash in count() and find() methods of string-like objects.
For example:
   "".count("xxxx", sys.maxint, 0)

Backport of r66631.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66632 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#3968: fix missing update() call in end_fill().
georg.brandl [Fri, 26 Sep 2008 07:17:03 +0000 (07:17 +0000)]
#3968: fix missing update() call in end_fill().

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66627 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#3969: fix typo in turtle.py.
georg.brandl [Fri, 26 Sep 2008 07:14:57 +0000 (07:14 +0000)]
#3969: fix typo in turtle.py.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66626 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agomake sure to give a 'as' and 'with' parser warning even after import statements ...
benjamin.peterson [Thu, 25 Sep 2008 20:46:05 +0000 (20:46 +0000)]
make sure to give a 'as' and 'with' parser warning even after import statements #3936

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66619 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoFix issue #3547: ctypes is confused by bitfields of varying integer types
thomas.heller [Wed, 24 Sep 2008 19:00:21 +0000 (19:00 +0000)]
Fix issue #3547: ctypes is confused by bitfields of varying integer types

Reviewed by Fredrik Lundh and Skip Montanaro.

Backport from trunk.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66612 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport r66141 from trunk:
gregory.p.smith [Mon, 22 Sep 2008 00:22:44 +0000 (00:22 +0000)]
Backport r66141 from trunk:
 - Issue #3678: Correctly pass LDFLAGS and LDLAST to the linker on shared
   library targets in the Makefile.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66547 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r66496: integer overflow in _hashopenssl #3886
benjamin.peterson [Thu, 18 Sep 2008 01:27:26 +0000 (01:27 +0000)]
backport r66496: integer overflow in _hashopenssl #3886

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66497 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #3804: Added test for Issue #2222.
hirokazu.yamamoto [Mon, 8 Sep 2008 23:10:08 +0000 (23:10 +0000)]
Issue #3804: Added test for Issue #2222.
Reviewed by Benjamin Peterson.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66318 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoreran autoconf
gregory.p.smith [Sun, 7 Sep 2008 19:26:09 +0000 (19:26 +0000)]
reran autoconf

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66300 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r66295 from trunk (small fix to the previous backport)
gregory.p.smith [Sun, 7 Sep 2008 19:25:37 +0000 (19:25 +0000)]
backport r66295 from trunk (small fix to the previous backport)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66299 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agorerun autoconf after r66288, add the Misc/NEWS entry.
gregory.p.smith [Sun, 7 Sep 2008 06:44:12 +0000 (06:44 +0000)]
rerun autoconf after r66288, add the Misc/NEWS entry.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66289 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r66179 and r66283 from trunk:
gregory.p.smith [Sun, 7 Sep 2008 06:42:43 +0000 (06:42 +0000)]
backport r66179 and r66283 from trunk:

 - Issue #1204: The configure script now tests for additional libraries
   that may be required when linking against readline.  This fixes issues
   with x86_64 builds on some platforms (a few Linux flavors and OpenBSD).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66288 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r66275/r66274 from trunk/py3k. This is the last bit of
gregory.p.smith [Sun, 7 Sep 2008 01:03:35 +0000 (01:03 +0000)]
Backport of r66275/r66274 from trunk/py3k.  This is the last bit of
the fix for issue 874900 to fix the use of the threading module in a
post-fork python process.  A NEWS entry for this already exists with
the previous Lib/threading commit for this bug.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66279 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoAdd NEWS
hirokazu.yamamoto [Thu, 4 Sep 2008 14:26:56 +0000 (14:26 +0000)]
Add NEWS

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66220 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #3762: platform.architecture() fails if python is lanched via its symbolic...
hirokazu.yamamoto [Thu, 4 Sep 2008 11:21:28 +0000 (11:21 +0000)]
Issue #3762: platform.architecture() fails if python is lanched via its symbolic link.
Reviewed Amaury Forgeot d'Arc (Backport of r66213)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66214 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #3751: str.rpartition would perform a left-partition when called with
amaury.forgeotdarc [Mon, 1 Sep 2008 20:05:08 +0000 (20:05 +0000)]
Issue #3751: str.rpartition would perform a left-partition when called with
a unicode argument.

Backport of r66119

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66121 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agobackport r66093 from trunk.
gregory.p.smith [Sun, 31 Aug 2008 16:36:21 +0000 (16:36 +0000)]
backport r66093 from trunk.
 issue3715: docstring representation of hex escaped string needs to be double
 escaped.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66095 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agolet Windows bots pass on test_threading
benjamin.peterson [Sat, 23 Aug 2008 21:25:16 +0000 (21:25 +0000)]
let Windows bots pass on test_threading

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@66003 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #1342811: Fixed broken patch.
robert.schuppenies [Fri, 22 Aug 2008 08:20:35 +0000 (08:20 +0000)]
Issue #1342811: Fixed broken patch.

Backport from trunk r65971.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65972 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoReverted r65902. See http://mail.python.org/pipermail/python-checkins/2008-August...
hirokazu.yamamoto [Wed, 20 Aug 2008 16:13:57 +0000 (16:13 +0000)]
Reverted r65902. See mail.python.org/pipermail/python-checkins/2008-August/073116.html

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65916 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoNews for the imageop/rgbimg changes.
guido.van.rossum [Wed, 20 Aug 2008 14:56:24 +0000 (14:56 +0000)]
News for the imageop/rgbimg changes.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65911 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport r65900: fixed get_file_system in test_os.py ('path' is unicode on py3k and...
hirokazu.yamamoto [Wed, 20 Aug 2008 04:20:53 +0000 (04:20 +0000)]
Backport r65900: fixed get_file_system in test_os.py ('path' is unicode on py3k and ansi on trunk)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65902 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue 1179: [CVE-2007-4965] Integer overflow in imageop module.
guido.van.rossum [Tue, 19 Aug 2008 20:57:46 +0000 (20:57 +0000)]
Issue 1179: [CVE-2007-4965] Integer overflow in imageop module.
Also fixes rgbimg module (just before it is removed from 2.6).

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65878 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoissue #3554: ctypes.string_at and ctypes.wstring_at must use the
thomas.heller [Tue, 19 Aug 2008 17:17:37 +0000 (17:17 +0000)]
issue #3554: ctypes.string_at and ctypes.wstring_at must use the
pythonapi calling convention so that the GIL is held and error return
values are checked.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65858 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #2234: distutils failed with mingw binutils 2.18.50.20080109.
amaury.forgeotdarc [Mon, 18 Aug 2008 19:33:42 +0000 (19:33 +0000)]
Issue #2234: distutils failed with mingw binutils 2.18.50.20080109.
Be less strict when parsing these version numbers,
they don't necessarily follow the python numbering scheme.

Backport of r65834

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65835 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r64767 from trunk
gregory.p.smith [Sun, 17 Aug 2008 23:06:19 +0000 (23:06 +0000)]
Backport of r64767 from trunk

Fixes Issue #3309: Fix bz2.BZFile iterator to release its internal lock
properly when raising an exception due to the bz2file being closed.
Prevents a deadlock.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65790 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport of r65032 from trunk
gregory.p.smith [Sun, 17 Aug 2008 23:01:11 +0000 (23:01 +0000)]
Backport of r65032 from trunk

Fixes Issue #874900: after an os.fork() call the threading module state is cleaned
up in the child process to prevent deadlock and report proper thread counts
if the new process uses the threading module.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65789 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoI forgot to update NEWS.
hirokazu.yamamoto [Sun, 17 Aug 2008 09:49:10 +0000 (09:49 +0000)]
I forgot to update NEWS.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65749 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport r65745: Issue #2222: Fixed reference leak when occured
hirokazu.yamamoto [Sun, 17 Aug 2008 09:39:06 +0000 (09:39 +0000)]
Backport  r65745: Issue #2222: Fixed reference leak when occured
os.rename() fails unicode conversion on 2nd parameter. (windows only)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65747 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #2065: VC6 related fix.
hirokazu.yamamoto [Thu, 14 Aug 2008 01:24:55 +0000 (01:24 +0000)]
Issue #2065: VC6 related fix.

- PC/VC6/_bsddb.dsp:
    removed '/nodefaultlib:"msvcrt"' to fix linker error.

- PC/VC6/_msi.dsp:
    added new module support.

- PC/VC6/_sqlite3.dsp:
    /D "MODULE_NAME=\"sqlite3\""
    caused extra leading space like
    #define MODULE_NAME " sqlite3"
    so uses
    /D MODULE_NAME=\"sqlite3\"
    instead.

- PC/VC6/python.dsp:
    changed stack size to 2MB to avoid stack overflow on
    some tests.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65662 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#3205: bz2 iterator fails silently on MemoryError
georg.brandl [Tue, 12 Aug 2008 08:47:02 +0000 (08:47 +0000)]
#3205: bz2 iterator fails silently on MemoryError
(backport from r65609)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65651 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport r60148 and r65481: sanity checks to avoid infinite loops.
georg.brandl [Tue, 12 Aug 2008 08:46:02 +0000 (08:46 +0000)]
Backport r60148 and r65481: sanity checks to avoid infinite loops.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65650 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago#3134: shutil referenced undefined WindowsError symbol
georg.brandl [Tue, 12 Aug 2008 08:39:33 +0000 (08:39 +0000)]
#3134: shutil referenced undefined WindowsError symbol
(backport from r65644)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65649 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago- Issue #3537: Fix an assertion failure when an empty but presized dict
georg.brandl [Mon, 11 Aug 2008 09:13:26 +0000 (09:13 +0000)]
- Issue #3537: Fix an assertion failure when an empty but presized dict
  object was stored in the freelist. (backport from r65637.)

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65638 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
robert.schuppenies [Sun, 10 Aug 2008 11:19:25 +0000 (11:19 +0000)]
Issue #1342811: Fix leak in Tkinter.Menu.delete. Commands associated to
menu entries were not deleted.

Backport from trunk r65622.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65624 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago(backport from trunk r64756)
gregory.p.smith [Mon, 4 Aug 2008 03:23:25 +0000 (03:23 +0000)]
(backport from trunk r64756)
Issue #2113: Fix error in subprocess.Popen if the select system call is
interrupted by a signal.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65475 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago(backport of r61652 and r61665 from trunk)
gregory.p.smith [Mon, 4 Aug 2008 00:45:34 +0000 (00:45 +0000)]
(backport of r61652 and r61665 from trunk)
Issue #1471: Arguments to fcntl.ioctl are no longer broken on 64-bit OpenBSD
and similar platforms due to sign extension.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65466 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago(backport trunk r65151)
gregory.p.smith [Mon, 4 Aug 2008 00:19:27 +0000 (00:19 +0000)]
(backport trunk r65151)
Issue #3120: On 64-bit Windows the subprocess module was truncating handles.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65461 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years ago(backport r65459 from trunk)
gregory.p.smith [Mon, 4 Aug 2008 00:15:54 +0000 (00:15 +0000)]
(backport r65459 from trunk)
- Issue #1857: subprocess.Popen.poll gained an additional _deadstate keyword
  argument in python 2.5, this broke code that subclassed Popen to include its
  own poll method.  Fixed my moving _deadstate to an _internal_poll method.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65460 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoIssue #799428: Fix Tkinter.Misc._nametowidget to unwrap
martin.v.loewis [Sat, 2 Aug 2008 07:21:06 +0000 (07:21 +0000)]
Issue #799428: Fix Tkinter.Misc._nametowidget to unwrap
Tcl command objects.
Backport of r65399.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65400 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoSecurity patches from Apple: prevent int overflow when allocating memory
neal.norwitz [Thu, 31 Jul 2008 17:08:14 +0000 (17:08 +0000)]
Security patches from Apple:  prevent int overflow when allocating memory

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65334 6015fed2-1504-0410-9fe1-9d1591cc4771

9 years agoBackport code from r65182:
neal.norwitz [Mon, 28 Jul 2008 05:06:20 +0000 (05:06 +0000)]
Backport code from r65182:

Issue #2620: Overflow checking when allocating or reallocating memory
was not always being done properly in some python types and extension
modules.  PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have
all been updated to perform better checks and places in the code that
would previously leak memory on the error path when such an allocation
failed have been fixed.

git-svn-id: http://svn.python.org/projects/python/branches/release25-maint@65261 6015fed2-1504-0410-9fe1-9d1591cc4771