summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* bpo-30110: fix resource leak in test_asyncio.test_events (#1413)Xiang Zhang2017-05-151-1/+3
|
* bpo-30224: remove outdated checks in struct (#1374)Xiang Zhang2017-05-151-47/+15
|
* bpo-30354: Update data model documentation for super() (GH-1561)csabella2017-05-151-6/+6
| | | | | | | | | | The data model section of the language reference was written well before the zero-argument form of super() was added. To avoid giving the impression that they're doing something unusual, this updates the description of `__new__` and `__init__` to use the zero-argument form. Patch by Cheryl Sabella.
* bpo-29763: Clean up _pth tests (GH-954)Zachary Ware2017-05-141-46/+31
|
* bpo-30358: Document sort argument of profile.runctx() (GH-1566)csabella2017-05-141-2/+2
|
* bpo-30299: Display a bytecode when compile a regex in debug mode. (#1491)Serhiy Storchaka2017-05-143-1/+177
| | | | | `re.compile(..., re.DEBUG)` now displays the compiled bytecode in human readable form.
* bpo-30340: Enhanced regular expressions optimization. (#1542)Serhiy Storchaka2017-05-144-54/+95
| | | | This increased the performance of matching some patterns up to 25 times.
* Move Codecov's configuration file under .github (GH-1494)morrme2017-05-131-0/+0
|
* bpo-30178: Add Jim Fasarakis-Hilliard to Misc/ACKS (GH-1572)Mariatta2017-05-131-0/+1
|
* bpo-30178: Indent methods and attributes of MimeType class (GH-1306)Jim Fasarakis-Hilliard2017-05-131-43/+43
|
* bpo-28974: `object.__format__(x, '')` is now equivalent to `str(x)` (#506)Serhiy Storchaka2017-05-134-9/+12
| | | | rather than `format(str(self), '')`.
* bpo-30341: Improve _PyTrash_thread_destroy_chain() a little bit (#1545)Xiang Zhang2017-05-132-3/+16
| | | | | * add a comment about why we need to increase trash_delete_nesting * move increase and decrese outside of the loop
* PCbuild/build.bat: Add note about using msbuild response file. (#1551)Charles2017-05-121-1/+6
| | | | | | | | | | | | | | | | Using a response file will eliminate the headache associated with batch argument/quote processing. For example I unsucessfully compiled python with visualcpptools when specifying VSInstallDir in the batch file (cannot find vcruntime.h) ```batch build.bat -p x64 -e -M --no-tkinter "/p:VCInstallDir=%VCInstallDir%" ``` but it build successfully when specifying it in a response file msbuild.rsp: ``` /p:VCInstallDir=%VCInstallDir% ```
* bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc.Steve (Gadget) Barnes2017-05-121-40/+70
| | | bpo-30291 Changes to launcher so as to allow py -3-32, -2.7-64, 3.10, etc.
* Indented Handler sections for improved clarity. (#1554)Vinay Sajip2017-05-121-66/+67
| | | Indented parts of the Handler class documentation for improved presentation, analogous to a recent similar change for the Logger class.
* Comment as to why docs are built against Python 3.6 (#1550)Brett Cannon2017-05-111-0/+1
|
* bpo-30308: Code coverage for argument in random.shuffle (#1504)csabella2017-05-111-1/+11
| | | | | | | | * bpo-30308: Code coverage for argument in random.shuffle * bpo-30308: Code coverage for argument in random.shuffle * bpo-30308: Code coverage for argument in random.shuffle
* bpo-30048: asyncio: fix Task.cancel() was ignored. (GH-1097)INADA Naoki2017-05-114-1/+39
| | | | | | | | | | | | when there are no more `await` or `yield (from)` before return in coroutine, cancel was ignored. example: async def coro(): asyncio.Task.current_task().cancel() return 42 ... res = await coro() # should raise CancelledError
* #30190: fix invalid escape sequence warnings (#1534)Giampaolo Rodola2017-05-101-3/+3
|
* bpo-28787: Fix out of tree --with-dtrace builds (#135)stratakis2017-05-103-0/+5
| | | | | | | | * bpo-28787: Fix out of tree --with-dtrace builds * Unsilence directory creation * Add Misc/NEWS and Misc/ACKS entries
* bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1480)Xiang Zhang2017-05-103-5/+7
|
* bpo-30298: Weaken the condition of deprecation warnings for inline ↵Serhiy Storchaka2017-05-103-21/+56
| | | | | | | | modifiers. (#1490) Now allowed several subsequential inline modifiers at the start of the pattern (e.g. '(?i)(?s)...'). In verbose mode whitespaces and comments now are allowed before and between inline modifiers (e.g. '(?x) (?i) (?s)...').
* bpo-30320: test_eintr now uses pthread_sigmask() (#1523)Victor Stinner2017-05-101-35/+26
| | | | | | | | | | | | Rewrite sigwaitinfo() and sigtimedwait() unit tests for EINTR using pthread_sigmask() to fix a race condition between the child and the parent process. Remove the pipe which was used as a weak workaround against the race condition. sigtimedwait() is now tested with a child process sending a signal instead of testing the timeout feature which is more unstable (especially regarding to clock resolution depending on the platform).
* PCbuild/build.bat: pass command line parameters when building PGO (#1510)Charles2017-05-091-1/+1
| | | Custom msbuild properties passed as command line need to be passed too when calling `Build` when doing PGO build.
* bpo-30285: Optimize case-insensitive matching and searching (#1482)Serhiy Storchaka2017-05-096-70/+215
| | | | of regular expressions.
* bpo-30024: Circular imports involving absolute imports with binding (#1264)Serhiy Storchaka2017-05-096-2/+17
| | | a submodule to a name are now supported.
* bpo-30273: update distutils.sysconfig for venv's created from Python (#1515)Jeremy Kloth2017-05-091-5/+2
| | | compiled out-of-tree (builddir != srcdir). (see also bpo-15366)
* bpo-30258: regrtest: Fix run_tests_multiprocess() (#1479)Victor Stinner2017-05-092-1/+3
| | | | | | If the child process exited with a non-zero code, don't strip the last line of stdout anymore. Add also a sanity check in accumulate_result().
* bpo-29990: Fix range checking in GB18030 decoder (#1495)Xiang Zhang2017-05-093-1/+11
| | | When decoding a 4-byte GB18030 sequence, the first and third byte cannot exceed 0xFE.
* bpo-30289: remove Misc/python-config.sh when make distclean (#1498)Xiang Zhang2017-05-091-1/+2
|
* bpo-29979: Rewrite cgi.parse_multipart to make it consistent with ↵Pierre Quentel2017-05-085-102/+38
| | | | FieldStorage (#991)
* Fix a trivial typo in global section (#1497)Jim Fasarakis-Hilliard2017-05-081-1/+1
|
* Closes bpo-30168: indent methods in Logger Class (#1295)Jim Fasarakis-Hilliard2017-05-071-170/+169
|
* Revert bpo-26293 for zipfile breakage. See also bpo-29094. (#1484)Serhiy Storchaka2017-05-062-21/+13
|
* bpo-30218: support path-like objects in shutil.unpack_archive() (GH-1367)Jelle Zijlstra2017-05-054-4/+26
| | | Thanks to Jelle Zijlstra for the patch.
* bpo-29243: Fix Makefile with respect to --enable-optimizations (#1478)torsava2017-05-053-7/+12
| | | | | | | | | | | | | * bpo-29243: Fix Makefile with respect to --enable-optimizations When using the Profile Guided Optimization (./configure --enable-optimizations) Python is built not only during `make` but rebuilt again during `make test`, `make install` and others. This patch fixes the issue. Note that this fix produces no change at all in the Makefile if configure is run witout --enable-optimizations. * !squash
* bpo-29920: Document cgitb.text() and cgitb.html() functions (GH-849)masklinn2017-05-051-0/+18
|
* bpo-30279: Remove unused Python/thread_foobar.h (#1473)Masayuki Yamamoto2017-05-052-138/+0
| | | | | | Python/thread_foobar.h is the template code that is threading adaptation for new platforms, also hasn't been used on actual platforms. Python/thread_*.h give concrete examples of adaptation instead of the template code.
* bpo-30264: ExpatParser closes the source on error (#1451)Victor Stinner2017-05-052-17/+40
| | | | | | | | ExpatParser.parse() of xml.sax.xmlreader now always closes the source: close the file object or the urllib object if source is a string (not an open file-like object). The change fixes a ResourceWarning on parsing error. Add test_parse_close_source() unit test.
* bpo-30277: Replace _sre.getlower() with _sre.ascii_tolower() and ↵Serhiy Storchaka2017-05-054-44/+83
| | | | _sre.unicode_tolower(). (#1468)
* bpo-30243: Fixed the possibility of a crash in _json. (#1420)Serhiy Storchaka2017-05-052-66/+24
| | | | | | It was possible to get a core dump by using uninitialized _json objects. Now __new__ methods create initialized objects. __init__ methods are removed.
* bpo-30215: Make re.compile() locale agnostic. (#1361)Serhiy Storchaka2017-05-059-23/+141
| | | | | | Compiled regular expression objects with the re.LOCALE flag no longer depend on the locale at compile time. Only the locale at matching time affects the result of matching.
* Make code coverage less strict (GH-1438)Brett Cannon2017-05-041-8/+2
| | | Set the target to be 90% since there is enough OS-specific code and things that require manual testing that we will never hit 100%. Also turn off the status checks since they are so inconsistent in terms of flagging a PR as passing/failing that they aren't useful and can actually block merging from a phone.
* bpo-30273: Update sysconfig (#1464)Victor Stinner2017-05-042-2/+1
| | | | | | | | | | The AST_H_DIR variable was removed from Makefile.pre.in by the commit a5c62a8e9f0de6c4133825a5710984a3cd5e102b (bpo-23404). AST_H_DIR was hardcoded to "Include", so replace the removed variable by its content. Remove also ASDLGEN variable from sysconfig example since this variable was also removed.
* bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver (#1319)Antoine Pitrou2017-05-042-6/+17
| | | | | | * bpo-30185: avoid KeyboardInterrupt tracebacks in forkserver * Tweak comment
* bpo-30263: regrtest: log system load (#1452)Victor Stinner2017-05-043-25/+39
| | | | | | | | * bpo-30263: regrtest: log system load * regrtest: log the number of CPUs Log the number of CPUs in the header. --verbose now imply --header.
* bpo-29956: Improve the math.exp() related documentation. (#1073)Serhiy Storchaka2017-05-043-14/+28
|
* bpo-30166: Import command-line parsing modules only when needed. (#1293)Serhiy Storchaka2017-05-047-12/+20
|
* bpo-30225: Fix is_valid_fd() on macOS Tiger (#1443)Victor Stinner2017-05-031-0/+9
| | | | | is_valid_fd() now uses fstat() instead of dup() on macOS to return 0 on a pipe when the other side of the pipe is closed. fstat() fails with EBADF in that case, whereas dup() succeed.
* bpo-30184: Add tests for invalid use of PyArg_ParseTupleAndKeywords. (#1316)Serhiy Storchaka2017-05-032-20/+43
|