summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* abstract.c should not be executable. (GH-15348)Benjamin Peterson2019-08-211-0/+0
|
* Remove a dead comment from ossaudiodev.c (#15346)Brett Cannon2019-08-201-2/+0
|
* bpo-32793: Fix a duplicate debug message in smtplib (GH-15341)Zackery Spytz2019-08-202-2/+1
| | | | | | | | | | | _get_socket() already prints a debug message for the host and port. https://bugs.python.org/issue32793 Automerge-Triggered-By: @maxking
* bpo-15913: Implement PyBuffer_SizeFromFormat() (GH-13873)Joannah Nanjekye2019-08-206-3/+83
| | | | Implement PyBuffer_SizeFromFormat() function (previously documented but not implemented): call struct.calcsize().
* bpo-37732: Fix GCC warning in _PyObject_Malloc() (GH-15333)Victor Stinner2019-08-201-21/+16
| | | | | | | pymalloc_alloc() now returns directly the pointer, return NULL on memory allocation error. allocate_from_new_pool() already uses NULL as marker for "allocation failed".
* bpo-37868: Improve is_dataclass for instances. (GH-15325)Eric V. Smith2019-08-203-2/+32
|
* Minor documentation fixes on library/enum (GH-15234)Antoine2019-08-202-5/+5
| | | * Minor documentation fixes on library/enum
* Delete stale comment in Python/getopt.c. (GH-14719)Hansraj Das2019-08-201-4/+0
|
* Revert "bpo-37788: Fix a reference leak if a thread is not joined ↵Victor Stinner2019-08-193-19/+0
| | | | | (GH-15228)" (GH-15338) This reverts commit d3dcc92778807ae8f7ebe85178f36a29711cd478.
* bpo-37788: Fix a reference leak if a thread is not joined (GH-15228)Victor Stinner2019-08-193-0/+19
| | | | | Add threading.Thread.__del__() method to ensure that the thread state lock is removed from the _shutdown_locks list when a thread completes.
* Remove 'unstable' warning for Windows Store package in docs (GH-15334)Steve Dower2019-08-191-7/+4
|
* bpo-36266: Add module name in ImportError when DLL not found on Windows ↵shireenrao2019-08-172-4/+5
| | | | (GH-15180)
* Insert a missing close parenthesis (GH-15316)cocoatomo2019-08-171-1/+1
|
* fix link to time function from time_ns doc (GH-15285)Éric Araujo2019-08-171-1/+1
| | | Because mod, func, class, etc all share one namespace, :func:time creates a link to the time module doc page rather than the time.time function.
* Add a minor `Fraction.__hash__()` optimization (GH-15313)Tim Peters2019-08-171-2/+17
| | | | | | * Add a minor `Fraction.__hash__` optimization that got lost in the shuffle. Document the optimizations.
* bpo-37540: vectorcall: keyword names must be strings (GH-14682)Jeroen Demeyer2019-08-1610-46/+43
| | | | | | | | The fact that keyword names are strings is now part of the vectorcall and `METH_FASTCALL` protocols. The biggest concrete change is that `_PyStack_UnpackDict` now checks that and raises `TypeError` if not. CC @markshannon @vstinner https://bugs.python.org/issue37540
* bpo-37863: Optimize Fraction.__hash__() (#15298)Raymond Hettinger2019-08-162-15/+12
|
* Indent code inside if block. (GH-15284)Hansraj Das2019-08-151-1/+1
| | | Without indendation, seems like strcpy line is parallel to `if` condition.
* bpo-37207: enable vectorcall for type.__call__ (GH-14588)Jeroen Demeyer2019-08-152-2/+6
| | | | | | | | | | | | Base PR for other PRs that want to play with `type.__call__` such as #13930 and #14589. The author is really @markshannon I just made the PR. https://bugs.python.org/issue37207 Automerge-Triggered-By: @encukou
* Replace usage of the obscure PEM_read_bio_X509_AUX with the more standard ↵Alex Gaynor2019-08-151-1/+1
| | | | | | | PEM_read_bio_X509 (GH-15303) X509_AUX is an odd, note widely used, OpenSSL extension to the X509 file format. This function doesn't actually use any of the extra metadata that it parses, so just use the standard API. Automerge-Triggered-By: @tiran
* bpo-37760: Avoid cluttering work tree with downloaded Unicode files. (GH-15128)Greg Price2019-08-152-2/+6
|
* bpo-37775: Update compileall doc for invalidation_mode parameter (GH-15148)Hai Shi2019-08-141-3/+12
|
* bpo-21131: Fix faulthandler.register(chain=True) stack (GH-15276)Victor Stinner2019-08-142-1/+9
| | | | | | faulthandler now allocates a dedicated stack of SIGSTKSZ*2 bytes, instead of just SIGSTKSZ bytes. Calling the previous signal handler in faulthandler signal handler uses more than SIGSTKSZ bytes of stack memory on some platforms.
* bpo-37811: FreeBSD, OSX: fix poll(2) usage in sockets module (GH-15202)Artem Khramov2019-08-143-0/+16
| | | | | | | | | | | | | | | | FreeBSD implementation of poll(2) restricts the timeout argument to be either zero, or positive, or equal to INFTIM (-1). Unless otherwise overridden, socket timeout defaults to -1. This value is then converted to milliseconds (-1000) and used as argument to the poll syscall. poll returns EINVAL (22), and the connection fails. This bug was discovered during the EINTR handling testing, and the reproduction code can be found in https://bugs.python.org/issue23618 (see connect_eintr.py, attached). On GNU/Linux, the example runs as expected. This change is trivial: If the supplied timeout value is negative, truncate it to -1.
* bpo-37826: Document exception chaining in Python tutorial for errors. (GH-15243)Abhilash Raj2019-08-141-0/+47
| | | https://bugs.python.org/issue37826
* bpo-37849: IDLE: fix completion window positioning above line (GH-15267)Tal Einat2019-08-143-2/+20
|
* bpo-36030: Improve performance of some tuple operations (GH-12052)Sergey Fedoseev2019-08-141-32/+71
|
* bpo-37531: Fix regrtest timeout for subprocesses (GH-15072)Victor Stinner2019-08-145-14/+78
| | | Co-Authored-By: Joannah Nanjekye <joannah.nanjekye@ibm.com>
* bpo-36502: Correct documentation of str.isspace() (GH-15019)Greg Price2019-08-142-4/+19
| | | | | | | | | | | | | | | | | | The documented definition was much broader than the real one: there are tons of characters with general category "Other", and we don't (and shouldn't) treat most of them as whitespace. Rewrite the definition to agree with the comment on _PyUnicode_IsWhitespace, and with the logic in makeunicodedata.py, which is what generates that function and so ultimately governs. Add suitable breadcrumbs so that a reader who wants to pin down exactly what this definition means (what's a "bidirectional class" of "B"?) can do so. The `unicodedata` module documentation is an appropriate central place for our references to Unicode's own copious documentation, so point there. Also add to the isspace() test a thorough check that the implementation agrees with the intended definition.
* bpo-37738: Fix curses addch(str, color_pair) (GH-15071)Victor Stinner2019-08-142-3/+17
| | | | | Fix the implementation of curses addch(str, color_pair): pass the color pair to setcchar(), instead of always passing 0 as the color pair.
* bpo-37681: no_sanitize_thread support from GCC 5.1 (GH-15096)Hai Shi2019-08-141-2/+2
| | | | Fix the following warning with GCC 4.8.5: Objects/obmalloc.c: warning: ‘no_sanitize_thread’ attribute directive ignored
* bpo-37337: Fix a GCC 9 warning in Objects/descrobject.c (GH-14814)Zackery Spytz2019-08-141-1/+1
| | | | Commit b1263d5a60d3f7ab02dd28409fff59b3815a3f67 causes GCC 9.1.0 to give a warning in Objects/descrobject.c.
* bpo-37760: Factor out standard range-expanding logic in makeunicodedata. ↵Greg Price2019-08-141-33/+35
| | | | | | | | (GH-15248) Much like the lower-level logic in commit ef2af1ad4, we had 4 copies of this logic, written in a couple of different ways. They're all implementing the same standard, so write it just once.
* bpo-37256: Wording in Request class docs (#14792)Ngalim Siregar2019-08-142-1/+2
| | | | | | | | | | * bpo-37256: Wording in Request class docs * 📜🤖 Added by blurb_it. * Update Misc/NEWS.d/next/Documentation/2019-07-16-14-48-12.bpo-37256.qJTrBb.rst Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
* bpo-25172: Add test for crypt ImportError on Windows (GH-15252)shireenrao2019-08-131-7/+28
|
* bpo-37689: add Path.is_relative_to() method (GH-14982)Hai Shi2019-08-134-1/+111
|
* bpo-37814: Document the empty tuple type annotation syntax (GH-15208)Josh Holland2019-08-131-1/+2
| | | | | | | | https://bugs.python.org/issue37814: > The empty tuple syntax in type annotations, `Tuple[()]`, is not obvious from the examples given in the documentation (I naively expected `Tuple[]` to work); it has been documented in PEP 484 and in mypy, but not in the documentation for the typing module. https://bugs.python.org/issue37814
* bpo-37583: Add err 113 to support.get_socket_conn_refused_errs() (GH-14729)Hai Shi2019-08-131-0/+3
| | | | | Add error number 113 EHOSTUNREACH to get_socket_conn_refused_errs() of test.support.
* bpo-37841: Remove python_uwp dependency on msvcp140.dll (GH-15253)Steve Dower2019-08-131-0/+9
|
* bpo-37760: Constant-fold some old options in makeunicodedata. (GH-15129)Greg Price2019-08-131-24/+20
| | | | | | | | The `expand` option was introduced in 2000 in commit fad27aee1. It appears to have been always set since it was committed, and what it does is tell the code to do something essential. So, just always do that, and cut the option. Also cut the `linebreakprops` option, which isn't consulted anymore.
* bpo-37758: Clean out vestigial script-bits from test_unicodedata. (GH-15126)Greg Price2019-08-131-17/+5
| | | | | | | | | | | This file started life as a script, before conversion to a `unittest` test file. Clear out some legacies of that conversion that are a bit confusing about how it works. Most notably, it's unlikely there's still a good reason to try to recover from `unicodedata` failing to import -- as there was when that logic was first added, when the module was very new. So take that out entirely. Keep `self.db` working, though, to avoid a noisy diff.
* bpo-37760: Mark all generated Unicode data headers as generated. (GH-15171)Greg Price2019-08-131-1/+1
| | | | | | | | | | | | This causes them to be collapsed by default in diffs shown on GitHub. https://bugs.python.org/issue37760 Automerge-Triggered-By: @benjaminp
* bpo-37760: Factor out the basic UCD parsing logic of makeunicodedata. (GH-15130)Greg Price2019-08-131-133/+109
| | | | | | There were 10 copies of this, and almost as many distinct versions of exactly how it was written. They're all implementing the same standard. Pull them out to the top, so the more interesting logic that remains becomes easier to read.
* bpo-37759: Second round of edits to Whatsnew 3.8 (GH-15204)Raymond Hettinger2019-08-121-20/+88
|
* Remove versioned executables from non-APPX packages (GH-15237)Steve Dower2019-08-121-3/+0
|
* bpo-37354: Sign Activate.ps1 for release (GH-15235)Steve Dower2019-08-126-4/+29
|
* bpo-37354: Make Powershell Activate.ps1 script static to allow for signing ↵Derek Keeler2019-08-122-28/+204
| | | | | | | | | | (GH-14967) - Remove use of replacement text in the script - Make use of the pyvenv.cfg file for prompt value. - Add parameters to allow more flexibility - Make use of the current path, and assumptions about where env puts things, to compensate - Make the script a bit more 'idiomatic' Powershell - Add script documentation (Get-Help .\.venv\Scripts\Activate.ps1 shows PS help page now
* bpo-37804: Remove the deprecated method threading.Thread.isAlive() (GH-15225)Dong-hee Na2019-08-124-12/+6
|
* Fix docs for assert_called and assert_called_once (#15197)Ismail S2019-08-121-2/+2
|
* bpo-37819: Add Fraction.as_integer_ratio() (GH-15212)Raymond Hettinger2019-08-114-0/+23
|