]> granicus.if.org Git - python/log
python
13 years agoIssue #11761: make tests for gc.get_count() less fragile
Antoine Pitrou [Mon, 4 Apr 2011 17:50:42 +0000 (19:50 +0200)]
Issue #11761: make tests for gc.get_count() less fragile

13 years agoFix typo noticed by Sandro Tosi.
Ezio Melotti [Sun, 3 Apr 2011 13:20:21 +0000 (16:20 +0300)]
Fix typo noticed by Sandro Tosi.

13 years agoMerge 3.1
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:54:13 +0000 (11:54 +0000)]
Merge 3.1

13 years agoBugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
Kristjan Valur Jonsson [Wed, 30 Mar 2011 11:04:28 +0000 (11:04 +0000)]
Bugfix: Properly test for errors from PyLong_AsLong() in itertools.cycle.
ti can raise an exception even if PyLong_Check() has
succeeded.

13 years agoIssue 11713: clarify docstring for collections.deque()
Raymond Hettinger [Wed, 30 Mar 2011 00:30:01 +0000 (17:30 -0700)]
Issue 11713: clarify docstring for collections.deque()

13 years agoMerge issue 11662.
Guido van Rossum [Tue, 29 Mar 2011 19:55:41 +0000 (12:55 -0700)]
Merge issue 11662.

13 years agoIssue 11662: Fix vulnerability in urllib/urllib2.
guido@google.com [Tue, 29 Mar 2011 18:41:02 +0000 (11:41 -0700)]
Issue 11662: Fix vulnerability in urllib/urllib2.
(This version is a cleaned-up backport of a fix by Senthil Kumaran.)

13 years agolet's keep parenthesis around sizeof
Benjamin Peterson [Mon, 28 Mar 2011 22:25:15 +0000 (17:25 -0500)]
let's keep parenthesis around sizeof

13 years ago#10617: add class directives to collections ABCs.
Ezio Melotti [Mon, 28 Mar 2011 10:50:41 +0000 (13:50 +0300)]
#10617: add class directives to collections ABCs.

13 years agoCloses #11696: Fix ID generation in msilib.
Martin v. Löwis [Sun, 27 Mar 2011 19:05:51 +0000 (21:05 +0200)]
Closes #11696: Fix ID generation in msilib.
Patch by Mark Mc Mahon.

13 years agoIssue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying...
Mark Dickinson [Sun, 27 Mar 2011 15:25:40 +0000 (16:25 +0100)]
Issue #9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.

13 years agoFix misplaced Misc/NEWS entry.
Mark Dickinson [Sun, 27 Mar 2011 14:46:32 +0000 (15:46 +0100)]
Fix misplaced Misc/NEWS entry.

13 years agoFix short file name generation in bdist_msi.
Martin v. Löwis [Sun, 27 Mar 2011 08:12:07 +0000 (10:12 +0200)]
Fix short file name generation in bdist_msi.
Patch by Christoph Gohlke.
Closes #7639.

13 years agorevert unintended changes
Benjamin Peterson [Sat, 26 Mar 2011 23:11:54 +0000 (18:11 -0500)]
revert unintended changes

13 years agoalways check return value of PyObject_IsInstance for error
Benjamin Peterson [Sat, 26 Mar 2011 23:04:09 +0000 (18:04 -0500)]
always check return value of PyObject_IsInstance for error

13 years agocheck possible recursive _as_parameter_ to prevent segfault (closes #1838)
Benjamin Peterson [Sat, 26 Mar 2011 22:56:28 +0000 (17:56 -0500)]
check possible recursive _as_parameter_ to prevent segfault (closes #1838)

13 years agoIssue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.
Ross Lagerwall [Sat, 26 Mar 2011 19:19:57 +0000 (21:19 +0200)]
Issue #11659: Fix ResourceWarning in test_subprocess introduced by #11459.
Patch by Ben Hayden.

13 years agoIssue #11675: Zero-out newly-created multiprocessing.[Raw]Array objects.
Mark Dickinson [Sat, 26 Mar 2011 10:19:03 +0000 (10:19 +0000)]
Issue #11675:  Zero-out newly-created multiprocessing.[Raw]Array objects.

13 years agoBranch merge
Éric Araujo [Sat, 26 Mar 2011 00:55:56 +0000 (01:55 +0100)]
Branch merge

13 years ago<Home> toggle failing on Tk 8.5, causing IDLE exits. Issue #4676
Kurt B. Kaiser [Sat, 26 Mar 2011 00:29:13 +0000 (20:29 -0400)]
<Home> toggle failing on Tk 8.5, causing IDLE exits. Issue #4676

13 years agoBranch merge
Éric Araujo [Fri, 25 Mar 2011 23:47:47 +0000 (00:47 +0100)]
Branch merge

13 years agoTweaks to sys.flags description table.
Éric Araujo [Fri, 25 Mar 2011 23:47:04 +0000 (00:47 +0100)]
Tweaks to sys.flags description table.
The options listed in the table are now links to their documentation,
and the table uses compact markup to make it easier to read and edit.
First proposed in #10998.

13 years agoRemove untrue statement from tutorial
Éric Araujo [Fri, 25 Mar 2011 20:53:58 +0000 (21:53 +0100)]
Remove untrue statement from tutorial

13 years ago#9557: eliminate 3 seconds of static overhead from test_mailbox.
R David Murray [Fri, 25 Mar 2011 20:03:47 +0000 (16:03 -0400)]
#9557: eliminate 3 seconds of static overhead from test_mailbox.

This patch doesn't quite fix the 'run in a VM with Samba share'
timing problem, but it should at least make it better.

13 years agoUse universal construct os.path.expanduser('~') instead of os.environ['HOME']
Éric Araujo [Fri, 25 Mar 2011 19:31:50 +0000 (20:31 +0100)]
Use universal construct os.path.expanduser('~') instead of os.environ['HOME']

13 years ago#2650: Refactor re.escape to use enumerate().
Ezio Melotti [Fri, 25 Mar 2011 12:19:30 +0000 (14:19 +0200)]
#2650: Refactor re.escape to use enumerate().

13 years ago#2650: Add tests with non-ascii chars for re.escape.
Ezio Melotti [Fri, 25 Mar 2011 12:09:33 +0000 (14:09 +0200)]
#2650: Add tests with non-ascii chars for re.escape.

13 years ago#2650: Refactor the tests for re.escape.
Ezio Melotti [Fri, 25 Mar 2011 12:08:44 +0000 (14:08 +0200)]
#2650: Refactor the tests for re.escape.

13 years agoMerge 3.1
Kurt B. Kaiser [Thu, 24 Mar 2011 17:19:35 +0000 (13:19 -0400)]
Merge 3.1

13 years ago#11606: improved body_encode algorithm, no longer produces overlong lines
R David Murray [Thu, 24 Mar 2011 16:19:26 +0000 (12:19 -0400)]
#11606: improved body_encode algorithm, no longer produces overlong lines

Algorithm and initial patch by Michael Henry.

13 years agoMerge 3.1
Kurt B. Kaiser [Thu, 24 Mar 2011 16:03:36 +0000 (12:03 -0400)]
Merge 3.1

13 years agotest_multiprocessing: use assertLess() to see the timeout on error
Victor Stinner [Thu, 24 Mar 2011 15:24:07 +0000 (16:24 +0100)]
test_multiprocessing: use assertLess() to see the timeout on error

13 years ago#11590: fix quoprimime decode handling of empty strings and line endings.
R David Murray [Wed, 23 Mar 2011 19:25:55 +0000 (15:25 -0400)]
#11590: fix quoprimime decode handling of empty strings and line endings.

13 years ago#11589: add additional tests for the email quoprimime module.
R David Murray [Wed, 23 Mar 2011 18:19:05 +0000 (14:19 -0400)]
#11589: add additional tests for the email quoprimime module.

Patch by Michael Henry.

13 years agoFix obscure set crashers (#8420). Backport of d56b3cafb1e6, reviewed by Raymond.
Éric Araujo [Wed, 23 Mar 2011 01:08:07 +0000 (02:08 +0100)]
Fix obscure set crashers (#8420).  Backport of d56b3cafb1e6, reviewed by Raymond.

13 years agoIssue #10610: Document that int(), float(), and complex() accept numeric literals...
Raymond Hettinger [Wed, 23 Mar 2011 00:33:17 +0000 (17:33 -0700)]
Issue #10610: Document that int(), float(), and complex() accept numeric literals with the Nd property.

13 years agoIssue #10771: Clarify that descriptors get used in an *owner* class or one of its...
Raymond Hettinger [Tue, 22 Mar 2011 23:27:02 +0000 (16:27 -0700)]
Issue #10771: Clarify that descriptors get used in an *owner* class or one of its parents.

13 years agoIssue 10787: Document the probability density function for random.gammavariate.
Raymond Hettinger [Tue, 22 Mar 2011 22:55:51 +0000 (15:55 -0700)]
Issue 10787: Document the probability density function for random.gammavariate.

13 years agoIssue 10988: fix description of super's descriptor call.
Raymond Hettinger [Tue, 22 Mar 2011 22:28:45 +0000 (15:28 -0700)]
Issue 10988: fix description of super's descriptor call.

13 years agoIssue #11625: Fix Typo
Raymond Hettinger [Tue, 22 Mar 2011 16:11:39 +0000 (09:11 -0700)]
Issue #11625: Fix Typo

13 years agoFix duplicate word.
Georg Brandl [Mon, 21 Mar 2011 07:55:16 +0000 (08:55 +0100)]
Fix duplicate word.

13 years ago<Home> toggle non-functional when NumLock set
Kurt B. Kaiser [Mon, 21 Mar 2011 06:13:42 +0000 (02:13 -0400)]
<Home> toggle non-functional when NumLock set
on Windows.  Issue3851.

13 years agoIssue #8651: PyArg_Parse*() functions raise an OverflowError if the file
Victor Stinner [Mon, 21 Mar 2011 02:22:50 +0000 (03:22 +0100)]
Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
(length bigger than 2^31-1 bytes).

13 years agoFix some issue references in NEWS
Éric Araujo [Sun, 20 Mar 2011 23:01:23 +0000 (00:01 +0100)]
Fix some issue references in NEWS

13 years agoIssue #5537: Fix time2isoz() and time2netscape() functions of httplib.cookiejar
Victor Stinner [Mon, 21 Mar 2011 01:38:51 +0000 (02:38 +0100)]
Issue #5537: Fix time2isoz() and time2netscape() functions of httplib.cookiejar
for expiration year greater than 2038 on 32-bit systems.

13 years agoFix typo in class name
Éric Araujo [Sun, 20 Mar 2011 17:30:37 +0000 (18:30 +0100)]
Fix typo in class name

13 years agoCall reap_children() where appropriate
Antoine Pitrou [Sun, 20 Mar 2011 16:35:32 +0000 (17:35 +0100)]
Call reap_children() where appropriate

13 years agoMarkup fixes for #7198 patch.
R David Murray [Sun, 20 Mar 2011 15:18:21 +0000 (11:18 -0400)]
Markup fixes for #7198 patch.

13 years ago#7198: really add newline='' to csv.writer docs.
R David Murray [Sun, 20 Mar 2011 14:23:22 +0000 (10:23 -0400)]
#7198: really add newline='' to csv.writer docs.

Changeset ab27f16f707a was messed up by a rebase (as were
959f666470cc and 9d1b1a95bc8f) and the patch only got applied
to default.

13 years agoIssue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.
Senthil Kumaran [Sun, 20 Mar 2011 02:44:30 +0000 (10:44 +0800)]
Issue #11567 - Let's have the DOCTYPE as HTML instead of XHTML.

13 years agoIssue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
Antoine Pitrou [Sat, 19 Mar 2011 16:00:37 +0000 (17:00 +0100)]
Issue #11459: A `bufsize` value of 0 in subprocess.Popen() really creates
unbuffered pipes, such that select() works properly on them.

13 years agoIssue #5421: Fix misleading error message when one of socket.sendto()'s
Antoine Pitrou [Thu, 17 Mar 2011 21:38:37 +0000 (22:38 +0100)]
Issue #5421: Fix misleading error message when one of socket.sendto()'s
arguments has the wrong type.  Patch by Nikita Vetoshkin.

13 years agoError message in http.server code. Missed to update in 3.1 branch initially.
Senthil Kumaran [Thu, 17 Mar 2011 09:01:45 +0000 (17:01 +0800)]
Error message in http.server code. Missed to update in 3.1 branch initially.

13 years ago#11401: handle headers with no value.
R David Murray [Wed, 16 Mar 2011 22:26:23 +0000 (18:26 -0400)]
#11401: handle headers with no value.

13 years ago#9298: restore proper folding of base64 encoded bodies.
R David Murray [Wed, 16 Mar 2011 19:52:22 +0000 (15:52 -0400)]
#9298: restore proper folding of base64 encoded bodies.

Patch by Yves Dorfsman.

13 years agoClose Issue 11570: Lib/test/test_distutils.py tries to mix 32 and 64 bits object...
Jesus Cea [Wed, 16 Mar 2011 19:37:54 +0000 (20:37 +0100)]
Close Issue 11570: Lib/test/test_distutils.py tries to mix 32 and 64 bits object files, doesn't obey LDFLAGS

13 years agoIssue #11569: use absolute path to the sysctl command in multiprocessing to
Ronald Oussoren [Wed, 16 Mar 2011 13:41:32 +0000 (09:41 -0400)]
Issue #11569: use absolute path to the sysctl command in multiprocessing to
ensure that it will be found regardless of the shell PATH. This ensures
that multiprocessing.cpu_count works on default installs of MacOSX.

13 years agoRevert typo fixes in zlib/*
Ezio Melotti [Wed, 16 Mar 2011 10:48:54 +0000 (12:48 +0200)]
Revert typo fixes in zlib/*

13 years ago#11565: Fix several typos. Patch by Piotr Kasprzyk.
Ezio Melotti [Wed, 16 Mar 2011 09:05:33 +0000 (11:05 +0200)]
#11565: Fix several typos. Patch by Piotr Kasprzyk.

13 years ago#11216: document all possible set_charset execution paths.
R David Murray [Tue, 15 Mar 2011 21:41:13 +0000 (17:41 -0400)]
#11216: document all possible set_charset execution paths.

13 years agoFix whitespace in test_subprocess
Antoine Pitrou [Tue, 15 Mar 2011 20:17:10 +0000 (21:17 +0100)]
Fix whitespace in test_subprocess

13 years agoMerge
Antoine Pitrou [Tue, 15 Mar 2011 20:11:04 +0000 (21:11 +0100)]
Merge

13 years agomake this subversion artifact empty
Benjamin Peterson [Tue, 15 Mar 2011 20:03:13 +0000 (15:03 -0500)]
make this subversion artifact empty

13 years agoOn behalf of Tarek: Issue #11501: disutils.archive_utils.make_zipfile no
Antoine Pitrou [Tue, 15 Mar 2011 20:02:59 +0000 (21:02 +0100)]
On behalf of Tarek: Issue #11501: disutils.archive_utils.make_zipfile no
longer fails if zlib is not installed. Instead, the zipfile.ZIP_STORED
compression is used to create the ZipFile. Patch by Natalia B. Bidart.

13 years ago#11555: update doc for 3.x change to as_string mangle_from default.
R David Murray [Tue, 15 Mar 2011 18:01:18 +0000 (14:01 -0400)]
#11555: update doc for 3.x change to as_string mangle_from default.

13 years agoRevert typo fixes in _cytpes/libffi*
Ezio Melotti [Tue, 15 Mar 2011 17:10:51 +0000 (19:10 +0200)]
Revert typo fixes in _cytpes/libffi*

13 years agoFix the @test_NNNN_tmp file terds being left in whatever your $PWD was
Gregory P. Smith [Tue, 15 Mar 2011 06:04:11 +0000 (02:04 -0400)]
Fix the @test_NNNN_tmp file terds being left in whatever your $PWD was
when test_subprocess was run.

13 years ago#11515: fix several typos. Patch by Piotr Kasprzyk.
Ezio Melotti [Tue, 15 Mar 2011 03:18:48 +0000 (05:18 +0200)]
#11515: fix several typos. Patch by Piotr Kasprzyk.

13 years agoRemove redundant __contains__ entry from Message docs.
R David Murray [Tue, 15 Mar 2011 02:43:38 +0000 (22:43 -0400)]
Remove redundant __contains__ entry from Message docs.

13 years agoIssue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addres...
Ronald Oussoren [Mon, 14 Mar 2011 22:15:25 +0000 (18:15 -0400)]
Issue #11500: Fixed a bug in the os x proxy bypass code for fully qualified IP addresses in the proxy exception list

Patch by Scott Wilson.

13 years agoFix #11491. When dbm.open was called with a file which already exists and
briancurtin [Mon, 14 Mar 2011 19:35:35 +0000 (15:35 -0400)]
Fix #11491. When dbm.open was called with a file which already exists and
the "flag" argument is "n", dbm.error was being raised. As documented,
dbm.open(...,flag='n') will now "Always create a new, empty database,
open for reading and writing", regardless of a previous file existing.

13 years agoFixes #1099: Mac compile fails with pydebug and framework enabled
Ronald Oussoren [Mon, 14 Mar 2011 14:11:59 +0000 (10:11 -0400)]
Fixes #1099: Mac compile fails with pydebug and framework enabled

Without this patch "./configure --with-pydebug --enable-framework CC=gcc-4.0" fails on MacOSX

13 years ago#11488: Add tests for writelines method of SpooledTemporaryFile.
R David Murray [Mon, 14 Mar 2011 13:55:46 +0000 (09:55 -0400)]
#11488: Add tests for writelines method of SpooledTemporaryFile.

Patch by Evan Dandrea.

13 years agoIssue #10885: Fix multiprocessing docs typo
Ross Lagerwall [Mon, 14 Mar 2011 08:40:15 +0000 (10:40 +0200)]
Issue #10885: Fix multiprocessing docs typo

13 years ago#11490: EACCES can also mean command not found
R David Murray [Mon, 14 Mar 2011 02:13:09 +0000 (22:13 -0400)]
#11490: EACCES can also mean command not found

13 years agoRemove documentation to non-existent function PyObject_CopyToObject (fixes #11478)
Antoine Pitrou [Sun, 13 Mar 2011 18:31:11 +0000 (19:31 +0100)]
Remove documentation to non-existent function PyObject_CopyToObject (fixes #11478)

13 years agoFix markup in inputoutput.rst.
Ezio Melotti [Sun, 13 Mar 2011 00:19:57 +0000 (02:19 +0200)]
Fix markup in inputoutput.rst.

13 years agoFix typo.
Ezio Melotti [Sat, 12 Mar 2011 20:25:06 +0000 (22:25 +0200)]
Fix typo.

13 years agotrunc -> math.trunc (closes #11475)
Benjamin Peterson [Sat, 12 Mar 2011 17:58:15 +0000 (11:58 -0600)]
trunc -> math.trunc (closes #11475)

13 years agoIssue 11131: Fix sign of zero result on decimal.Decimal plus and minus operations...
Mark Dickinson [Sat, 12 Mar 2011 11:12:52 +0000 (11:12 +0000)]
Issue 11131: Fix sign of zero result on decimal.Decimal plus and minus operations in ROUND_FLOOR rounding mode.

13 years agoFix issue11283 - Clarifying a re pattern in the re module docs for conditional regex
Senthil Kumaran [Sat, 12 Mar 2011 03:40:25 +0000 (11:40 +0800)]
Fix issue11283 - Clarifying a re pattern in the re module docs for conditional regex

13 years agoIssue #11403: add some MSVC-generated files to .hgignore
Antoine Pitrou [Fri, 11 Mar 2011 22:42:49 +0000 (23:42 +0100)]
Issue #11403: add some MSVC-generated files to .hgignore

13 years ago#11446: fix incorrect PEP link.
Ezio Melotti [Fri, 11 Mar 2011 18:50:42 +0000 (20:50 +0200)]
#11446: fix incorrect PEP link.

13 years agoIssue #11426: use 'with' statements on open files in CSV examples
Eli Bendersky [Fri, 11 Mar 2011 14:33:36 +0000 (16:33 +0200)]
Issue #11426: use 'with' statements on open files in CSV examples

13 years ago#10999: Add missing documentation for chflags constants to stat module docs
R David Murray [Thu, 10 Mar 2011 22:18:33 +0000 (17:18 -0500)]
#10999: Add missing documentation for chflags constants to stat module docs

Patch by Michal Nowikowski.

13 years agoUse simpler assert in basic example.
Ezio Melotti [Thu, 10 Mar 2011 21:38:18 +0000 (23:38 +0200)]
Use simpler assert in basic example.

13 years agoReword the finalization note.
Gregory P. Smith [Thu, 10 Mar 2011 19:28:50 +0000 (11:28 -0800)]
Reword the finalization note.

13 years agoExplicitly mention that people should not depend on immediate
Gregory P. Smith [Thu, 10 Mar 2011 19:25:44 +0000 (11:25 -0800)]
Explicitly mention that people should not depend on immediate
finalization of objects in the language reference.

13 years agoBackport from 3.2 several improvements and fixes for unittest.rst.
Ezio Melotti [Thu, 10 Mar 2011 10:16:35 +0000 (12:16 +0200)]
Backport from 3.2 several improvements and fixes for unittest.rst.

13 years agoIssue #11450: Don't truncate hg version info in Py_GetBuildInfo() when
Antoine Pitrou [Wed, 9 Mar 2011 11:34:41 +0000 (12:34 +0100)]
Issue #11450: Don't truncate hg version info in Py_GetBuildInfo() when
there are many tags (e.g. when using mq).  Patch by Nadeem Vawda.

13 years agoIssue #5622: Fix curses.wrapper to raise correct exception if curses
Ned Deily [Wed, 9 Mar 2011 10:36:51 +0000 (02:36 -0800)]
Issue #5622: Fix curses.wrapper to raise correct exception if curses
initialization fails.

13 years agoIssue #11444: Lock handlers while flushing/closing during shutdown.
Vinay Sajip [Tue, 8 Mar 2011 22:49:57 +0000 (22:49 +0000)]
Issue #11444: Lock handlers while flushing/closing during shutdown.

13 years agotransform izip_longest #11424
Benjamin Peterson [Tue, 8 Mar 2011 04:50:37 +0000 (22:50 -0600)]
transform izip_longest #11424

13 years agoIssue #11424: Fix bug in determining child loggers.
Vinay Sajip [Mon, 7 Mar 2011 17:49:33 +0000 (17:49 +0000)]
Issue #11424: Fix bug in determining child loggers.

13 years agoonly do this sys.stderr replacing on CPython
Benjamin Peterson [Sun, 6 Mar 2011 23:14:30 +0000 (17:14 -0600)]
only do this sys.stderr replacing on CPython

13 years agoIssue #11411: Fix typo in the Makefile that prevented 'make DESTDIR=' from
Thomas Wouters [Sun, 6 Mar 2011 19:49:15 +0000 (11:49 -0800)]
Issue #11411: Fix typo in the Makefile that prevented 'make DESTDIR=' from
working correctly with a relative path.

13 years agoConvert DOS files to CRLF. This doesn't touch the .hgeol settings, so that the files
Martin v. Löwis [Sun, 6 Mar 2011 10:28:23 +0000 (11:28 +0100)]
Convert DOS files to CRLF. This doesn't touch the .hgeol settings, so that the files
will have the right line ending even if the extension is not active.

13 years ago#11294: add missing ERA_T_FMT to locale docs.
Georg Brandl [Sun, 6 Mar 2011 10:09:51 +0000 (11:09 +0100)]
#11294: add missing ERA_T_FMT to locale docs.

13 years ago#11292: add missing A_REVERSE to curses attribute table.
Georg Brandl [Sun, 6 Mar 2011 10:08:35 +0000 (11:08 +0100)]
#11292: add missing A_REVERSE to curses attribute table.

13 years ago#11239: add } to list of metacharacters (it is only a metacharacter sometimes, ie...
Georg Brandl [Sun, 6 Mar 2011 10:07:11 +0000 (11:07 +0100)]
#11239: add } to list of metacharacters (it is only a metacharacter sometimes, ie. when closing a {n,m} group, but so is ].