Miss Islington (bot)
5ec275758d
bpo-42854: Correctly use size_t for _ssl._SSLSocket.read and _ssl._SSLSocket.write (GH-27271) (GH-27308)
...
(cherry picked from commit 83d1430ee5 )
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2021-07-23 16:25:54 +01:00
Miss Islington (bot)
08697ac5d1
bpo-44582: Accelerate mimetypes.init on Windows with a native accelerator (GH-27059)
...
(cherry picked from commit bbf2fb6c7a )
Co-authored-by: Steve Dower <steve.dower@python.org>
2021-07-08 09:13:06 -07:00
Miss Islington (bot)
9f431dd0a5
bpo-44558: Match countOf is/== treatment to c (GH-27007)
...
(cherry picked from commit 6bd3ecfc27 )
Co-authored-by: Rupert Tombs <rupert.tombs@gmail.com>
2021-07-07 06:50:41 -07:00
Miss Islington (bot)
b5cedd0980
bpo-44227: Update bisect docstrings (GH-26548) (GH-26563)
2021-06-06 12:52:42 -07:00
Christian Heimes
666991fc59
bpo-18233: Add internal methods to access peer chain (GH-25467)
...
The internal `_ssl._SSLSocket` object now provides methods to retrieve
the peer cert chain and verified cert chain as a list of Certificate
objects. Certificate objects have methods to convert the cert to a dict,
PEM, or DER (ASN.1).
These are private APIs for now. There is a slim chance to stabilize the
approach and provide a public API for 3.10. Otherwise I'll provide a
stable API in 3.11.
Signed-off-by: Christian Heimes <christian@python.org>
2021-04-26 15:01:40 +02:00
Serhiy Storchaka
172c0f2752
bpo-39529: Deprecate creating new event loop in asyncio.get_event_loop() (GH-23554)
...
asyncio.get_event_loop() emits now a deprecation warning when it creates a new event loop.
In future releases it will became an alias of asyncio.get_running_loop().
2021-04-25 13:40:44 +03:00
Steve Dower
019e9e8168
bpo-43538: Add extra arguments to os.startfile (GH-25538)
2021-04-23 18:03:17 +01:00
Zackery Spytz
7d37b86ad4
bpo-35114: Make ssl.RAND_status() return a bool (GH-20063)
2021-04-23 18:07:37 +02:00
Christian Heimes
7f1305ef9e
bpo-42333: Port _ssl extension to multiphase initialization (PEP 489) (GH-23253)
...
- Introduce sslmodule_slots
- Introduce sslmodulestate
- Use sslmodulestate
- Get rid of PyState_FindModule
- Move new structs and helpers to header file
- Use macros to access state
- Keep a strong ref to socket type
2021-04-17 20:06:38 +02:00
Christian Heimes
b8d0fa035d
bpo-43669: Remove OpenSSL 0.9 to 1.1.0 specific documentation (GH-25453)
2021-04-17 15:49:50 +02:00
Christian Heimes
39258d3595
bpo-43669: PEP 644: Require OpenSSL 1.1.1 or newer (GH-23014)
...
- Remove HAVE_X509_VERIFY_PARAM_SET1_HOST check
- Update hashopenssl to require OpenSSL 1.1.1
- multissltests only OpenSSL > 1.1.0
- ALPN is always supported
- SNI is always supported
- Remove deprecated NPN code. Python wrappers are no-op.
- ECDH is always supported
- Remove OPENSSL_VERSION_1_1 macro
- Remove locking callbacks
- Drop PY_OPENSSL_1_1_API macro
- Drop HAVE_SSL_CTX_CLEAR_OPTIONS macro
- SSL_CTRL_GET_MAX_PROTO_VERSION is always defined now
- security level is always available now
- get_num_tickets is available with TLS 1.3
- X509_V_ERR MISMATCH is always available now
- Always set SSL_MODE_RELEASE_BUFFERS
- X509_V_FLAG_TRUSTED_FIRST is always available
- get_ciphers is always supported
- SSL_CTX_set_keylog_callback is always available
- Update Modules/Setup with static link example
- Mention PEP in whatsnew
- Drop 1.0.2 and 1.1.0 from GHA tests
2021-04-17 11:36:35 +02:00
Steve Dower
04732ca993
bpo-43105: Importlib now resolves relative paths when creating module spec objects from file locations (GH-25121)
2021-04-07 01:02:07 +01:00
Serhiy Storchaka
b1dc1aacf8
bpo-43084: Return bool instead of int from curses.window.enclose() (GH-24398)
2021-04-05 16:50:24 +03:00
Zackery Spytz
afd1265058
bpo-31956: Add start and stop parameters to array.index() (GH-25059)
...
Co-Authored-By: Anders Lorentsen <Phaqui@gmail.com>
2021-04-03 00:28:35 +09:00
Christian Heimes
933dfd7504
bpo-40645: use C implementation of HMAC (GH-24920)
...
- [x] fix tests
- [ ] add test scenarios for old/new code.
Signed-off-by: Christian Heimes <christian@python.org>
2021-03-27 06:55:03 -07:00
Gregory P. Smith
fd053fdd39
bpo-43172: readline now passes its tests when built against libedit (GH-24499)
...
bpo-43172: readline now passes its tests when built against libedit.
Existing irreconcilable API differences remain in readline.get_begidx
and readline.get_endidx behavior based on libreadline vs libedit use.
A note about that has been documented.
2021-02-12 12:04:46 -08:00
Mohamed Koubaa
c8a87addb1
bpo-1635741: Port pyexpat to multi-phase init (PEP 489) (GH-22222)
2021-01-04 15:34:26 +01:00
Serhiy Storchaka
1470edd613
bpo-42681: Fix range checks for color and pair numbers in curses (GH-23874)
2021-01-03 22:51:11 +02:00
Erlend Egeberg Aasland
75bf107c62
bpo-40077: Convert arraymodule to use heap types and establish module state (GH-23124)
2021-01-02 17:38:47 +01:00
Pablo Galindo
dedc2cd5f0
bpo-41625: Do not add os.splice on AIX due to compatibility issues (GH-23608)
2020-12-02 17:57:18 +00:00
Raymond Hettinger
cc061d0e6f
bpo-38200: Add itertools.pairwise() (GH-23549)
2020-11-30 20:42:54 -08:00
Christian Heimes
ea97ebab35
bpo-1635741: Port select module to multiphase init (GH-23409)
2020-11-21 20:29:26 +01: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
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
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
Pablo Galindo
a57b3d30f6
bpo-41625: Expose the splice() system call in the os module (GH-21947)
2020-11-17 00:00:38 +00:00
Christian Heimes
cd9fed6afb
bpo-41001: Add os.eventfd() ( #20930 )
...
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2020-11-13 19:48:52 +01:00
Erlend Egeberg Aasland
01c6aa43dc
bpo-40077: Convert _queuemodule to use heap types (GH-23136)
...
@vstinner / @corona10, would you mind reviewing this?
2020-11-07 11:18:37 -08:00
Petr Viktorin
57aaaa8d2a
Add _PyType_GetModuleByDef (GH-22835)
...
See https://mail.python.org/archives/list/capi-sig@python.org/thread/T3P2QNLNLBRFHWSKYSTPMVEIL2EEKFJU/ for discussion.
https://bugs.python.org/issue42100
2020-11-03 22:27:12 +01:00
Victor Stinner
b62bdf71ea
bpo-42208: Add _locale._get_locale_encoding() (GH-23052)
...
* Add a new _locale._get_locale_encoding() function to get the
current locale encoding.
* Modify locale.getpreferredencoding() to use it.
* Remove the _bootlocale module.
2020-10-31 01:32:11 +01:00
Victor Stinner
37834136d0
bpo-42161: Modules/ uses _PyLong_GetZero() and _PyLong_GetOne() (GH-22998)
...
Use _PyLong_GetZero() and _PyLong_GetOne() in Modules/ directory.
_cursesmodule.c and zoneinfo.c are now built with
Py_BUILD_CORE_MODULE macro defined.
2020-10-27 17:12:53 +01:00
Serhiy Storchaka
8cd1dbae32
bpo-41052: Fix pickling heap types implemented in C with protocols 0 and 1 (GH-22870)
2020-10-24 21:14:23 +03:00
Raymond Hettinger
871934d4cf
bpo-4356: Add key function support to the bisect module (GH-20556)
2020-10-19 22:04:01 -07:00
Serhiy Storchaka
1bcaa81e52
bpo-20184: Convert termios to Argument Clinic. (GH-22693)
2020-10-18 17:54:06 +03:00
Hai Shi
c9f696cb96
bpo-41919, test_codecs: Move codecs.register calls to setUp() (GH-22513)
...
* Move the codecs' (un)register operation to testcases.
* Remove _codecs._forget_codec() and _PyCodec_Forget()
2020-10-16 10:34:15 +02:00
Serhiy Storchaka
9975cc5008
bpo-41985: Add _PyLong_FileDescriptor_Converter and AC converter for "fildes". (GH-22620)
2020-10-09 23:00:45 +03:00
Hai Shi
d332e7b816
bpo-41842: Add codecs.unregister() function (GH-22360)
...
Add codecs.unregister() and PyCodec_Unregister() functions
to unregister a codec search function.
2020-09-28 23:41:11 +02:00
Mohamed Koubaa
83de110dce
bpo-1635741: Port _lsprof extension to multi-phase init (PEP 489) (GH-22220)
2020-09-23 12:33:21 +02:00
Mohamed Koubaa
1b328ea9a7
bpo-1635741: Convert an _lsprof method to argument clinic (GH-22240)
2020-09-21 14:40:42 +02:00
Mohamed Koubaa
52a2df135c
bpo-1635741: Convert _sha256 types to heap types (GH-22134)
...
Convert the _sha256 extension module types to heap types.
2020-09-08 11:16:14 +02:00
Mohamed Koubaa
1baf030a90
bpo-1635741 port _curses_panel to multi-phase init (PEP 489) (GH-21986)
2020-09-07 17:14:25 +02:00
Mohamed Koubaa
1aaa21ff81
bpo-1635741 port zlib module to multi-phase init (GH-21995)
...
Port the zlib extension module to multi-phase initialization (PEP 489).
2020-09-07 10:27:55 +02:00
Mohamed Koubaa
63f102fe07
bpo-1635741: Port _sha1, _sha512, _md5 to multiphase init (GH-21818)
...
Port the _sha1, _sha512, and _md5 extension modules
to multi-phase initialization API (PEP 489).
2020-09-06 12:09:51 +02:00
Hans Petter Jansson
da4e09fff6
bpo-36982: Add support for extended color functions in ncurses 6.1 (GH-17536)
...
Co-authored-by: Jeffrey Kintscher <websurfer@surf2c.net>
2020-08-03 23:51:33 -04:00
Zackery Spytz
bbceef6851
bpo-20183: Convert _locale to the Argument Clinic (GH-14201)
2020-07-15 12:07:34 +03:00
Serhiy Storchaka
b0689ae7f9
bpo-41146: Convert signal.default_int_handler() to Argument Clinic (GH-21197)
2020-07-12 19:15:20 +03:00
Zackery Spytz
b7047e59a4
bpo-20181: Convert the readline module to the Argument Clinic ( #14326 )
2020-07-12 19:01:03 +03:00
Serhiy Storchaka
4c8f09d7ce
bpo-36346: Make using the legacy Unicode C API optional (GH-21437)
...
Add compile time option USE_UNICODE_WCHAR_CACHE. Setting it to 0
makes the interpreter not using the wchar_t cache and the legacy Unicode C API.
2020-07-10 23:26:06 +03:00
Zackery Spytz
9650fe0197
bpo-20179: Convert the _overlapped module to the Argument Clinic (GH-14275)
2020-07-10 20:43:37 +03:00
Serhiy Storchaka
b3dd5cd4a3
bpo-36346: Undeprecate private function _PyUnicode_AsUnicode(). (GH-21336)
2020-07-05 18:53:45 +03:00