Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | #12586: add provisional email policy with new header parsing and folding. | R David Murray | 2012-05-25 | 16 | -116/+6994 |
| | | | | | | | | | | | | | | 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: add preliminary What's New entry for policy framework. | R David Murray | 2012-05-25 | 1 | -0/+55 |
| | |||||
* | #14731: refactor email policy framework. | R David Murray | 2012-05-25 | 15 | -517/+1389 |
| | | | | | | | | | | | | | | | | | 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. | ||||
* | capitialize utime statuses | Benjamin Peterson | 2012-05-25 | 1 | -20/+20 |
| | |||||
* | capitialize enum members | Benjamin Peterson | 2012-05-25 | 1 | -17/+17 |
| | |||||
* | Placeholder in What's New for the major packaging infrastructure changes | Nick Coghlan | 2012-05-25 | 1 | -0/+20 |
| | |||||
* | Added test for namespace package dynamic path updates. | Eric V. Smith | 2012-05-25 | 1 | -0/+45 |
| | |||||
* | Issue #14548: Make multiprocessing finalizers check pid before running | Richard Oudkerk | 2012-05-25 | 2 | -3/+12 |
| | | | | This protects from possibilty of gc running just after fork. | ||||
* | Issue #12091: simplify ApplyResult and MapResult with threading.Event | Richard Oudkerk | 2012-05-25 | 1 | -30/+9 |
| | | | | Patch by Charles-François Natali | ||||
* | Merge | Richard Oudkerk | 2012-05-25 | 1 | -1/+2 |
|\ | |||||
| * | Issue #14881: Allow normal non-main thread to spawn a dummy process | Richard Oudkerk | 2012-05-25 | 1 | -1/+2 |
| | | | | | | | | Fix suggested by Itay Brandes | ||||
* | | #4841: Fix FileIO constructor to honor closefd when called repeatedly | Hynek Schlawack | 2012-05-25 | 2 | -3/+20 |
|\ \ | |/ | | | | | Patch by Victor Stinner. | ||||
| * | #4841: Fix FileIO constructor to honor closefd when called repeatedly | Hynek Schlawack | 2012-05-25 | 2 | -3/+20 |
| | | | | | | | | Patch by Victor Stinner. | ||||
* | | use PyDict_Contains | Benjamin Peterson | 2012-05-25 | 1 | -3/+3 |
| | | |||||
* | | return NULL on error | Benjamin Peterson | 2012-05-25 | 1 | -2/+3 |
| | | |||||
* | | actually return the result | Benjamin Peterson | 2012-05-25 | 1 | -1/+1 |
| | | |||||
* | | Issue #14889: PyBytes_FromObject(bytes) now just increfs and returns. | Larry Hastings | 2012-05-25 | 1 | -0/+6 |
| | | | | | | | | | | Previously, if you passed in a bytes object, it would create a whole new object. | ||||
* | | simplify and rewrite the zipimport part of 702009f3c0b1 a bit | Benjamin Peterson | 2012-05-25 | 1 | -51/+41 |
| | | |||||
* | | plug ref leak | Benjamin Peterson | 2012-05-25 | 1 | -0/+1 |
| | | |||||
* | | Whitespace cleanup. | Eric V. Smith | 2012-05-25 | 1 | -4/+4 |
| | | |||||
* | | issue 14660: Implement PEP 420, namespace packages. | Eric V. Smith | 2012-05-25 | 25 | -3381/+4424 |
| | | |||||
* | | #14863: Update the documentation of os.fdopen() | Petri Lehtinen | 2012-05-24 | 2 | -18/+8 |
|\ \ | |/ | |||||
| * | #14863: Update the documentation of os.fdopen() | Petri Lehtinen | 2012-05-24 | 2 | -15/+8 |
| | | | | | | | | | | | | There's no bufsize argument anymore, and os.fdopen() is only a very thin wrapper around open() anymore. Change the documentation to reflect that. | ||||
* | | Issue #14036: return None when port in urlparse cross 65535 | Senthil Kumaran | 2012-05-24 | 3 | -0/+11 |
|\ \ | |/ | |||||
| * | Issue #14036: return None when port in urlparse cross 65535 | Senthil Kumaran | 2012-05-24 | 3 | -0/+11 |
| | | |||||
| * | Remove duplicate entries in Misc/NEWS. | Florent Xicluna | 2012-05-23 | 1 | -20/+0 |
| | | |||||
* | | Issue #14814: minor improvements as suggested by Hynek Schlawack | Sandro Tosi | 2012-05-23 | 1 | -6/+9 |
| | | |||||
* | | Issue #14814: improve docstrings and arguments value handling, as per Terry ↵ | Sandro Tosi | 2012-05-23 | 2 | -27/+56 |
| | | | | | | | | J. Reedy's comments | ||||
* | | #14862: Add missing names to os.__all__ | Petri Lehtinen | 2012-05-23 | 2 | -2/+11 |
| | | |||||
* | | #14885: Make support.skip_unless_xattr check also tempfile | Hynek Schlawack | 2012-05-23 | 1 | -10/+18 |
| | | | | | | | | | | | | | | | | | | 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. | ||||
* | | s/tabs/spaces, and clean trailing whitespace | Eli Bendersky | 2012-05-23 | 1 | -28/+27 |
| | | |||||
* | | Merge branch '3.2' | Petri Lehtinen | 2012-05-22 | 0 | -0/+0 |
|\ \ | |/ | |||||
| * | #14472: Update .gitignore | Petri Lehtinen | 2012-05-22 | 3 | -0/+22 |
| | | | | | | | | Patch by Matej Cepl. | ||||
* | | #14472: Update .gitignore | Petri Lehtinen | 2012-05-22 | 3 | -0/+22 |
| | | | | | | | | Patch by Matej Cepl. | ||||
* | | Update build.bat for VS2010 | Brian Curtin | 2012-05-22 | 1 | -3/+4 |
| | | |||||
* | | 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 typo | Nick Coghlan | 2012-05-22 | 1 | -1/+1 |
| | | |||||
* | | Fix the versionadded tags for a couple of my recent changes | Nick Coghlan | 2012-05-22 | 2 | -2/+5 |
| | | |||||
* | | #14875: merge with 3.2. | Ezio Melotti | 2012-05-21 | 2 | -2/+3 |
|\ \ | |/ | |||||
| * | #14875: Use float('inf') instead of float('1e66666') in the json module. | Ezio Melotti | 2012-05-21 | 2 | -2/+3 |
| | | |||||
* | | Avoid useless indentation. | Georg Brandl | 2012-05-21 | 1 | -2/+2 |
| | | |||||
* | | Remove outdated statement. | Antoine Pitrou | 2012-05-21 | 1 | -5/+0 |
| | | |||||
* | | Close #14136 by cleaning up the PEP 409 command line test (patch by Ethan ↵ | Nick Coghlan | 2012-05-21 | 2 | -52/+20 |
| | | | | | | | | Furman) | ||||
* | | Close #13585: add contextlib.ExitStack to replace the ill-fated ↵ | Nick Coghlan | 2012-05-21 | 5 | -6/+539 |
| | | | | | | | | 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. |