summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-31960: Fix asyncio.Future documentation for thread (un)safety. (GH-4319) ↵Miss Islington (bot)2017-11-072-2/+4
| | | | | (#4320) (cherry picked from commit 22b1128559bdeb96907da5840960691bb050d11a)
* bpo-31965: fix doc for multiprocessing.connection.Client and Listener ↵Miss Islington (bot)2017-11-071-19/+11
| | | | | | | | | | | | | | | (GH-4304) (#4321) * fix doc for multiprocessing.connection.Client The authenticate argument does not exist on either Client or Listener: - https://github.com/python/cpython/blob/master/Lib/multiprocessing/connection.pyGH-L483 (master) - https://github.com/python/cpython/blob/3.6/Lib/multiprocessing/connection.pyGH-L478 (3.6) - https://github.com/python/cpython/blob/3.5/Lib/multiprocessing/connection.pyGH-L478 (3.5) - https://github.com/python/cpython/blob/3.4/Lib/multiprocessing/connection.pyGH-L487 (3.4) The documentation also claimed that these functions will call `current_process().auth_key`, for which I could find no evidence in the code. I rewrote the documentation to reflect the actual behavior. Also made some small changes to vary sentence structure. (cherry picked from commit 1e5d54cfa031f1de9ee2d2e968e0551b6e2397b7)
* Fix the sizeof test for dicts with shared keys. (GH-4311) (#4312)Miss Islington (bot)2017-11-071-5/+10
| | | | | By accident the size of the empty dict keys object matched the size of values array. (cherry picked from commit 39a156c505b7dc431a0a4cffcbefca577848db38)
* Fix a memory leak in _msi.c (GH-4127) (#4309)Miss Islington (bot)2017-11-071-0/+1
| | | (cherry picked from commit cb04f7518292108d68e5ba4c685ca2bf2da18eab)
* bpo-31950: Improve event loop policy doc (GH-4306) (#4307)Miss Islington (bot)2017-11-071-3/+30
| | | (cherry picked from commit 4135c89395726024abddb7340a0c7a42c801f616)
* bpo-31764: Prevent a crash in sqlite3.Cursor.close() in case the Cursor ↵Miss Islington (bot)2017-11-073-0/+10
| | | | | object is uninitialized (GH-3958) (#4303) (cherry picked from commit edb13ae48c17210fa4b2d40a6833ca09db5c121b)
* bpo-31770: Prevent a crash and refleaks when calling ↵Miss Islington (bot)2017-11-073-8/+27
| | | | | sqlite3.Cursor.__init__() more than once (GH-3968) (#4301) (cherry picked from commit e56ab746a965277ffcc4396d8a0902b6e072d049)
* [3.6] bpo-31957: Fixes version detection. (GH-4298) (#4300)Miss Islington (bot)2017-11-062-8/+7
|
* [3.6] Fix miscellaneous typos in idlelib (GH-4275) (#4291)Terry Jan Reedy2017-11-064-5/+5
| | | Manual partial backport of patch that fixed nearly 50 other files.
* bpo-31609: Fixes quotes in PCbuild/clean.bat (GH-4280) (#4285)Miss Islington (bot)2017-11-052-1/+2
| | | (cherry picked from commit aed08562220974b5c67371b908f23caa1be07e38)
* bpo-31944: Fixes build and Modify button (GH-4278) (#4284)Miss Islington (bot)2017-11-055-5/+8
| | | (cherry picked from commit 0d2a9088d16826343344b04461c8be44b4008710)
* bpo-31923: Fix spelling in sqlite3 docs (GH-4227)Miss Islington (bot)2017-11-041-1/+1
| | | (cherry picked from commit aafece7a9e010075fff4420cfbb16f1ec0342698)
* bpo-31678: Fix typo in PyDateTime_DELTA_GET_MICROSECONDS (GH-3869)Miss Islington (bot)2017-11-041-1/+1
| | | (cherry picked from commit 82cd3cede804ca694fb0657fd985d5eff84a414f)
* bpo-18699: Corrected documentation for window.chgat in curses module ↵Miss Islington (bot)2017-11-041-4/+4
| | | | | (GH-1430) (#4271) (cherry picked from commit b838cc3ff4e039af949c6a19bd896e98e944dcbe)
* bpo-9678: Fix determining the MAC address in the uuid module. (GH-4264) (#4269)Miss Islington (bot)2017-11-042-2/+22
| | | | | | | * Using ifconfig on NetBSD and OpenBSD. * Using arp on Linux, FreeBSD, NetBSD and OpenBSD. Based on patch by Takayuki Shimizukawa. (cherry picked from commit ee1a9a2b78d5b6bb1a8148fc5fcf365e6d4e9e67)
* bpo-31924: Fix test_curses on NetBSD 8. (GH-4228) (#4259)Miss Islington (bot)2017-11-031-2/+4
| | | (cherry picked from commit a7723d8b09f516a2b75837a3527b8cc7bee89fad)
* bpo-31933: fix blake2 multi-byte params on big endian platforms (GH-4250) ↵Miss Islington (bot)2017-11-034-4/+46
| | | | | | | | | | | | | | | (#4262) All Blake2 params have to be encoded in little-endian byte order. For the two multi-byte integer params, leaf_length and node_offset, that means that assigning a native-endian integer to them appears to work on little-endian platforms, but gives the wrong result on big-endian. The current libb2 API doesn't make that very clear, and @sneves is working on new API functions in the GH issue above. In the meantime, we can work around the problem by explicitly assigning little-endian values to the parameter block. See https://github.com/BLAKE2/libb2/issues/12. (cherry picked from commit dcfb0e3c04f1b29a0d09bb0a81dcd5ee5a5fef1a)
* bpo-30057: Fix potential missed signal in signal.signal(). (GH-4258) (#4261)Miss Islington (bot)2017-11-033-1/+6
| | | | Bug report and patch by Jeroen Demeyer. (cherry picked from commit f6f90ff079a22b79a58d47b6117cc8a8c7d366f3)
* [3.6] bpo-31310: multiprocessing's semaphore tracker should be launched ↵Antoine Pitrou2017-11-033-7/+57
| | | | | | | | | | | again if crashed (GH-3247) (#4254) * bpo-31310: multiprocessing's semaphore tracker should be launched again if crashed * Avoid mucking with process state in test. Add a warning if the semaphore process died, as semaphores may then be leaked. * Add NEWS entry (cherry picked from commit cbe1756)
* [3.6] bpo-31926: fix missing *_METHODDEF statements by argument clinic ↵Tal Einat2017-11-034-7/+9
| | | | | | | | | | | (GH-4230) (#4253) When a single .c file contains several functions and/or methods with the same name, a safety _METHODDEF GH-define statement is generated only for one of them. This fixes the bug by using the full name of the function to avoid duplicates rather than just the name.. (cherry picked from commit 4f57409a2f7bdf8fb559cddc7c6533ca2c471c67)
* [3.6] bpo-31308: If multiprocessing's forkserver dies, launch it again when ↵Antoine Pitrou2017-11-033-5/+66
| | | | | | | | | | | | | | | | | | | | | | necessary (GH-3246) (#4252) * bpo-31308: If multiprocessing's forkserver dies, launch it again when necessary. * Fix test on Windows * Add NEWS entry * Adopt a different approach: ignore SIGINT and SIGTERM, as in semaphore tracker. * Fix comment * Make sure the test doesn't muck with process state * Also test previously-started processes * Update 2017-08-30-17-59-36.bpo-31308.KbexyC.rst * Avoid masking SIGTERM in forkserver. It's not necessary and causes a race condition in test_many_processes.. (cherry picked from commit fc6b348b12ad401cab0261b7b71a65c60a08c0a8)
* bpo-30806: Fix netrc.__repr__() format (GH-2491)Miss Islington (bot)2017-11-033-9/+13
| | | | | | netrc file format doesn't support quotes and escapes. See https://linux.die.net/man/5/netrc (cherry picked from commit b24cd055ecb3eea9a15405a6ca72dafc739e6531)
* Returning 1 from the set_progress_handler handler cancels query (GH-4120)Berker Peksag2017-11-021-0/+4
| | | (cherry picked from commit ac03c03b305273f39d5374e2826526d4ab6bb415)
* Update multissltests: 1.0.2m, 1.1.0g (GH-4232) (#4236)Miss Islington (bot)2017-11-021-3/+2
| | | (cherry picked from commit 0d2c645d41eee4ec7549c86ccc23970b692a48b0)
* bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse(). ↵Miss Islington (bot)2017-11-013-13/+37
| | | | | (GH-4220) (#4221) (cherry picked from commit 4f469c096628af730b17798d0ebfd8925bfde836)
* bpo-15037: Add a workaround for getkey() in curses for ncurses 5.7 and ↵Miss Islington (bot)2017-11-013-2/+14
| | | | | | | earlier. (GH-3826) (#4218) Skip a test for unget_wch()/get_wch() on OpenBSD since they are broken in ncurses 5.7. (cherry picked from commit 7e68790f3db75a893d5dd336e6201a63bc70212b)
* bpo-31919: Fix building the curses module on OpenIndiana. (GH-4211) (#4215)Miss Islington (bot)2017-11-015-11/+61
| | | (cherry picked from commit 894ebd065e02debf20c0657d26020ecc42b7534f)
* Fix test_socket.test_create_connection() (GH-4206) (#4208)Miss Islington (bot)2017-11-011-0/+4
| | | | | bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to fix the test on Travis CI. (cherry picked from commit 280c22a82a6756e9caffef031c564fd98f1b50e7)
* Remove nested comments in blake2 (GH-4173) (#4214)Miss Islington (bot)2017-11-011-2/+4
| | | | | | | | | | | | Replace occurence of nested comments in blake2 reference implementation with preprocessor directive for disabling unused code. `blake2s-load-xop.h` is conditionally pulled in only on chips with XOP support, among others the AMD Bulldozer. The malformed comments in the source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0. Official reference code on github uses `GH-if` so this change should be uncontroversial. (cherry picked from commit 388cd85e51aa9c73f8e7f35f0d06c258be7b579c)
* bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) ↵Miss Islington (bot)2017-11-016-17/+90
| | | | | | | | | | | (#4212) Modify the code to use ncurses is_pad() instead of checking WINDOW _flags field. If your platform does not provide the is_pad(), the existing way that checks the field will be enabled. Note: This change does not drop support for platforms where do not have both WINDOW _flags field and is_pad(). (cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)
* bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) ↵Miss Islington (bot)2017-10-311-4/+4
| | | | | | | (#4201) * Fix a compilation error on FreeBSD. * Fix the data attribute size on Mac OS X. (cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)
* bpo-20064: Document PyObject_Malloc() (GH-4199) (#4203)Miss Islington (bot)2017-10-311-1/+64
| | | | | | | | | | | Document the following functions: * PyObject_Malloc() * PyObject_Calloc() * PyObject_Realloc() * PyObject_Free() Fix also PyMem_RawFree() documentation. (cherry picked from commit ec2cbdd1dff2c51788136480b2085e77506ebf34)
* bpo-31897: Convert unexpected errors when read bogus binary plists into ↵Miss Islington (bot)2017-10-313-5/+70
| | | | | InvalidFileException. (GH-4171) (#4192) (cherry picked from commit db91e0fe2417f075693a194a492b1699829871e7)
* bpo-31626: Fixed a bug in debug memory allocator. (GH-3844) (#4191)Miss Islington (bot)2017-10-312-11/+4
| | | | | Removed a code that incorrectly detected in-place resizing in realloc() and wrote to freed memory. (cherry picked from commit b484d5606ca76f9bbd0f5de7a6ef753400213e94)
* bpo-31893: Fixed select.kqueue(). (GH-4166) (#4190)Miss Islington (bot)2017-10-312-47/+73
| | | | | * Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD. * Fixed the comparison of the kqueue_event objects. (cherry picked from commit b9052a0f91d2e83bbc27267247a5920c82b242a3)
* bpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)Miss Islington (bot)2017-10-317-51/+335
| | | (cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)
* bpo-31629: Add support.SaveSignals (#4183) (#4187)Victor Stinner2017-10-312-1/+43
| | | | | | | test_curses now saves/restores signals. On FreeBSD, the curses module sets handlers of some signals, but don't restore old handlers when the module is deinitialized. (cherry picked from commit 19f68301a1295a9c30d9f28b8f1479cdcccd75aa)
* [3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)Pablo Galindo2017-10-313-0/+17
|
* bpo-31304: Update starmap_async documentation. (GH-4168) (GH-4177)Miss Islington (bot)2017-10-301-1/+1
| | | | Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code. (cherry picked from commit 11225753a89c2907bb717e6c050fe907e5e11829)
* [3.6] bpo-20047: Make bytearray methods partition() and rpartition() ↵Serhiy Storchaka2017-10-297-34/+85
| | | | | | rejecting (GH-4158) (#4162) separators that are not bytes-like objects.. (cherry picked from commit a2314283ff87c65e1745a42c2f2b716b1a209128)
* bpo-31065: Add doc about Popen.poll returning None. (GH-3169)Berker Peksag2017-10-291-1/+1
| | | (cherry picked from commit 006617ff7d6df3fdedcfe53e94ee2c52cc796437)
* bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156)Miss Islington (bot)2017-10-282-0/+12
| | | (cherry picked from commit 5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a)
* IDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)Miss Islington (bot)2017-10-283-24/+19
| | | | | | Editor and output windows only see an empty last prompt line. This simplifies the code and fixes a minor bug when newline is inserted. Sys.ps1, if present, is read on Shell start-up, but is not set or changed. (cherry picked from commit e86172d63af5827a3c2b55b80351cb38a26190eb)
* bpo-31860: Make the font sample in the IDLE font configuration dialog ↵Miss Islington (bot)2017-10-283-34/+45
| | | | | | editable. (GH-4106) (#4154) Changes persist while IDLE remains open (cherry picked from commit ed6554c487fb2403bc88be6deee611c7a4171d33)
* bpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)Miss Islington (bot)2017-10-271-8/+8
| | | (cherry picked from commit 7351f9e5a91c403d15c6d556f9989b443f1296f9)
* bpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)Miss Islington (bot)2017-10-271-1/+1
| | | (cherry picked from commit d609b0c24ebdb748cabcc6c062dfc86f9000e6c4)
* [3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). ↵xdegaye2017-10-268-53/+203
| | | | | (#4135) (cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)
* Fix trailing whitespaces in C and Python files. (#4131)Serhiy Storchaka2017-10-266-9/+9
|
* [3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. ↵Serhiy Storchaka2017-10-264-1590/+1652
| | | | | | | | (GH-4118) (#4128) BytesWarning no longer emitted when the fromlist argument of __import__() or the __all__ attribute of the module contain bytes instances.. (cherry picked from commit 41c56940c6edf3ea169332a6b039b6c8796f0475)
* bpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)Miss Islington (bot)2017-10-261-3/+3
| | | (cherry picked from commit 275d2d9c4663a1ea8d1f7c8778567a735b0372c1)