1.. bpo: 40501
2.. date: 2020-05-06-00-41-11
3.. nonce: _61wv_
4.. release date: 2020-05-19
5.. section: Security
6
7:mod:`uuid` no longer uses :mod:`ctypes` to load :file:`libuuid` or
8:file:`rpcrt4.dll` at runtime.
9
10..
11
12.. bpo: 40663
13.. date: 2020-05-17-20-38-12
14.. nonce: u2aiZf
15.. section: Core and Builtins
16
17Correctly generate annotations where parentheses are omitted but required
18(e.g: ``Type[(str, int, *other))]``.
19
20..
21
22.. bpo: 40596
23.. date: 2020-05-11-20-53-52
24.. nonce: dwOH_X
25.. section: Core and Builtins
26
27Fixed :meth:`str.isidentifier` for non-canonicalized strings containing
28non-BMP characters on Windows.
29
30..
31
32.. bpo: 40593
33.. date: 2020-05-11-13-50-52
34.. nonce: yuOXj3
35.. section: Core and Builtins
36
37Improved syntax errors for invalid characters in source code.
38
39..
40
41.. bpo: 40585
42.. date: 2020-05-11-00-19-42
43.. nonce: yusknY
44.. section: Core and Builtins
45
46Fixed a bug when using :func:`codeop.compile_command` that was causing
47exceptions to be swallowed with the new parser. Patch by Pablo Galindo
48
49..
50
51.. bpo: 40566
52.. date: 2020-05-09-01-39-16
53.. nonce: wlcjW_
54.. section: Core and Builtins
55
56Apply :pep:`573` to :mod:`abc`.
57
58..
59
60.. bpo: 40502
61.. date: 2020-05-08-03-25-26
62.. nonce: e-VCyL
63.. section: Core and Builtins
64
65Initialize ``n->n_col_offset``. (Patch by Joannah Nanjekye)
66
67..
68
69.. bpo: 40527
70.. date: 2020-05-06-14-52-35
71.. nonce: gTNKuy
72.. section: Core and Builtins
73
74Fix command line argument parsing: no longer write errors multiple times
75into stderr.
76
77..
78
79.. bpo: 1635741
80.. date: 2020-05-05-21-11-35
81.. nonce: ggwD3C
82.. section: Core and Builtins
83
84Port :mod:`errno` to multiphase initialization (:pep:`489`).
85
86..
87
88.. bpo: 40523
89.. date: 2020-05-05-20-36-15
90.. nonce: hKZVTB
91.. section: Core and Builtins
92
93Add pass-throughs for :func:`hash` and :func:`reversed` to
94:class:`weakref.proxy` objects. Patch by Pablo Galindo.
95
96..
97
98.. bpo: 1635741
99.. date: 2020-05-05-03-36-27
100.. nonce: ARv1YV
101.. section: Core and Builtins
102
103Port :mod:`syslog` to multiphase initialization (:pep:`489`).
104
105..
106
107.. bpo: 40246
108.. date: 2020-05-03-23-28-11
109.. nonce: c1D7x8
110.. section: Core and Builtins
111
112Reporting a specialised error message for invalid string prefixes, which was
113introduced in :issue:`40246`, is being reverted due to backwards
114compatibility concerns for strings that immediately follow a reserved
115keyword without whitespace between them. Constructs like `bg="#d00" if clear
116else"#fca"` were failing to parse, which is not an acceptable breakage on
117such short notice.
118
119..
120
121.. bpo: 40417
122.. date: 2020-05-01-19-04-52
123.. nonce: Sti2lJ
124.. section: Core and Builtins
125
126Fix imp module deprecation warning when PyImport_ReloadModule is called.
127Patch by Robert Rouhani.
128
129..
130
131.. bpo: 40408
132.. date: 2020-05-01-15-36-14
133.. nonce: XzQI59
134.. section: Core and Builtins
135
136Fixed support of nested type variables in GenericAlias (e.g.
137``list[list[T]]``).
138
139..
140
141.. bpo: 1635741
142.. date: 2020-04-30-01-44-42
143.. nonce: GKtjqr
144.. section: Core and Builtins
145
146Port _stat module to multiphase initialization (:pep:`489`).
147
148..
149
150.. bpo: 29587
151.. date: 2020-04-30-00-50-25
152.. nonce: oEwSq
153.. section: Core and Builtins
154
155Enable implicit exception chaining when calling :meth:`generator.throw`.
156
157..
158
159.. bpo: 40328
160.. date: 2020-04-19-22-23-32
161.. nonce: gWJ53f
162.. section: Core and Builtins
163
164Add tools for generating mappings headers for CJKCodecs.
165
166..
167
168.. bpo: 40228
169.. date: 2020-04-08-17-02-35
170.. nonce: bRaaJ-
171.. section: Core and Builtins
172
173Setting frame.f_lineno is now robust w.r.t. changes in the
174source-to-bytecode compiler
175
176..
177
178.. bpo: 38880
179.. date: 2019-11-22-14-34-47
180.. nonce: evcCPa
181.. section: Core and Builtins
182
183Added the ability to list interpreters associated with channel ends in the
184internal subinterpreters module.
185
186..
187
188.. bpo: 37986
189.. date: 2019-11-20-09-50-58
190.. nonce: o0lmA7
191.. section: Core and Builtins
192
193Improve performance of :c:func:`PyLong_FromDouble` for values that fit into
194:c:type:`long`.
195
196..
197
198.. bpo: 40662
199.. date: 2020-05-18-12-56-45
200.. nonce: dfornR
201.. section: Library
202
203Fixed :func:`ast.get_source_segment` for ast nodes that have incomplete
204location information. Patch by Irit Katriel.
205
206..
207
208.. bpo: 40665
209.. date: 2020-05-17-21-56-38
210.. nonce: msB7u5
211.. section: Library
212
213Convert :mod:`bisect` to use Argument Clinic.
214
215..
216
217.. bpo: 40536
218.. date: 2020-05-17-14-00-12
219.. nonce: FCpoRA
220.. section: Library
221
222Added the :func:`~zoneinfo.available_timezones` function to the
223:mod:`zoneinfo` module. Patch by Paul Ganssle.
224
225..
226
227.. bpo: 40645
228.. date: 2020-05-16-19-34-38
229.. nonce: 7ibMt-
230.. section: Library
231
232The :class:`hmac.HMAC` exposes internal implementation details. The
233attributes ``digest_cons``, ``inner``, and ``outer`` are deprecated and will
234be removed in the future.
235
236..
237
238.. bpo: 40645
239.. date: 2020-05-16-17-05-02
240.. nonce: wYSkjT
241.. section: Library
242
243The internal module ``_hashlib`` wraps and exposes OpenSSL's HMAC API. The
244new code will be used in Python 3.10 after the internal implementation
245details of the pure Python HMAC module are no longer part of the public API.
246
247..
248
249.. bpo: 40637
250.. date: 2020-05-15-21-57-10
251.. nonce: lb3Bnp
252.. section: Library
253
254Builtin hash modules can now be disabled or selectively enabled with
255``configure --with-builtin-hashlib-hashes=sha3,blake1`` or
256``--without-builtin-hashlib-hashes``.
257
258..
259
260.. bpo: 37630
261.. date: 2020-05-15-19-53-18
262.. nonce: O5kgAw
263.. section: Library
264
265The :mod:`hashlib` module can now use SHA3 hashes and SHAKE XOF from OpenSSL
266when available.
267
268..
269
270.. bpo: 40479
271.. date: 2020-05-15-17-38-21
272.. nonce: yamSCh
273.. section: Library
274
275The :mod:`hashlib` now compiles with OpenSSL 3.0.0-alpha2.
276
277..
278
279.. bpo: 40257
280.. date: 2020-05-13-23-10-25
281.. nonce: aR4TGp
282.. section: Library
283
284Revert changes to :func:`inspect.getdoc`.
285
286..
287
288.. bpo: 40607
289.. date: 2020-05-13-15-32-13
290.. nonce: uSPFCi
291.. section: Library
292
293When cancelling a task due to timeout, :meth:`asyncio.wait_for` will now
294propagate the exception if an error happens during cancellation. Patch by
295Roman Skurikhin.
296
297..
298
299.. bpo: 40612
300.. date: 2020-05-13-10-23-29
301.. nonce: gOIreM
302.. section: Library
303
304Fix edge cases in SyntaxError formatting. If the offset is <= 0, no caret is
305printed. If the offset is > line length, the caret is printed pointing just
306after the last character.
307
308..
309
310.. bpo: 40597
311.. date: 2020-05-11-19-17-23
312.. nonce: 4SGfgm
313.. section: Library
314
315If text content lines are longer than policy.max_line_length, always use a
316content-encoding to make sure they are wrapped.
317
318..
319
320.. bpo: 40571
321.. date: 2020-05-09-15-38-25
322.. nonce: kOXZGC
323.. section: Library
324
325Added functools.cache() as a simpler, more discoverable way to access the
326unbounded cache variant of lru_cache(maxsize=None).
327
328..
329
330.. bpo: 40503
331.. date: 2020-05-08-15-48-39
332.. nonce: elZyxc
333.. section: Library
334
335:pep:`615`, the :mod:`zoneinfo` module. Adds support for the IANA time zone
336database.
337
338..
339
340.. bpo: 40397
341.. date: 2020-05-07-21-22-04
342.. nonce: PVWFAn
343.. section: Library
344
345Removed attributes ``__args__`` and ``__parameters__`` from special generic
346aliases like ``typing.List`` (not subscripted).
347
348..
349
350.. bpo: 40549
351.. date: 2020-05-07-20-11-51
352.. nonce: 6FiRSV
353.. section: Library
354
355Convert posixmodule.c ("posix" or "nt" module) to the multiphase
356initialization (PEP 489).
357
358..
359
360.. bpo: 31033
361.. date: 2020-05-07-06-41-20
362.. nonce: waCj3n
363.. section: Library
364
365Add a ``msg`` argument to :meth:`Future.cancel` and :meth:`Task.cancel`.
366
367..
368
369.. bpo: 40541
370.. date: 2020-05-06-15-36-47
371.. nonce: LlYghL
372.. section: Library
373
374Added an optional *counts* parameter to random.sample().
375
376..
377
378.. bpo: 40515
379.. date: 2020-05-06-13-51-19
380.. nonce: TUCvYB
381.. section: Library
382
383The :mod:`ssl` and :mod:`hashlib` modules now actively check that OpenSSL is
384build with thread support. Python 3.7.0 made thread support mandatory and no
385longer works safely with a no-thread builds.
386
387..
388
389.. bpo: 31033
390.. date: 2020-05-06-02-33-00
391.. nonce: aX12pw
392.. section: Library
393
394When a :class:`asyncio.Task` is cancelled, the exception traceback now
395chains all the way back to where the task was first interrupted.
396
397..
398
399.. bpo: 40504
400.. date: 2020-05-05-17-12-47
401.. nonce: EX6wPn
402.. section: Library
403
404:func:`functools.lru_cache` objects can now be the targets of weakrefs.
405
406..
407
408.. bpo: 40559
409.. date: 2020-05-05-08-12-51
410.. nonce: 112wwa
411.. section: Library
412
413Fix possible memory leak in the C implementation of :class:`asyncio.Task`.
414
415..
416
417.. bpo: 40480
418.. date: 2020-05-04-21-21-43
419.. nonce: mjldWa
420.. section: Library
421
422``fnmatch.fnmatch()`` could take exponential time in the presence of
423multiple ``*`` pattern characters.  This was repaired by generating more
424elaborate regular expressions to avoid futile backtracking.
425
426..
427
428.. bpo: 40495
429.. date: 2020-05-04-11-20-49
430.. nonce: TyTc2O
431.. section: Library
432
433:mod:`compileall` is now able to use hardlinks to prevent duplicates in a
434case when ``.pyc`` files for different optimization levels have the same
435content.
436
437..
438
439.. bpo: 40457
440.. date: 2020-05-02-17-17-37
441.. nonce: EXReI1
442.. section: Library
443
444The ssl module now support OpenSSL builds without TLS 1.0 and 1.1 methods.
445
446..
447
448.. bpo: 40355
449.. date: 2020-05-02-14-24-48
450.. nonce: xTujaB
451.. section: Library
452
453Improve error reporting in :func:`ast.literal_eval` in the presence of
454malformed :class:`ast.Dict` nodes instead of silently ignoring any
455non-conforming elements. Patch by Curtis Bucher.
456
457..
458
459.. bpo: 40465
460.. date: 2020-05-02-12-00-28
461.. nonce: qfCjOD
462.. section: Library
463
464Deprecated the optional *random* argument to *random.shuffle()*.
465
466..
467
468.. bpo: 40459
469.. date: 2020-05-02-04-29-31
470.. nonce: fSAYVD
471.. section: Library
472
473:func:`platform.win32_ver` now produces correct *ptype* strings instead of
474empty strings.
475
476..
477
478.. bpo: 39435
479.. date: 2020-05-01-23-24-25
480.. nonce: mgb6ib
481.. section: Library
482
483The first argument of :func:`pickle.loads` is now positional-only.
484
485..
486
487.. bpo: 39305
488.. date: 2020-05-01-00-22-58
489.. nonce: Cuwu_H
490.. section: Library
491
492Update :mod:`nntplib` to merge :class:`nntplib.NNTP` and
493:class:`nntplib._NNTPBase`. Patch by Dong-hee Na.
494
495..
496
497.. bpo: 32494
498.. date: 2020-04-30-22-25-08
499.. nonce: 1xaU5l
500.. section: Library
501
502Update :mod:`dbm.gnu` to use gdbm_count if possible when calling
503:func:`len`. Patch by Dong-hee Na.
504
505..
506
507.. bpo: 40453
508.. date: 2020-04-30-22-04-58
509.. nonce: ggz7sl
510.. section: Library
511
512Add ``isolated=True`` keyword-only parameter to
513``_xxsubinterpreters.create()``. An isolated subinterpreter cannot spawn
514threads, spawn a child process or call ``os.fork()``.
515
516..
517
518.. bpo: 40286
519.. date: 2020-04-29-18-02-16
520.. nonce: txbQNx
521.. section: Library
522
523Remove ``_random.Random.randbytes()``: the C implementation of
524``randbytes()``. Implement the method in Python to ease subclassing:
525``randbytes()`` now directly reuses ``getrandbits()``.
526
527..
528
529.. bpo: 40394
530.. date: 2020-04-28-18-59-48
531.. nonce: Yi5uuM
532.. section: Library
533
534Added default arguments to
535:meth:`difflib.SequenceMatcher.find_longest_match()`.
536
537..
538
539.. bpo: 39995
540.. date: 2020-04-28-18-25-27
541.. nonce: WmA3Gk
542.. section: Library
543
544Fix a race condition in concurrent.futures._ThreadWakeup: access to
545_ThreadWakeup is now protected with the shutdown lock.
546
547..
548
549.. bpo: 30966
550.. date: 2020-04-27-20-27-39
551.. nonce: Xmtlqu
552.. section: Library
553
554``Process.shutdown(wait=True)`` of :mod:`concurrent.futures` now closes
555explicitly the result queue.
556
557..
558
559.. bpo: 30966
560.. date: 2020-04-27-17-19-09
561.. nonce: _5lDx-
562.. section: Library
563
564Add a new :meth:`~multiprocessing.SimpleQueue.close` method to the
565:class:`~multiprocessing.SimpleQueue` class to explicitly close the queue.
566
567..
568
569.. bpo: 39966
570.. date: 2020-04-27-14-48-43
571.. nonce: N5yXUe
572.. section: Library
573
574Revert bpo-25597. :class:`unittest.mock.MagicMock` with wraps' set uses
575default return values for magic methods.
576
577..
578
579.. bpo: 39791
580.. date: 2020-04-27-00-51-40
581.. nonce: wv8Dxn
582.. section: Library
583
584Added ``files()`` function to importlib.resources with support for
585subdirectories in package data, matching backport in importlib_resources
5861.5.
587
588..
589
590.. bpo: 40375
591.. date: 2020-04-25-23-14-11
592.. nonce: 5GuK2A
593.. section: Library
594
595:meth:`imaplib.IMAP4.unselect` is added. Patch by Dong-hee Na.
596
597..
598
599.. bpo: 40389
600.. date: 2020-04-25-20-00-58
601.. nonce: FPA6f0
602.. section: Library
603
604``repr()`` now returns ``typing.Optional[T]`` when called for
605``typing.Union`` of two types, one of which is ``NoneType``.
606
607..
608
609.. bpo: 40291
610.. date: 2020-04-14-22-31-27
611.. nonce: _O8hXn
612.. section: Library
613
614Add support for CAN_J1939 sockets (available on Linux 5.4+)
615
616..
617
618.. bpo: 40273
619.. date: 2020-04-14-09-54-35
620.. nonce: IN73Ks
621.. section: Library
622
623:class:`types.MappingProxyType` is now reversible.
624
625..
626
627.. bpo: 39075
628.. date: 2020-04-07-23-44-06
629.. nonce: hgck3j
630.. section: Library
631
632The repr for :class:`types.SimpleNamespace` is now insertion ordered rather
633than alphabetical.
634
635..
636
637.. bpo: 40192
638.. date: 2020-04-05-04-16-14
639.. nonce: nk8uRJ
640.. section: Library
641
642On AIX, :func:`~time.thread_time` is now implemented with
643``thread_cputime()`` which has nanosecond resolution, rather than
644``clock_gettime(CLOCK_THREAD_CPUTIME_ID)`` which has a resolution of 10 ms.
645Patch by Batuhan Taskaya.
646
647..
648
649.. bpo: 40025
650.. date: 2020-03-21-05-26-38
651.. nonce: DTLtyq
652.. section: Library
653
654Raise TypeError when _generate_next_value_ is defined after members. Patch
655by Ethan Onstott.
656
657..
658
659.. bpo: 39058
660.. date: 2019-12-15-19-17-10
661.. nonce: 7ci-vd
662.. section: Library
663
664In the argparse module, the repr for Namespace() and other argument holders
665now displayed in the order attributes were added.  Formerly, it displayed in
666alphabetical order even though argument order is preserved the user visible
667parts of the module.
668
669..
670
671.. bpo: 24416
672.. date: 2019-09-01-15-17-49
673.. nonce: G8Ww1U
674.. section: Library
675
676The ``isocalendar()`` methods of :class:`datetime.date` and
677:class:`datetime.datetime` now return a :term:`named tuple` instead of a
678:class:`tuple`.
679
680..
681
682.. bpo: 34790
683.. date: 2020-05-08-20-18-55
684.. nonce: t6kW_1
685.. section: Documentation
686
687Add version of removal for explicit passing of coros to `asyncio.wait()`'s
688documentation
689
690..
691
692.. bpo: 40561
693.. date: 2020-05-08-08-39-40
694.. nonce: ZMB_2i
695.. section: Documentation
696
697Provide docstrings for webbrowser open functions.
698
699..
700
701.. bpo: 40499
702.. date: 2020-05-04-14-20-02
703.. nonce: tjLSo8
704.. section: Documentation
705
706Mention that :func:`asyncio.wait` requires a non-empty set of awaitables.
707
708..
709
710.. bpo: 39705
711.. date: 2020-03-14-18-37-06
712.. nonce: nQVqig
713.. section: Documentation
714
715Tutorial example for sorted() in the Loop Techniques section is given a
716better explanation. Also a new example is included to explain sorted()'s
717basic behavior.
718
719..
720
721.. bpo: 39435
722.. date: 2020-01-24-05-42-57
723.. nonce: EFcdFU
724.. section: Documentation
725
726Fix an incorrect signature for :func:`pickle.loads` in the docs
727
728..
729
730.. bpo: 40055
731.. date: 2020-05-15-01-21-44
732.. nonce: Xp4aP9
733.. section: Tests
734
735distutils.tests now saves/restores warnings filters to leave them unchanged.
736Importing tests imports docutils which imports pkg_resources which adds a
737warnings filter.
738
739..
740
741.. bpo: 40436
742.. date: 2020-04-29-16-08-24
743.. nonce: gDMnYl
744.. section: Tests
745
746test_gdb and test.pythoninfo now check gdb command exit code.
747
748..
749
750.. bpo: 40653
751.. date: 2020-05-17-03-33-00
752.. nonce: WI8UGn
753.. section: Build
754
755Move _dirnameW out of HAVE_SYMLINK to fix a potential compiling issue.
756
757..
758
759.. bpo: 40514
760.. date: 2020-05-05-15-39-11
761.. nonce: bZZmuS
762.. section: Build
763
764Add ``--with-experimental-isolated-subinterpreters`` build option to
765``configure``: better isolate subinterpreters, experimental build mode.
766
767..
768
769.. bpo: 40650
770.. date: 2020-05-17-00-08-13
771.. nonce: 4euMtU
772.. section: Windows
773
774Include winsock2.h in pytime.c for timeval.
775
776..
777
778.. bpo: 40458
779.. date: 2020-05-01-20-57-57
780.. nonce: Eb0ueI
781.. section: Windows
782
783Increase reserved stack space to prevent overflow crash on Windows.
784
785..
786
787.. bpo: 39148
788.. date: 2020-03-23-19-07-55
789.. nonce: W1YJEb
790.. section: Windows
791
792Add IPv6 support to :mod:`asyncio` datagram endpoints in ProactorEventLoop.
793Change the raised exception for unknown address families to ValueError as
794it's not coming from Windows API.
795
796..
797
798.. bpo: 34956
799.. date: 2020-05-18-02-43-11
800.. nonce: 35IcGF
801.. section: macOS
802
803When building Python on macOS from source, ``_tkinter`` now links with
804non-system Tcl and Tk frameworks if they are installed in
805``/Library/Frameworks``, as had been the case on older releases
806of macOS. If a macOS SDK is explicitly configured, by using
807``--enable-universalsdk=`` or ``-isysroot``, only the SDK itself is
808searched. The default behavior can still be overridden with
809``--with-tcltk-includes`` and ``--with-tcltk-libs``.
810
811..
812
813.. bpo: 35569
814.. date: 2020-04-15-00-02-47
815.. nonce: 02_1MV
816.. section: macOS
817
818Expose RFC 3542 IPv6 socket options.
819
820..
821
822.. bpo: 40479
823.. date: 2020-05-15-17-48-25
824.. nonce: B1gBl-
825.. section: Tools/Demos
826
827Update multissltest helper to test with latest OpenSSL 1.0.2, 1.1.0, 1.1.1,
828and 3.0.0-alpha.
829
830..
831
832.. bpo: 40431
833.. date: 2020-04-29-01-32-17
834.. nonce: B_aEZ0
835.. section: Tools/Demos
836
837Fix a syntax typo in ``turtledemo`` that now raises a ``SyntaxError``.
838
839..
840
841.. bpo: 40163
842.. date: 2020-04-03-08-32-31
843.. nonce: lX8K4B
844.. section: Tools/Demos
845
846Fix multissltest tool. OpenSSL has changed download URL for old releases.
847The multissltest tool now tries to download from current and old download
848URLs.
849
850..
851
852.. bpo: 39465
853.. date: 2020-05-14-00-36-19
854.. nonce: 3a5g-X
855.. section: C API
856
857Remove the ``_PyUnicode_ClearStaticStrings()`` function from the C API.
858
859..
860
861.. bpo: 38787
862.. date: 2020-05-10-16-39-08
863.. nonce: XzQ59O
864.. section: C API
865
866Add PyCFunction_CheckExact() macro for exact type checks now that we allow
867subtypes of PyCFunction, as well as PyCMethod_CheckExact() and
868PyCMethod_Check() for the new PyCMethod subtype.
869
870..
871
872.. bpo: 40545
873.. date: 2020-05-07-11-41-13
874.. nonce: 51DzF1
875.. section: C API
876
877Declare ``_PyErr_GetTopmostException()`` with ``PyAPI_FUNC()`` to properly
878export the function in the C API. The function remains private (``_Py``)
879prefix.
880
881..
882
883.. bpo: 40412
884.. date: 2020-05-01-17-28-04
885.. nonce: dE0D8N
886.. section: C API
887
888Nullify inittab_copy during finalization, preventing future interpreter
889initializations in an embedded situation from crashing. Patch by Gregory
890Szorc.
891
892..
893
894.. bpo: 40429
895.. date: 2020-04-29-01-39-41
896.. nonce: VQfvta
897.. section: C API
898
899The :c:func:`PyThreadState_GetFrame` function now returns a strong reference
900to the frame.
901
902..
903
904.. bpo: 40428
905.. date: 2020-04-28-23-17-27
906.. nonce: rmtpru
907.. section: C API
908
909Remove the following functions from the C API. Call :c:func:`PyGC_Collect`
910explicitly to free all free lists.
911
912* ``PyAsyncGen_ClearFreeLists()``
913* ``PyContext_ClearFreeList()``
914* ``PyDict_ClearFreeList()``
915* ``PyFloat_ClearFreeList()``
916* ``PyFrame_ClearFreeList()``
917* ``PyList_ClearFreeList()``
918* ``PySet_ClearFreeList()``
919* ``PyTuple_ClearFreeList()``
920
921..
922
923.. bpo: 40421
924.. date: 2020-04-28-19-29-36
925.. nonce: 3uIIaB
926.. section: C API
927
928New :c:func:`PyFrame_GetBack` function: get the frame next outer frame.
929
930..
931
932.. bpo: 40421
933.. date: 2020-04-28-15-47-58
934.. nonce: ZIzOV0
935.. section: C API
936
937New :c:func:`PyFrame_GetCode` function: return a borrowed reference to the
938frame code.
939
940..
941
942.. bpo: 40217
943.. date: 2020-04-27-14-00-38
944.. nonce: sgn6c8
945.. section: C API
946
947Ensure that instances of types created with
948:c:func:`PyType_FromSpecWithBases` will visit its class object when
949traversing references in the garbage collector (implemented as an extension
950of the provided :c:member:`~PyTypeObject.tp_traverse`). Patch by Pablo
951Galindo.
952
953..
954
955.. bpo: 38787
956.. date: 2020-01-22-12-38-59
957.. nonce: HUH6hd
958.. section: C API
959
960Module C state is now accessible from C-defined heap type methods
961(:pep:`573`). Patch by Marcel Plch and Petr Viktorin.
962