cpython/Doc/howto
Ethan Furman d48760b2f1
gh-108682: [Enum] raise TypeError if super().__new__ called in custom __new__ (GH-108704)
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.
2023-08-31 12:45:12 -07:00
..
annotations.rst gh-107432 Fix incorrect indentation in annotations HOWTO (#107445) 2023-08-05 14:28:28 +03:00
argparse.rst gh-54738: Add argparse i18n howto (#104562) 2023-07-23 11:10:38 +02:00
clinic.rst gh-108494: Argument Clinic: Document how to generate code that uses the limited C API (#108584) 2023-08-30 16:02:48 +02:00
cporting.rst
curses.rst gh-101100: Sphinx warnings: pick the low hanging fruits (GH-107386) 2023-07-29 08:48:10 +03:00
descriptor.rst gh-107298: Fix yet more Sphinx warnings in the C API doc (GH-107345) 2023-07-27 18:44:32 +03:00
enum.rst gh-108682: [Enum] raise TypeError if super().__new__ called in custom __new__ (GH-108704) 2023-08-31 12:45:12 -07:00
functional.rst gh-101100: Fix some broken sphinx references (#107095) 2023-07-23 03:23:44 -06:00
index.rst
instrumentation.rst gh-106948: Docs: Disable links for C standard library functions, OS utility functions and system calls (#107062) 2023-07-23 22:56:56 +02:00
ipaddress.rst
isolating-extensions.rst docs: fix grammar in isolating-extensions.rst (#108037) 2023-08-21 15:41:34 +00:00
logging-cookbook.rst gh-101100: Fix Sphinx warnings in the Logging Cookbook (#108678) 2023-08-30 14:37:45 +03:00
logging.rst gh-103960: Dark mode: invert image brightness (#103983) 2023-05-10 16:46:37 +03:00
logging_flow.png
perf_profiling.rst gh-103295: expose API for writing perf map files (#103546) 2023-05-21 11:12:24 +01:00
pyporting.rst gh-107432 Update Porting Python 2 Code to Python 3 how-to (GH-107434) 2023-08-24 11:28:23 +02:00
regex.rst gh-101100: Fix some broken sphinx references (#107095) 2023-07-23 03:23:44 -06:00
sockets.rst
sorting.rst gh-101100: Fix some broken sphinx references (#107095) 2023-07-23 03:23:44 -06:00
unicode.rst gh-101100: Fix some broken sphinx references (#107095) 2023-07-23 03:23:44 -06:00
urllib2.rst howto/urllib2: remove link to an outdated french translation (GH-104193) 2023-05-22 15:03:29 +02:00