Anthony Sottile
b7daabd711
Improve version added references in `typing` module docs (GH-13457)
2019-06-02 01:13:25 +01:00
Raymond Hettinger
b7fade4f87
Put math.comb() docs is correct place alphabetically (GH-13734)
2019-06-01 15:01:46 -07:00
Eric Snow
6a150bcaeb
bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-13714)
2019-06-01 15:39:46 -06:00
Marco Buttu
218e47b618
bpo-29414: Change 'the for statement is such an iterator' in Tutorial (GH-273)
2019-06-01 14:11:47 -07:00
Zackery Spytz
36dcaab7fd
Fix the error handling in bytesio_sizeof(). (GH-10459)
...
bytesio_sizeof() must check if an error has occurred in _PySys_GetSizeOf().
2019-06-02 00:07:45 +03:00
Serhiy Storchaka
bdbad71b9d
bpo-20092. Use __index__ in constructors of int, float and complex. (GH-13108)
2019-06-02 00:05:48 +03:00
Cheryl Sabella
1a4d9ffa1a
bpo-32411: IDLE: Remove line number sort in browser.py ( #5011 )
...
Insertion in line order makes sorting keys by line order unneeded.
2019-06-01 17:03:22 -04:00
Sergey Fedoseev
e5f6207ba6
bpo-34303: Micro-optimizations in functools.reduce() (GH-8598)
2019-06-01 13:32:17 -07:00
Pablo Galindo
3b57f50efc
bpo-36842: Pass positional only parameters to code_new audit hook (GH-13707)
2019-06-01 21:18:48 +01:00
Pablo Galindo
938d9a0167
Fix compiler warnings in the pystrehex module (GH-13730)
2019-06-01 21:02:08 +01:00
Stefan Behnel
faa2948654
Clean up and reduce visual clutter in the makeunicode.py script. (GH-7558)
2019-06-01 21:49:03 +02:00
Evan
56624a99a9
bpo-28595: Allow shlex whitespace_split with punctuation_chars (GH-2071)
2019-06-01 20:09:22 +01:00
Serhiy Storchaka
2b843ac0ae
bpo-35431: Refactor math.comb() implementation. (GH-13725)
...
* Fixed some bugs.
* Added support for index-likes objects.
* Improved error messages.
* Cleaned up and optimized the code.
* Added more tests.
2019-06-01 22:09:02 +03:00
Francisco Couzo
9843bc110d
Improve exception message for str.format (GH-12675)
2019-06-01 10:14:00 -07:00
Pablo Galindo
cd74e66a8c
bpo-37122: Make co->co_argcount represent the total number of positonal arguments in the code object (GH-13726)
2019-06-01 18:08:04 +01:00
Anthony Shaw
059b9ea5ac
bpo-31968: Documentation -- add clarification on the globals dict for exec() (GH-13140)
2019-06-01 08:51:58 -07:00
Stéphane Wirtel
66501058fe
Doc: Correct the creation year and the credits of the Logo Programming language (GH-13520)
2019-06-01 07:41:33 -04:00
Mark Dickinson
a0adffb902
Move whats-new entry for math.factorial to the math module section. (GH-13723)
2019-06-01 12:21:53 +01:00
Bar Harel
6b282e1887
bpo-36813: Fix QueueListener to call task_done() upon termination. (GH-13113)
...
Fixed QueueListener in order to avoid random deadlocks.
Unable to add regression tests atm due to time constraints, will add it in a bit.
Regarding implementation, although it's nested, it does not cause performance issues whatsoever, and does not call task_done() in case of an exception (which is the right thing to do IMHO).
https://bugs.python.org/issue36813
2019-06-01 02:19:09 -07:00
Serhiy Storchaka
70c5f2ae6e
Use more PEP 570 syntax in the documentation. (GH-13720)
2019-06-01 11:38:24 +03:00
Serhiy Storchaka
2085bd0877
bpo-37116: Use PEP 570 syntax for positional-only parameters. (GH-13700)
2019-06-01 11:00:15 +03:00
Yash Aggarwal
4a686504eb
bpo-35431: Implemented math.comb (GH-11414)
2019-06-01 00:21:27 -07:00
Windson yang
5ac0b988fd
bpo-18911: clarify that the minidom XML writer receives texts but not bytes (GH-13352)
2019-06-01 08:33:16 +02:00
Mario Corchero
354227a1e9
Add option to trace to run modules (GH-5134)
...
Adds a new option in trace that allows tracing runnable modules. It is
exposed as `--module module_name` as `-m` is already in use for another
argument.
2019-06-01 14:49:09 +10:00
Rob Day
664fe3996f
bpo-29984: Improve 'heapq' test coverage (GH-992)
2019-05-31 21:13:57 -07:00
Tim Hoffmann
5c22476c01
Improve docstring of list.sort (GH-8516)
2019-05-31 21:10:02 -07:00
Eric Snow
396e0a8d9d
bpo-36818: Add PyInterpreterState.runtime field. (gh-13129)
...
https://bugs.python.org/issue36818
2019-05-31 21:16:47 -06:00
Tim Peters
1c263e39c4
bpo-37029: keep usable_arenas in sorted order without searching ( #13612 )
...
This adds a vector of "search fingers" so that usable_arenas can be kept in sorted order (by number of free pools) via constant-time operations instead of linear search.
This should reduce worst-case time for reclaiming a great many objects from O(A**2) to O(A), where A is the number of arenas. See bpo-37029.
2019-05-31 21:16:04 -05:00
Zackery Spytz
549e55a308
bpo-12202: Properly check MsiSummaryInfoGetProperty() calls in msilib (GH-13711)
2019-06-01 03:16:20 +03:00
Emmanuel Arias
ed9f3562b6
bpo-37105: Add deprecated-remove information on stream doc ( #13672 )
...
* Add deprecated-remove information on stream doc
According to the code on streams.py the functions:
``open_connection()``, ``start_server()``, ``open_unix_connection()``,
``start_unix_server()`` are deprecated. I infor that on
documentation.
2019-05-31 23:48:57 +03:00
Cheryl Sabella
a747c3a5ed
bpo-15115: Document deprecation of email.encoders in Python 3 (GH-5354)
2019-05-31 16:18:41 -04:00
Ammar Askar
a6ec1ce1ac
bpo-33361: Fix bug with seeking in StreamRecoders (GH-8278)
2019-05-31 22:44:00 +03:00
Pablo Galindo
aac4d0342c
bpo-26826: Expose copy_file_range in the os module (GH-7255)
2019-05-31 19:39:47 +01:00
Pablo Galindo
545a3b8814
Document changes for PyCode_New regarding PEP570 (GH-13706)
2019-05-31 19:33:41 +01:00
Zackery Spytz
c8d5bf6c3f
bpo-12639: msilib.Directory.start_component() fails if *keyfile* is not None (GH-13688)
...
msilib.Directory.start_component() was passing an extra argument to CAB.gen_id().
2019-05-31 09:43:13 -07:00
Akshay Sharma
4612671df2
bpo-25735: math.factorial doc should mention integer return type (GH-6420)
2019-05-31 12:41:17 -04:00
Christian Heimes
8cbb5b6625
bpo-26835: Add file sealing constants to fcntl (GH-13694)
...
Co-authored-by: nanjekyejoannah <nanjekyejoannah@gmail.com>
2019-05-31 18:32:33 +02:00
Makdon
ffed76b6fc
bpo-37094: Add example for TestCase.skipTest in unittest doc (GH-13645)
...
Also includes other minor test skipping doc improvements.
https://bugs.python.org/issue37094
2019-05-31 09:19:11 -07:00
Pablo Galindo
a0c01bf136
bpo-37115: Support annotations in positional-only arguments (GH-13698)
2019-05-31 15:19:50 +01:00
Pablo Galindo
2f58a84104
bpo-37112: Allow compile to work on AST with positional only arguments with defaults (GH-13697)
2019-05-31 14:09:49 +01:00
Pablo Galindo
ed222a74a0
Update data model docs to include missing attributes for code objects (GH-13696)
...
Include and document co_posonlyargcount and co_kwonlyargcount
2019-05-31 12:13:04 +01:00
Pablo Galindo
3a46d5c293
bpo-37108: Support super with methods that use positional-only arguments (GH-13695)
2019-05-31 12:07:56 +01:00
Zackery Spytz
c7f803b08e
bpo-36379: __ipow__ must be a ternaryfunc, not a binaryfunc (GH-13546)
...
If a type's __ipow__ method was implemented in C, attempting to use
the *modulo* parameter would cause crashes.
https://bugs.python.org/issue36379
2019-05-31 02:46:36 -07:00
Christian Heimes
c7f7069e77
bpo-34271: Add ssl debugging helpers (GH-10031)
...
The ssl module now can dump key material to a keylog file and trace TLS
protocol messages with a tracing callback. The default and stdlib
contexts also support SSLKEYLOGFILE env var.
The msg_callback and related enums are private members. The feature
is designed for internal debugging and not for end users.
Signed-off-by: Christian Heimes <christian@python.org>
2019-05-31 11:44:05 +02:00
Serhiy Storchaka
e9b51c0ad8
bpo-26660, bpo-35144: Fix permission errors in TemporaryDirectory cleanup. (GH-10320)
...
TemporaryDirectory.cleanup() failed when non-writeable or non-searchable
files or directories were created inside a temporary directory.
2019-05-31 11:30:37 +03:00
Serhiy Storchaka
38ab7d4721
bpo-31829: Make protocol 0 pickles be loadable in text mode in Python 2. (GH-11859)
...
Escape ``\r``, ``\0`` and ``\x1a`` (end-of-file on Windows) in Unicode strings.
2019-05-31 11:29:39 +03:00
Terry Jan Reedy
ba0430211f
IDLE - Capitalize search dialogs' 'Close' button label. ( #13691 )
...
It seems to be the only widget label not capitalized.
2019-05-31 04:26:35 -04:00
Serhiy Storchaka
14a0e16c88
bpo-36548: Improve the repr of re flags. (GH-12715)
2019-05-31 10:39:47 +03:00
Serhiy Storchaka
65fb2c08c0
bpo-339827: Do not swallow exceptions in the _ssl module. (GH-12756)
2019-05-31 10:39:15 +03:00
Jeroen Demeyer
530f506ac9
bpo-36974: tp_print -> tp_vectorcall_offset and tp_reserved -> tp_as_async (GH-13464)
...
Automatically replace
tp_print -> tp_vectorcall_offset
tp_compare -> tp_as_async
tp_reserved -> tp_as_async
2019-05-30 19:13:39 -07:00