@@ -479,6 +479,17 @@ begins. (Contributed by Barry Warsaw in :issue:`31389`.)
479
479
pdb command line now accepts `-m module_name ` as an alternative to
480
480
script file. (Contributed by Mario Corchero in :issue: `32206 `.)
481
481
482
+ py_compile
483
+ ----------
484
+
485
+ :func: `py_compile.compile ` -- and by extension, :mod: `compileall ` -- now
486
+ respects the :envvar: `SOURCE_DATE_EPOCH ` environment variable by
487
+ unconditionally creating ``.pyc `` files for hash-based validation.
488
+ This allows for guaranteeing
489
+ `reproducible builds <https://reproducible-builds.org/ >`_ of ``.pyc ``
490
+ files when they are created eagerly. (Contributed by Bernhard M. Wiedemann
491
+ in :issue: `29708 `.)
492
+
482
493
483
494
re
484
495
--
@@ -544,6 +555,12 @@ Added functions :func:`time.thread_time` and :func:`time.thread_time_ns`
544
555
to get per-thread CPU time measurements.
545
556
(Contributed by Antoine Pitrou in :issue: `32025 `.)
546
557
558
+ unicodedata
559
+ -----------
560
+
561
+ The internal :mod: `unicodedata ` database has been upgraded to use `Unicode 10
562
+ <http://www.unicode.org/versions/Unicode10.0.0/> `_. (Contributed by Benjamin
563
+ Peterson.)
547
564
548
565
unittest
549
566
--------
@@ -565,20 +582,6 @@ children by preventing to get or set any new attribute on the sealed mock.
565
582
The sealing process is performed recursively. (Contributed by Mario Corchero
566
583
in :issue: `30541 `.)
567
584
568
- xmlrpc.server
569
- -------------
570
-
571
- :meth: `register_function ` of :class: `xmlrpc.server.SimpleXMLRPCDispatcher ` and
572
- its subclasses can be used as a decorator. (Contributed by Xiang Zhang in
573
- :issue: `7769 `.)
574
-
575
- unicodedata
576
- -----------
577
-
578
- The internal :mod: `unicodedata ` database has been upgraded to use `Unicode 10
579
- <http://www.unicode.org/versions/Unicode10.0.0/> `_. (Contributed by Benjamin
580
- Peterson.)
581
-
582
585
urllib.parse
583
586
------------
584
587
@@ -624,6 +627,13 @@ methods can now compare text of the current node with ``[. = "text"]``,
624
627
not only text in children. Predicates also allow adding spaces for
625
628
better readability. (Contributed by Stefan Behnel in :issue: `31648 `.)
626
629
630
+ xmlrpc.server
631
+ -------------
632
+
633
+ :meth: `register_function ` of :class: `xmlrpc.server.SimpleXMLRPCDispatcher ` and
634
+ its subclasses can be used as a decorator. (Contributed by Xiang Zhang in
635
+ :issue: `7769 `.)
636
+
627
637
zipapp
628
638
------
629
639
@@ -680,10 +690,16 @@ Optimizations
680
690
Build and C API Changes
681
691
=======================
682
692
693
+ * :mod: `py_compile ` and :mod: `compileall ` now support the
694
+ :envvar: `SOURCE_DATE_EPOCH ` environment variable by unconditionally
695
+ building ``.pyc `` files for hash verification instead of potentially
696
+ timestamp-based ``.pyc `` files. See the notes for the `py_compile `_
697
+ improvement notes for more details.
698
+
683
699
* A full copy of libffi is no longer bundled for use when building the
684
700
:mod: `_ctypes <ctypes> ` module on non-OSX UNIX platforms. An installed copy
685
701
of libffi is now required when building ``_ctypes `` on such platforms.
686
- Contributed by Zachary Ware in :issue: `27979 `.
702
+ ( Contributed by Zachary Ware in :issue: `27979 `.)
687
703
688
704
* The fields :c:member: `name ` and :c:member: `doc ` of structures
689
705
:c:type: `PyMemberDef `, :c:type: `PyGetSetDef `,
0 commit comments