]>
granicus.if.org Git - python/log
R David Murray [Sat, 26 May 2012 02:25:56 +0000 (22:25 -0400)]
#12586: Expand What's New email entry with provisional policy features.
Senthil Kumaran [Sat, 26 May 2012 01:55:28 +0000 (09:55 +0800)]
Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
Senthil Kumaran [Sat, 26 May 2012 01:53:32 +0000 (09:53 +0800)]
Issue #14920: Fix the help(urllib.parse) failure on locale C terminals. Just have ascii in help msg
R David Murray [Fri, 25 May 2012 22:42:14 +0000 (18:42 -0400)]
#12586: add provisional email policy with new header parsing and folding.
When the new policies are used (and only when the new policies are explicitly
used) headers turn into objects that have attributes based on their parsed
values, and can be set using objects that encapsulate the values, as well as
set directly from unicode strings. The folding algorithm then takes care of
encoding unicode where needed, and folding according to the highest level
syntactic objects.
With this patch only date and time headers are parsed as anything other than
unstructured, but that is all the helper methods in the existing API handle.
I do plan to add more parsers, and complete the set specified in the RFC
before the package becomes stable.
R David Murray [Fri, 25 May 2012 21:59:56 +0000 (17:59 -0400)]
#14731: add preliminary What's New entry for policy framework.
R David Murray [Fri, 25 May 2012 19:01:48 +0000 (15:01 -0400)]
#14731: refactor email policy framework.
This patch primarily does two things: (1) it adds some internal-interface
methods to Policy that allow for Policy to control the parsing and folding of
headers in such a way that we can construct a backward compatibility policy
that is 100% compatible with the 3.2 API, while allowing a new policy to
implement the email6 API. (2) it adds that backward compatibility policy and
refactors the test suite so that the only differences between the 3.2
test_email.py file and the 3.3 test_email.py file is some small changes in
test framework and the addition of tests for bugs fixed that apply to the 3.2
API.
There are some additional teaks, such as moving just the code needed for the
compatibility policy into _policybase, so that the library code can import
only _policybase. That way the new code that will be added for email6
will only get imported when a non-compatibility policy is imported.
Benjamin Peterson [Fri, 25 May 2012 17:26:47 +0000 (10:26 -0700)]
capitialize utime statuses
Benjamin Peterson [Fri, 25 May 2012 17:22:29 +0000 (10:22 -0700)]
capitialize enum members
Nick Coghlan [Fri, 25 May 2012 15:31:25 +0000 (01:31 +1000)]
Placeholder in What's New for the major packaging infrastructure changes
Eric V. Smith [Fri, 25 May 2012 15:25:27 +0000 (11:25 -0400)]
Added test for namespace package dynamic path updates.
Richard Oudkerk [Fri, 25 May 2012 12:54:53 +0000 (13:54 +0100)]
Issue #14548: Make multiprocessing finalizers check pid before running
This protects from possibilty of gc running just after fork.
Richard Oudkerk [Fri, 25 May 2012 12:26:53 +0000 (13:26 +0100)]
Issue #12091: simplify ApplyResult and MapResult with threading.Event
Patch by Charles-François Natali
Richard Oudkerk [Fri, 25 May 2012 12:04:20 +0000 (13:04 +0100)]
Merge
Richard Oudkerk [Fri, 25 May 2012 11:57:58 +0000 (12:57 +0100)]
Issue #14881: Allow normal non-main thread to spawn a dummy process
Fix suggested by Itay Brandes
Hynek Schlawack [Fri, 25 May 2012 08:27:43 +0000 (10:27 +0200)]
#4841: Fix FileIO constructor to honor closefd when called repeatedly
Patch by Victor Stinner.
Hynek Schlawack [Fri, 25 May 2012 08:05:53 +0000 (10:05 +0200)]
#4841: Fix FileIO constructor to honor closefd when called repeatedly
Patch by Victor Stinner.
Benjamin Peterson [Fri, 25 May 2012 07:24:42 +0000 (00:24 -0700)]
use PyDict_Contains
Benjamin Peterson [Fri, 25 May 2012 07:22:04 +0000 (00:22 -0700)]
return NULL on error
Benjamin Peterson [Fri, 25 May 2012 07:19:40 +0000 (00:19 -0700)]
actually return the result
Larry Hastings [Fri, 25 May 2012 05:58:30 +0000 (22:58 -0700)]
Issue #14889: PyBytes_FromObject(bytes) now just increfs and returns.
Previously, if you passed in a bytes object, it would create a whole
new object.
Benjamin Peterson [Fri, 25 May 2012 05:54:15 +0000 (22:54 -0700)]
simplify and rewrite the zipimport part of
702009f3c0b1 a bit
Benjamin Peterson [Fri, 25 May 2012 05:35:39 +0000 (22:35 -0700)]
plug ref leak
Eric V. Smith [Fri, 25 May 2012 00:22:10 +0000 (20:22 -0400)]
Whitespace cleanup.
Eric V. Smith [Fri, 25 May 2012 00:21:04 +0000 (20:21 -0400)]
issue 14660: Implement PEP 420, namespace packages.
Petri Lehtinen [Thu, 24 May 2012 18:49:59 +0000 (21:49 +0300)]
#14863: Update the documentation of os.fdopen()
Petri Lehtinen [Thu, 24 May 2012 18:44:07 +0000 (21:44 +0300)]
#14863: Update the documentation of os.fdopen()
There's no bufsize argument anymore, and os.fdopen() is only a very
thin wrapper around open() anymore. Change the documentation to
reflect that.
Senthil Kumaran [Thu, 24 May 2012 13:57:38 +0000 (21:57 +0800)]
Issue #14036: return None when port in urlparse cross 65535
Senthil Kumaran [Thu, 24 May 2012 13:56:17 +0000 (21:56 +0800)]
Issue #14036: return None when port in urlparse cross 65535
Sandro Tosi [Wed, 23 May 2012 21:17:22 +0000 (23:17 +0200)]
Issue #14814: minor improvements as suggested by Hynek Schlawack
Sandro Tosi [Wed, 23 May 2012 20:26:55 +0000 (22:26 +0200)]
Issue #14814: improve docstrings and arguments value handling, as per Terry J. Reedy's comments
Petri Lehtinen [Wed, 23 May 2012 18:36:16 +0000 (21:36 +0300)]
#14862: Add missing names to os.__all__
Florent Xicluna [Wed, 23 May 2012 15:42:50 +0000 (17:42 +0200)]
Remove duplicate entries in Misc/NEWS.
Hynek Schlawack [Wed, 23 May 2012 09:22:44 +0000 (11:22 +0200)]
#14885: Make support.skip_unless_xattr check also tempfile
There is a rare edge case where the filesystem used by the tempfile functions
(usually /tmp) doesn't support xattrs while the one used by TESTFN (the current
directory, so likely to be below /home) does. This causes the xattr related
test_shutil tests fail. skip_unless_xattr now checks both.
I have also added skip_unless_xattr to __all__ where it has been missing.
Eli Bendersky [Wed, 23 May 2012 04:09:08 +0000 (07:09 +0300)]
s/tabs/spaces, and clean trailing whitespace
Petri Lehtinen [Tue, 22 May 2012 18:05:30 +0000 (21:05 +0300)]
Merge branch '3.2'
Petri Lehtinen [Tue, 22 May 2012 17:48:16 +0000 (20:48 +0300)]
#14472: Update .gitignore
Patch by Matej Cepl.
Petri Lehtinen [Tue, 22 May 2012 17:48:16 +0000 (20:48 +0300)]
#14472: Update .gitignore
Patch by Matej Cepl.
Brian Curtin [Tue, 22 May 2012 16:04:32 +0000 (11:04 -0500)]
Update build.bat for VS2010
Hynek Schlawack [Tue, 22 May 2012 14:14:56 +0000 (16:14 +0200)]
Restore [] where default arguments are not keywords
Hynek Schlawack [Tue, 22 May 2012 14:12:18 +0000 (16:12 +0200)]
Restore [] where default arguments are not keywords
Reverts some changes of
d13fdd97cc8e .
Nick Coghlan [Tue, 22 May 2012 13:04:42 +0000 (23:04 +1000)]
Fix typo
Nick Coghlan [Tue, 22 May 2012 13:02:00 +0000 (23:02 +1000)]
Fix the versionadded tags for a couple of my recent changes
Ezio Melotti [Mon, 21 May 2012 23:53:42 +0000 (17:53 -0600)]
#14875: merge with 3.2.
Ezio Melotti [Mon, 21 May 2012 23:49:06 +0000 (17:49 -0600)]
#14875: Use float('inf') instead of float('
1e66666 ') in the json module.
Georg Brandl [Mon, 21 May 2012 18:28:58 +0000 (20:28 +0200)]
Avoid useless indentation.
Antoine Pitrou [Mon, 21 May 2012 17:23:00 +0000 (19:23 +0200)]
Remove outdated statement.
Nick Coghlan [Mon, 21 May 2012 13:03:30 +0000 (23:03 +1000)]
Close #14136 by cleaning up the PEP 409 command line test (patch by Ethan Furman)
Nick Coghlan [Mon, 21 May 2012 12:54:43 +0000 (22:54 +1000)]
Close #13585: add contextlib.ExitStack to replace the ill-fated contextlib.nested API
Hynek Schlawack [Mon, 21 May 2012 11:41:25 +0000 (13:41 +0200)]
#14804: Remove [] around optional arguments with default values
3.3 specific additions to
d13fdd97cc8e .
Hynek Schlawack [Mon, 21 May 2012 11:35:03 +0000 (13:35 +0200)]
#14804: Remove [] around optional arguments with default values
Hynek Schlawack [Mon, 21 May 2012 09:01:54 +0000 (11:01 +0200)]
#14804: Remove [] around optional arguments with default values
Hynek Schlawack [Sun, 20 May 2012 16:34:11 +0000 (18:34 +0200)]
Fix `versionchanged` tags for json.load
`versionchanged` tags about 2.7 are useless in 3.x branches.
Hynek Schlawack [Sun, 20 May 2012 16:32:53 +0000 (18:32 +0200)]
Fix `versionchanged` tags for json.load
`versionchanged` tags about 2.7 are useless in 3.x branches.
Vinay Sajip [Sun, 20 May 2012 14:37:33 +0000 (15:37 +0100)]
Closes #14864: Added documentation on how to undo the effects of a logging.disable() call. Thanks to user Guillaume for the suggestion.
Vinay Sajip [Sun, 20 May 2012 14:36:17 +0000 (15:36 +0100)]
Fixes #14864: Added documentation on how to undo the effects of a logging.disable() call.
Kristján Valur Jónsson [Sun, 20 May 2012 11:25:48 +0000 (11:25 +0000)]
Issue 14821:
If a dependency is expressed both in the .sln file and the .vcxproj file
msbuild is confused. Removing the .sln dependencies which are
deprecated anyway. See:
http://blogs.msdn.com/b/visualstudio/archive/2010/12/21/incorrect-solution-build-ordering-when-using-msbuild-exe.aspx
Nick Coghlan [Sun, 20 May 2012 11:22:27 +0000 (21:22 +1000)]
Remove an incorrect implementation detail
Nick Coghlan [Sun, 20 May 2012 11:01:57 +0000 (21:01 +1000)]
Issue #14814: addition of the ipaddress module (stage 1 - code and tests)
Hynek Schlawack [Sun, 20 May 2012 10:04:01 +0000 (12:04 +0200)]
Document when json.load's parse_constant behaviour changed
It doesn't get called on 'null', 'true', 'false' since
f686aced02a3 .
Hynek Schlawack [Sun, 20 May 2012 10:03:17 +0000 (12:03 +0200)]
Document when json.load's parse_constant behaviour changed
It doesn't get called on 'null', 'true', 'false' since
f686aced02a3 .
Charles-François Natali [Sun, 20 May 2012 09:43:28 +0000 (11:43 +0200)]
Merge.
Charles-François Natali [Sun, 20 May 2012 09:41:53 +0000 (11:41 +0200)]
Issue #12760: Add some mising documentation about the new `x` exclusive
creation flag to open().
Nick Coghlan [Sun, 20 May 2012 09:36:40 +0000 (19:36 +1000)]
Clarify a paragraph in the new metaclass docs
Senthil Kumaran [Sun, 20 May 2012 08:58:59 +0000 (16:58 +0800)]
merge - Fix for issue14426 - buildbots here I come
Senthil Kumaran [Sun, 20 May 2012 08:58:30 +0000 (16:58 +0800)]
Fix for issue14426 - buildbots here I come
Nick Coghlan [Sun, 20 May 2012 08:30:49 +0000 (18:30 +1000)]
Describe the default hash correctly, and mark a couple of CPython implementation details
Nick Coghlan [Sun, 20 May 2012 08:15:11 +0000 (18:15 +1000)]
Fix typo in new metaclass docs
Raymond Hettinger [Sun, 20 May 2012 04:20:48 +0000 (21:20 -0700)]
Minor change to default lru size. Set default to a power of two.
Senthil Kumaran [Sun, 20 May 2012 04:08:29 +0000 (12:08 +0800)]
news for Issue14426
Senthil Kumaran [Sun, 20 May 2012 04:06:51 +0000 (12:06 +0800)]
Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
Senthil Kumaran [Sun, 20 May 2012 04:06:24 +0000 (12:06 +0800)]
news for Issue14426
Senthil Kumaran [Sun, 20 May 2012 04:05:16 +0000 (12:05 +0800)]
Issue #14426: Correct the Date format in Expires attribute of Set-Cookie. Patch by Federico Reghenzani and Müte Invert
Eli Bendersky [Sun, 20 May 2012 03:33:29 +0000 (06:33 +0300)]
Issue #14849: setup Element data members to be assignable in subclasses
Kristján Valur Jónsson [Sat, 19 May 2012 21:25:41 +0000 (21:25 +0000)]
Remove missing files from the PCbuild pythoncore project. This avoids a
"missing dependency", causing pythocore to be rebuilt every time.
Kristján Valur Jónsson [Sat, 19 May 2012 21:10:14 +0000 (21:10 +0000)]
Clean up the PCBuild project files, removing redundant settings and
use "references" to link to dependent projects.
Update readme and batch files.
Nick Coghlan [Sat, 19 May 2012 16:34:13 +0000 (02:34 +1000)]
Close #14588: added a PEP 3115 compliant dynamic type creation mechanism
Petri Lehtinen [Sat, 19 May 2012 15:38:27 +0000 (18:38 +0300)]
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
Petri Lehtinen [Sat, 19 May 2012 15:34:06 +0000 (18:34 +0300)]
#14494: Document that absolute imports became default in 3.0 instead of 2.7.
Ezio Melotti [Sat, 19 May 2012 14:16:22 +0000 (17:16 +0300)]
#14072: merge with 3.2.
Ezio Melotti [Sat, 19 May 2012 14:15:19 +0000 (17:15 +0300)]
#14072: Fix parsing of tel URIs in urlparse by making the check for ports stricter.
Hynek Schlawack [Sat, 19 May 2012 11:33:11 +0000 (13:33 +0200)]
#13152: Allow to specify a custom tabsize for expanding tabs in textwrap
Patch by John Feuerstein.
Senthil Kumaran [Sat, 19 May 2012 08:58:45 +0000 (16:58 +0800)]
merge - Fix Issue14721: Send Content-length: 0 for empty body () in the http.client requests
Senthil Kumaran [Sat, 19 May 2012 08:58:09 +0000 (16:58 +0800)]
Fix Issue14721: Send Content-length: 0 for empty body () in the http.client requests
Senthil Kumaran [Sat, 19 May 2012 00:12:46 +0000 (08:12 +0800)]
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
Senthil Kumaran [Sat, 19 May 2012 00:12:00 +0000 (08:12 +0800)]
Issue9374 - Generic parsing of query and fragment portion of urls for any scheme
Petri Lehtinen [Fri, 18 May 2012 18:51:11 +0000 (21:51 +0300)]
#14798: pyclbr now raises ImportError instead of KeyError for missing packages
Petri Lehtinen [Fri, 18 May 2012 18:51:11 +0000 (21:51 +0300)]
#14798: pyclbr now raises ImportError instead of KeyError for missing packages
Petri Lehtinen [Fri, 18 May 2012 18:27:27 +0000 (21:27 +0300)]
Fix time.time() references in the time module docs
Closes #14842.
Petri Lehtinen [Fri, 18 May 2012 18:19:17 +0000 (21:19 +0300)]
Fix time.time() references in the time module docs
Closes #14842.
Antoine Pitrou [Fri, 18 May 2012 16:33:32 +0000 (18:33 +0200)]
Fix whitespace
Antoine Pitrou [Fri, 18 May 2012 16:33:07 +0000 (18:33 +0200)]
Move private function _args_from_interpreter_flags() to subprocess.py, so
that it can be imported when threads are disabled.
(followup to issue #12098)
Martin v. Löwis [Fri, 18 May 2012 13:28:43 +0000 (15:28 +0200)]
Drop double quoting again. I'm at a loss when to quote and when not.
Richard Oudkerk [Fri, 18 May 2012 13:28:02 +0000 (14:28 +0100)]
#12098: Make multiprocessing's child processes inherit sys.flags on Windows
Initial patch by Sergey Mezentsev.
Martin v. Löwis [Fri, 18 May 2012 14:42:52 +0000 (16:42 +0200)]
Fix typo.
Martin v. Löwis [Fri, 18 May 2012 14:29:33 +0000 (16:29 +0200)]
Upgrade OpenSSL to 1.0.1c
Martin v. Löwis [Fri, 18 May 2012 14:25:04 +0000 (16:25 +0200)]
Assume nasm.
Martin v. Löwis [Fri, 18 May 2012 13:34:22 +0000 (15:34 +0200)]
merge 3.2
Martin v. Löwis [Fri, 18 May 2012 13:28:01 +0000 (15:28 +0200)]
Upgrade OpenSSL to 1.0.0j
Martin v. Löwis [Fri, 18 May 2012 12:25:54 +0000 (14:25 +0200)]
merge 3.2
Martin v. Löwis [Fri, 18 May 2012 12:24:09 +0000 (14:24 +0200)]
merge heads