Commit Graph

4803 Commits

Author SHA1 Message Date
Raymond Hettinger 512d2cc643 Issue #11004: Repair edge case in deque.count().
(Reviewed by Georg Brandl.)

Also made similar changes to deque.reverse() though this wasn't
strictly necessary (the edge case cannot occur with two pointers
moving to meet in the middle).  Making the change in reverse()
was more a matter of future-proofing.
2011-01-25 21:32:39 +00:00
Ned Deily 122539e287 #10974: IDLE no longer crashes if its recent files list includes files
with non-ASCII characters in their path names.

        (with approval of release manager for 3.2rc2)
2011-01-24 21:46:44 +00:00
Steven Bethard b02701101b Issue #9509: make argarse properly handle IOErrors raised by argparse.FileType. Approved by Georg in the tracker. 2011-01-24 21:02:50 +00:00
Raymond Hettinger bf1d2bc7cb Make the type consistent for hashlib algorithm constants. (Reviewed by Benjamin). 2011-01-24 04:52:27 +00:00
Antoine Pitrou e6d4c5bab8 Issue #10987: Fix the recursion limit handling in the _pickle module. 2011-01-23 17:12:25 +00:00
Victor Stinner f2e439fd8e Issue #10955: Fix typo in NEWS, cp497 => cp437 2011-01-23 00:11:58 +00:00
Georg Brandl c7c199f907 #10983: fix several bugs in the _tunnel implementation that seem to have missed while porting between branches. A unittest is needed! 2011-01-22 22:06:24 +00:00
Armin Ronacher 59531287fd To match the behaviour of HTTP server, the HTTP client library now also encodes
headers with iso-8859-1 (latin1) encoding.  It was already doing that for
incoming headers which makes this behaviour now consistent in both incoming and
outgoing direction.
2011-01-22 13:44:22 +00:00
Armin Ronacher 8d96d77f9a Issue #10980: encode headers with latin1 instead of ASCII in the HTTP server.
This makes the implementation of PEP 3333 compliant servers on top of
BaseHTTPServer possible.
2011-01-22 13:13:05 +00:00
Victor Stinner 137e0f0a22 Issue #10955: fix NEWS entry 2011-01-22 10:33:01 +00:00
Victor Stinner 4ee65a9685 Issue #10955: zipimport uses ASCII at bootstrap
zipimport uses ASCII encoding instead of cp497 to decode filenames, at
bootstrap, if the codec registry is not ready yet. It is still possible to have
non-ASCII filenames using the Unicode flag (UTF-8 encoding) for file entries in
the ZIP file.
2011-01-22 10:30:29 +00:00
Vinay Sajip 01241d6c35 Issue #10949: Improved robustness of rotating file handlers. 2011-01-21 23:35:57 +00:00
Antoine Pitrou 305bc9e0e8 Issue #10955: Fix a potential crash when trying to mmap() a file past its
length.  Initial patch by Ross Lagerwall.

This fixes a regression introduced by r88022.
2011-01-20 21:07:24 +00:00
Brett Cannon ec89d35c7f Move developers.txt to the devguide. 2011-01-20 19:42:08 +00:00
Brett Cannon c0729bfe24 Update Misc/README. 2011-01-20 19:36:12 +00:00
Brett Cannon 3fbfa77737 Remove some outdated files from Misc. 2011-01-20 19:34:35 +00:00
Brett Cannon 37c07252cb Move README.gdb to the devguide. 2011-01-20 19:33:06 +00:00
Brett Cannon ad3729e677 Move README.Emacs to the devguide. 2011-01-20 19:30:51 +00:00
Brett Cannon d9c4a025d3 Move maintainers.rst into the devguide and rename it the Experts Index. 2011-01-20 03:56:50 +00:00
Brett Cannon 41c4da704d Rename AIX-NOTES to something that follows the convention in Misc. 2011-01-19 23:08:44 +00:00
Antoine Pitrou e47e093f70 Issue #10898: Allow compiling the posix module when the C library defines
a symbol named FSTAT.
2011-01-19 15:21:35 +00:00
Brett Cannon a9013f9bd8 Klocwork scan site no longer available. 2011-01-19 00:49:06 +00:00
Antoine Pitrou ad62b03949 Issue #10451: memoryview objects could allow to mutate a readable buffer.
Initial patch by Ross Lagerwall.
2011-01-18 18:57:52 +00:00
Benjamin Peterson 1e6a173a2b very out of date file 2011-01-17 23:49:51 +00:00
Brett Cannon 6e7f5823d0 Short README on gdb support. 2011-01-17 21:12:54 +00:00
Georg Brandl 255abdd372 Rewrap and punctuation consistency. 2011-01-16 14:17:26 +00:00
Nick Coghlan eea594b446 Add missing NEWS entry for r87948 2011-01-16 13:08:48 +00:00
Georg Brandl 0c5036fdcd Post-release updates. 2011-01-16 08:44:50 +00:00
Georg Brandl 3988ed8e6f Bump to 3.2rc1. 2011-01-15 17:08:53 +00:00
Antoine Pitrou 85f4615500 Issue #10916: mmap should not segfault when a file is mapped using 0 as
length and a non-zero offset, and an attempt to read past the end of file
is made (IndexError is raised instead).  Patch by Ross Lagerwall.

Requested by Georg.
2011-01-15 16:17:07 +00:00
Antoine Pitrou 5ace8e98da Issue #10913: Deprecate misleading functions PyEval_AcquireLock() and
PyEval_ReleaseLock().  The thread-state aware APIs should be used instead.
2011-01-15 13:11:48 +00:00
Ned Deily 22c336645c Add self to mac platform area in maintainers.rst. 2011-01-15 05:53:33 +00:00
Ned Deily 4f7ff7812a #10843: Update third-party library versions used in OS X 32-bit
installer builds: bzip2 1.0.6, readline 6.1.2, SQLite 3.7.4
        (with FTS3/FTS4 and RTREE enabled), and ncursesw 5.5 (wide-char
        support enabled).
2011-01-15 05:29:12 +00:00
Ned Deily 916f2a860e #10843: Install the Tools directory on OS X in the applications
Extras (/Applications/Python 3.n/Extras/) where the Demo
        directory had previous been installed.
2011-01-15 05:05:53 +00:00
Ned Deily 4ce92b23fe #10907: Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5,
rather than the currently problematic Apple-supplied one,
        when running with the 64-/32-bit installer variant.
2011-01-15 04:37:12 +00:00
Victor Stinner c5982967fc Issue #4953: add the author of the patch 2011-01-14 14:11:45 +00:00
Victor Stinner 5c23b8e6ea Issue #4953: cgi.FieldStorage and cgi.parse() parse the request as bytes, not
as unicode, and accept binary files. Add encoding and errors attributes to
cgi.FieldStorage.
2011-01-14 13:05:21 +00:00
Victor Stinner ac71c54b88 Add encoding and errors arguments to urllib.parse_qs() and urllib.parse_qsl() 2011-01-14 12:52:12 +00:00
Raymond Hettinger 3c94024c3e Issue #10899: No function type annotations in the standard library.
Removed function type annotations from _pyio.py.
2011-01-12 23:39:31 +00:00
Antoine Pitrou 318b8f35fe Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
by Ross Lagerwall.
2011-01-12 18:45:27 +00:00
Benjamin Peterson 477ba919c1 don't segfault on deleting __abstractmethods__ #10892 2011-01-12 15:34:01 +00:00
Alexander Belopolsky ef4a03fffe Issue #5109: array.array constructor will now use fast code when
initial data is provided in an array object with correct type.
2011-01-11 21:44:00 +00:00
Nick Coghlan daba60bb92 developers.txt entry for Eli (at Brett's request) 2011-01-11 02:42:15 +00:00
Ned Deily 9a1383e380 #10820: Fix OS X framework installs to support version-specific
scripts (implemented in #10679).
2011-01-10 22:14:25 +00:00
Terry Reedy aacfd4a0cf Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'. 2011-01-10 21:27:49 +00:00
Antoine Pitrou a4815caa7c Issue #10872: The repr() of TextIOWrapper objects now includes the mode
if available.

(at Georg's request)
2011-01-09 20:38:15 +00:00
Martin v. Löwis a6c91f5e3b Add Ned Deily. 2011-01-09 18:28:07 +00:00
Georg Brandl 619e7ba814 #10869: do not visit root node twice in ast.increment_lineno(). 2011-01-09 07:38:51 +00:00
R. David Murray 5b2d9ddf69 #5871: protect against header injection attacks.
This makes Header.encode throw a HeaderParseError if it winds up
formatting a header such that a continuation line has no leading
whitespace and looks like a header.  Since Header accepts values
containing newlines and preserves them (and this is by design), without
this fix any program that took user input (say, a subject in a web form)
and passed it to the email package as a header was vulnerable to header
injection attacks.  (As far as we know this has never been exploited.)

Thanks to Jakub Wilk for reporting this vulnerability.
2011-01-09 02:35:24 +00:00
Victor Stinner 3ec899fc0d NEWS: merge #1777412 and #10827 entries 2011-01-08 16:37:47 +00:00