]>
granicus.if.org Git - python/log
Victor Stinner [Fri, 14 Jan 2011 13:05:21 +0000 (13:05 +0000)]
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.
Victor Stinner [Fri, 14 Jan 2011 13:05:19 +0000 (13:05 +0000)]
test_urlparse: add tests for encoding and errors arguments
Victor Stinner [Fri, 14 Jan 2011 12:52:12 +0000 (12:52 +0000)]
Add encoding and errors arguments to urllib.parse_qs() and urllib.parse_qsl()
Eli Bendersky [Fri, 14 Jan 2011 08:25:03 +0000 (08:25 +0000)]
Issue #10902: Fix reference to run* methods
Eli Bendersky [Fri, 14 Jan 2011 07:31:14 +0000 (07:31 +0000)]
Remove call to nonexisting function (relic from Python 2.x) under #ifdef __INSURE__. Issue 9844
Alexander Belopolsky [Thu, 13 Jan 2011 21:58:44 +0000 (21:58 +0000)]
Issue #9268: Documented -m pickletools usage.
Also added a source code link.
Raymond Hettinger [Thu, 13 Jan 2011 19:08:04 +0000 (19:08 +0000)]
Issue 10899: Remove function type annotations from the stdlib
Raymond Hettinger [Thu, 13 Jan 2011 18:15:51 +0000 (18:15 +0000)]
Issue #10899: Move function type annotations into docstrings.
Note, the docstrings (for the most part) were already very thorough
and included type information.
Georg Brandl [Thu, 13 Jan 2011 07:31:18 +0000 (07:31 +0000)]
Fix the example output of count().
Georg Brandl [Thu, 13 Jan 2011 07:24:40 +0000 (07:24 +0000)]
Add semicolon for consistency.
Georg Brandl [Thu, 13 Jan 2011 07:13:06 +0000 (07:13 +0000)]
More PEP 8: no space around "=" in argument lists.
Benjamin Peterson [Thu, 13 Jan 2011 04:22:54 +0000 (04:22 +0000)]
plug reference leak
Raymond Hettinger [Thu, 13 Jan 2011 02:52:26 +0000 (02:52 +0000)]
Issue 10899: Remove function type annotations from the stdlib
Raymond Hettinger [Thu, 13 Jan 2011 02:31:25 +0000 (02:31 +0000)]
Issue 10899: Remove function type annotations from the stdlib
Raymond Hettinger [Wed, 12 Jan 2011 23:39:31 +0000 (23:39 +0000)]
Issue #10899: No function type annotations in the standard library.
Removed function type annotations from _pyio.py.
Antoine Pitrou [Wed, 12 Jan 2011 22:02:45 +0000 (22:02 +0000)]
Fix test_bigaddrspace (some tests didn't trigger the expected MemoryError)
Antoine Pitrou [Wed, 12 Jan 2011 21:58:39 +0000 (21:58 +0000)]
A better message again
Antoine Pitrou [Wed, 12 Jan 2011 21:50:44 +0000 (21:50 +0000)]
More informative skip message in @bigaddrspace
Antoine Pitrou [Wed, 12 Jan 2011 21:40:20 +0000 (21:40 +0000)]
Fix @bigmemtest when no limit is given by the user (oops)
Antoine Pitrou [Wed, 12 Jan 2011 21:19:59 +0000 (21:19 +0000)]
Make test skipping message nicer, and remove the rather useless "overhead" parameter.
Raymond Hettinger [Wed, 12 Jan 2011 20:52:39 +0000 (20:52 +0000)]
Remove the funky function annotation from numbers.py.
Antoine Pitrou [Wed, 12 Jan 2011 20:46:37 +0000 (20:46 +0000)]
Fix the expected memory use of utf-8 encoding. Also, release the
one reference to a huge object even when an exception is raised.
Raymond Hettinger [Wed, 12 Jan 2011 20:37:47 +0000 (20:37 +0000)]
Remove function annotations that slipped into _abcoll.
These are reserved for third-party use.
Benjamin Peterson [Wed, 12 Jan 2011 18:56:07 +0000 (18:56 +0000)]
use PyErr_SetString instead of PyErr_Format
Antoine Pitrou [Wed, 12 Jan 2011 18:45:27 +0000 (18:45 +0000)]
Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
by Ross Lagerwall.
Alexander Belopolsky [Wed, 12 Jan 2011 16:37:14 +0000 (16:37 +0000)]
Issue #10225: Fixed the simple mistakes in doctests.
Benjamin Peterson [Wed, 12 Jan 2011 15:34:01 +0000 (15:34 +0000)]
don't segfault on deleting __abstractmethods__ #10892
Benjamin Peterson [Wed, 12 Jan 2011 15:25:02 +0000 (15:25 +0000)]
oops, wrong class
Benjamin Peterson [Wed, 12 Jan 2011 15:24:27 +0000 (15:24 +0000)]
move this test to test_descr; it's not abc specific
Benjamin Peterson [Wed, 12 Jan 2011 04:44:41 +0000 (04:44 +0000)]
fix weirdly ambigious sentence
Nick Coghlan [Wed, 12 Jan 2011 03:15:52 +0000 (03:15 +0000)]
Issue 10889: Support slicing and indexing of large ranges (no docs changes, since, as far as I know, we never said anywhere that this *didn't* work)
Raymond Hettinger [Wed, 12 Jan 2011 01:16:57 +0000 (01:16 +0000)]
Revert r87946. The virtues of readability and of examples that
can be cut and pasted are more important than having a doctests
on examples that already work.
Terry Reedy [Tue, 11 Jan 2011 23:05:50 +0000 (23:05 +0000)]
Issue #10225: Correct interactive Doc/howto/sorting.rst examples so doctest runs.
Based on part of A. Belopolsky's patch.
Raymond Hettinger [Tue, 11 Jan 2011 22:08:55 +0000 (22:08 +0000)]
Add comment.
Alexander Belopolsky [Tue, 11 Jan 2011 21:44:00 +0000 (21:44 +0000)]
Issue #5109: array.array constructor will now use fast code when
initial data is provided in an array object with correct type.
Raymond Hettinger [Tue, 11 Jan 2011 21:20:20 +0000 (21:20 +0000)]
Update the email section
Raymond Hettinger [Tue, 11 Jan 2011 21:13:26 +0000 (21:13 +0000)]
Update the datetime and time section.
Raymond Hettinger [Tue, 11 Jan 2011 20:51:45 +0000 (20:51 +0000)]
Clean-up threading.Barrier example.
Raymond Hettinger [Tue, 11 Jan 2011 19:59:46 +0000 (19:59 +0000)]
Add entry for Barrier objects.
Eric Smith [Tue, 11 Jan 2011 10:24:34 +0000 (10:24 +0000)]
Typo.
Nick Coghlan [Tue, 11 Jan 2011 10:05:20 +0000 (10:05 +0000)]
Issue 10556: test_zipimport_support implicitly imports too many modules (including _ssl) to safely clobber sys.modules after each test
Raymond Hettinger [Tue, 11 Jan 2011 08:49:10 +0000 (08:49 +0000)]
Add a todo.
Nick Coghlan [Tue, 11 Jan 2011 02:42:15 +0000 (02:42 +0000)]
developers.txt entry for Eli (at Brett's request)
Alexander Belopolsky [Tue, 11 Jan 2011 02:22:16 +0000 (02:22 +0000)]
This should fix mktime test on Windows
Alexander Belopolsky [Tue, 11 Jan 2011 01:35:22 +0000 (01:35 +0000)]
Make mktime test more robust.
Alexander Belopolsky [Tue, 11 Jan 2011 01:21:25 +0000 (01:21 +0000)]
Issue #
1726687 : time.mktime() will now correctly compute value one
second before epoch. Original patch by Peter Wang, reported by Martin
Blais.
Victor Stinner [Tue, 11 Jan 2011 00:04:12 +0000 (00:04 +0000)]
Issue #9611: remove useless and dangerous explicit conversion to size_t
Raymond Hettinger [Mon, 10 Jan 2011 23:38:15 +0000 (23:38 +0000)]
Fix typos and markup.
Alexander Belopolsky [Mon, 10 Jan 2011 23:31:51 +0000 (23:31 +0000)]
Improved footnote for the %Y directive slightly.
Alexander Belopolsky [Mon, 10 Jan 2011 23:28:33 +0000 (23:28 +0000)]
Improved description of %Y directive.
Terry Reedy [Mon, 10 Jan 2011 23:13:21 +0000 (23:13 +0000)]
Issue #10875: Update Regular Expression HOWTO; last bit.
Victor Stinner [Mon, 10 Jan 2011 23:00:36 +0000 (23:00 +0000)]
Issue #9566: Fix pyparse.xmlparser.ParseFile()
Fix readinst() if file.read(n) returns a bytes object longer than n:
return -1 instead of the the buffer size to raise an exception.
Simplify also the function code.
Alexander Belopolsky [Mon, 10 Jan 2011 22:56:14 +0000 (22:56 +0000)]
Issue #2568: Removed bogus rationale for supporting tm_sec=61.
Ned Deily [Mon, 10 Jan 2011 22:14:25 +0000 (22:14 +0000)]
#10820: Fix OS X framework installs to support version-specific
scripts (implemented in #10679).
Alexander Belopolsky [Mon, 10 Jan 2011 21:58:52 +0000 (21:58 +0000)]
Removed time.ctime from the list of functions that take a time tuple argument
Alexander Belopolsky [Mon, 10 Jan 2011 21:55:34 +0000 (21:55 +0000)]
Added entries about removal of year 1900 limit.
Terry Reedy [Mon, 10 Jan 2011 21:27:49 +0000 (21:27 +0000)]
Issue #10875: Update Regular Expression HOWTO; patch by 'SilentGhost'.
Raymond Hettinger [Mon, 10 Jan 2011 21:26:49 +0000 (21:26 +0000)]
Misspelling.
Raymond Hettinger [Mon, 10 Jan 2011 21:16:07 +0000 (21:16 +0000)]
Missed two source links
Raymond Hettinger [Mon, 10 Jan 2011 19:54:11 +0000 (19:54 +0000)]
Separate source link from main text.
Alexander Belopolsky [Mon, 10 Jan 2011 19:14:38 +0000 (19:14 +0000)]
Fixed a footnote reference
Raymond Hettinger [Mon, 10 Jan 2011 05:40:57 +0000 (05:40 +0000)]
Fix typos.
Raymond Hettinger [Mon, 10 Jan 2011 03:26:08 +0000 (03:26 +0000)]
Move source links to consistent location and remove wordy, big yellow boxes.
Antoine Pitrou [Sun, 9 Jan 2011 20:38:15 +0000 (20:38 +0000)]
Issue #10872: The repr() of TextIOWrapper objects now includes the mode
if available.
(at Georg's request)
Martin v. Löwis [Sun, 9 Jan 2011 18:28:07 +0000 (18:28 +0000)]
Add Ned Deily.
Łukasz Langa [Sun, 9 Jan 2011 18:18:53 +0000 (18:18 +0000)]
#10874: test_urllib2 shouldn't use `is` operator for comparing strings
Patch by Adreas Stührk.
Georg Brandl [Sun, 9 Jan 2011 09:31:01 +0000 (09:31 +0000)]
#10871: "file" does not exist anymore in Python 3. Also adapt the reprs of opened file objects.
Georg Brandl [Sun, 9 Jan 2011 09:04:08 +0000 (09:04 +0000)]
Wrap some long examples and signatures.
Georg Brandl [Sun, 9 Jan 2011 07:50:48 +0000 (07:50 +0000)]
Add missing line.
Georg Brandl [Sun, 9 Jan 2011 07:38:51 +0000 (07:38 +0000)]
#10869: do not visit root node twice in ast.increment_lineno().
R. David Murray [Sun, 9 Jan 2011 02:35:24 +0000 (02:35 +0000)]
#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.
Raymond Hettinger [Sat, 8 Jan 2011 23:44:37 +0000 (23:44 +0000)]
Issue #10357: Clarify what it means to be a mapping.
Georg Brandl [Sat, 8 Jan 2011 21:04:25 +0000 (21:04 +0000)]
zlib only works with bytes objects.
Alexander Belopolsky [Sat, 8 Jan 2011 20:47:21 +0000 (20:47 +0000)]
Fixed documentation to reflect recent changes for years < 1900.
Victor Stinner [Sat, 8 Jan 2011 16:37:47 +0000 (16:37 +0000)]
NEWS: merge #
1777412 and #10827 entries
Victor Stinner [Sat, 8 Jan 2011 16:31:24 +0000 (16:31 +0000)]
Issue #
1777412 : document the change in the NEWS file
Raymond Hettinger [Sat, 8 Jan 2011 10:32:31 +0000 (10:32 +0000)]
Markup fix
Antoine Pitrou [Sat, 8 Jan 2011 10:28:11 +0000 (10:28 +0000)]
Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet().
Raymond Hettinger [Sat, 8 Jan 2011 10:26:53 +0000 (10:26 +0000)]
Issue 9717: Segregate and improve the documentation of "in-place" operators
in the operator module.
Antoine Pitrou [Sat, 8 Jan 2011 10:23:29 +0000 (10:23 +0000)]
Fix test_ssl after r87849
Antoine Pitrou [Sat, 8 Jan 2011 09:55:31 +0000 (09:55 +0000)]
Issue #10859: Make `contextlib.GeneratorContextManager` officially
private by renaming it to `_GeneratorContextManager`.
Georg Brandl [Sat, 8 Jan 2011 09:45:43 +0000 (09:45 +0000)]
#10855: document close() semantics of wave objects.
Raymond Hettinger [Sat, 8 Jan 2011 09:35:38 +0000 (09:35 +0000)]
Issue 10533: Need example of using __missing__.
Raymond Hettinger [Sat, 8 Jan 2011 09:03:11 +0000 (09:03 +0000)]
Issue #10813: Small improvement to decimal money format recipe.
Raymond Hettinger [Sat, 8 Jan 2011 07:01:56 +0000 (07:01 +0000)]
Issue #10042: Fixed the total_ordering decorator to handle cross-type
comparisons that could lead to infinite recursion.
Victor Stinner [Sat, 8 Jan 2011 03:35:36 +0000 (03:35 +0000)]
Issue #10864: limit year to [1; 9999] for strftime() on Solaris
Victor Stinner [Sat, 8 Jan 2011 03:16:05 +0000 (03:16 +0000)]
test_ssl: test SHA256 using sha256.tbs-internet.com instead of sha2.hboeck.de
Victor Stinner [Sat, 8 Jan 2011 03:06:52 +0000 (03:06 +0000)]
Issue #
1777412 : Remove all limits on tm_year from time.strftime()
The buildbots will tell us which platform does support or not negative years.
Victor Stinner [Sat, 8 Jan 2011 02:46:33 +0000 (02:46 +0000)]
Issue #
1777412 : fix test_time for Mac OS X and OpenIndiana
Victor Stinner [Sat, 8 Jan 2011 02:00:24 +0000 (02:00 +0000)]
Issue #
1777412 : test large years value for strftime('%Y')
Victor Stinner [Sat, 8 Jan 2011 01:56:31 +0000 (01:56 +0000)]
Issue #
1777412 : strftime() accepts year >= 1 instead of year >= 1900
* With Visual Studio, year have to be in [1; 9999]
* Add more tests on the year field
Alexander Belopolsky [Sat, 8 Jan 2011 01:23:02 +0000 (01:23 +0000)]
Fixed error handling branches. Thanks
Victor Stinner for pointing this out.
Alexander Belopolsky [Sat, 8 Jan 2011 00:13:34 +0000 (00:13 +0000)]
Issue #
1777412 : extended year range of strftime down to 1000.
R. David Murray [Fri, 7 Jan 2011 23:25:30 +0000 (23:25 +0000)]
#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).
R. David Murray [Fri, 7 Jan 2011 21:57:25 +0000 (21:57 +0000)]
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.
Raymond Hettinger [Fri, 7 Jan 2011 21:54:18 +0000 (21:54 +0000)]
Revert r87821 which moved the source link to the wrong section (from the module intro covering the module to a section on thread imports).
Antoine Pitrou [Fri, 7 Jan 2011 21:47:02 +0000 (21:47 +0000)]
Put NEWS entry in the right section.
Antoine Pitrou [Fri, 7 Jan 2011 21:43:59 +0000 (21:43 +0000)]
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.
Raymond Hettinger [Fri, 7 Jan 2011 21:17:56 +0000 (21:17 +0000)]
Revert r87823 which moved the source link to the wrong section.
Raymond Hettinger [Fri, 7 Jan 2011 21:04:30 +0000 (21:04 +0000)]
Update the digest of PEP 3333 based on comments for Phillip Eby.