Raymond Hettinger
0c850863a2
Port Armin's fix for a dict resize vulnerability (svn revision 46589, sf bug 1456209).
2006-12-08 04:24:33 +00:00
Raymond Hettinger
f31e17509a
Eliminate two redundant calls to PyObject_Hash().
2006-12-08 03:17:18 +00:00
Georg Brandl
70f466932c
RFE #1592899 : mention string.maketrans() in docs for str.translate,
...
remove reference to the old regex module in the former's doc.
2006-12-07 09:30:06 +00:00
Brett Cannon
8211297a7e
Fix a bad assumption that all objects assigned to '__loader__' on a module
...
will have a '_files' attribute.
2006-12-06 23:38:48 +00:00
Georg Brandl
87fa559479
Patch #1610437 : fix a tarfile bug with long filename headers.
2006-12-06 22:21:18 +00:00
George Yoshida
0a286d0b53
Fix pickle doc typo
...
Patch #1608758
2006-12-05 05:39:50 +00:00
George Yoshida
9be4905f42
fix a versionchanged tag
2006-12-04 11:41:54 +00:00
Matthias Klose
d149d0c76a
- Fix build failure on kfreebsd and on the hurd.
2006-12-03 17:16:41 +00:00
Martin v. Löwis
a00bcac003
Patch #1371075 : Make ConfigParser accept optional dict type
...
for ordering, sorting, etc.
2006-12-03 12:01:53 +00:00
Martin v. Löwis
046c4d13be
Patch #1544279 : Improve thread-safety of the socket module by moving
...
the sock_addr_t storage out of the socket object.
Will backport to 2.5.
2006-12-03 11:23:45 +00:00
Martin v. Löwis
8609da9b17
Move IDLE news into NEWS.txt.
2006-12-03 09:54:46 +00:00
Raymond Hettinger
8a7e76bcfa
Add name to credits (for untokenize).
2006-12-02 02:00:39 +00:00
Walter Dörwald
f008203cb4
Move xdrlib tests from the module into a separate test script,
...
port the tests to unittest and add a few new tests.
2006-12-01 16:59:47 +00:00
Guido van Rossum
c764340ba2
Update version.
2006-11-30 19:23:13 +00:00
Armin Rigo
7037085959
Forgot a case where the locals can now be a general mapping
...
instead of just a dictionary. (backporting...)
2006-11-29 21:59:22 +00:00
Thomas Heller
ef583a4992
Fix #1563807 : _ctypes built on AIX fails with ld ffi error.
...
The contents of ffi_darwin.c must be compiled unless __APPLE__ is
defined and __ppc__ is not.
Will backport.
2006-11-28 20:21:54 +00:00
Georg Brandl
73e7e058f5
Bug #1603789 : grammatical error in Tkinter docs.
2006-11-27 18:46:21 +00:00
Georg Brandl
21d900f1d6
Bug #1603321 : make pstats.Stats accept Unicode file paths.
2006-11-26 19:27:47 +00:00
Martin v. Löwis
4d542ec13c
Disable _XOPEN_SOURCE on NetBSD 1.x.
...
Will backport to 2.5
2006-11-25 15:39:19 +00:00
Thomas Heller
25d208bd46
Fix bug #1598620 : A ctypes structure cannot contain itself.
2006-11-24 18:45:39 +00:00
Raymond Hettinger
a3c77677ca
... and the number of the counting shall be three.
2006-11-23 21:35:19 +00:00
Raymond Hettinger
a912c6c891
Fix and/add typo
2006-11-23 21:06:03 +00:00
Michael W. Hudson
f390442130
a test for an error condition not covered by existing tests
...
(noticed this when writing the equivalent code for pypy)
2006-11-23 13:54:04 +00:00
Georg Brandl
3f969022c6
Bug #1601630 : little improvement to getopt docs
2006-11-23 09:55:07 +00:00
Walter Dörwald
39b8b6afb5
Change decode() so that it works with a buffer (i.e. unicode(..., 'utf-8-sig'))
...
SF bug #1601501 .
2006-11-23 05:03:56 +00:00
Martin v. Löwis
4ebbefe677
Patch #1362975 : Rework CodeContext indentation algorithm to
...
avoid hard-coding pixel widths. Also make the text's scrollbar
a child of the text frame, not the top widget.
2006-11-22 08:50:02 +00:00
Martin v. Löwis
2607e6c021
Conditionalize definition of _CRT_SECURE_NO_DEPRECATE
...
and _CRT_NONSTDC_NO_DEPRECATE.
Will backport.
2006-11-21 18:20:25 +00:00
Neal Norwitz
7ac039653e
Fix SF #1599879 , socket.gethostname should ref getfqdn directly.
2006-11-21 06:23:44 +00:00
Neal Norwitz
10cdb7492e
Oops, convert tabs to spaces
2006-11-21 05:51:51 +00:00
Neal Norwitz
4fe442383d
Bug #1599782 : Fix segfault on bsddb.db.DB().type().
...
The problem is that _DB_get_type() can't be called without the GIL
because it calls a bunch of PyErr_* APIs when an error occurs.
There were no other cases in this file that it was called without the GIL.
Removing the BEGIN/END THREAD around _DB_get_type() made everything work.
Will backport.
2006-11-21 05:26:22 +00:00
Andrew M. Kuchling
5dba6f74c6
Jython compatibility fix: if uu.decode() opened its output file, be sure to
...
close it.
2006-11-20 13:39:37 +00:00
Georg Brandl
1e753863b3
Further markup fix.
2006-11-20 07:12:58 +00:00
George Yoshida
942f5e7864
markup fix
2006-11-20 02:24:48 +00:00
Neal Norwitz
45e230a8e1
Speed up function calls into the math module by using METH_O.
...
There should be no functional changes. However, the error msgs are
slightly different. Also verified that the module dict is not NULL on init.
2006-11-19 21:26:53 +00:00
Martin v. Löwis
07529354db
Patch #1070046 : Marshal new-style objects like InstanceType
...
in xmlrpclib.
2006-11-19 18:51:54 +00:00
Andrew M. Kuchling
9eec51c04f
Add a test case of data w/ bytes > 127
2006-11-19 18:40:01 +00:00
Martin v. Löwis
cffcc8b195
Make cStringIO.truncate raise IOError for negative
...
arguments (even for -1). Fixes the last bit of
#1359365 .
2006-11-19 10:41:41 +00:00
Georg Brandl
283a1353a0
Patch [ 1586791 ] better error msgs for some TypeErrors
2006-11-19 08:48:30 +00:00
Andrew M. Kuchling
db4f255c61
Expand checking in test_sha
2006-11-18 22:17:33 +00:00
Martin v. Löwis
bba003ef24
Patch #1472877 : Fix Tix subwidget name resolution.
...
Will backport to 2.5.
2006-11-18 18:42:11 +00:00
Martin v. Löwis
ef5fd3e7c9
Patch #1594554 : Always close a tkSimpleDialog on ok(), even
...
if an exception occurs.
Will backport to 2.5.
2006-11-18 18:05:35 +00:00
Martin v. Löwis
c73a4a4f51
Patch #1538878 : Don't make tkSimpleDialog dialogs transient if
...
the parent window is withdrawn. This mirrors what dialog.tcl
does.
Will backport to 2.5.
2006-11-18 18:00:23 +00:00
Andrew M. Kuchling
8c456f3b57
Remove file-locking in MH.pack() method.
...
This change looks massive but it's mostly a re-indenting after
removing some try...finally blocks.
Also adds a test case that does a pack() while the mailbox is locked; this
test would have turned up bugs in the original code on some platforms.
In both nmh and GNU Mailutils' implementation of MH-format mailboxes,
no locking is done of individual message files when renaming them.
The original mailbox.py code did do locking, which meant that message
files had to be opened. This code was buggy on certain platforms
(found through reading the code); there were code paths that closed
the file object and then called _unlock_file() on it.
Will backport to 25-maint once I see how the buildbots react to this patch.
2006-11-17 13:30:25 +00:00
Georg Brandl
25aabf4cbb
Bug #1588217 : don't parse "= " as a soft line break in binascii's
...
a2b_qp() function, instead leave it in the string as quopri.decode()
does.
2006-11-16 17:08:45 +00:00
Georg Brandl
540821183b
Bug #1597824 : return the registered function from atexit.register()
...
to facilitate usage as a decorator.
2006-11-16 16:50:59 +00:00
Georg Brandl
adff8eb8d6
Bug #1597576 : mention that the new base64 api has been introduced in py2.4.
2006-11-16 15:05:14 +00:00
Georg Brandl
250755b20c
Bug #1594809 : add a note to README regarding PYTHONPATH and make install.
2006-11-15 17:42:03 +00:00
Walter Dörwald
2e4fd3765f
Fix typo.
2006-11-15 16:23:46 +00:00
Martin v. Löwis
45cd4ff95d
Patch #1360200 : Use unmangled_version RPM spec field to deal with
...
file name mangling.
Will backport to 2.5.
2006-11-12 18:56:03 +00:00
Martin v. Löwis
36cbc08f3f
Patch #1359217 : Ignore 2xx response before 150 response.
...
Will backport to 2.5.
2006-11-12 18:48:13 +00:00