summaryrefslogtreecommitdiffstats
path: root/Doc/library
Commit message (Collapse)AuthorAgeFilesLines
* #665194: Add a localtime function to email.utils.R David Murray2012-05-261-2/+16
| | | | | | | | Without this function people would be tempted to use the other date functions in email.utils to compute an aware localtime, and those functions are not as good for that purpose as this code. The code is Alexander Belopolsy's from his proposed patch for issue 9527, with a fix (and additional tests) by Brian K. Jones.
* Implemented PEP 405 (Python virtual environments).Vinay Sajip2012-05-263-0/+222
|
* #12586: add provisional email policy with new header parsing and folding.R David Murray2012-05-251-0/+323
| | | | | | | | | | | | | | 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.
* #14731: refactor email policy framework.R David Murray2012-05-252-102/+226
| | | | | | | | | | | | | | | | | 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.
* #14863: Update the documentation of os.fdopen()Petri Lehtinen2012-05-241-18/+5
|\
| * #14863: Update the documentation of os.fdopen()Petri Lehtinen2012-05-241-15/+5
| | | | | | | | | | | | There's no bufsize argument anymore, and os.fdopen() is only a very thin wrapper around open() anymore. Change the documentation to reflect that.
* | Restore [] where default arguments are not keywordsHynek Schlawack2012-05-224-4/+4
|\ \ | |/
| * Restore [] where default arguments are not keywordsHynek Schlawack2012-05-224-4/+4
| | | | | | | | Reverts some changes of d13fdd97cc8e.
* | Fix the versionadded tags for a couple of my recent changesNick Coghlan2012-05-222-2/+5
| |
* | Avoid useless indentation.Georg Brandl2012-05-211-2/+2
| |
* | Close #13585: add contextlib.ExitStack to replace the ill-fated ↵Nick Coghlan2012-05-211-1/+278
| | | | | | | | contextlib.nested API
* | #14804: Remove [] around optional arguments with default valuesHynek Schlawack2012-05-213-24/+24
| | | | | | | | 3.3 specific additions to d13fdd97cc8e.
* | #14804: Remove [] around optional arguments with default valuesHynek Schlawack2012-05-218-11/+11
|\ \ | |/
| * #14804: Remove [] around optional arguments with default valuesHynek Schlawack2012-05-218-11/+11
| |
* | Fix `versionchanged` tags for json.loadHynek Schlawack2012-05-201-1/+1
|\ \ | |/ | | | | `versionchanged` tags about 2.7 are useless in 3.x branches.
| * Fix `versionchanged` tags for json.loadHynek Schlawack2012-05-201-1/+1
| | | | | | | | `versionchanged` tags about 2.7 are useless in 3.x branches.
* | Closes #14864: Added documentation on how to undo the effects of a ↵Vinay Sajip2012-05-201-1/+2
|\ \ | |/ | | | | logging.disable() call. Thanks to user Guillaume for the suggestion.
| * Fixes #14864: Added documentation on how to undo the effects of a ↵Vinay Sajip2012-05-201-1/+2
| | | | | | | | logging.disable() call.
* | Document when json.load's parse_constant behaviour changedHynek Schlawack2012-05-201-0/+3
|\ \ | |/ | | | | It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
| * Document when json.load's parse_constant behaviour changedHynek Schlawack2012-05-201-0/+3
| | | | | | | | It doesn't get called on 'null', 'true', 'false' since f686aced02a3.
* | Issue #12760: Add some mising documentation about the new `x` exclusiveCharles-François Natali2012-05-201-5/+10
| | | | | | | | creation flag to open().
* | Minor change to default lru size. Set default to a power of two.Raymond Hettinger2012-05-201-1/+1
| |
* | Close #14588: added a PEP 3115 compliant dynamic type creation mechanismNick Coghlan2012-05-192-13/+64
| |
* | #14494: Document that absolute imports became default in 3.0 instead of 2.7.Petri Lehtinen2012-05-191-1/+1
|\ \ | |/
| * #14494: Document that absolute imports became default in 3.0 instead of 2.7.Petri Lehtinen2012-05-191-1/+1
| |
* | #13152: Allow to specify a custom tabsize for expanding tabs in textwrapHynek Schlawack2012-05-191-0/+9
| | | | | | | | Patch by John Feuerstein.
* | Fix time.time() references in the time module docsPetri Lehtinen2012-05-181-6/+6
|\ \ | |/ | | | | Closes #14842.
| * Fix time.time() references in the time module docsPetri Lehtinen2012-05-181-6/+6
| | | | | | | | Closes #14842.
* | Remove outdated statements about threading and imports.Antoine Pitrou2012-05-182-27/+1
| |
* | Move import lock-related functions to a separate doc section.Antoine Pitrou2012-05-171-42/+43
| |
* | Issue #9260: A finer-grained import lock.Antoine Pitrou2012-05-171-10/+21
| | | | | | | | | | Most of the import sequence now uses per-module locks rather than the global import lock, eliminating well-known issues with threads and imports.
* | #14823: Simplify threading.Lock.acquire argument discussion.R David Murray2012-05-171-8/+5
|\ \ | |/
| * #14823: Simplify threading.Lock.acquire argument discussion.R David Murray2012-05-171-8/+5
| |
* | Issue #14780: urllib.request.urlopen() now has a `cadefault` argument to use ↵Antoine Pitrou2012-05-161-3/+12
| | | | | | | | | | | | the default certificate store. Initial patch by James Oakley.
* | #14692 Fix json docs to reflect changes in json.loadHynek Schlawack2012-05-161-2/+2
|\ \ | |/ | | | | | | | | | | The behaviour of the parse_constant callback changed insofar that 'null', 'true', 'false' don't trigger its call anymore. Patch by Serhiy Storchaka
| * #14692 Fix json docs to reflect changes in json.loadHynek Schlawack2012-05-161-2/+2
| | | | | | | | | | | | | | The behaviour of the parse_constant callback changed insofar that 'null', 'true', 'false' don't trigger its call anymore. Patch by Serhiy Storchaka
* | #14809: Add HTTP status codes from RFC 6585 to http.server and http.clientHynek Schlawack2012-05-161-0/+15
| | | | | | | | Patch by EungJun Yi.
* | merge #1440472: reflowR David Murray2012-05-161-4/+3
|\ \ | |/
| * #1440472: reflowR David Murray2012-05-161-4/+3
| |
* | merge #1440472: Explain that email parser/generator isn't *quite* "idempotent"R David Murray2012-05-161-1/+11
|\ \ | |/
| * #1440472: Explain that email parser/generator isn't *quite* "idempotent"R David Murray2012-05-161-1/+11
| |
* | Add versionadded for hmac.secure_compare().Charles-François Natali2012-05-151-0/+1
| |
* | remove unused import in asyncore docGiampaolo Rodola'2012-05-152-3/+4
| |
* | #14807: move undocumented tarfile.filemode() to stat.filemode(). Add ↵Giampaolo Rodola'2012-05-151-1/+10
| | | | | | | | tarfile.filemode alias with deprecation warning.
* | PEP 415: Implement suppression of __context__ display with an exception ↵Benjamin Peterson2012-05-152-17/+15
| | | | | | | | | | | | attribute This replaces the original PEP 409 implementation. See #14133.
* | Merge #14766: Add correct algorithm for when a 'time' object is naive.R David Murray2012-05-151-26/+39
|\ \ | |/ | | | | | | | | | | This patch also clarifies the definition of Naive and Aware. Original patch by Greg Weller, I modified the first hunk somewhat to make the exposition even clearer (I hope).
| * #14766: Reflow the altered paragraphs.R David Murray2012-05-151-18/+17
| |
| * #14766: Add correct algorithm for when a 'time' object is naive.R David Murray2012-05-151-12/+26
| | | | | | | | | | | | | | This patch also clarifies the definition of Naive and Aware. Original patch by Greg Weller, I modified the first hunk somewhat to make the exposition even clearer (I hope).
* | Issue #14417: Mutating a dict during lookup now restarts the lookup instead ↵Antoine Pitrou2012-05-131-4/+0
| | | | | | | | of raising a RuntimeError (undoes issue #14205).
* | Issue #14532: Add a secure_compare() helper to the hmac module, to mitigateCharles-François Natali2012-05-131-0/+32
| | | | | | | | timing attacks. Patch by Jon Oberheide.