summaryrefslogtreecommitdiffstats
path: root/Modules/clinic
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). ↵Serhiy Storchaka2017-10-031-9/+9
| | | | | (GH-3864). (#3873) (cherry picked from commit 929b40a601db868530d6beaafb3256822103a7fb)
* [3.6] bpo-30622: Change NPN detection: (GH-2079) (#3314)Christian Heimes2017-09-051-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Change NPN detection: Version breakdown, support disabled (pre-patch/post-patch): - pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will be defined -> True/False Version breakdown support enabled (pre-patch/post-patch): - pre-1.0.1: OPENSSL_NPN_NEGOTIATED will not be defined -> False/False - 1.0.1 and 1.0.2: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True - 1.1.0+: OPENSSL_NPN_NEGOTIATED will be defined and OPENSSL_NO_NEXTPROTONEG will not be defined -> True/True * Refine NPN guard: - If NPN is disabled, but ALPN is available we need our callback - Make clinic's ssl behave the same way This created a working ssl module for me, with NPN disabled and ALPN enabled for OpenSSL 1.1.0f. Concerns to address: The initial commit for NPN support into OpenSSL [1], had the OPENSSL_NPN_* variables defined inside the OPENSSL_NO_NEXTPROTONEG guard. The question is if that ever made it into a release. This would need an ugly hack, something like: GH-if defined(OPENSSL_NO_NEXTPROTONEG) && \ !defined(OPENSSL_NPN_NEGOTIATED) GH- define OPENSSL_NPN_UNSUPPORTED 0 GH- define OPENSSL_NPN_NEGOTIATED 1 GH- define OPENSSL_NPN_NO_OVERLAP 2 GH-endif [1] https://github.com/openssl/openssl/commit/68b33cc5c7 (cherry picked from commit b2d096b)
* bpo-31185: Fixed miscellaneous errors in asyncio speedup module. (#3076) (#3269)Serhiy Storchaka2017-09-031-4/+4
| | | (cherry picked from commit bca4939d806170c3ca5d05f23710d11a8f1669cf)
* [3.6] Regenerate Argument Clinic code for bpo-19180. (GH-2073). (#2077)Serhiy Storchaka2017-06-101-1/+1
| | | | (cherry picked from commit 5f31d5cf6efa8c304d352e34f9f2a1ed0074298e)
* [3.6] bpo-19180: Updated references for RFC 1750, RFC 3280 & RFC 4366Nick Coghlan2017-06-091-1/+1
| | | | | | * RFC 1750 has been been obsoleted by RFC 4086. * RFC 3280 has been obsoleted by RFC 5280. * RFC 4366 has been obsoleted by RFC 6066. (cherry picked from commit 63c2c8ac17750ba2be2cfc4e339cae1f4edee54f)
* bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. (#406)Yury Selivanov2017-03-031-3/+3
|
* Issue #29092: Sync os.stat's doc and docstring on path type.Xiang Zhang2017-01-221-2/+3
|\
* \ Issue #28427: old keys should not remove new values fromAntoine Pitrou2016-12-271-1/+31
|\ \ | |/ | | | | WeakValueDictionary when collecting from another thread.
| * Issue #28427: old keys should not remove new values fromAntoine Pitrou2016-12-271-1/+30
| | | | | | | | WeakValueDictionary when collecting from another thread.
* | Issue #29004: Merge crc_hqx() doc from 3.5Martin Panter2016-12-241-2/+2
|\ \ | |/
| * Issue #29004: Document binascii.crc_hqx() implements CRC-CCITTMartin Panter2016-12-241-2/+2
| |
* | Issue #28585: Restored docstring of os._isdir().Serhiy Storchaka2016-11-081-2/+3
|\ \ | |/
| * Issue #28585: Restored docstring of os._isdir().Serhiy Storchaka2016-11-081-2/+3
| |
* | Issue #28544: Implement asyncio.Task in C.Yury Selivanov2016-10-281-0/+520
| | | | | | | | | | | | | | | | This implementation provides additional 10-20% speed boost for asyncio programs. The patch also fixes _asynciomodule.c to use Arguments Clinic, and makes '_schedule_callbacks' an overridable method (as it was in 3.5).
* | Issue #28156: Export os.getpid() conditionallyBerker Peksag2016-09-151-1/+9
| | | | | | | | Patch by Ed Schouten.
* | Issue #27810: Rerun Argument Clinic on all modulesVictor Stinner2016-09-1020-390/+391
| |
* | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-082-32/+90
| |
* | clinic: PY_LONG_LONG -> long longBenjamin Peterson2016-09-081-49/+1
| |
* | Issue #27959: Adds oem encoding, alias ansi to mbcs, move aliasmbcs to codec ↵Steve Dower2016-09-071-1/+80
| | | | | | | | lookup
* | Add os.getrandom()Victor Stinner2016-09-061-1/+40
| | | | | | | | | | | | | | Issue #27778: Expose the Linux getrandom() syscall as a new os.getrandom() function. This change is part of the PEP 524.
* | Run Argument Clinic on posixmodule.cVictor Stinner2016-09-061-7/+7
| | | | | | | | Issue #17884.
* | Issue #27928: Add scrypt (password-based key derivation function) to hashlib ↵Christian Heimes2016-09-061-0/+60
| | | | | | | | module (requires OpenSSL 1.1.0).
* | merge 3.5Benjamin Peterson2016-09-051-3/+3
|\ \ | |/
| * do not pretend to support passing a fd to access()Benjamin Peterson2016-09-051-3/+3
| |
* | Issue #27866: Add SSLContext.get_ciphers() method to get a list of all ↵Christian Heimes2016-09-051-1/+26
| | | | | | | | enabled ciphers.
* | Issue #16764: Support keyword arguments to zlib.decompress(). Patch bySerhiy Storchaka2016-08-151-9/+13
| | | | | | | | Xiang Zhang.
* | Issue #27574: Decreased an overhead of parsing keyword arguments in functionsSerhiy Storchaka2016-08-1419-267/+391
| | | | | | | | implemented with using Argument Clinic.
* | Issue #27130: Merge zlib 64-bit fixes from 3.5Martin Panter2016-07-231-10/+10
|\ \ | |/
| * Issue #27130: Fix handling of buffers exceeding UINT_MAX in “zlib” moduleMartin Panter2016-07-231-10/+10
| | | | | | | | Patch by Xiang Zhang.
* | - Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-0728-756/+746
|\ \ | |/ | | | | generated by Argument Clinic. Patch by Petr Viktorin.
| * Issue #27332: Fixed the type of the first argument of module-level functionsSerhiy Storchaka2016-07-0728-754/+744
| | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin.
* | merge 3.5 (#24557)Benjamin Peterson2016-07-071-3/+3
|\ \ | |/
| * assume egd unless OPENSSL_NO_EGD is defined—remove configure check (closes ↵Benjamin Peterson2016-07-071-3/+3
| | | | | | | | #24557)
* | Issue #26243: Only the level argument to zlib.compress() is keyword argumentSerhiy Storchaka2016-06-251-3/+3
| | | | | | | | now. The first argument is positional-only.
* | Clarify documentation for os.fspath().Brett Cannon2016-06-091-4/+4
| |
* | Issue #26305: Argument Clinic now uses braces in C code as required by PEP 7.Serhiy Storchaka2016-06-0933-604/+1175
| |
* | issue27186: add C version of os.fspath(); patch by Jelle ZijlstraEthan Furman2016-06-041-1/+33
| |
* | Issue #5784: Merge zlib from 3.5Martin Panter2016-05-271-4/+7
|\ \ | |/
| * Issue #5784: Expand documentation and tests for zlib wbits parameterMartin Panter2016-05-271-4/+7
| | | | | | | | Based on documentation by AM Kuchling.
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-261-4/+4
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-4/+4
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Issues #26716, #26057: Regenerate Argument Clinic code.Serhiy Storchaka2016-04-142-18/+18
|\ \ | |/
| * Issue #26716: Regenerate Argument Clinic code.Serhiy Storchaka2016-04-141-2/+2
| |
* | Issue 26243: Forgot to update zlib doc strings in Argument ClinicMartin Panter2016-02-101-2/+2
| |
* | Issue #26243: zlib.compress() keyword argument support by Aviv PalivodaMartin Panter2016-02-101-13/+14
| |
* | Issue #26244: Merge zlib documentation from 3.5Martin Panter2016-02-031-3/+4
|\ \ | |/
| * Issue #26244: Clarify default zlib compression level in documentationMartin Panter2016-02-031-3/+4
| | | | | | | | Based on patch by Aviv Palivoda.
* | Issue #25638: Optimized ElementTree.iterparse(); it is now 2x faster.Serhiy Storchaka2015-12-071-3/+4
| | | | | | | | | | ElementTree.XMLParser._setevents now accepts any objects with the append method, not just a list.
* | Issue #25626: Merge zlib fix from 3.5Martin Panter2015-11-211-4/+4
|\ \ | |/
| * Issue #25626: Change zlib to accept Py_ssize_t and cap to UINT_MAXMartin Panter2015-11-201-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The underlying zlib library stores sizes in “unsigned int”. The corresponding Python parameters are all sizes of buffers filled in by zlib, so it is okay to reduce higher values to the UINT_MAX internal cap. OverflowError is still raised for sizes that do not fit in Py_ssize_t. Sizes are now limited to Py_ssize_t rather than unsigned long, because Python byte strings cannot be larger than Py_ssize_t. Previously this could result in a SystemError on 32-bit platforms. This resolves a regression in the gzip module when reading more than UINT_MAX or LONG_MAX bytes in one call, introduced by revision 62723172412c.