Antoine Pitrou
b90a8be96f
#2676 : email/message.py [Message.get_content_type]: Trivial regex hangs on pathological input
2008-08-15 21:03:21 +00:00
Antoine Pitrou
11ec65d82b
Issue #3476 : make BufferedReader and BufferedWriter thread-safe
2008-08-14 21:04:30 +00:00
Thomas Heller
57adf22f6e
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.
2008-08-14 19:10:48 +00:00
Brett Cannon
bf3157b8e0
Silence the DeprecationWarning of rfc822 triggered by its importation in
...
mimetools.
This has an unfortunate side-effect of potentially not letting any warning
about rfc822's deprecation be seen by user-visible code if rfc822 is not
imported before mimetools. This is because modules are cached in sys.modules
and thus do not have their deprecation triggered more than once. But this
silencing would have happened by other code that silences the use of mimetools
or rfc822 anyway in the stdlib or user code, and thus seems justified to be
done here.
2008-08-14 05:00:03 +00:00
Martin v. Löwis
581a1495a1
Add Hirokazu Yamamoto.
2008-08-12 20:45:21 +00:00
Martin v. Löwis
f91d46a17d
Issue #3139 : Make buffer-interface thread-safe wrt. PyArg_ParseTuple,
...
by denying s# to parse objects that have a releasebuffer procedure,
and introducing s*.
More module might need to get converted to use s*.
2008-08-12 14:49:50 +00:00
Antoine Pitrou
9fcd4b3d29
#3134 : shutil referenced undefined WindowsError symbol
2008-08-11 17:21:36 +00:00
Georg Brandl
1e13ea94a3
- Issue #3537 : Fix an assertion failure when an empty but presized dict
...
object was stored in the freelist.
2008-08-11 09:07:59 +00:00
Robert Schuppenies
14646337bf
Issue #1342811 : Fix leak in Tkinter.Menu.delete. Commands associated to
...
menu entries were not deleted.
2008-08-10 11:01:53 +00:00
Brett Cannon
9fc5631be6
Silence warnings in csv about using reduce() when run under -3 by using
...
functools.reduce() instead.
2008-08-09 23:39:11 +00:00
Brett Cannon
46265860c2
Use functools.reduce() in difflib instead of __builtin__.reduce() to silence
...
warnings when running under -3.
2008-08-09 23:34:11 +00:00
Brett Cannon
83e818415a
Copy reduce() to _functools so to have functools.reduce() not raise a warning
...
from usage under -3.
2008-08-09 23:30:55 +00:00
Brett Cannon
c1b76e4aaa
Suppress the warning in asynchat from using buffer() when running udner -3.
...
Naively removing the usage causes a large number of test failures, so it was
just easier to suppress the warning.
2008-08-09 23:06:16 +00:00
Antoine Pitrou
76b8bee26d
move NEWS entry to the appropriate section (oops!)
2008-08-09 17:27:23 +00:00
Antoine Pitrou
016b366df4
#3205 : bz2 iterator fails silently on MemoryError
2008-08-09 17:22:25 +00:00
Guido van Rossum
59ce901a20
Add news item about _sre.compile() re-bytecode validator.
2008-08-09 14:55:34 +00:00
Antoine Pitrou
de781a49d2
Fix slightly misleading statement in the NEWS file.
2008-08-09 12:43:23 +00:00
Skip Montanaro
a032bf41f6
accept issue 3436
2008-08-08 22:52:51 +00:00
Brett Cannon
3f92bc6f48
Remove buffer() usage in the socket module by just slicing directly on the
...
object. This removes all warnings for the module caused by running under -3.
2008-08-08 04:27:28 +00:00
Brett Cannon
03446c43ca
Remove warnings generated for the suprocess module when run under -3. Required
...
commenting out True/False compatbility stuff, remove a use of apply(), and
remove a use of buffer() (just pulled the solution used in 3.0 which is direct
slicing).
2008-08-08 04:19:32 +00:00
Brett Cannon
3aa2a49ec9
Add imp.reload(). This to help with transitioning to 3.0 the reload() built-in
...
has been removed there.
2008-08-06 22:28:09 +00:00
Brett Cannon
7e30b67bf4
Add a note about all the modules/packages changed to silence -3 warnings. More
...
changes are needed once some decisions are made, but this is the work up to this
point.
2008-08-04 21:52:25 +00:00
Mark Dickinson
b646757e01
Issue #1481296 : (again!) Make conversion of a float NaN to an int or
...
long raise ValueError instead of returning 0. Also, change the error
message for conversion of an infinity to an integer, replacing 'long' by
'integer', so that it's appropriate for both long(float('inf')) and
int(float('inf')).
2008-08-04 21:30:09 +00:00
Nick Coghlan
2a0c2b1368
Add missing NEWS entry for r65487
2008-08-04 12:47:17 +00:00
Gregory P. Smith
a36f8fefb0
- 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.
2008-08-04 00:13:29 +00:00
Georg Brandl
60fffcf854
Note the removal of several committers.
2008-08-03 22:28:55 +00:00
Lars Gustäbel
727bd0b687
Issue #3039 : Fix TarFileCompat.writestr() which always raised an
...
AttributeError since __slots__ were added to zipfile.ZipInfo in
r46967 two years ago.
Add a warning about the removal of TarFileCompat in Python 3.0.
2008-08-02 11:26:39 +00:00
Martin v. Löwis
aabf404ecc
Issue #799428 : Fix Tkinter.Misc._nametowidget to unwrap
...
Tcl command objects.
2008-08-02 07:20:25 +00:00
Martin v. Löwis
8dbf3649e2
Generate the PatternGrammar pickle during "make install".
...
Fixes part of #3131 .
2008-08-01 14:10:26 +00:00
Amaury Forgeot d'Arc
39fd672dfe
#3479 : unichr(2**32) used to return u'\x00'.
...
The argument was fetched in a long, but PyUnicode_FromOrdinal takes an int.
(why doesn't gcc issue a truncation warning in this case?)
2008-07-31 21:28:03 +00:00
Neal Norwitz
e7d8be80ba
Security patches from Apple: prevent int overflow when allocating memory
2008-07-31 17:17:14 +00:00
Amaury Forgeot d'Arc
246daedd11
#2542 : now that issubclass() may call arbitrary code,
...
make sure that PyErr_ExceptionMatches returns 0 when an exception occurs there.
2008-07-31 00:42:16 +00:00
Benjamin Peterson
01a24322ec
backport r65264
2008-07-28 23:35:27 +00:00
Mark Dickinson
fe84cce668
Issue #3449 : Update decimal module to use most recent specification
...
(v. 1.68) and tests (v. 2.58) from IBM.
2008-07-27 06:39:07 +00:00
Skip Montanaro
f9ac43f5d6
note robotparser bug fix.
2008-07-27 00:50:41 +00:00
Antoine Pitrou
92f8216ba1
add a NEWS entry
2008-07-25 22:22:08 +00:00
Antoine Pitrou
5fdfa3e36d
#3394 : zipfile.writestr doesn't set external attributes, so files are extracted mode 000 on Unix
2008-07-25 19:42:26 +00:00
Raymond Hettinger
8c664e8628
Issue 1592: Better error reporting for operations on closed shelves.
2008-07-25 18:43:33 +00:00
Georg Brandl
f9efabb6d2
3k-warn about parser's "ast" aliases.
2008-07-23 15:16:45 +00:00
Gregory P. Smith
0470bab697
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.
2008-07-22 04:46:32 +00:00
Amaury Forgeot d'Arc
e4921fec01
Issue2378: pdb would delete free variables when stepping into a class statement.
...
The problem was introduced by r53954, the correction is to restore the symmetry between
PyFrame_FastToLocals and PyFrame_LocalsToFast
2008-07-21 22:00:38 +00:00
Amaury Forgeot d'Arc
90d0717163
Increment version number in NEWS file, and move items that were added after 2.6b2.
...
(I thought there was a script to automate this kind of updates)
2008-07-21 21:36:24 +00:00
Gregory P. Smith
b90f4e8730
fix issue3120 - don't truncate handles on 64-bit Windows.
...
This is still messy, realistically PC/_subprocess.c should never cast pointers
to python numbers and back at all.
I don't have a 64-bit windows build environment because microsoft apparently
thinks that should cost money. Time to watch the buildbots. It builds and
passes tests on 32-bit windows.
2008-07-20 00:22:08 +00:00
Georg Brandl
278fc50c07
#3303 : fix crash with invalid Py_DECREF in strcoll().
2008-07-19 12:46:12 +00:00
Georg Brandl
6b41a8e156
#3302 : fix segfaults when passing None for arguments that can't
...
be NULL for the C functions.
2008-07-19 12:39:10 +00:00
Brett Cannon
1e8fba729e
Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality.
2008-07-18 19:30:22 +00:00
Vinay Sajip
51e65192b0
Issue #3389 : Allow resolving dotted names for handlers in logging configuration files. Thanks to Philip Jenvey for the patch.
2008-07-18 09:01:10 +00:00
Barry Warsaw
daddf03f77
Bumping to 2.6b2
2008-07-18 03:20:07 +00:00
Jesse Noller
7fb9640d57
Fix issue 3395, update _debugInfo to be _debug_info
2008-07-17 21:01:05 +00:00
Eric Smith
d6c393ab2b
Backed out r65069, pending fixing it in Windows.
2008-07-17 19:49:47 +00:00