Serhiy Storchaka
686c203cd4
bpo-42423: Accept single base class in PyType_FromModuleAndSpec() (GH-23441)
2020-11-22 13:25:02 +02:00
Christian Heimes
ea97ebab35
bpo-1635741: Port select module to multiphase init (GH-23409)
2020-11-21 20:29:26 +01:00
Christian Heimes
035deee265
bpo-1635741: Port _posixsubprocess module to multiphase init (GH-23406)
2020-11-21 20:28:14 +01:00
David CARLIER
0e62efc51e
bpo-42232: mmap module add Darwin specific madvise options. (GH-23076)
2020-11-21 03:39:56 -08:00
Devin Jeanpierre
31729366e2
bpo-40791: Make compare_digest more constant-time. (GH-20444)
...
* bpo-40791: Make compare_digest more constant-time.
The existing volatile `left`/`right` pointers guarantee that the reads will all occur, but does not guarantee that they will be _used_. So a compiler can still short-circuit the loop, saving e.g. the overhead of doing the xors and especially the overhead of the data dependency between `result` and the reads. That would change performance depending on where the first unequal byte occurs. This change removes that optimization.
(This is change #1 from https://bugs.python.org/issue40791 .)
2020-11-21 00:55:23 -08:00
Erlend Egeberg Aasland
a6109ef68d
bpo-1635741: Convert _sre types to heap types and establish module state (PEP 384) (GH-23393)
2020-11-20 21:36:23 +09:00
Mohamed Koubaa
2db8e35489
bpo-1635741: Enhance _datetime error handling (GH-23139)
2020-11-20 11:39:40 +01:00
Christian Heimes
5c36da78d7
bpo-42333: Port _ssl extension module to heap types (GH-23392)
...
All types in _ssl module are now heap types.
2020-11-20 09:40:12 +01:00
Christian Heimes
03c8ddd9e9
bpo-42413: socket.timeout is now an alias of TimeoutError (GH-23413)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-20 00:26:07 -08:00
Christian Heimes
b437aa83f9
bpo-1635741: Port _posixshmem extension module to multiphase initialization (GH-23404)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-19 07:20:42 -08:00
Dong-hee Na
588c7c9f08
bpo-1635741: Fix _struct for build bot error (GH-23402)
...
Automerge-Triggered-By: GH:tiran
2020-11-19 06:14:34 -08:00
Christian Heimes
646d7fdefb
bpo-1635741: Port gc module to multiphase initialization (GH-23377)
...
Signed-off-by: Christian Heimes <christian@python.org >
Automerge-Triggered-By: GH:tiran
2020-11-19 06:08:34 -08:00
Christian Heimes
cfeb5437a8
bpo-1635741: Port _struct to multiphase initialization (GH-23398)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-19 22:36:23 +09:00
Christian Heimes
bf9d70a1a5
bpo-1635741: Port spwd to multiphase initialization (GH-23390)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-19 10:54:03 +01:00
Christian Heimes
3094dd5fb5
bpo-1635741: Port _queue to multiphase initialization (GH-23376)
...
Signed-off-by: Christian Heimes <christian@python.org >
Automerge-Triggered-By: GH:tiran
2020-11-19 00:24:37 -08:00
Christian Heimes
fa2eee975d
bpo-1635741: Port grp and pwd to multiphase initialization (GH-23360)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-18 23:47:32 -08:00
Christian Heimes
cc0cd43c0f
bpo-1635741: Port _random to multiphase initialization (GH-23359)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-18 23:46:29 -08:00
David CARLIER
13b865f0e1
bpo-42375: subprocess DragonFlyBSD build update. (GH-23320)
...
Same as FreeBSD, file descriptors in /dev/fd id from 0 to 63.
2020-11-18 23:24:15 -08:00
Victor Stinner
6223071421
bpo-1635741: Convert _imp to multi-phase init (GH-23378)
...
Convert the _imp extension module to the multi-phase initialization
API (PEP 489).
* Add _PyImport_BootstrapImp() which fix a bootstrap issue: import
the _imp module before importlib is initialized.
* Add create_builtin() sub-function, used by _imp_create_builtin().
* Initialize PyInterpreterState.import_func earlier, in
pycore_init_builtins().
* Remove references to _PyImport_Cleanup(). This function has been
renamed to finalize_modules() and moved to pylifecycle.c.
2020-11-18 23:18:29 +01:00
Victor Stinner
0e2ac21dd4
bpo-39573: Convert Py_TYPE() and Py_SIZE() back to macros (GH-23366)
...
This change partically reverts
commit ad3252bad9
and the commit fe2978b3b9 .
Many third party C extension modules rely on the ability of using
Py_TYPE() to set an object type: "Py_TYPE(obj) = type;" or to set an
object type using: "Py_SIZE(obj) = size;".
2020-11-18 18:48:06 +01:00
Christian Heimes
46f59ebd01
bpo-1635741: Port _hashlib to multiphase initialization (GH-23358)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-18 16:12:13 +01:00
Christian Heimes
c7011012fa
bpo-1635741: Port symtable module to multiphase initialization (GH-23361)
...
Signed-off-by: Christian Heimes <christian@python.org >
2020-11-18 07:03:51 -08:00
Victor Stinner
7f9b25a21a
bpo-41713: Port _signal module to multi-phase init (GH-23355)
...
Port the _signal extension module to the multi-phase initialization
API (PEP 489).
Co-Authored-By: Mohamed Koubaa <koubaa.m@gmail.com >
2020-11-17 23:28:25 +01:00
Victor Stinner
29aa624047
bpo-41686: Move _Py_RestoreSignals() to signalmodule.c (GH-23353)
2020-11-17 22:55:30 +01:00
Pablo Galindo
2a9eddf070
bpo-41625: Add a guard for Linux for splice() constants in the os module (GH-23350)
2020-11-17 11:57:49 -08:00