Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | issue23673 | Ethan Furman | 2015-03-19 | 4 | -9/+48 | |
| | | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method | |||||
* | | issue23673 | Ethan Furman | 2015-03-19 | 6 | -30/+63 | |
| | | | | | | | | | | | | | | | | | | add private method to enum to support replacing global constants with Enum members: - search for candidate constants via supplied filter - create new enum class and members - insert enum class and replace constants with members via supplied module name - replace __reduce_ex__ with function that returns member name, so previous Python versions can unpickle modify IntEnum classes to use new method | |||||
* | | Issue #22903: The fake test case created by unittest.loader when it fails ↵ | Antoine Pitrou | 2015-03-18 | 3 | -10/+37 | |
|\ \ | |/ | | | | | importing a test module is now picklable. | |||||
| * | Issue #22903: The fake test case created by unittest.loader when it fails ↵ | Antoine Pitrou | 2015-03-18 | 3 | -9/+32 | |
| | | | | | | | | importing a test module is now picklable. | |||||
* | | Issue #23353: improve exceptions tests for generators | Antoine Pitrou | 2015-03-18 | 1 | -0/+46 | |
|\ \ | |/ | ||||||
| * | Issue #23353: improve exceptions tests for generators | Antoine Pitrou | 2015-03-18 | 1 | -0/+46 | |
| | | ||||||
* | | Removed unintentional trailing spaces in non-external and non-generated C files. | Serhiy Storchaka | 2015-03-18 | 25 | -56/+56 | |
| | | ||||||
* | | Restored backward compatibility of pickling http.cookies.Morsel. It was | Serhiy Storchaka | 2015-03-18 | 2 | -0/+32 | |
| | | | | | | | | broken after converting instance attributes to properies in issue #2211. | |||||
* | | Merge 3.4 (tracemalloc typo) | Victor Stinner | 2015-03-18 | 1 | -1/+1 | |
|\ \ | |/ | ||||||
| * | _tracemalloc.c: Fix typo | Victor Stinner | 2015-03-18 | 1 | -1/+1 | |
| | | ||||||
* | | Fix compiler warning in mmapmodule.c (compare signed/unsigned integers) | Victor Stinner | 2015-03-18 | 1 | -1/+1 | |
| | | ||||||
* | | Initialize variables to prevent GCC warnings | Victor Stinner | 2015-03-18 | 3 | -18/+25 | |
| | | ||||||
* | | Fix compiler warning in dtoa.c | Victor Stinner | 2015-03-18 | 1 | -2/+2 | |
| | | ||||||
* | | Issue #22181: On Linux, os.urandom() now uses the new getrandom() syscall if | Victor Stinner | 2015-03-18 | 2 | -6/+89 | |
| | | | | | | | | | | | | available, syscall introduced in the Linux kernel 3.17. It is more reliable and more secure, because it avoids the need of a file descriptor and waits until the kernel has enough entropy. | |||||
* | | Merge 3.4 (linecache doc) | Victor Stinner | 2015-03-18 | 2 | -4/+4 | |
|\ \ | |/ | ||||||
| * | Issue #11726: Fix linecache example in the doc | Victor Stinner | 2015-03-18 | 2 | -4/+4 | |
| | | | | | | | | | | | | | | Use a Python source file (linecache.__file__) instead of /etc/passwd. Modify also linecache docstrings to clarify the linecache is written to cache Python source files, not any text files. | |||||
* | | Merge 3.4 (linecache doc) | Victor Stinner | 2015-03-18 | 1 | -2/+5 | |
|\ \ | |/ | ||||||
| * | Issue #11726: clarify linecache doc: linecache is written to cache Python | Victor Stinner | 2015-03-18 | 1 | -2/+5 | |
| | | | | | | | | source files, even if "it works" with other text files encoded to UTF-8. | |||||
* | | Issue #12155: Fix queue doc example to join threads | Victor Stinner | 2015-03-18 | 1 | -13/+23 | |
| | | | | | | | | Use None as a sentinel to stop a worker. | |||||
* | | Merge 3.4 (marshal doc) | Victor Stinner | 2015-03-18 | 1 | -6/+15 | |
|\ \ | |/ | ||||||
| * | Issue #19428: Document that PyMarshal_ReadLongFromFile() and | Victor Stinner | 2015-03-18 | 1 | -6/+15 | |
| | | | | | | | | PyMarshal_ReadShortFromFile() can fail. | |||||
* | | Issue #19428: Handle PyMarshal_Read*() errors in run_pyc_file() | Victor Stinner | 2015-03-18 | 2 | -2/+9 | |
| | | | | | | | | Detect also earlier PyMarshal_Read*() errors in zipimport. | |||||
* | | Merge 3.4 (asyncio) | Victor Stinner | 2015-03-18 | 3 | -0/+5 | |
|\ \ | |/ | ||||||
| * | Issue #23456: Add missing @coroutine decorators in asyncio | Victor Stinner | 2015-03-18 | 3 | -0/+5 | |
| | | ||||||
* | | Issue #23605: Fix os.walk(topdown=True), don't cache entry.is_symlink() because | Victor Stinner | 2015-03-18 | 1 | -29/+51 | |
| | | | | | | | | | | | | | | the caller can replace the directory with a different file kind. The bottom-up way, os.walk(topdown=False), still uses entry.is_symlink(), and so can be faster than Python 3.4. | |||||
* | | Issue #23694: Handle EINTR in _Py_open() and _Py_fopen_obj() | Victor Stinner | 2015-03-18 | 1 | -13/+40 | |
| | | | | | | | | | | Retry open()/fopen() if it fails with EINTR and the Python signal handler doesn't raise an exception. | |||||
* | | Issue #2211: Updated the implementation of the http.cookies.Morsel class. | Serhiy Storchaka | 2015-03-18 | 5 | -86/+299 | |
| | | | | | | | | | | | | | | | | | | Setting attributes key, value and coded_value directly now is deprecated. update() and setdefault() now transform and check keys. Comparing for equality now takes into account attributes key, value and coded_value. copy() now returns a Morsel, not a dict. repr() now contains all attributes. Optimized checking keys and quoting values. Added new tests. Original patch by Demian Brecht. | |||||
* | | Issue #23207: merged fix from 3.4. | Vinay Sajip | 2015-03-18 | 2 | -1/+5 | |
|\ \ | |/ | ||||||
| * | Issue #23207: Improved kwarg validation. | Vinay Sajip | 2015-03-18 | 2 | -1/+5 | |
| | | ||||||
* | | Issue #23694: Enhance _Py_fopen(), it now raises an exception on error | Victor Stinner | 2015-03-18 | 5 | -24/+44 | |
| | | | | | | | | | | * If fopen() fails, OSError is raised with the original filename object. * The GIL is now released while calling fopen() | |||||
* | | Issue #23694: Enhance _Py_open(), it now raises exceptions | Victor Stinner | 2015-03-17 | 8 | -45/+71 | |
| | | | | | | | | | | | | | | | | * _Py_open() now raises exceptions on error. If open() fails, it raises an OSError with the filename. * _Py_open() now releases the GIL while calling open() * Add _Py_open_noraise() when _Py_open() cannot be used because the GIL is not held | |||||
* | | Issue #23644: Fix issues with C++ when compiling Python extensions | Victor Stinner | 2015-03-17 | 2 | -12/+10 | |
| | | | | | | | | | | | | | | | | Disable completly pyatomic.h on C++, because <stdatomic.h> is not compatible with C++. <pyatomic.h> is only needed by the optimized PyThreadState_GET() macro in pystate.h. Instead, declare PyThreadState_GET() as an alias to PyThreadState_Get(), as done for limited API. | |||||
* | | Fix patch attribution for issue 18983. | Robert Collins | 2015-03-17 | 1 | -1/+1 | |
| | | ||||||
* | | Issue #18983: Allow selection of output units in timeit. | Robert Collins | 2015-03-17 | 4 | -10/+55 | |
| | | | | | | | | | | | | | | | | This allows manual selection of a specific unit such as usecs rather than the use of a heuristic. This is intended to aid machine processing of timeit output. Patch by Serhiy Storchaka. | |||||
* | | Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat | Victor Stinner | 2015-03-17 | 5 | -15/+5 | |
| | | | | | | | | | | | | | | | | _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw modules. pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in Include/pyport.h. | |||||
* | | Issue #22585: null merge | Ned Deily | 2015-03-17 | 0 | -0/+0 | |
|\ \ | |/ | ||||||
| * | Issue #22585: make URandomFDTests test case actually run | Ned Deily | 2015-03-17 | 1 | -0/+1 | |
| | | ||||||
* | | Revert changeset d927047b1d8eb87738676980a24930d053ba2150 | Victor Stinner | 2015-03-17 | 4 | -99/+57 | |
| | | | | | | | | Sorry, it was a mistake, the patch is still under review: issue #23646. | |||||
* | | Issue #23682: Delete Python 2.2 mention from distutils documentation. | Berker Peksag | 2015-03-17 | 1 | -14/+0 | |
|\ \ | |/ | | | | | Patch by Thomas Kluyver. | |||||
| * | Issue #23682: Delete Python 2.2 mention from distutils documentation. | Berker Peksag | 2015-03-17 | 1 | -14/+0 | |
| | | | | | | | | Patch by Thomas Kluyver. | |||||
* | | merge 3.4 (#23679) | Benjamin Peterson | 2015-03-16 | 1 | -2/+6 | |
|\ \ | |/ | ||||||
| * | versionchanged for rc4 removal (closes #23679) | Benjamin Peterson | 2015-03-16 | 1 | -2/+6 | |
| | | ||||||
* | | Issue #23680: Reduce risk of race condition in check_interrupted_write() of | Victor Stinner | 2015-03-16 | 1 | -2/+2 | |
| | | | | | | | | | | | | test_io. Allocate the large data before scheduling an alarm in 1 second. On very slow computer, the alarm rings sometimes during the memory allocation. | |||||
* | | Issue #23680: Reduce risk of race condition in check_interrupted_write_retry() | Victor Stinner | 2015-03-16 | 1 | -1/+8 | |
| | | | | | | | | | | | | of test_io. Allocate the large data before scheduling an alarm in 1 second. On very slow computer, the alarm rings sometimes during the memory allocation. | |||||
* | | Issue #23571: Restore removed assert(!PyErr_Occurred()); in | Victor Stinner | 2015-03-16 | 1 | -0/+7 | |
| | | | | | | | | | | | | | | PyEval_CallObjectWithKeywords() Sorry Serhiy, I missed your explanation because the review email was moved to my Spam folder :-( | |||||
* | | Use non-zero and non-last positions in error handler tests. | Serhiy Storchaka | 2015-03-16 | 1 | -30/+37 | |
|\ \ | |/ | ||||||
| * | Use non-zero and non-last positions in error handler tests. | Serhiy Storchaka | 2015-03-16 | 1 | -24/+28 | |
| | | ||||||
* | | Issue #23585: make patchcheck will ensure the interpreter is built. | Robert Collins | 2015-03-16 | 2 | -1/+5 | |
| | | ||||||
* | | Issue #23631: Fix traceback.format_list when a traceback has been mutated. | Robert Collins | 2015-03-16 | 3 | -5/+21 | |
| | | ||||||
* | | Increased coverage of standard codec error handlers. | Serhiy Storchaka | 2015-03-15 | 1 | -133/+197 | |
|\ \ | |/ |