Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #665194: Add a localtime function to email.utils. | R David Murray | 2012-05-26 | 1 | -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 Sajip | 2012-05-26 | 3 | -0/+222 |
| | |||||
* | #12586: add provisional email policy with new header parsing and folding. | R David Murray | 2012-05-25 | 1 | -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 Murray | 2012-05-25 | 2 | -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 Lehtinen | 2012-05-24 | 1 | -18/+5 |
|\ | |||||
| * | #14863: Update the documentation of os.fdopen() | Petri Lehtinen | 2012-05-24 | 1 | -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 keywords | Hynek Schlawack | 2012-05-22 | 4 | -4/+4 |
|\ \ | |/ | |||||
| * | Restore [] where default arguments are not keywords | Hynek Schlawack | 2012-05-22 | 4 | -4/+4 |
| | | | | | | | | Reverts some changes of d13fdd97cc8e. | ||||
* | | Fix the versionadded tags for a couple of my recent changes | Nick Coghlan | 2012-05-22 | 2 | -2/+5 |
| | | |||||
* | | Avoid useless indentation. | Georg Brandl | 2012-05-21 | 1 | -2/+2 |
| | | |||||
* | | Close #13585: add contextlib.ExitStack to replace the ill-fated ↵ | Nick Coghlan | 2012-05-21 | 1 | -1/+278 |
| | | | | | | | | contextlib.nested API | ||||
* | | #14804: Remove [] around optional arguments with default values | Hynek Schlawack | 2012-05-21 | 3 | -24/+24 |
| | | | | | | | | 3.3 specific additions to d13fdd97cc8e. | ||||
* | | #14804: Remove [] around optional arguments with default values | Hynek Schlawack | 2012-05-21 | 8 | -11/+11 |
|\ \ | |/ | |||||
| * | #14804: Remove [] around optional arguments with default values | Hynek Schlawack | 2012-05-21 | 8 | -11/+11 |
| | | |||||
* | | Fix `versionchanged` tags for json.load | Hynek Schlawack | 2012-05-20 | 1 | -1/+1 |
|\ \ | |/ | | | | | `versionchanged` tags about 2.7 are useless in 3.x branches. | ||||
| * | Fix `versionchanged` tags for json.load | Hynek Schlawack | 2012-05-20 | 1 | -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 Sajip | 2012-05-20 | 1 | -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 Sajip | 2012-05-20 | 1 | -1/+2 |
| | | | | | | | | logging.disable() call. | ||||
* | | Document when json.load's parse_constant behaviour changed | Hynek Schlawack | 2012-05-20 | 1 | -0/+3 |
|\ \ | |/ | | | | | It doesn't get called on 'null', 'true', 'false' since f686aced02a3. | ||||
| * | Document when json.load's parse_constant behaviour changed | Hynek Schlawack | 2012-05-20 | 1 | -0/+3 |
| | | | | | | | | It doesn't get called on 'null', 'true', 'false' since f686aced02a3. | ||||
* | | Issue #12760: Add some mising documentation about the new `x` exclusive | Charles-François Natali | 2012-05-20 | 1 | -5/+10 |
| | | | | | | | | creation flag to open(). | ||||
* | | Minor change to default lru size. Set default to a power of two. | Raymond Hettinger | 2012-05-20 | 1 | -1/+1 |
| | | |||||
* | | Close #14588: added a PEP 3115 compliant dynamic type creation mechanism | Nick Coghlan | 2012-05-19 | 2 | -13/+64 |
| | | |||||
* | | #14494: Document that absolute imports became default in 3.0 instead of 2.7. | Petri Lehtinen | 2012-05-19 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #14494: Document that absolute imports became default in 3.0 instead of 2.7. | Petri Lehtinen | 2012-05-19 | 1 | -1/+1 |
| | | |||||
* | | #13152: Allow to specify a custom tabsize for expanding tabs in textwrap | Hynek Schlawack | 2012-05-19 | 1 | -0/+9 |
| | | | | | | | | Patch by John Feuerstein. | ||||
* | | Fix time.time() references in the time module docs | Petri Lehtinen | 2012-05-18 | 1 | -6/+6 |
|\ \ | |/ | | | | | Closes #14842. | ||||
| * | Fix time.time() references in the time module docs | Petri Lehtinen | 2012-05-18 | 1 | -6/+6 |
| | | | | | | | | Closes #14842. | ||||
* | | Remove outdated statements about threading and imports. | Antoine Pitrou | 2012-05-18 | 2 | -27/+1 |
| | | |||||
* | | Move import lock-related functions to a separate doc section. | Antoine Pitrou | 2012-05-17 | 1 | -42/+43 |
| | | |||||
* | | Issue #9260: A finer-grained import lock. | Antoine Pitrou | 2012-05-17 | 1 | -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 Murray | 2012-05-17 | 1 | -8/+5 |
|\ \ | |/ | |||||
| * | #14823: Simplify threading.Lock.acquire argument discussion. | R David Murray | 2012-05-17 | 1 | -8/+5 |
| | | |||||
* | | Issue #14780: urllib.request.urlopen() now has a `cadefault` argument to use ↵ | Antoine Pitrou | 2012-05-16 | 1 | -3/+12 |
| | | | | | | | | | | | | the default certificate store. Initial patch by James Oakley. | ||||
* | | #14692 Fix json docs to reflect changes in json.load | Hynek Schlawack | 2012-05-16 | 1 | -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.load | Hynek Schlawack | 2012-05-16 | 1 | -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.client | Hynek Schlawack | 2012-05-16 | 1 | -0/+15 |
| | | | | | | | | Patch by EungJun Yi. | ||||
* | | merge #1440472: reflow | R David Murray | 2012-05-16 | 1 | -4/+3 |
|\ \ | |/ | |||||
| * | #1440472: reflow | R David Murray | 2012-05-16 | 1 | -4/+3 |
| | | |||||
* | | merge #1440472: Explain that email parser/generator isn't *quite* "idempotent" | R David Murray | 2012-05-16 | 1 | -1/+11 |
|\ \ | |/ | |||||
| * | #1440472: Explain that email parser/generator isn't *quite* "idempotent" | R David Murray | 2012-05-16 | 1 | -1/+11 |
| | | |||||
* | | Add versionadded for hmac.secure_compare(). | Charles-François Natali | 2012-05-15 | 1 | -0/+1 |
| | | |||||
* | | remove unused import in asyncore doc | Giampaolo Rodola' | 2012-05-15 | 2 | -3/+4 |
| | | |||||
* | | #14807: move undocumented tarfile.filemode() to stat.filemode(). Add ↵ | Giampaolo Rodola' | 2012-05-15 | 1 | -1/+10 |
| | | | | | | | | tarfile.filemode alias with deprecation warning. | ||||
* | | PEP 415: Implement suppression of __context__ display with an exception ↵ | Benjamin Peterson | 2012-05-15 | 2 | -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 Murray | 2012-05-15 | 1 | -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 Murray | 2012-05-15 | 1 | -18/+17 |
| | | |||||
| * | #14766: Add correct algorithm for when a 'time' object is naive. | R David Murray | 2012-05-15 | 1 | -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 Pitrou | 2012-05-13 | 1 | -4/+0 |
| | | | | | | | | of raising a RuntimeError (undoes issue #14205). | ||||
* | | Issue #14532: Add a secure_compare() helper to the hmac module, to mitigate | Charles-François Natali | 2012-05-13 | 1 | -0/+32 |
| | | | | | | | | timing attacks. Patch by Jon Oberheide. |