Antoine Pitrou
c9e180043c
Issue #13522 : document error return values of some float and complex C API functions.
2011-12-18 01:25:27 +01:00
Antoine Pitrou
5b4b2da55d
Fix the fix for issue #12149 : it was incorrect, although it had the side
...
effect of appearing to resolve the issue. Thanks to Mark Shannon for
noticing.
2011-12-15 14:15:31 +01:00
Ned Deily
d8fdbad881
Issue #4625 : add NEWS entry.
2011-12-14 15:05:42 -08:00
Raymond Hettinger
f537702732
Issue #13573 : The csv.writer now uses the repr() for floats rather than str().
2011-12-11 22:31:09 -08:00
Amaury Forgeot d'Arc
4bf21e28df
Issue #13546 : Fixed an overflow issue that could crash the intepreter when
...
calling sys.setrecursionlimit((1<<31)-1).
2.7 only.
2011-12-07 21:46:48 +01:00
Lars Gustäbel
9a38863d8c
Correctly detect bzip2 compressed streams with blocksizes other than 900k.
2011-12-06 13:07:09 +01:00
Meador Inge
5295718399
Issue #13513 : IOBase docs incorrectly link to the readline module
2011-12-03 12:13:42 -06:00
Petri Lehtinen
49e49a218c
Issue #13439 : Fix many errors in turtle docstrings.
2011-12-02 21:22:53 +02:00
Antoine Pitrou
a5d5bb997b
Issue #12856 : Ensure child processes do not inherit the parent's random seed for filename generation in the tempfile module.
...
Patch by Brian Harring.
2011-11-25 21:28:15 +01:00
Antoine Pitrou
aa1c967f93
Issue #13458 : Fix a memory leak in the ssl module when decoding a certificate with a subjectAltName.
...
Patch by Robert Xiao.
2011-11-23 01:39:19 +01:00
Victor Stinner
53853c3fa9
Issue #13415 : os.unsetenv() doesn't ignore errors anymore.
2011-11-22 22:20:13 +01:00
Antoine Pitrou
5aa7df320f
Issue #13322 : Fix BufferedWriter.write() to ensure that BlockingIOError is
...
raised when the wrapped raw file is non-blocking and the write would block.
Previous code assumed that the raw write() would raise BlockingIOError, but
RawIOBase.write() is defined to returned None when the call would block.
Patch by sbt.
2011-11-21 20:16:44 +01:00
Ezio Melotti
00dc60beee
#13358 : HTMLParser now calls handle_data only once for each CDATA.
2011-11-18 18:00:40 +02:00
Ezio Melotti
93bbb6a9a6
#4147 : minidom's toprettyxml no longer adds whitespace around a text node when it is the only child of an element. Initial patch by Dan Kenigsberg.
2011-11-18 17:30:28 +02:00
Ned Deily
174c4f897f
Issue #8793 : Prevent IDLE crash in 2.7 when given strings with
...
invalid hex escape sequences.
2011-11-15 18:29:02 -08:00
Antoine Pitrou
30402549de
Issue #13333 : The UTF-7 decoder now accepts lone surrogates
...
(the encoder already accepts them).
2011-11-15 01:49:40 +01:00
Ezio Melotti
0f1571ce7f
#1745761 , #755670 , #13357 , #12629 , #1200313 : improve attribute handling in HTMLParser.
2011-11-14 18:04:05 +02:00
Antoine Pitrou
667383c8d4
Issue #13193 : Fix distutils.filelist.FileList under Windows. The
...
"recursive-include" directive now recognizes both legal path separators.
2011-11-12 01:33:59 +01:00
Antoine Pitrou
6a570d6b9a
Issue #13373 : multiprocessing.Queue.get() could sometimes block indefinitely
...
when called with a timeout. Patch by Arnaud Ysmal.
2011-11-10 00:33:50 +01:00
Jesus Cea
cb65f3249a
Partial patch for issue #11812 : Take care of test_telnetlib.py
2011-11-08 16:06:44 +01:00
Jesus Cea
71094b5d5b
Solved a potential deadlock in test_telnetlib.py. Related to issue #11812
2011-11-08 15:54:42 +01:00
Petri Lehtinen
3b9d92aefe
Revert "Accept None as start and stop parameters for list.index() and tuple.index()"
...
Issue #13340 .
2011-11-06 20:59:01 +02:00
Benjamin Peterson
a5ae1f0c25
remove py3k warning for callable
2011-11-06 08:20:12 -05:00
Petri Lehtinen
819d8d447d
Accept None as start and stop parameters for list.index() and tuple.index()
...
Closes #13340 .
2011-11-05 23:18:06 +02:00
Petri Lehtinen
416ecffcc4
Issue #3067 : Enhance the documentation and docstring of locale.setlocale()
2011-11-05 10:18:50 +02:00
Petri Lehtinen
49aa72ed4c
Fix Maildir initialization so that maildir contents are read correctly.
...
Closes #13254 .
2011-11-05 09:50:37 +02:00
Florent Xicluna
5f761d79c0
Issue #13140 : Fix the daemon_threads attribute of ThreadingMixIn.
2011-11-04 10:15:57 +01:00
Florent Xicluna
c4a11bd1d5
Missing NEWS entry in changeset e1dde980a92c
2011-11-01 23:47:46 +01:00
Ezio Melotti
7e82b276dd
#670664 : Fix HTMLParser to correctly handle the content of ``<script>...</script>`` and ``<style>...</style>``.
2011-11-01 14:09:56 +02:00
Ned Deily
1aacd7bb02
Issue #13304 : Skip test case if user site-packages disabled (-s or
...
PYTHONNOUSERSITE). (Patch by Carl Meyer)
2011-10-31 16:14:52 -07:00
Senthil Kumaran
87e585581d
Port to 2.7 - issue 10817 - Fix urlretrieve function to raise
...
ContentTooShortError even when reporthook is None. Patch by Jyrki Pulliainen.
2011-11-01 02:44:45 +08:00
Ned Deily
86d669bdb8
Issue 13296: Fix IDLE to clear compile __future__ flags on shell restart.
...
(Patch by Roger Serwy)
2011-10-30 19:58:04 -07:00
Petri Lehtinen
8028dc215c
Add Misc/NEWS entry for issue #10519
2011-10-30 21:12:17 +02:00
Florent Xicluna
67d5d0ed44
Closes #7334 : close source files on ElementTree.parse and iterparse (partial backport of issue #10093 from 3.2).
2011-10-29 03:38:56 +02:00
Barry Warsaw
bf0cafa773
Oops, put fix news in the right section.
2011-10-28 16:16:58 -04:00
Barry Warsaw
be83698f21
- Issue #13218 : Fix test_ssl failures on Debian/Ubuntu.
2011-10-28 16:14:44 -04:00
Benjamin Peterson
0c0d756098
don't let a tuple msg be interpreted as arguments to AssertionError ( closes #13268 )
2011-10-27 08:21:59 -04:00
Vinay Sajip
c515eba9ff
Updated NEWS with fix for 13232.
2011-10-24 23:26:00 +01:00
Petri Lehtinen
99e93d2dde
merge heads
2011-10-24 21:29:20 +03:00
Petri Lehtinen
8ffbab8d02
Issue #13018 : Fix reference leaks in error paths in dictobject.c.
...
Patch by Suman Saha.
2011-10-24 20:59:29 +03:00
Charles-François Natali
46f990e58c
Issue #10332 : multiprocessing: fix a race condition when a Pool is closed
...
before all tasks have completed.
2011-10-24 18:43:51 +02:00
Nick Coghlan
8671157863
Issue #13237 : Rearrange subprocess module documentation to emphasise the convenience functions and commonly needed arguments
2011-10-24 22:19:40 +10:00
Florent Xicluna
df10d7cb97
Issue #13141 : Demonstrate recommended style for SocketServer examples.
2011-10-23 23:07:22 +02:00
Éric Araujo
b21f51a9d0
Note that the #1548891 fix indirectly fixes shlex ( #6988 , #1170 )
2011-10-23 04:37:51 +02:00
Antoine Pitrou
5a77fe92bd
Issue #1548891 : The cStringIO.StringIO() constructor now encodes unicode
...
arguments with the system default encoding just like the write() method
does, instead of converting it to a raw buffer.
2011-10-22 21:26:01 +02:00
Florent Xicluna
47fb192dda
Issue #9168 : now smtpd is able to bind privileged port.
2011-10-20 23:21:58 +02:00
Senthil Kumaran
797b95b4af
News entry for Issue12529 and Issue12604
2011-10-21 00:32:59 +08:00
Senthil Kumaran
ddd40312d5
Fix closes Issue6090 - Raise a ValueError, instead of failing with unrelated
...
exceptions, when a document with timestamp earlier than 1980 is provided to
zipfile. Patch contributed by Petri Lehtinen.
2011-10-20 01:38:35 +08:00
Łukasz Langa
7a15390f83
Fixes #10860 : Handle empty port after port delimiter in httplib
...
Thanks, Shawn Ligocki!
3.x version will come as a separate patch.
2011-10-18 17:16:00 +02:00
Nadeem Vawda
deb1ce7b95
Issue #13194 : zlib.compressobj().copy() and zlib.decompressobj().copy() are now available on Windows.
2011-10-17 19:33:38 +02:00
Mark Hammond
323b5daa10
Issue #7833 : Ext. modules built using distutils on Windows no longer get a manifest
2011-10-17 11:05:36 +11:00
Benjamin Peterson
a7b0976c3e
PyEval_CallObject requires a tuple of args ( closes #13186 )
2011-10-15 13:43:21 -04:00
Éric Araujo
5baef6d23b
Increase test coverage for distutils.filelist ( #11751 ).
...
Patch by Justin Love.
2011-10-14 18:15:31 +02:00
Nadeem Vawda
36248154a9
Issue #13159 : Replace FileIO's quadratic-time buffer growth algorithm with a linear-time one.
...
Also fix the builtin file class and the bz2 module, which used the same algorithm.
2011-10-13 13:52:46 +02:00
Charles-François Natali
40ab00233e
Issue #13156 : Add an entry in Misc/NEWS.
2011-10-12 22:29:09 +02:00
Éric Araujo
017e535bde
Fix distutils’ check and register Unicode handling ( #13114 ).
...
The check command was fixed by Kirill Kuzminykh.
The register command was using StringIO.getvalue, which uses “''.join”
and thus coerces to str using the default encoding (ASCII), so I changed
the code to use one extra intermediary list and correctly encode to
UTF-8.
2011-10-09 07:11:19 +02:00
Ned Deily
bd9d07c1dd
Issue #7425 and Issue #7367 : add NEWS items.
2011-10-06 14:29:49 -07:00
Charles-François Natali
9ffcbf71a5
Issue #13070 : Fix a crash when a TextIOWrapper caught in a reference cycle
...
would be finalized after the reference to its underlying BufferedRWPair's
writer got cleared by the GC.
2011-10-06 19:09:45 +02:00
Antoine Pitrou
ace2ccf387
Issue #13099 : Fix sqlite3.Cursor.lastrowid under a Turkish locale.
...
Reported and diagnosed by Thomas Kluyver.
2011-10-04 13:38:04 +02:00
Antoine Pitrou
561a821e93
Issue #7689 : Allow pickling of dynamically created classes when their
...
metaclass is registered with copyreg. Patch by Nicolas M. Thiéry and
Craig Citro.
2011-10-04 09:34:48 +02:00
Meador Inge
ad349a190e
Issue #12881 : ctypes: Fix segfault with large structure field names.
2011-10-03 21:34:04 -05:00
Charles-François Natali
564f89036f
Issue #13058 : ossaudiodev: fix a file descriptor leak on error. Patch by Thomas
...
Jarosch.
2011-09-29 19:43:01 +02:00
Meador Inge
fe15003680
Issue #13013 : ctypes: Fix a reference leak in PyCArrayType_from_ctype.
...
Thanks to Suman Saha for finding the bug and providing a patch.
2011-09-27 20:35:28 -05:00
Mark Dickinson
a96b0d119d
Backport issue #12973 itertools fix from 3.x.
2011-09-24 09:01:16 +01:00
Victor Stinner
63c22fac72
Issue #7732 : Fix a crash on importing a module if a directory has the same name
...
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
2011-09-23 19:37:03 +02:00
Victor Stinner
51b719814e
Issue #12931 : xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of
...
failing with a UnicodeDecodeError.
2011-09-23 01:15:32 +02:00
Jesus Cea
c23484b21f
Close #13022 : _multiprocessing.recvfd() doesn't check that file descriptor was actually received
2011-09-21 03:47:39 +02:00
Mark Dickinson
4ac5d2cda4
Backport issue #12973 list_repeat fix from 3.x.
2011-09-19 19:23:55 +01:00
Mark Dickinson
dbbed04941
Issue #12973 : Fix int.__pow__ overflow checks that invoked undefined behaviour, thereby producing incorrect results on Clang.
2011-09-19 16:38:08 +01:00
Jesus Cea
d256ca12c1
Close #13007 : whichdb should recognize gdbm 1.9 magic numbers
2011-09-19 16:57:18 +02:00
Amaury Forgeot d'Arc
439c25eb9e
Issue #12483 : ctypes: Fix a crash when the destruction of a callback
...
object triggers the garbage collector.
2011-09-12 20:12:09 +02:00
Éric Araujo
dcdc3ef5fa
Branch merge
2011-09-12 17:47:48 +02:00
Éric Araujo
a13cd39533
Fix determination of Metadata version ( #8933 ). Patch by Filip Gruszczyński.
2011-09-10 05:39:45 +02:00
Jesus Cea
6ebaca137f
NEWS
2011-09-10 04:35:18 +02:00
Éric Araujo
ab08da0a1c
Branch merge
2011-09-05 17:45:48 +02:00
Lars Gustäbel
8babfdfd45
Issue #12841 : Fix tarfile extraction of non-existent uids/gids.
...
tarfile unnecessarily checked the existence of numerical user and group ids on
extraction. If one of them did not exist the respective id of the current user
(i.e. root) was used for the file and ownership information was lost. (Patch
by Sebastien Luttringer)
2011-09-05 17:04:18 +02:00
Éric Araujo
0f2dbf3645
Warn instead of crashing because of invalid path in MANIFEST.in ( #8286 ).
...
sdist used to crash with a full traceback dump instead of printing a
nice warning with the faulty line number.
2011-09-03 00:47:07 +02:00
Amaury Forgeot d'Arc
cf316a171e
Issue #12764 : Fix a crash in ctypes when the name of a Structure field is not
...
a string.
2011-09-02 20:32:23 +02:00
Amaury Forgeot d'Arc
3d7f236329
Issue #9651 : Fix a crash when ctypes.create_string_buffer(0) was passed to
...
some functions like file.write().
2011-08-30 21:04:35 +02:00
Éric Araujo
429b890561
Make bdist_* commands respect --skip-build passed to bdist ( #10946 )
2011-08-30 01:48:59 +02:00
Charles-François Natali
fda7b379ac
Issue #12287 : Fix a stack corruption in ossaudiodev module when the FD is
...
greater than FD_SETSIZE.
2011-08-28 16:22:33 +02:00
Nadeem Vawda
bbabbae114
Issue #12839 : Fix crash in zlib module due to version mismatch.
...
If the version of zlib used to compile the zlib module is incompatible
with the one that is actually linked in, then calls into zlib will fail.
This can leave attributes of the z_stream uninitialized, so we must take
care to avoid segfaulting by trying to use an invalid pointer.
Fix by Richard M. Tew.
2011-08-28 11:23:57 +02:00
Charles-François Natali
2a34eb3104
Issue #12786 : Set communication pipes used by subprocess.Popen CLOEXEC to avoid
...
them being inherited by other subprocesses.
2011-08-25 21:20:54 +02:00
Antoine Pitrou
77657e40fa
Issue #4106 : Fix occasional exceptions printed out by multiprocessing on interpreter shutdown.
...
This bug doesn't seem to exist on 3.2, where daemon threads are killed
before Py_Finalize() is entered.
2011-08-24 22:41:05 +02:00
Antoine Pitrou
a1a8da8bf5
Issue #11657 : Fix sending file descriptors over 255 over a multiprocessing Pipe.
...
Also added some tests.
2011-08-23 19:54:20 +02:00
Charles-François Natali
cdaafe0f9e
Issue #12821 : Fix test_fcntl failures on OpenBSD 5.
2011-08-23 19:42:02 +02:00
Nadeem Vawda
367d4c8a80
Issue #12678 : Fix distutils sdist test on Windows.
...
Patch by Jeremy Kloth.
2011-08-21 22:40:04 +02:00
Antoine Pitrou
808cec536a
Issue #12213 : Fix a buffering bug with interleaved reads and writes that
...
could appear on io.BufferedRandom streams.
2011-08-20 15:40:58 +02:00
Victor Stinner
acacbaa788
Issue #12326 : sys.platform is now always 'linux2' on Linux
...
Even if Python is compiled on Linux 3.
2011-08-20 14:02:38 +02:00
Éric Araujo
e7329f47e7
Guard shutil._make_archive against a logger=None argument.
...
Backporting two lines from the 3.x tests was enough to trigger the bug.
I also took the opportunity of making the logging call lazy.
2011-08-19 03:07:39 +02:00
Charles-François Natali
b02302c5cf
Issue #12650 : Fix a race condition where a subprocess.Popen could leak
...
resources (FD/zombie) when killed at the wrong time.
2011-08-18 17:18:28 +02:00
Barry Warsaw
39935f4ab8
NEWS entry.
2011-08-15 19:50:35 -04:00
Ezio Melotti
15d6b65ead
#12266 : Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased non-letter characters.
2011-08-15 09:22:24 +03:00
Senthil Kumaran
f432aeca7c
Fix closes issue12683 - urljoin to work with relative join of svn scheme.
2011-08-03 18:31:59 +08:00
Éric Araujo
33af263d36
Fix incorrect mtime comparison in distutils ( #11933 ).
...
This is a regression introduced in 9211a5d7d0b4, when uses of ST_MTIME
constants were changed to uses of st_mtime attributes. As diagnosed in
the bug report, this change is not merely stylistic: st_mtime is a
float but ST_MTIME’s resolution is rounded to the seconds, so there was
a mismatch between the values seen by file_util and dep_util which
caused an sdist to be unnecessarily created a second time on an ext4
filesystem.
This patch has been tested by John S. Gruber, who reported the bug.
As this is a simple code revert, I think it’s okay to commit without a
unit test.
2011-08-02 03:16:12 +02:00
Éric Araujo
498da2c162
Stop trying to write into the stdlib during lib2to3 tests ( #12331 ).
...
This prevents tests from failing when run from a Python installed in a
read-only directory.
2011-07-31 17:59:28 +02:00
Éric Araujo
560bf855d3
Fix regression with distutils MANIFEST handing ( #11104 , #8688 ).
...
The changed behavior of sdist in 2.7 broke packaging for projects that
wanted to use a manually-maintained MANIFEST file (instead of having a
MANIFEST.in template and letting distutils generate the MANIFEST).
The fixes that were committed for #8688 (d29399100973 by Tarek and
f7639dcdffc3 by me) did not fix all issues exposed in the bug report,
and also added one problem: the MANIFEST file format gained comments,
but the read_manifest method was not updated to handle (i.e. ignore)
them. This changeset should fix everything; the tests have been
expanded and I successfully tested with Mercurial, which suffered from
this regression.
I have grouped the versionchanged directives for these bugs in one place
and added micro version numbers to help users know the quirks of the
exact version they’re using. I also removed a stanza in the docs that
was forgotten in Tarek’s first changeset.
Initial report, thorough diagnosis and patch by John Dennis, further
work on the patch by Stephen Thorne, and a few edits and additions by
me.
2011-07-31 02:04:00 +02:00
Éric Araujo
9a528306b9
Make “pydoc somebuiltin.somemethod” work ( #8887 )
2011-07-29 17:34:35 +02:00
Raymond Hettinger
55e5e27b74
Issue 12514: Use try/finally to assure that timeit restores GC when done.
2011-07-28 23:56:38 -07:00
Jason R. Coombs
fee7745ebb
Fixes #10639 : reindent.py should not convert newlines
...
Backport of changeset 070dc6e359fb, reindent.py now will use the newline detected in the original file and will report an error if mixed newlines are encountered.
2011-07-27 14:05:37 -04:00
Charles-François Natali
0cf7e25c28
- Issue #12603 : Fix pydoc.synopsis() on files with non-negative st_mtime.
2011-07-27 19:36:40 +02:00
Ross Lagerwall
d8e3901478
Issue #12607 : In subprocess, fix issue where if stdin, stdout or stderr is
...
given as a low fd, it gets overwritten.
2011-07-27 18:54:53 +02:00
Ned Deily
d8b1723965
Issue #12590 : IDLE editor window now always displays the first line
...
when opening a long file. With Tk 8.5, the first line was hidden.
2011-07-26 18:16:08 -07:00
Ross Lagerwall
528c4adc0b
Issue #12102 : Document that buffered files must be flushed before being used
...
with mmap. Patch by Steffen Daode Nurpmeso.
2011-07-25 07:23:58 +02:00
Charles-François Natali
3de8c73d90
Issue #12560 : Build libpython.so on OpenBSD. Patch by Stefan Sperling.
2011-07-24 22:33:35 +02:00
Antoine Pitrou
4cfae027b3
Issue #1813 : Fix codec lookup and setting/getting locales under Turkish locales.
2011-07-24 02:51:01 +02:00
Nadeem Vawda
0d2889f56c
Fix typo in NEWS entry for dbf1e1a27427.
2011-07-23 16:13:01 +02:00
Nadeem Vawda
b42c53e442
Issue #10883 : Fix socket leaks in urllib.request.
...
* ftpwrapper now uses reference counting to ensure that the underlying socket
is closed when the ftpwrapper object is no longer in use
* ftplib.FTP.ntransfercmd() now closes the socket if an error occurs
Initial patch by Victor Stinner.
2011-07-23 15:51:16 +02:00
Charles-François Natali
97781b0b64
Issue #12592 : Make Python build on OpenBSD 5 (and future major releases).
2011-07-22 23:43:42 +02:00
Benjamin Peterson
6c18ff0808
news note
2011-07-22 10:41:44 -05:00
Charles-François Natali
4929eb911b
Issue #12372 : POSIX semaphores are broken on AIX: don't use them.
2011-07-21 19:41:04 +02:00
Barry Warsaw
a4c383b8b3
Upstream merge.
2011-07-19 19:28:16 -04:00
Antoine Pitrou
495ee8f563
Issue #12571 : Add a plat-linux3 directory mirroring the plat-linux2 directory,
...
so that "import DLFCN" and other similar imports work on Linux 3.0.
2011-07-20 00:26:23 +02:00
Barry Warsaw
c56432804a
- Issue #10309 : Define _GNU_SOURCE so that mremap() gets the proper
...
signature. Without this, architectures where sizeof void* != sizeof int are
broken. Patch given by Hallvard B Furuseth.
2011-07-19 17:06:30 -04:00
R David Murray
9522595d70
#7484 : no more <> around addresses in VRFY or EXPN
...
The RFC doesn't say that they are allowed; apparently many mailers accept
them, but not postfix. Contributions to this patch were made by Felipe Cruz
and Catalin Iacob.
2011-07-18 21:34:04 -04:00
Eli Bendersky
877f2e4530
Issue #12574 : correct capitalization of the Queue module. Patch by Rafe Kettler
2011-07-17 05:54:06 +03:00
Antoine Pitrou
304f0f952d
Issue #11603 : Fix a crash when __str__ is rebound as __repr__.
...
Patch by Andreas Stührk.
2011-07-15 21:22:50 +02:00
Benjamin Peterson
c3349cd22e
port 8d05f697acd4 ( #11627 )
2011-07-15 14:15:40 -05:00
Charles-François Natali
2659140a5d
Issue #12502 : asyncore: fix polling loop with AF_UNIX sockets.
2011-07-14 19:49:02 +02:00
Ned Deily
0ab67ee79e
Issue #12549 : Correct test_platform to not fail when OS X returns 'x86_64'
...
as the processor type on some Mac systems. Also fix NameError in fallback
_mac_ver_gestalt function. And remove out-of-date URL in docs.
2011-07-13 15:05:31 -07:00
Victor Stinner
bf547fd3f2
Close #4376 : ctypes now supports nested structures in a endian different than
...
the parent structure. Patch by Vlad Riscutia.
2011-07-13 21:47:31 +02:00
Antoine Pitrou
1616645a00
Issue #12149 : Update the method cache after a type's dictionnary gets
...
cleared by the garbage collector. This fixes a segfault when an instance
and its type get caught in a reference cycle, and the instance's
deallocator calls one of the methods on the type (e.g. when subclassing
IOBase).
Diagnosis and patch by Davide Rizzo.
2011-07-12 22:04:20 +02:00
Antoine Pitrou
4a4a0fed07
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
...
failure in name resolution.
Should fix a buildbot failure.
2011-07-09 02:34:05 +02:00
Antoine Pitrou
2960308c0c
Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
...
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.
2011-07-08 19:40:15 +02:00
Antoine Pitrou
a4d58d26a1
Avoid failing in test_urllibnet.test_bad_address when some overzealous
...
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead.
2011-07-08 19:14:19 +02:00
Victor Stinner
ba8b3a2ca7
Close #12501 : Adjust callable() warning: callable() is only not supported in
...
Python 3.1. callable() is again supported in Python 3.2.
2011-07-08 02:07:45 +02:00
Victor Stinner
e790131dc6
Issue #12493 : subprocess: communicate() handles EINTR
...
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner
59729ff609
Issue #9611 , #9015 : FileIO.read(), FileIO.readinto(), FileIO.write() and
...
os.write() clamp the length to INT_MAX on Windows.
2011-07-05 11:28:19 +02:00
Ned Deily
46268c49f6
Issue #8716 : Avoid crashes caused by Aqua Tk on OSX when attempting to run
...
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:52:35 -07:00
Victor Stinner
65c153547b
Issue #12467 : warnings: fix a race condition if a warning is emitted at
...
shutdown, if globals()['__file__'] is None.
2011-07-04 03:05:37 +02:00
Charles-François Natali
414d0faedc
Issue #12352 : Fix a deadlock in multiprocessing.Heap when a block is freed by
...
the garbage collector while the Heap lock is held.
2011-07-02 13:56:19 +02:00
Raymond Hettinger
bf7a266074
Fixup repr for dict_proxy objects.
2011-06-30 00:44:36 +01:00
Ned Deily
87e82bb0e3
Issue #9516 : Update Misc/NEWS.
2011-06-28 19:52:59 -07:00
Ned Deily
63144c6444
Issue #12141 : Install a copy of template C module file so that
...
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
2011-06-28 00:39:19 -07:00
Ned Deily
43e1054e38
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-27 23:41:53 -07:00
Ned Deily
64e59959f2
Issue #10736 : Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
...
on Mac OS X. (Patch by Ronald Oussoren)
2011-06-27 23:09:31 -07:00
Raymond Hettinger
2c316a3e29
Issue 11802: filecmp cache was growing without bound.
2011-06-25 17:14:53 +02:00
Ross Lagerwall
ffa8e2fb56
Issue 12404: Remove C89 incompatible code from mmap module.
...
Patch by Akira Kitada.
2011-06-25 09:55:10 +02:00
Victor Stinner
ecb863b29e
Revert d370d609d09b as requested by Terry Jan Reedy:
...
"#3067 : locale.setlocale() accepts a Unicode locale."
2011-06-20 22:07:06 +02:00
Victor Stinner
c36c6ccb41
Close #3067 : locale.setlocale() accepts a Unicode locale.
2011-06-20 16:14:48 +02:00
R David Murray
f1138bb1b6
#11700 : proxy object close methods can now be called multiple times
...
This makes them work like the close provided by regular file objects. This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
2011-06-17 22:23:04 -04:00
Victor Stinner
c74a6ba2d6
Issue #12133 : AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
...
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Benjamin Peterson
0eb4ac4c62
allow "fake" filenames in findsource ( closes #9284 )
...
This allows findsource() to work in doctests.
A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson
a573e0df36
merge 2.7.2 release branch
2011-06-11 09:51:21 -05:00
Benjamin Peterson
9843ba5e54
bump to 2.7.2 final
2011-06-11 09:42:44 -05:00
Benjamin Peterson
b30d5c711e
merge heads
2011-06-10 11:33:58 -05:00
Benjamin Peterson
8b8162d868
merge 2.7.2 release branch with fix for #12009
2011-06-10 11:33:41 -05:00
Benjamin Peterson
43ee1a5d90
fix regression in netrc comment handling ( closes #12009 )
2011-06-10 11:32:52 -05:00
R David Murray
873c583244
#10694 : zipfile now ignores garbage at the end of a zipfile.
...
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 16:01:09 -04:00
Brian Curtin
caea7e8d23
Merge
2011-06-08 19:29:53 -05:00
Mark Dickinson
a493ca3fae
Issue #12080 : Fix a performance issue in Decimal._power_exact that caused some corner-case Decimal.__pow__ calls to take an unreasonably long time.
2011-06-04 18:24:15 +01:00
Barry Warsaw
d0366e862a
Replay svn r88852.
2011-06-03 20:05:48 -04:00
Barry Warsaw
16ec24a192
Replay svn r88850.
2011-06-03 20:02:47 -04:00
Benjamin Peterson
d571cf5ab0
merge 2.7.2 release branch
2011-06-03 16:17:48 -05:00
Benjamin Peterson
ef1122cbd6
another benefit of this change
2011-06-03 16:17:22 -05:00
Raymond Hettinger
45b082935d
Fix named tuples to work with vars().
2011-06-02 20:40:35 -07:00
Raymond Hettinger
19b851d11b
sys.checkinterval() now refreshes the current countdown ticker.
2011-06-01 18:21:42 -07:00
Benjamin Peterson
35a9b1ca13
merge 2.7.2 release branch
2011-05-31 19:01:23 -05:00
Benjamin Peterson
4ba009d8dc
simply use the Python version for pyexpat.__version__ #12221
2011-05-31 18:59:49 -05:00
Benjamin Peterson
f14e42077c
add 2.7.2 header
2011-05-31 18:44:55 -05:00
Victor Stinner
776e69b5b3
Close #12085 : Fix an attribute error in subprocess.Popen destructor if the
...
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 01:03:00 +02:00
Victor Stinner
d9f5292443
Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-30 23:58:21 +02:00
Victor Stinner
d3c7e17a16
Issue #1195 : fix the issue number of the NEWS entry
2011-05-30 23:49:13 +02:00
Victor Stinner
08563d904d
Issue #12016 : my_fgets() now always clears errors before calling fgets(). Fix
...
the following case: sys.stdin.read() stopped with CTRL+d (end of file),
raw_input() interrupted by CTRL+c.
2011-05-30 23:44:13 +02:00
Benjamin Peterson
cd20705902
bump to 2.7.2rc1
2011-05-29 16:50:27 -05:00
Ned Deily
c4f97f4fdc
Issue #12205 : Fix test_subprocess failure due to uninstalled test data.
2011-05-29 02:36:17 -07:00
Ned Deily
22f63b50e3
Issue #11217 : For 64-bit/32-bit Mac OS X universal framework builds,
...
ensure "make install" creates symlinks in --prefix bin for the "-32"
files in the framework bin directory like the installer does.
2011-05-28 05:56:14 -07:00
Ned Deily
482f908410
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:11:54 -07:00
Benjamin Peterson
4fa68ab10b
raise an ValueError in getvalue() on closed StringIO ( closes #12161 )
...
Thanks for Catalin Iacob for the patch.
2011-05-26 09:56:41 -05:00
Victor Stinner
dbfba1667c
Close #12182 : Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true)
...
division (python -Qnew). Patch written by Ralf W. Grosse-Kunstleve.
2011-05-26 13:37:25 +02:00
Victor Stinner
daf17e9bc8
Issue #12175 : RawIOBase.readall() now returns None if read() returns None.
2011-05-25 22:52:37 +02:00
Victor Stinner
5100a405dc
Issue #12175 : FileIO.readall() now raises a ValueError instead of an IOError if
...
the file is closed.
2011-05-25 22:15:36 +02:00
Charles-François Natali
b94e0cde60
Issue #1441530 : In imaplib, use makefile() to wrap the SSL socket to avoid
...
heap fragmentation and MemoryError with some malloc implementations.
2011-05-24 23:10:54 +02:00
Victor Stinner
40b41e1ffd
Issue #12100 : Don't reset incremental encoders of CJK codecs at each call to
...
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:29:13 +02:00
Benjamin Peterson
8de87a6403
correctly lookup __dir__
2011-05-23 16:11:05 -05:00
Barry Warsaw
32140f8955
Replay changeset 70249:b571c7a8cf2e from fubar branch. Original commit
...
message:
Merging post 2.6.7rc2 changes from Subversion.
2011-05-23 15:27:52 -04:00
Barry Warsaw
34289260da
Replay changeset 70248:c714e2f92f63 from fubar branch. Original commit
...
message:
Cross-port changes for 2.6.7rc2 from the Subversion branch.
2011-05-23 15:26:11 -04:00
Barry Warsaw
cf0d8ab818
Replay changeset 70238:03e488b5c009 from fubar branch. Original commit
...
message:
Reconcile with the 2.6svn branch. The 2.6.7 release will be made from
Subversion, but there were differences, so this brings them in sync. These
changes should *not* propagate to any newer versions.
2011-05-23 15:22:56 -04:00
Victor Stinner
f58f1c33c1
Issue #12124 : zipimport doesn't keep a reference to zlib.decompress() anymore
...
to be able to unload the module.
2011-05-21 02:13:22 +02:00
Benjamin Peterson
d021f72abf
merge heads
2011-05-17 18:32:26 -05:00
Benjamin Peterson
6116d4a1d1
stop using the old brain-dead interface for providing attributes/methods
...
This closes #12099 .
2011-05-17 18:31:20 -05:00
Ronald Oussoren
b13cacf677
(backport) Fixes #11088 : IDLE crashes when using F5 to run a script on OSX with Tk 8.5
...
Without this patch IDLE will crash reliably on OSX when Tkinter
is linked to TkCocoa 8.5.x.
To reproduce:
* Create a new file (script.py) with the following two lines:
x = raw_input('prompt: ')
print x
* Save the script
* Run the script using the F5 keyboard shortcut
(running from the menu works fine)
The patch is a fairly crude hack, but we haven't found a better
workaround for this Tk bug yet.
2011-05-17 15:13:46 +02:00
Ronald Oussoren
372954e059
(backport)Fix #10154 and #10090 : locale normalizes the UTF-8 encoding to "UTF-8" instead of "UTF8"
...
On MacOSX and OpenBSD (and possibly other BSDs) "en_US.UTF-8" is a valid locale
while "en_US.UTF8" is not. As the former works on Linux as well it is better
to normalize to that value.
2011-05-17 13:22:30 +02:00
Ronald Oussoren
53b6a5f79c
NEWS entry for fix of issue #9516
2011-05-15 16:51:10 +02:00
Nadeem Vawda
0cc4fd9df7
Issue #12050 : zlib.decompressobj().decompress() now clears the unconsumed_tail
...
attribute when called without a max_length argument.
2011-05-14 14:29:07 +02:00
Ezio Melotti
e3992eb743
#5723 : Improve json tests to be executed with and without accelerations.
2011-05-14 06:24:53 +03:00
Antoine Pitrou
ee46a7bf9c
Issue #12062 : In the `io` module, fix a flushing bug when doing a certain
...
type of I/O sequence on a file opened in read+write mode (namely: reading,
seeking a bit forward, writing, then seeking before the previous write but
still within buffered data, and writing again).
2011-05-13 00:31:52 +02:00
Ezio Melotti
c1ec7b5d44
#12051 : Fix segfault in json.dumps() while encoding highly-nested objects using the C accelerations.
2011-05-11 00:55:35 +03:00
Antoine Pitrou
47d1d0dc30
Issue #8498 : In socket.accept(), allow to specify 0 as a backlog value in
...
order to accept exactly one connection. Patch by Daniel Evers.
2011-05-10 19:16:03 +02:00
Victor Stinner
b1241f9619
(Merge 3.1) Issue #12012 : ssl.PROTOCOL_SSLv2 becomes optional
...
OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.
Optimize also ssl.get_protocol_name(): speed does matter!
2011-05-10 01:52:03 +02:00
Victor Stinner
2c585f607e
(Merge 3.1) Issue #1195 : Fix input() if it is interrupted by CTRL+d and then
...
CTRL+c, clear the end-of-file indicator after CTRL+d.
2011-05-10 00:22:59 +02:00
Martin v. Löwis
591c2dfa42
Issue 11164: Remove obsolete allnodes test from minidom test.
...
Patch by Arfrever Frehtes Taifersar Arahesis.
2011-05-09 08:19:13 +02:00
Ezio Melotti
5c5d7e2511
#11910 : Fix test_heapq to skip the C tests when _heapq is missing.
2011-05-09 06:54:53 +03:00
Antoine Pitrou
21ce8f0d66
Issue #11927 : SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath.
2011-05-07 19:59:33 +02:00
Ezio Melotti
0639be6505
#10169 : Fix argument parsing in socket.sendto() to avoid error masking.
2011-05-07 19:21:22 +03:00
Ezio Melotti
cec464951e
#12017 : Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.
2011-05-07 17:40:23 +03:00
R David Murray
8b26c4b8ea
#11999 : sync based on comparing mtimes, not mtime to system clock
2011-05-06 21:56:22 -04:00
Ronald Oussoren
58d6b1b7a4
Backport fix for issue #10684 from 3.x
2011-05-06 11:31:33 +02:00
Ezio Melotti
df8a8f768d
#11982 : fix json.loads('""') to return u'' rather than ''.
2011-05-04 14:40:53 +03:00
Victor Stinner
0a92d1849e
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).
2011-05-03 15:09:24 +02:00
Victor Stinner
645b9f67ae
Issue #8651 : Fix "z#" format of PyArg_Parse*() function: the size was not
...
written if PY_SSIZE_T_CLEAN is defined.
2011-05-03 15:06:11 +02:00
Victor Stinner
112d48ac17
(Merge 3.1) Issue #11277 : mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X
...
to get around a mmap bug with sparse files. Patch written by Steffen Daode
Nurpmeso.
2011-05-03 14:36:36 +02:00
Victor Stinner
97cf585f4b
(Merge 3.1) Issue #9756 : credit the author, Andreas Stührk (Trundle)
2011-05-01 23:51:11 +02:00
Victor Stinner
e363ec1057
(Merge 3.1) Issue #9756 : When calling a method descriptor or a slot wrapper
...
descriptor, the check of the object type doesn't read the __class__ attribute
anymore. Fix a crash if a class override its __class__ attribute (e.g. a proxy
of the str type).
2011-05-01 23:43:37 +02:00
R David Murray
f9860c8298
#11971 : fix man page; it's -OO not -O0
...
Patch by Lars Michelsen.
2011-05-01 11:12:35 -04:00
Senthil Kumaran
011525ee92
Fix closes issue10761: tarfile.extractall failure when symlinked files are present.
2011-04-28 15:30:31 +08:00
Antoine Pitrou
1f9eb155b4
Move NEWS entry to the right section.
2011-04-27 19:26:06 +02:00
Antoine Pitrou
4394e0db24
Issue #10517 : After fork(), reinitialize the TLS used by the PyGILState_*
...
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch
by Charles-François Natali.
2011-04-27 19:20:48 +02:00
Ezio Melotti
34b32d62f8
#11763 : don't use difflib in TestCase.assertMultiLineEqual if the strings are too long.
2011-04-27 09:45:46 +03:00
Senthil Kumaran
5dc6868f25
Update NEWS for Issue11236.
2011-04-26 21:17:45 +08:00
Ezio Melotti
e3685f6b1b
#6780 : fix starts/endswith error message to mention that tuples are accepted too.
2011-04-26 05:12:51 +03:00
R David Murray
a0895db2e1
#11901 : add description of how bitfields are laid out to hexversion docs
...
Patch by Sijin Joseph.
2011-04-25 16:10:18 -04:00
Jesus Cea
f93bb262eb
pybench prep_times calculation error ( closes #11895 )
2011-04-25 03:20:54 +02:00
Jesus Cea
44e81687a2
startswith and endswith don't accept None as slice index. Patch by Torsten Becker. ( closes #11828 )
2011-04-20 16:39:15 +02:00
Raymond Hettinger
e0156c43da
Issue 11875: Keep OrderedDict's __reduce__ from temporarily mutating the object.
2011-04-19 09:48:39 -07:00
Nadeem Vawda
bafc6a9fca
Fix sporadic failure in test_startfile.
...
Wait for the child process to terminate before ending the test, so that the
regrtest cleanup code doesn't get an error when it tries to delete the
temporary CWD.
2011-04-19 01:35:58 +02:00
Victor Stinner
33feeab598
(Merge 3.1) Issue #11768 : The signal handler of the signal module only calls
...
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or
parallel calls. PyErr_SetInterrupt() writes also into the wake up file.
2011-04-18 16:33:28 +02:00
Martin v. Löwis
c116da04a9
merge 11442 NEWS
2011-04-17 23:01:13 +02:00
Martin v. Löwis
31e1b1f69c
merge 11442 NEWS
2011-04-17 22:56:19 +02:00
Martin v. Löwis
2d253dd9ea
Issue 11442: Add NEWS entry for e9724d7abbc2
2011-04-17 22:29:40 +02:00
Raymond Hettinger
37c0fe56b9
Fix minor subclassing issue with collections.Counter
2011-04-15 13:12:21 -07:00
Ezio Melotti
c283a85e12
Issue #5057 : fix a bug in the peepholer that led to non-portable pyc files between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. u"\U00012345"[0]).
2011-04-15 16:14:04 +03:00
Senthil Kumaran
ddaea1c38a
Issue #11467 : Fix urlparse behavior when handling urls which contains scheme
...
specific part only digits. Patch by Santoso Wijaya.
2011-04-15 18:07:33 +08:00
Senthil Kumaran
a99b761972
Fix Issue11474 - url2pathname() handling of '/C|/' on Windows
2011-04-14 12:54:35 +08:00
Ezio Melotti
2b96f0987a
#9233 : Fix json.loads({}) to return a dict (instead of a list), when _json is not available.
2011-04-13 05:37:29 +03:00
Raymond Hettinger
179816df59
Issue 11718: Teach IDLE's open module dialog to find packages.
2011-04-12 18:54:46 -07:00
Senthil Kumaran
0531d6fba5
update news in 2.7 for Issue #11703
2011-04-13 09:47:20 +08:00
R David Murray
ea8b6ef15f
#10019 : Fix regression relative to 2.6: add newlines if indent=0
...
Patch by Amaury Forgeot d'Arc, updated by Sando Tosi.
2011-04-12 21:00:26 -04:00
Raymond Hettinger
e4579c3380
Issue #11830 : Remove unnecessary introspection code in the decimal module.
...
It was causing a failed import in the Turkish locale where the locale
sensitive str.upper() method caused a name mismatch.
2011-04-11 17:27:42 -07:00
brian.curtin
16f98b7658
Add NEWS item for #5162 .
2011-04-11 18:05:33 -05:00
Ezio Melotti
8b4367ec10
#4877 : Fix a segfault in xml.parsers.expat while attempting to parse a closed file.
2011-04-11 03:44:28 +03:00
Antoine Pitrou
7dfc874a48
Issue #8428 : Fix a race condition in multiprocessing.Pool when terminating
...
worker processes: new processes would be spawned while the pool is being
shut down. Patch by Charles-François Natali.
2011-04-11 00:26:42 +02:00
Ned Deily
04cb72f968
Issue9670: Back out changeset b0d2b696da19; test fails on other platforms
...
and on OS X with pydebug.
2011-04-09 14:59:30 -07:00
Ned Deily
e427f0f432
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(Patch by Ronald Oussoren)
2011-04-09 12:29:58 -07:00
Ross Lagerwall
fe2f1ad5b5
Issue #11719 : Fix message about unexpected test_msilib skip.
...
Patch by Nadeem Vawda.
2011-04-09 20:39:50 +02:00
Victor Stinner
5de51ac4c0
(Merge 3.1) Issue #11650 : PyOS_StdioReadline() retries fgets() if it was
...
interrupted (EINTR), for example if the program is stopped with CTRL+z on Mac
OS X. Patch written by Charles-Francois Natali.
2011-04-09 16:09:08 +02:00
Ned Deily
5f511826c2
Issue #7108 : Fix test_commands to not fail when special attributes ('@'
...
or '.') appear in 'ls -l' output.
2011-04-05 17:16:09 -07:00
Ezio Melotti
9f1ffb2ae9
#7311 : fix HTMLParser to accept non-ASCII attribute values.
2011-04-05 20:40:52 +03:00
Ross Lagerwall
104c3f1020
Issue #10963 : Ensure that subprocess.communicate() never raises EPIPE.
2011-04-05 15:24:34 +02:00
Steven Bethard
e3c11b44e3
Issue #9347 : Fix formatting for tuples in argparse type= error messages.
2011-04-04 01:47:52 +02:00
Guido van Rossum
b885a5bbc8
Merge cleanup.
2011-03-29 13:04:24 -07:00
Guido van Rossum
07ef62c47c
Merge issue 11662 from 2.6.
2011-03-29 12:53:55 -07:00
Guido van Rossum
079381d236
Merge issue 11662 from 2.5.
2011-03-29 12:51:16 -07:00
guido@google.com
b7ef35b582
Merge urllib/urllib2 security fix from 2.6 branch.
2011-03-29 11:14:01 -07:00
guido@google.com
9a9fdfad59
Merge urllib/urllib2 security fix from 2.5 branch.
2011-03-29 10:48:23 -07:00
Benjamin Peterson
77d466079a
Correct handling of functions with only kwarg args in getcallargs ( closes #11256 )
...
A patch from Daniel Urban.
2011-03-28 17:32:31 -05:00
guido@google.com
db3080e68f
Add CVE number to urllib/urllib2 news item.
2011-03-28 13:53:40 -07:00
Martin v. Löwis
03f7e235c8
Closes #11696 : Fix ID generation in msilib.
...
Patch by Mark Mc Mahon.
2011-03-27 20:58:52 +02:00
Mark Dickinson
d687be09b4
Issue #9696 : Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to pack a negative (in-range) integer.
2011-03-27 16:15:24 +01:00
Mark Dickinson
1829e8fc7c
Move Misc/NEWS entry to correct section.
2011-03-27 15:32:05 +01:00
Steven Bethard
bc3b104e46
Issue #9026 : Fix order of argparse sub-commands in help messages. (Merged from 3.2.)
2011-03-27 13:57:55 +02:00
Martin v. Löwis
49b0ce06f0
Fix short file name generation in bdist_msi.
...
Patch by Christoph Gohlke.
Closes #7639 .
2011-03-27 10:10:46 +02:00
Benjamin Peterson
f21ad92351
check possible recursive _as_parameter_ to prevent segfault ( closes #1838 )
2011-03-26 17:56:28 -05:00
Steven Bethard
5e0062d25a
Issue #9343 : Document that argparse parent parsers must be configured before their children. (Merge from 3.2.)
2011-03-26 21:50:38 +01:00
Steven Bethard
3f69a059b9
Issue #8982 : Improve the documentation for the argparse Namespace object. (Merge from 3.2.)
2011-03-26 19:59:02 +01:00
Steven Bethard
539586296d
Issue #9348 : Raise an early error if argparse nargs and metavar don't match. (Merge from 3.2.)
2011-03-26 17:57:52 +01:00
Mark Dickinson
874d59ee91
Issue #11144 : Fix corner cases where float-to-int conversion unnecessarily returned a long.
2011-03-26 12:18:00 +00:00
Mark Dickinson
d3cb2f6e2c
Issue #11675 : Zero-out newly-created multiprocessing.[Raw]Array objects.
2011-03-26 10:02:37 +00:00
Raymond Hettinger
9aa5a34b6b
Issue #11666 : Teach pydoc to display full help for named tuples
2011-03-25 16:00:13 -07:00
Mark Dickinson
f9e9a6f403
Issue #11673 : Fix multiprocessing.[Raw]Array constructor to accept a size of type long. Thanks Robert Kern.
2011-03-25 22:01:06 +00:00
guido@google.com
2bc23b8448
Add FTP to the allowed url schemes. Add Misc/NEWS.
2011-03-24 10:44:17 -07:00
Éric Araujo
86f9074c5f
Fix some issue references in NEWS
2011-03-21 00:15:26 +01:00
Éric Araujo
374274db7f
Fix the total_ordering decorator to handle cross-type comparisons
...
that could lead to infinite recursion (closes #10042 ).
2011-03-19 04:29:36 +01:00
Michael Foord
5136867c1b
News update for previous commit
2011-03-17 12:59:38 -04:00
Michael Foord
764d75f325
Changes for Wing Project file caused by mercurial transition. Plus ignoring python.exe-gdb.py.
2011-03-16 22:28:08 -04:00
Ronald Oussoren
2ab5994dbe
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.
Patch by Steffen Daode Nurpmeso.
2011-03-16 09:47:15 -04:00
Ezio Melotti
24b07bcba3
#11515 : fix several typos. Patch by Piotr Kasprzyk.
2011-03-15 18:55:01 +02:00
Ronald Oussoren
1aa999c49e
Issue #11500 : Fixed a bug in the os x proxy bypass code for fully qualified
...
IP addresses in the proxy exception list.
2011-03-14 18:53:59 -04:00
R David Murray
f8b9dfd9a1
#11496 : skip history test if clear_history is not available.
...
Patch by Natalia B. Bidart.
2011-03-14 17:10:22 -04:00
briancurtin
525c25d42f
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.
2011-03-14 16:03:54 -04:00
Ronald Oussoren
19199830f7
Issue #1099 : Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
2011-03-14 11:57:39 -04:00
Ronald Oussoren
42d0f68458
Issue #1099 : Fix the build on MacOSX when building a framework with pydebug using GCC 4.0.
2011-03-14 11:04:34 -04:00
Ronald Oussoren
250324952e
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
2011-03-14 10:11:59 -04:00
R David Murray
b44e1841d5
Port #11488 patch from 3.1 (changeset f816841bab03)
2011-03-14 10:01:12 -04:00
R David Murray
1a5201f80d
Merge #11488 patch from 3.1.
2011-03-14 09:57:03 -04:00
R David Murray
d89ee79d19
#11488 : Add tests for writelines method of SpooledTemporaryFile.
...
Patch by Evan Dandrea.
2011-03-14 09:55:46 -04:00
R David Murray
8c76c53019
merge heads
2011-03-13 22:40:59 -04:00
R David Murray
cdd5fc9013
#11490 : EACCES can also mean command not found
2011-03-13 22:37:18 -04:00
R David Murray
384069c2e8
Merge fix for #11490 from 3.1.
2011-03-13 22:26:53 -04:00
R David Murray
d79210a0e4
#11490 : EACCES can also mean command not found
2011-03-13 22:13:09 -04:00
Antoine Pitrou
d3cccd2a60
Issue #11223 : Fix test_threadsignals to fail, not hang, when the
...
non-semaphore implementation of locks is used under POSIX.
2011-03-13 19:14:21 +01:00
Mark Dickinson
a7f0dffb8d
Merge #11131
2011-03-12 11:17:26 +00:00
Mark Dickinson
37a79fb75b
Issue 11131: Fix sign of zero result on decimal.Decimal plus and minus operations in ROUND_FLOOR rounding mode.
2011-03-12 11:12:52 +00:00
Mark Dickinson
2c8c62e64d
Issue 11131: Fix sign of zero result on plus and minus operations in ROUND_FLOOR rounding mode.
2011-03-12 11:05:32 +00:00
Antoine Pitrou
375ff587c2
Issue #11179 : Make ccbench work under Python 3.1 and 2.7 again.
2011-03-11 20:57:11 +01:00
R David Murray
efd8bab403
#10999 : Add missing documentation for chflags constants to stat module docs
...
Patch by Michal Nowikowski.
2011-03-10 17:57:35 -05:00
R David Murray
5647c473bc
Merge #10999 fix.
2011-03-10 17:22:33 -05:00
R David Murray
30178068d9
#10999 : Add missing documentation for chflags constants to stat module docs
...
Patch by Michal Nowikowski.
2011-03-10 17:18:33 -05:00
Antoine Pitrou
2ddaaff62d
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.
2011-03-09 12:54:00 +01:00
Antoine Pitrou
35db8a80c1
Merge fix for issue #11450
2011-03-09 12:47:20 +01:00
Antoine Pitrou
7983d33f54
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.
2011-03-09 12:34:41 +01:00
Ned Deily
2d12f96658
Issue #5622 : merge fix from 3.1.
2011-03-09 02:42:23 -08:00
Ned Deily
d2853180df
Issue #5622 : Fix curses.wrapper to raise correct exception if curses
...
initialization fails.
2011-03-09 02:36:51 -08:00
Ned Deily
9d4836e731
Issue #5622 : Fix curses.wrapper to raise correct exception if curses
...
initialization fails.
2011-03-09 02:31:55 -08:00
Thomas Wouters
6b1034392c
Merge 3.1.
2011-03-06 11:51:24 -08:00
Thomas Wouters
81638f1351
Issue #11411 : Fix typo in the Makefile that prevented 'make DESTDIR=' from
...
working correctly with a relative path.
2011-03-06 11:49:15 -08:00
Thomas Wouters
5edae7ea5e
Issue #11411 : Fix typo in the Makefile that prevented 'make DESTDIR=' from
...
working correctly with a relative path.
2011-03-06 11:48:05 -08:00
Antoine Pitrou
d6f3a3e3a8
Issue #11391 : Writing to a mmap object created with
...
`mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
2011-03-06 02:03:34 +01:00
Antoine Pitrou
80d3610bc3
Merge fix for issue #11391
2011-03-06 01:50:56 +01:00
Antoine Pitrou
16a0a0b0a0
Issue #11391 : Writing to a mmap object created with
...
`mmap.PROT_READ|mmap.PROT_EXEC` would segfault instead of raising a
TypeError. Patch by Charles-François Natali.
2011-03-06 01:11:03 +01:00