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
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
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
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
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
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
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
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
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
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
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
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
Eli Bendersky
680e6eb54f
Merged revisions 88735 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88735 | eli.bendersky | 2011-03-04 06:55:25 +0200 (Fri, 04 Mar 2011) | 2 lines
Issue #11386 : Fixed the exception thrown by bytearray.pop() for empty bytearrays
........
2011-03-04 06:14:56 +00:00
R. David Murray
1a33790682
Merged revisions 88730 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88730 | r.david.murray | 2011-03-03 13:03:36 -0500 (Thu, 03 Mar 2011) | 2 lines
#11306 : Treat EROFS like EACCES when making a 'file is read-only' decision
........
2011-03-03 18:17:40 +00:00
Giampaolo Rodolà
d65224f339
Merged revisions 88722 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88722 | giampaolo.rodola | 2011-03-03 14:57:47 +0100 (gio, 03 mar 2011) | 1 line
Fix issue 11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), recv() and send().
........
2011-03-03 14:17:51 +00:00
Antoine Pitrou
d3f6ea1d1e
Merged revisions 88664 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88664 | antoine.pitrou | 2011-02-27 00:24:06 +0100 (dim., 27 févr. 2011) | 4 lines
Issue #11326 : Add the missing connect_ex() implementation for SSL sockets,
and make it work for non-blocking connects.
........
2011-02-26 23:35:27 +00:00
Antoine Pitrou
6439c00a6d
Merged revisions 88610 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r88610 | antoine.pitrou | 2011-02-25 22:24:11 +0100 (ven., 25 févr. 2011) | 4 lines
Issue #10956 : Buffered I/O classes retry reading or writing after a signal
has arrived and the handler returned successfully.
........
2011-02-25 21:35:47 +00:00