]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Pablo Galindo [Sat, 3 Oct 2020 19:45:55 +0000 (20:45 +0100)]
bpo-41840: Report module-level globals as both local and global in the symtable module (GH-22391)
Dong-hee Na [Sat, 3 Oct 2020 17:16:56 +0000 (02:16 +0900)]
bpo-41922: Use PEP 590 vectorcall to speed up reversed() (GH-22523)
Andre Delfino [Sat, 3 Oct 2020 15:51:13 +0000 (12:51 -0300)]
[doc] Fix link to abc.collections.Iterable (GH-22520)
Missed this occurrence before, sorry. Also changed "the PEP" to "PEP".
Automerge-Triggered-By: @gvanrossum
Jason R. Coombs [Sat, 3 Oct 2020 14:58:39 +0000 (10:58 -0400)]
bpo-40564: Avoid copying state from extant ZipFile. (GH-22371)
bpo-40564: Avoid copying state from extant ZipFile.
Pablo Galindo [Sat, 3 Oct 2020 14:28:51 +0000 (15:28 +0100)]
bpo-41826: Fix compiler warnings in test_peg_generator (GH-22455)
Co-authored-by: Skip Montanaro
Ram Rachum [Sat, 3 Oct 2020 10:43:47 +0000 (13:43 +0300)]
bpo-41867: List options for timespec in docstrings of isoformat methods (GH-22418)
Ram Rachum [Sat, 3 Oct 2020 09:52:13 +0000 (12:52 +0300)]
bpo-40833: Clarify Path.rename doc-string regarding relative paths (GH-20554)
scoder [Sat, 3 Oct 2020 06:07:07 +0000 (08:07 +0200)]
bpo-41900: C14N 2.0 serialisation failed for unprefixed attributes when a default namespace was defined. (GH-22474)
Andre Delfino [Fri, 2 Oct 2020 23:15:28 +0000 (20:15 -0300)]
[doc] Fix link to abc.collections.Iterable (GH-22502)
Automerge-Triggered-By: @gvanrossum
Andre Delfino [Fri, 2 Oct 2020 22:36:26 +0000 (19:36 -0300)]
Fix is_typeddict markup (#22501)
Hansraj Das [Fri, 2 Oct 2020 20:21:45 +0000 (01:51 +0530)]
Typo fix - "mesasge" should be "message" (GH-22498)
* Correct at 2 places in email module
Campbell Barton [Fri, 2 Oct 2020 16:18:01 +0000 (02:18 +1000)]
bpo-41802: Document 'PyDict_DelItem' can raise a 'KeyError' (GH-22291)
Victor Stinner [Fri, 2 Oct 2020 12:49:00 +0000 (14:49 +0200)]
bpo-41692: Deprecate PyUnicode_InternImmortal() (GH-22486)
The PyUnicode_InternImmortal() function is now deprecated and will be
removed in Python 3.12: use PyUnicode_InternInPlace() instead.
Raymond Hettinger [Fri, 2 Oct 2020 02:30:54 +0000 (19:30 -0700)]
Update link to supporting references (GH-22488)
Andre Delfino [Thu, 1 Oct 2020 23:22:14 +0000 (20:22 -0300)]
[doc] Update references to NumPy (GH-22458)
Numeric(al) Python to NumPy. It seems the old name hasn't been used for some time.
Victor Stinner [Thu, 1 Oct 2020 16:57:37 +0000 (18:57 +0200)]
bpo-21955: Change my nickname in BINARY_ADD comment (GH-22481)
Robert Smallshire [Thu, 1 Oct 2020 16:30:08 +0000 (18:30 +0200)]
bpo-26680: Incorporate is_integer in all built-in and standard library numeric types (GH-6121)
* bpo-26680: Adds support for int.is_integer() for compatibility with float.is_integer().
The int.is_integer() method always returns True.
* bpo-26680: Adds a test to ensure that False.is_integer() and True.is_integer() are always True.
* bpo-26680: Adds Real.is_integer() with a trivial implementation using conversion to int.
This default implementation is intended to reduce the workload for subclass
implementers. It is not robust in the presence of infinities or NaNs and
may have suboptimal performance for other types.
* bpo-26680: Adds Rational.is_integer which returns True if the denominator is one.
This implementation assumes the Rational is represented in it's
lowest form, as required by the class docstring.
* bpo-26680: Adds Integral.is_integer which always returns True.
* bpo-26680: Adds tests for Fraction.is_integer called as an instance method.
The tests for the Rational abstract base class use an unbound
method to sidestep the inability to directly instantiate Rational.
These tests check that everything works correct as an instance method.
* bpo-26680: Updates documentation for Real.is_integer and built-ins int and float.
The call x.is_integer() is now listed in the table of operations
which apply to all numeric types except complex, with a reference
to the full documentation for Real.is_integer(). Mention of
is_integer() has been removed from the section 'Additional Methods
on Float'.
The documentation for Real.is_integer() describes its purpose, and
mentions that it should be overridden for performance reasons, or
to handle special values like NaN.
* bpo-26680: Adds Decimal.is_integer to the Python and C implementations.
The C implementation of Decimal already implements and uses
mpd_isinteger internally, we just expose the existing function to
Python.
The Python implementation uses internal conversion to integer
using to_integral_value().
In both cases, the corresponding context methods are also
implemented.
Tests and documentation are included.
* bpo-26680: Updates the ACKS file.
* bpo-26680: NEWS entries for int, the numeric ABCs and Decimal.
Co-authored-by: Robert Smallshire <rob@sixty-north.com>
Erlend Egeberg Aasland [Thu, 1 Oct 2020 14:03:21 +0000 (16:03 +0200)]
bpo-41861: Convert _sqlite3 CursorType and ConnectionType to heap types (GH-22478)
Erlend Egeberg Aasland [Thu, 1 Oct 2020 13:24:31 +0000 (15:24 +0200)]
bpo-41861: Convert _sqlite3 RowType and StatementType to heap types (GH-22444)
Dong-hee Na [Thu, 1 Oct 2020 04:50:40 +0000 (13:50 +0900)]
bpo-41870: Avoid the test when nargs=0 (GH-22462)
Max Smolens [Wed, 30 Sep 2020 22:05:51 +0000 (18:05 -0400)]
Fix grammar in secrets module documentation (GH-22467)
From `In particularly,` to `In particular,`
Mark Shannon [Tue, 29 Sep 2020 09:09:13 +0000 (10:09 +0100)]
bpo-41670: Remove outdated predict macro invocation. (GH-22026)
Remove PREDICTion of POP_BLOCK from FOR_ITER.
Terry Jan Reedy [Tue, 29 Sep 2020 05:02:44 +0000 (01:02 -0400)]
bpo-41774: Add programming FAQ entry (GH-22402)
In the "Sequences (Tuples/Lists)" section, add
"How do you remove multiple items from a list".
Ram Rachum [Tue, 29 Sep 2020 01:32:10 +0000 (04:32 +0300)]
bpo-41773: Raise exception for non-finite weights in random.choices(). (GH-22441)
Dennis Sweeney [Tue, 29 Sep 2020 00:55:52 +0000 (20:55 -0400)]
bpo-41873: Add vectorcall for float() (GH-22432)
Erlend Egeberg Aasland [Mon, 28 Sep 2020 22:05:04 +0000 (00:05 +0200)]
bpo-41861: Convert _sqlite3 PrepareProtocolType to heap type (GH-22428)
Hai Shi [Mon, 28 Sep 2020 21:41:11 +0000 (05:41 +0800)]
bpo-41842: Add codecs.unregister() function (GH-22360)
Add codecs.unregister() and PyCodec_Unregister() functions
to unregister a codec search function.
Dong-hee Na [Mon, 28 Sep 2020 20:41:23 +0000 (05:41 +0900)]
bpo-41875: Use __builtin_unreachable when possible (GH-22433)
Jan Mazur [Mon, 28 Sep 2020 18:53:33 +0000 (20:53 +0200)]
bpo-40105: ZipFile truncate in append mode with shorter comment (GH-19337)
Dong-hee Na [Mon, 28 Sep 2020 16:16:21 +0000 (01:16 +0900)]
bpo-41870: Use PEP 590 vectorcall to speed up bool() (GH-22427)
* bpo-41870: Use PEP 590 vectorcall to speed up bool()
* bpo-41870: Add NEWS.d
Andre Delfino [Sun, 27 Sep 2020 19:07:04 +0000 (16:07 -0300)]
[doc] Leverage the fact that the actual types can now be indexed for typing (GH-22340)
This shows users that they can use the actual types. Using deprecated types is confusing.
This also prefers colections.abc.Sized instead of the alias typing.Sized. I guess the aliases were created to make it convenient to import all collections related types from the same place.
This should be backported to 3.9.
Automerge-Triggered-By: @gvanrossum
Erlend Egeberg Aasland [Sun, 27 Sep 2020 12:14:50 +0000 (14:14 +0200)]
bpo-41861: Convert _sqlite3 cache and node static types to heap types (GH-22417)
Emmanuel Arias [Sun, 27 Sep 2020 03:43:18 +0000 (00:43 -0300)]
bpo-41858: Clarify line in optparse doc (GH-22407)
The existing line is easily read as being incomplete.
Andre Delfino [Sun, 27 Sep 2020 00:47:25 +0000 (21:47 -0300)]
Revert "Fix all Python Cookbook links (#22205)" (GH-22424)
This commit reverts commit
ac0333e1e117b7f61ed7ef1dbcdb6e515ada603b as the original links are working again and they provide extended features such as comments and alternative versions.
Dong-hee Na [Sat, 26 Sep 2020 10:56:26 +0000 (19:56 +0900)]
bpo-
1635741 : Port _bisect module to multi-phase init (GH-22415)
Victor Stinner [Sat, 26 Sep 2020 10:48:41 +0000 (12:48 +0200)]
bpo-41428: Fix compiler warning in unionobject.c (GH-22416)
Use Py_ssize_t type rather than int, to store lengths in
unionobject.c. Fix the warning:
Objects\unionobject.c(205,1): warning C4244: 'initializing':
conversion from 'Py_ssize_t' to 'int', possible loss of data
Eric Larson [Fri, 25 Sep 2020 18:08:50 +0000 (14:08 -0400)]
Fix logging error message (GH-22410)
Same changes as #22276 squashed to a single commit. Just hoping to get Travis to cooperate by opening a new PR...
Automerge-Triggered-By: @vsajip
Mark Shannon [Fri, 25 Sep 2020 13:04:19 +0000 (14:04 +0100)]
bpo-39934: Account for control blocks in 'except' in compiler. (GH-22395)
* Account for control blocks in 'except' in compiler. Fixes #39934.
Terry Jan Reedy [Thu, 24 Sep 2020 19:30:09 +0000 (15:30 -0400)]
bpo-41775: Make 'IDLE Shell' the shell title (#22399)
'Python Shell' may have contributed to some beginners confusing 'IDLE' with ' Python'.
Victor Stinner [Wed, 23 Sep 2020 21:25:54 +0000 (23:25 +0200)]
bpo-41428: Fix compiler warnings in unionobject.c (GH-22388)
Use Py_ssize_t type rather than int, to store lengths in
unionobject.c. Fix warnings:
Objects\unionobject.c(189,71): warning C4244: '+=':
conversion from 'Py_ssize_t' to 'int', possible loss of data
Objects\unionobject.c(182,1): warning C4244: 'initializing':
conversion from 'Py_ssize_t' to 'int', possible loss of data
Objects\unionobject.c(205,1): warning C4244: 'initializing':
conversion from 'Py_ssize_t' to 'int', possible loss of data
Objects\unionobject.c(437,1): warning C4244: 'initializing':
conversion from 'Py_ssize_t' to 'int', possible loss of data
Victor Stinner [Wed, 23 Sep 2020 21:25:40 +0000 (23:25 +0200)]
bpo-41654: Fix compiler warning in MemoryError_dealloc() (GH-22387)
Fix warning:
Objects\exceptions.c(2324,56): warning C4098:
'MemoryError_dealloc': 'void' function returning a value
Victor Stinner [Wed, 23 Sep 2020 21:21:19 +0000 (23:21 +0200)]
bpo-41833: threading.Thread now uses the target name (GH-22357)
Zackery Spytz [Wed, 23 Sep 2020 18:43:45 +0000 (12:43 -0600)]
bpo-30155: Add macros to get tzinfo from datetime instances (GH-21633)
Add PyDateTime_DATE_GET_TZINFO() and PyDateTime_TIME_GET_TZINFO()
macros.
Terry Jan Reedy [Wed, 23 Sep 2020 15:19:05 +0000 (11:19 -0400)]
bpo-33822: Update IDLE section of What's New 3.8 (GH-22383)
Terry Jan Reedy [Wed, 23 Sep 2020 15:17:26 +0000 (11:17 -0400)]
bpo-41844: Add IDLE section to What's New 3.9 (GN-22382)
Terry Jan Reedy [Wed, 23 Sep 2020 13:44:31 +0000 (09:44 -0400)]
bpo-41841: Prepare IDLE News for 3.10 (GH-22379)
sblondon [Wed, 23 Sep 2020 12:28:58 +0000 (14:28 +0200)]
bpo-37779 : Add information about the overriding behavior of ConfigParser.read (GH-15177)
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
Co-Authored-By: Paul Ganssle <p.ganssle@gmail.com>
Victor Stinner [Wed, 23 Sep 2020 12:08:38 +0000 (14:08 +0200)]
bpo-40170: Use inline _PyType_HasFeature() function (GH-22375)
Use _PyType_HasFeature() in the _io module and in structseq
implementation. Replace PyType_HasFeature() opaque function call with
_PyType_HasFeature() inlined function.
Victor Stinner [Wed, 23 Sep 2020 12:07:16 +0000 (14:07 +0200)]
bpo-40941: Fix stackdepth compiler warnings (GH-22377)
Explicitly cast a difference of two pointers to int:
PyFrameObject.f_stackdepth is an int.
Victor Stinner [Wed, 23 Sep 2020 12:06:55 +0000 (14:06 +0200)]
bpo-40941: Fix fold_tuple_on_constants() compiler warnings (GH-22378)
Add explicit casts to fix compiler warnings in
fold_tuple_on_constants().
The limit of constants per code is now INT_MAX, rather than UINT_MAX.
Victor Stinner [Wed, 23 Sep 2020 12:05:32 +0000 (14:05 +0200)]
bpo-40521: Fix PyUnicode_InternInPlace() (GH-22376)
Fix PyUnicode_InternInPlace() when the INTERNED_STRINGS macro is not
defined (when the EXPERIMENTAL_ISOLATED_SUBINTERPRETERS macro is
defined).
Victor Stinner [Wed, 23 Sep 2020 12:04:57 +0000 (14:04 +0200)]
bpo-41834: Remove _Py_CheckRecursionLimit variable (GH-22359)
Remove the global _Py_CheckRecursionLimit variable: it has been
replaced by ceval.recursion_limit of the PyInterpreterState
structure.
There is no need to keep the variable for the stable ABI, since
Py_EnterRecursiveCall() and Py_LeaveRecursiveCall() were not usable
in Python 3.8 and older: these macros accessed PyThreadState members,
whereas the PyThreadState structure is opaque in the limited C API.
Mohamed Koubaa [Wed, 23 Sep 2020 10:38:16 +0000 (05:38 -0500)]
bpo-
1635741 , unicodedata: add ucd_type parameter to UCD_Check() macro (GH-22328)
Co-authored-by: Victor Stinner <vstinner@python.org>
Mohamed Koubaa [Wed, 23 Sep 2020 10:33:21 +0000 (05:33 -0500)]
bpo-
1635741 : Port _lsprof extension to multi-phase init (PEP 489) (GH-22220)
Raymond Hettinger [Wed, 23 Sep 2020 03:01:12 +0000 (20:01 -0700)]
bpo-41513: Improve order of adding fractional values. Improve variable names. (GH-22368)
Ethan Furman [Tue, 22 Sep 2020 20:00:07 +0000 (13:00 -0700)]
bpo-41816: `StrEnum.__str__` is `str.__str__` (GH-22362)
use `str.__str__` for `StrEnum` so that `str(StrEnum.member)` is the same as directly accessing the string value of the `StrEnum` member
Terry Jan Reedy [Tue, 22 Sep 2020 17:21:58 +0000 (13:21 -0400)]
bpo-35764: Rewrite the IDLE Calltips doc section (GH-22363)
Bas van Beek [Tue, 22 Sep 2020 15:55:34 +0000 (17:55 +0200)]
bpo-41810: Reintroduce `types.EllipsisType`, `.NoneType` & `.NotImplementedType` (GH-22336)
closes issue 41810
Thomas Grainger [Tue, 22 Sep 2020 15:53:03 +0000 (16:53 +0100)]
bpo-41602: raise SIGINT exit code on KeyboardInterrupt from pymain_run_module (#21956)
Closes bpo issue 41602
Ethan Furman [Tue, 22 Sep 2020 15:01:17 +0000 (08:01 -0700)]
bpo-41817: use new StrEnum to ensure all members are strings (GH-22348)
* use new StrEnum to ensure all members are strings
Serhiy Storchaka [Tue, 22 Sep 2020 13:16:46 +0000 (16:16 +0300)]
bpo-40670: More reliable validation of statements in timeit.Timer. (GH-22358)
It now accepts "empty" statements (only whitespaces and comments)
and rejects misindentent statements.
Victor Stinner [Tue, 22 Sep 2020 10:42:28 +0000 (12:42 +0200)]
Py_IS_TYPE() macro uses Py_TYPE() (GH-22341)
Ethan Furman [Tue, 22 Sep 2020 07:05:27 +0000 (00:05 -0700)]
Enum: add extended AutoNumber example (GH-22349)
Terry Jan Reedy [Tue, 22 Sep 2020 05:43:55 +0000 (01:43 -0400)]
bpo-40181: Remove '/' reminder in IDLE calltips. (GH-22350)
The marker was added to the language in 3.8 and
3.7 only gets security patches.
Serhiy Storchaka [Tue, 22 Sep 2020 05:08:54 +0000 (08:08 +0300)]
bpo-41756: Refactor gen_send_ex(). (GH-22330)
Ethan Furman [Tue, 22 Sep 2020 00:23:13 +0000 (17:23 -0700)]
bpo-41816: add `StrEnum` (GH-22337)
`StrEnum` ensures that its members were already strings, or intended to
be strings.
Angelin BOOZ [Mon, 21 Sep 2020 13:11:06 +0000 (15:11 +0200)]
bpo-40084: Enum - dir() includes member attributes (GH-19219)
Mohamed Koubaa [Mon, 21 Sep 2020 12:40:42 +0000 (07:40 -0500)]
bpo-
1635741 : Convert an _lsprof method to argument clinic (GH-22240)
Samuel Marks [Mon, 21 Sep 2020 08:35:17 +0000 (18:35 +1000)]
bpo-41819: Fix compiler warning in init_dump_ascii_wstr() (GH-22332)
Fix the compiler warning:
format specifies type `wint_t` (aka `int`) but the argument has type `unsigned int`
Raymond Hettinger [Mon, 21 Sep 2020 04:47:56 +0000 (21:47 -0700)]
bpo-41513: Add accuracy tests for math.hypot() (GH-22327)
Andre Delfino [Sun, 20 Sep 2020 17:09:50 +0000 (14:09 -0300)]
[doc] Teach 0-args form of super in Programming FAQ (GH-22176)
Berker Peksag [Sun, 20 Sep 2020 06:38:07 +0000 (09:38 +0300)]
bpo-12178: Fix escaping of escapechar in csv.writer() (GH-13710)
Co-authored-by: Itay Elbirt <anotahacou@gmail.com>
Peter McCormick [Sun, 20 Sep 2020 03:40:46 +0000 (23:40 -0400)]
bpo-41815: SQLite: segfault if backup called on closed database (GH-22322)
# [bpo-41815](): SQLite: fix segfault if backup called on closed database
Attempting to backup a closed database will trigger segfault:
```python
import sqlite3
target = sqlite3.connect(':memory:')
source = sqlite3.connect(':memory:')
source.close()
source.backup(target)
```
Mark Dickinson [Sat, 19 Sep 2020 20:38:11 +0000 (21:38 +0100)]
Add missing whatsnew entry for TestCase.assertNoLogs (GH-22317)
idomic [Sat, 19 Sep 2020 19:13:29 +0000 (15:13 -0400)]
bpo-33689: Blank lines in .pth file cause a duplicate sys.path entry (GH-20679)
Ethan Furman [Sat, 19 Sep 2020 18:12:57 +0000 (11:12 -0700)]
bpo-41811: create SortKey members using first given value (GH-22316)
Vladimir Matveev [Sat, 19 Sep 2020 01:38:38 +0000 (18:38 -0700)]
bpo-41756: Introduce PyGen_Send C API (GH-22196)
The new API allows to efficiently send values into native generators
and coroutines avoiding use of StopIteration exceptions to signal
returns.
ceval loop now uses this method instead of the old "private"
_PyGen_Send C API. This translates to 1.6x increased performance
of 'await' calls in micro-benchmarks.
Aside from CPython core improvements, this new API will also allow
Cython to generate more efficient code, benefiting high-performance
IO libraries like uvloop.
Raymond Hettinger [Sat, 19 Sep 2020 00:57:28 +0000 (17:57 -0700)]
Make fractional value accumulation consistent inside and outside the loop. (GH-22315)
Victor Stinner [Fri, 18 Sep 2020 14:23:18 +0000 (16:23 +0200)]
bpo-35293: Travis CI uses "make venv" for the doc (GH-22307)
Doc/requirements.txt becomes the reference for packages and package
versions needed to build the Python documentation.
* Doc/Makefile now uses Doc/requirements.txt
* .travis.yml now uses "make env" of Doc/Makefile
Dong-hee Na [Fri, 18 Sep 2020 09:22:36 +0000 (18:22 +0900)]
bpo-35293: Remove RemovedInSphinx40Warning (GH-22198)
* bpo-35293: Remove RemovedInSphinx40Warning
* Update Misc/NEWS.d/next/Documentation/2020-09-12-17-37-13.bpo-35293._cOwPD.rst
Co-authored-by: Victor Stinner <vstinner@python.org>
* bpo-35293: Apply Victor's review
Co-authored-by: Victor Stinner <vstinner@python.org>
Victor Stinner [Fri, 18 Sep 2020 07:10:15 +0000 (09:10 +0200)]
bpo-41762: Fix usage of productionlist markup in the doc (GH-22281)
Use an unique identifier for the different grammars documented using
the Sphinx productionlist markup.
productionlist markups of the same grammar, like "expressions" or
"compound statements", use the same identifier "python-grammar".
Serhiy Storchaka [Fri, 18 Sep 2020 06:54:42 +0000 (09:54 +0300)]
Remove duplicated words words (GH-22298)
Terry Jan Reedy [Fri, 18 Sep 2020 01:56:58 +0000 (21:56 -0400)]
bpo-41808: Add What's New 3.9 entry missing from master (#22294)
Entry was added by bpo-40939, #21012 and #21039.
Serhiy Storchaka [Thu, 17 Sep 2020 08:49:01 +0000 (11:49 +0300)]
bpo-27032, bpo-37328: Document removing HTMLParser.unescape(). (GH-22288)
Serhiy Storchaka [Thu, 17 Sep 2020 07:35:44 +0000 (10:35 +0300)]
bpo-41662: Fix bugs in binding parameters in sqlite3 (GH-21998)
* When the parameters argument is a list, correctly handle the case
of changing it during iteration.
* When the parameters argument is a custom sequence, no longer
override an exception raised in ``__len__()``.
Serhiy Storchaka [Thu, 17 Sep 2020 07:34:20 +0000 (10:34 +0300)]
bpo-41715: Fix potential catastrofic backtracking in c_analyzer. (GH-22091)
Ethan Furman [Wed, 16 Sep 2020 20:01:00 +0000 (13:01 -0700)]
Enum: make `Flag` and `IntFlag` members iterable (GH-22221)
Ethan Furman [Wed, 16 Sep 2020 19:37:54 +0000 (12:37 -0700)]
_auto_called cleanup (GH-22285)
Pablo Galindo [Wed, 16 Sep 2020 18:42:00 +0000 (19:42 +0100)]
bpo-41746: Add type information to asdl_seq objects (GH-22223)
* Add new capability to the PEG parser to type variable assignments. For instance:
```
| a[asdl_stmt_seq*]=';'.small_stmt+ [';'] NEWLINE { a }
```
* Add new sequence types from the asdl definition (automatically generated)
* Make `asdl_seq` type a generic aliasing pointer type.
* Create a new `asdl_generic_seq` for the generic case using `void*`.
* The old `asdl_seq_GET`/`ast_seq_SET` macros now are typed.
* New `asdl_seq_GET_UNTYPED`/`ast_seq_SET_UNTYPED` macros for dealing with generic sequences.
* Changes all possible `asdl_seq` types to use specific versions everywhere.
Ethan Furman [Wed, 16 Sep 2020 18:37:24 +0000 (11:37 -0700)]
acknowledge Weipeng Hong's contributions (GH-22284)
Ethan Furman [Wed, 16 Sep 2020 17:26:50 +0000 (10:26 -0700)]
bpo-39728: Enum: fix duplicate `ValueError` (GH-22277)
fix default `_missing_` to return `None` instead of raising a `ValueError`
Co-authored-by: Andrey Darascheka <andrei.daraschenka@leverx.com>
Andre Delfino [Wed, 16 Sep 2020 15:06:23 +0000 (12:06 -0300)]
[doc] Minor improvements to is_typeddict (GH-22280)
1. The check is on the type
2. Add link to TypeDict
Ethan Furman [Wed, 16 Sep 2020 14:11:57 +0000 (07:11 -0700)]
bpo-41517: do not allow Enums to be extended (#22271)
fix bug that let Enums be extended via multiple inheritance
Patrick Reader [Wed, 16 Sep 2020 04:58:32 +0000 (05:58 +0100)]
bpo-41792: Add is_typeddict function to typing.py (GH-22254)
Closes issue41792.
Also closes https://github.com/python/typing/issues/751.
Ethan Furman [Tue, 15 Sep 2020 23:28:25 +0000 (16:28 -0700)]
bpo-41789: honor object overrides in Enum classes (GH-22250)
EnumMeta double-checks that `__repr__`, `__str__`, `__format__`, and `__reduce_ex__` are not the same as `object`'s, and replaces them if they are -- even if that replacement was intentionally done in the Enum being constructed. This patch fixes that.
Automerge-Triggered-By: @ethanfurman
Tim Burke [Tue, 15 Sep 2020 23:26:06 +0000 (16:26 -0700)]
Doc: Fix broken manpage link (GH-21937)
sigprocmask is in section 2, not 3.
Ethan Furman [Tue, 15 Sep 2020 22:56:26 +0000 (15:56 -0700)]
bpo-39587: Enum - use correct mixed-in data type (GH-22263)
Batuhan Taskaya [Tue, 15 Sep 2020 21:58:32 +0000 (00:58 +0300)]
bpo-41780: Fix __dir__ of types.GenericAlias (GH-22262)
Automerge-Triggered-By: @gvanrossum
Andre Delfino [Tue, 15 Sep 2020 20:13:26 +0000 (17:13 -0300)]
Fix all Python Cookbook links (#22205)
Ethan Furman [Tue, 15 Sep 2020 19:27:06 +0000 (12:27 -0700)]
minor reformat of enum tests (GH-22259)
Automerge-Triggered-By: @ethanfurman