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
Victor Stinner
f7d019ec9a
Issue #1777412 : document the change in the NEWS file
2011-01-08 16:31:24 +00:00
Antoine Pitrou
67b212e608
Issue #10859 : Make `contextlib.GeneratorContextManager` officially
...
private by renaming it to `_GeneratorContextManager`.
2011-01-08 09:55:31 +00:00
Raymond Hettinger
23f9fc3448
Issue #10042 : Fixed the total_ordering decorator to handle cross-type
...
comparisons that could lead to infinite recursion.
2011-01-08 07:01:56 +00:00
R. David Murray
9253214fd9
#10686 : recode non-ASCII headers to 'unknown-8bit' instead of ?s.
...
This applies only when generating strings from non-RFC compliant binary
input; it makes the existing recoding behavior more consistent (ie:
now no data is lost when recoding).
2011-01-07 23:25:30 +00:00
R. David Murray
6f0022d84a
Fix formatting of values with embedded newlines when rfc2047 encoding
...
Before this patch if a value being encoded had an embedded newline,
the line following the newline would have no leading whitespace,
and the whitespace it did have was encoded into the word. Now
the existing whitespace gets turned into a blank, the way it does
in other header reformatting, and the _continuation_ws gets added
at the beginning of the encoded line.
2011-01-07 21:57:25 +00:00
Antoine Pitrou
3be412d971
Put NEWS entry in the right section.
2011-01-07 21:47:02 +00:00
Antoine Pitrou
b7fb2e25fb
Issue #8020 : Avoid a crash where the small objects allocator would read
...
non-Python managed memory while it is being modified by another thread.
Patch by Matt Bandy.
2011-01-07 21:43:59 +00:00
Alexander Belopolsky
c64708ae48
Issue #10827 : Changed the rules for 2-digit years. The time.asctime
...
function will now format any year when time.accept2dyear is false and
will accept years >= 1000 otherwise. The year range accepted by
time.mktime and time.strftime is still system dependent, but
time.mktime will now accept full range supported by the OS. Conversion
of 2-digit years to 4-digit is deprecated.
2011-01-07 19:59:19 +00:00
Victor Stinner
89e3436606
Issue #10841 : set binary mode on files; the parser translates newlines
...
On Windows, set the binary mode on stdin, stdout, stderr and all
io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser
translates newlines (\r\n => \n).
2011-01-07 18:47:22 +00:00
Brett Cannon
63eef1e0dd
Get --coverage to be an acceptable flag for test.regrtest again.
2011-01-06 22:32:41 +00:00
Martin v. Löwis
c83bc3c1fb
Remove buffer API from stable ABI for now, see #10181 .
2011-01-06 19:15:47 +00:00
Antoine Pitrou
e85da7aa4f
Issue #7858 : Raise an error properly when os.utime() fails under Windows
...
on an existing file.
(this does not seem to be easily testable)
2011-01-06 18:25:55 +00:00
Antoine Pitrou
b715fac819
Issue #3839 : wsgiref should not override a Content-Length header set by
...
the application. Initial patch by Clovis Fabricio.
2011-01-06 17:17:04 +00:00
David Malcolm
f1397ad399
Issue #10655 : Fix the build on PowerPC on Linux with GCC when building with
...
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC
support now looks for "__powerpc__" as well as "__ppc__": the latter seems to
only be present on OS X; the former is the correct one for Linux with GCC.
2011-01-06 17:01:36 +00:00
Antoine Pitrou
ca023cab4d
Issue #1677694 : Refactor and improve test_timeout. Original patch by
...
Björn Lindqvist.
2011-01-06 09:05:22 +00:00
Victor Stinner
4bd81725f2
Issue #10492 : bdb.Bdb.run() only traces the execution of the code
...
And not the compilation (if the input is a string).
2011-01-06 00:49:38 +00:00
Antoine Pitrou
dc51a3ca84
Fix mistake in NEWS
2011-01-05 22:43:26 +00:00
Antoine Pitrou
600232b562
Issue #7995 : When calling accept() on a socket with a timeout, the returned
...
socket is now always non-blocking, regardless of the operating system.
2011-01-05 21:03:42 +00:00
Antoine Pitrou
452196fef1
Issue #5485 : Add tests for the UseForeignDTD method of expat parser objects.
...
Patch by Jean-Paul Calderone and Sandro Tosi.
2011-01-05 18:44:14 +00:00
Victor Stinner
8786d3d0dc
Issue #10756 : add the author, Andreas Stührk
2011-01-05 03:56:22 +00:00
Victor Stinner
358e11d928
Issue #10756 : atexit normalizes the exception before displaying it.
2011-01-05 03:54:25 +00:00
R. David Murray
477efb3944
#10790 : make append work when output codec is different from input codec
...
There's still a bug here (the encode call shouldn't use the 'errors'
paramter), but I'll fix that later.
2011-01-05 01:39:32 +00:00
Alexander Belopolsky
b9588b528a
Issue #8013 : time.asctime and time.ctime no longer call system asctime
...
and ctime functions. The year range for time.asctime is now 1900
through maxint. The range for time.ctime is the same as for
time.localtime. The string produced by these functions is longer than
24 characters when year is greater than 9999.
2011-01-04 16:34:30 +00:00
Victor Stinner
dc5554008f
Issue #9015 , #9611 : stdprinter.write() clamps the length to 2^31-1 on Windows
2011-01-04 13:15:39 +00:00
Victor Stinner
c3a51ecb85
Issue #10819 : SocketIO.name property returns -1 when its closed, instead of
...
raising a ValueError, to fix repr().
2011-01-04 11:00:45 +00:00
Victor Stinner
8848c7a37f
Issue #8650 : zlib.compress() and zlib.decompress() raise an OverflowError if
...
the input buffer length doesn't fit into an unsigned int (length bigger than
2^32-1 bytes).
2011-01-04 02:07:36 +00:00
Victor Stinner
b3c9e073fc
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).
2011-01-04 02:07:34 +00:00
Victor Stinner
e6edec2371
Issue #9015 , #9611 : FileIO.readinto(), FileIO.write() and os.write() clamp the
...
length to 2^31-1 on Windows.
2011-01-04 00:29:35 +00:00
Antoine Pitrou
23683ef26d
Issue #10333 : Remove ancient GC API, which has been deprecated since
...
Python 2.2.
2011-01-04 00:00:31 +00:00
Gregory P. Smith
4d41968904
news for 6643
2011-01-03 21:09:23 +00:00
Antoine Pitrou
3c4402f879
Issue #6293 : Have regrtest.py echo back sys.flags. This is done by default
...
in whole runs and enabled selectively using `--header` when running an
explicit list of tests. Original patch by Collin Winter.
2011-01-03 20:38:52 +00:00
Antoine Pitrou
f3fcd9f163
Issue #7716 : Under Solaris, don't assume existence of /usr/xpg4/bin/grep in
...
the configure script but use $GREP instead. Patch by Fabian Groffen.
2011-01-03 18:53:50 +00:00
Antoine Pitrou
c9c83ba896
Issue #10806 , issue #9905 : Fix subprocess pipes when some of the standard
...
file descriptors (0, 1, 2) are closed in the parent process. Initial
patch by Ross Lagerwall.
2011-01-03 18:23:55 +00:00
Michael Foord
32e1d8340c
Enable unittest.TestCase to be instantiated without providing a method name.
...
Changed unittestgui to show number of discovered tests in the status bar.
2011-01-03 17:00:11 +00:00
Michael Foord
90efac7f37
Issue 10502: addition of unittestgui to Tools/
2011-01-03 15:39:49 +00:00
Victor Stinner
270fe40831
test_tkinter: use a context manager to close directly the pipe
...
Patch written by Nadeem Vawda
2011-01-03 14:30:43 +00:00
Amaury Forgeot d'Arc
a251a853c7
#8278 : In the Windows implementation of stat() and utime(),
...
use time_t instead of int. This gives support for dates after 2038,
at least when compiled with VS2003 or later, where time_t is 64bit.
2011-01-03 00:19:11 +00:00
Martin v. Löwis
9f6d48ba4e
Issue #10798 : Reject supporting concurrent.futures if the system has
...
too few POSIX semaphores.
2011-01-03 00:07:01 +00:00
Victor Stinner
b6f424043d
Issue #10807 : Remove base64, bz2, hex, quopri, rot13, uu and zlib codecs from
...
the codec aliases. They are still accessible via codecs.lookup().
2011-01-02 19:50:36 +00:00
Antoine Pitrou
c224458ef6
Issue #10475 : Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD
...
and DragonFly BSD. Patch by Nicolas Joly.
2011-01-02 19:34:03 +00:00
Georg Brandl
5ba11de845
#10801 : In zipfile, support different encodings for the header and the filenames. Patch by MvL, test by Eli Bendersky.
2011-01-01 10:09:32 +00:00
Georg Brandl
d30a0dd681
Fix issue references.
2011-01-01 10:07:30 +00:00
Terry Reedy
554e6fa86d
Issue 6285: add NEWS entry for 3.2.
2011-01-01 02:54:11 +00:00
Raymond Hettinger
8dff4bada7
Typo.
2010-12-31 23:23:06 +00:00
Raymond Hettinger
a673b1fd0e
Fix OrderedDict.setdefault() to work for subclasses that define __missing__().
2010-12-31 23:16:17 +00:00
Georg Brandl
59b44721e3
Remove mentions of the Demo directory.
2010-12-30 22:12:40 +00:00
Michael Foord
6f17e2df29
Issue 10786: unittest.TextTestRunner default stream no longer bound at import time
2010-12-30 19:36:29 +00:00
Terry Reedy
74901007a5
Minor clarification
2010-12-29 19:02:07 +00:00
Senthil Kumaran
299fa4cb21
Fix Issue 10753 - Don't quote ;=, in the PATH_INFO envvar.
2010-12-29 06:25:42 +00:00
Victor Stinner
de3aa7fc62
Issue #10783 : rephrase the changelog (new try)
2010-12-29 02:44:42 +00:00
Victor Stinner
ece98d6e08
Issue #10783 : rephrase the changelog (NEWS, What's new)
2010-12-28 23:35:10 +00:00
Terry Reedy
dad532f7de
Issue 10738: Fix webbrowser.Opera.raise_opts value.
2010-12-28 19:30:19 +00:00
R. David Murray
e05ca2aff4
#9824 : encode , and ; in cookie values so that browsers don't split on them
...
There is a small chance of backward incompatibility here, but only for
non-SimpleCookie applications reading SimpleCookie generated cookies. Even
then, any such ap is likely to be handling escaped values already, and it would
take a fairly perverse implementation of unescaping to fail to unescape these
newly escaped chars, so the risk seems minimal.
2010-12-28 18:54:13 +00:00