cpython/Doc/howto
Ethan Furman effa2ecdcf
[3.11] gh-108682: [Enum] raise TypeError if super().__new__ called in custom __new__ (GH-108704) (GH-108739)
When overriding the `__new__` method of an enum, the underlying data type should be created directly; i.e. .

    member = object.__new__(cls)
    member = int.__new__(cls, value)
    member = str.__new__(cls, value)

Calling `super().__new__()` finds the lookup version of `Enum.__new__`, and will now raise an exception when detected.

(cherry picked from commit d48760b2f1)
2023-09-07 18:57:48 -07:00
..
annotations.rst [3.11] gh-107432 Fix incorrect indentation in annotations HOWTO (GH-107445) (#107655) 2023-08-05 14:40:44 +03:00
argparse.rst [3.11] gh-54738: Add argparse i18n howto (GH-104562) (#107101) 2023-07-23 11:23:51 +02:00
clinic.rst [3.11] Docs: clean up Argument Clinic howto's (#107797) (#107800) 2023-08-09 07:54:32 +00:00
cporting.rst [3.11] gh-91838: Use HTTPS links in docs for resources which redirect to HTTPS (GH-95527) (GH-95643) 2022-08-04 11:45:03 +03:00
curses.rst [3.11] gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) (GH-107418) 2023-07-29 09:17:20 +03:00
descriptor.rst [3.11] gh-107298: Fix yet more Sphinx warnings in the C API doc (GH-107345) (GH-107381) 2023-07-28 08:31:49 +00:00
enum.rst [3.11] gh-108682: [Enum] raise TypeError if super().__new__ called in custom __new__ (GH-108704) (GH-108739) 2023-09-07 18:57:48 -07:00
functional.rst [3.11] gh-101100: Fix some broken sphinx references (GH-107095). (#107120) 2023-07-23 05:56:09 -06:00
index.rst Docs: Convert PEP 630 (Isolating Extension Modules) to a HOWTO (GH-94489) (GH-94566) 2022-07-05 17:20:03 +02:00
instrumentation.rst [3.11] gh-106948: Docs: Disable links for C standard library functions, OS utility functions and system calls (#107062) (#107157) 2023-07-23 23:49:48 +02:00
ipaddress.rst bpo-44740: Make minor edits to lowercasing "internet" and "web". (GH-27385) 2021-07-27 10:57:52 +02:00
isolating-extensions.rst [3.11] gh-107091: Fix some uses of :c:member: role (GH-107129) (GH-107311) 2023-07-26 19:35:16 +00:00
logging-cookbook.rst [3.11] gh-101100: Fix Sphinx warnings in the Logging Cookbook (GH-108678) (#108681) 2023-08-30 15:19:44 +03:00
logging.rst [3.11] gh-103960: Dark mode: invert image brightness (GH-103983) (#104358) 2023-05-10 14:19:38 +00:00
logging_flow.png Optimize images by IMGbot (GH-21348) 2022-02-04 15:49:43 +09:00
pyporting.rst [3.11] gh-107432 Update Porting Python 2 Code to Python 3 how-to (GH-107434) (#108410) 2023-08-24 13:26:56 +02:00
regex.rst [3.11] gh-101100: Fix some broken sphinx references (GH-107095). (#107120) 2023-07-23 05:56:09 -06:00
sockets.rst Doc: Update references and examples of old, unsupported OSes and uarches (GH-92791) (GH-93638) 2022-06-09 16:15:33 +02:00
sorting.rst [3.11] gh-101100: Fix some broken sphinx references (GH-107095). (#107120) 2023-07-23 05:56:09 -06:00
unicode.rst [3.11] gh-101100: Fix some broken sphinx references (GH-107095). (#107120) 2023-07-23 05:56:09 -06:00
urllib2.rst [3.11] howto/urllib2: remove link to an outdated french translation (GH-104193) (GH-104746) 2023-05-22 19:57:05 +02:00