Victor Stinner
f44693eaed
bpo-41477: Make ctypes optional in test_genericalias (GH-21766)
2020-08-07 17:56:42 +02:00
Hai Shi
598a951844
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
2020-08-07 17:18:38 +02:00
Inada Naoki
46e19b61d3
bpo-41098: Doc: Add missing deprecated directives (GH-21162)
...
PyUnicodeEncodeError_Create has been deprecated with
`Py_DEPRECATED` macro. But it was not documented.
2020-08-07 16:31:53 +09:00
Zackery Spytz
5463635580
bpo-39871: Fix an error in a news entry (GH-21749)
2020-08-07 14:38:48 +09:00
pxinwr
3405e05428
bpo-41440: add os.cpu_count() support for VxWorks RTOS (GH-21685)
2020-08-07 14:21:52 +09:00
Inada Naoki
d9323a8c6e
bpo-41493: Refactoring dictresize (GH-21751)
...
Split newsize calculation into new function. dictresize() now accepts exact newsize.
2020-08-07 14:08:55 +09:00
Nathan M
5f0769a752
bpo-41371: Handle lzma lib import error in test_zoneinfo.py (GH-21734)
2020-08-06 15:09:40 -07:00
Steve Dower
777b611c8c
bpo-41492: Fixes the description appearing in UAC prompts on Windows (GH-21754)
2020-08-06 17:36:22 +01:00
Hai Shi
79bb2c93f2
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
2020-08-06 13:51:29 +02:00
Eric L. Frederich
52f98424a5
bpo-41482: Fix error in ipaddress.IPv4Network docstring (GH-21736)
2020-08-05 14:44:53 -04:00
Victor Stinner
15edaecd97
bpo-40989: Fix compiler warning in winreg.c (GH-21722)
...
Explicitly cast PyHKEYObject* to PyObject* to call _PyObject_Init().
2020-08-05 16:23:10 +02:00
Batuhan Taskaya
8f4380d2f5
bpo-40726: handle uninitalized end_lineno on ast.increment_lineno (GH-20312)
2020-08-05 14:32:32 +01:00
Inada Naoki
270b4ad4df
bpo-36346: Doc: Update removal schedule of legacy Unicode (GH-21479)
...
See PEP 623 for detail.
2020-08-05 10:48:51 +09:00
Mark Shannon
582aaf19e8
bpo-41463: Generate information about jumps from 'opcode.py' rather than duplicating it in 'compile.c' (GH-21714)
...
Generate information about jumps from 'opcode.py' rather than duplicate it in 'compile.c'
2020-08-04 17:30:11 +01:00
Hai Shi
c7decc27d5
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
2020-08-04 17:53:12 +02:00
Hai Shi
604bba1f8f
bpo-40275: Use new test.support helper submodules in tests (GH-21452)
2020-08-04 17:51:43 +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
Inada Naoki
db6d9a50ce
bpo-41431: Optimize dict_merge for copy (GH-21674)
2020-08-04 11:08:06 +09:00
Victor Stinner
602a971a2a
bpo-41467: Fix asyncio recv_into() on Windows (GH-21720)
...
On Windows, fix asyncio recv_into() return value when the socket/pipe
is closed (BrokenPipeError): return 0 rather than an empty byte
string (b'').
2020-08-04 02:40:10 +02:00
Victor Stinner
bde48fd811
bpo-38156: Fix compiler warning in PyOS_StdioReadline() (GH-21721)
...
incr cannot be larger than INT_MAX: downcast to int explicitly.
2020-08-04 02:38:16 +02:00
Victor Stinner
701b63894f
bpo-38912: regrtest logs unraisable exception into sys.__stderr__ (GH-21718)
...
regrtest_unraisable_hook() temporarily replaces sys.stderr with
sys.__stderr__ to help to display errors when a test captures stderr.
2020-08-03 22:51:23 +02:00
Hai Shi
4660597b51
bpo-40275: Use new test.support helper submodules in tests (GH-21448)
2020-08-03 18:49:18 +02:00
Hai Shi
bb0424b122
bpo-40275: Use new test.support helper submodules in tests (GH-21451)
2020-08-03 18:47:42 +02:00
Hai Shi
a7f5d93bb6
bpo-40275: Use new test.support helper submodules in tests (GH-21449)
2020-08-03 18:41:24 +02:00
Guido van Rossum
488512bf49
A (very) slight speed improvement for iterating over bytes ( #21705 )
...
My mentee @xvxvxvxvxv noticed that iterating over array.array is
slightly faster than iterating over bytes. Looking at the source I
observed that arrayiter_next() calls `getitem(ao, it->index++)` wheras
striter_next() uses the idiom (paraphrased)
item = PyLong_FromLong(seq->ob_sval[it->it_index]);
if (item != NULL)
++it->it_next;
return item;
I'm not 100% sure but I think that the second version has fewer
opportunity for the CPU to overlap the `index++` operation with the
rest of the code (which in both cases involves a call). So here I am
optimistically incrementing the index -- if the PyLong_FromLong() call
fails, this will leave the iterator pointing at the next byte, but
honestly I doubt that anyone would seriously consider resuming use of
the iterator after that kind of failure (it would have to be a
MemoryError). And the author of arrayiter_next() made the same
consideration (or never ever gave it a thought :-).
With this, a loop like
for _ in b: pass
is now slightly *faster* than the same thing over an equivalent array,
rather than slightly *slower* (in both cases a few percent).
2020-08-03 09:04:13 -07:00
Ankit Chandawala
c36dbac588
bpo-41425: Make tkinter doc example runnable (GH-21706)
...
Co-authored-by: Ankit Chandawala <achandaw@amazon.com>
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-08-03 00:03:48 -04:00
Nathan M
ecaf949cc4
bpo-41424: Remove extra words in Tkinter-Packer documentation (GH-21707)
2020-08-02 22:13:03 -04:00
Luciano Ramalho
ab72fdeb82
bpo-40979: refactored typing.rst; (mostly) same content, new sub-sections and ordering ( #21574 )
...
Also added PEP 585 deprecation notes.
2020-08-02 15:32:36 -07:00
Raymond Hettinger
6a613f90bf
random module: Convert a "while 1" to "while True (GH-21700)
2020-08-02 12:03:32 -07:00
Raymond Hettinger
5c3270939c
bpo-41421: Algebraic simplification for random.paretovariate() (GH-21695)
2020-08-01 01:18:26 -07:00
Karthikeyan Singaravelan
cadda52d97
bpo-40360: Handle PendingDeprecationWarning in test_lib2to3. (GH-21694)
2020-07-31 16:20:48 +05:30
Mark Shannon
6e8128f02e
bpo-41323: Perform 'peephole' optimizations directly on the CFG. (GH-21517)
...
* Move 'peephole' optimizations into compile.c and perform them directly on the CFG.
2020-07-30 10:03:00 +01:00
Sebastien Williams-Wynn
ba18c0b13b
bpo-41426 Fix grammar in curses.getmouse() documentation (GH-21677)
...
Automerge-Triggered-By: @brettcannon
2020-07-29 11:36:46 -07:00
Benjamin Peterson
a74eea238f
closes bpo-38156: Always handle interrupts in PyOS_StdioReadline. (GH-21569)
...
This consolidates the handling of my_fgets return values, so that interrupts are always handled, even if they come after EOF.
I believe PyOS_StdioReadline is still buggy in that I/O errors will not result in a proper Python exception being set. However, that is a separate issue.
2020-07-28 19:57:12 -05:00
Yonatan Goldschmidt
f6a16e8a82
Remove incorrect mention of method.__class__ in descriptor docs (GH-21665)
2020-07-28 16:56:26 -07:00
Xiang Zhang
34cd3e9f6a
Fix `List_Append` description, list is extracted at TOS1[-i] (GH-21465)
2020-07-29 00:51:33 +08:00
Steve Dower
37a06cbe5c
bpo-41412 and bpo-40948: Windows installer updates (GH-21656)
...
Prevent installation on Windows 8 and earlier.
Download UCRT on demand when required (non-updated Windows 8.1 only)
Add reference to py launcher to post-install message
2020-07-28 16:35:46 +01:00
Dmytro Litvinov
5e3826785d
bpo-41328: Replace mention of Hudson CI with Travis CI and AppVeyor (GH-21653)
2020-07-28 07:48:32 -07:00
Zackery Spytz
c82dda1e08
bpo-35328: Set VIRTUAL_ENV_PROMPT at venv activation (GH-21587)
...
Co-Authored-By: Baptiste Darthenay <baptiste.darthenay@gmail.com>
2020-07-28 09:41:57 +01:00
Pablo Galindo
1332226b32
Validate the AST produced by the parser in debug mode (GH-21643)
...
This will improve the debug experience if something fails in the produced AST. Previously, errors in the produced AST can be felt much later like in the garbage collector or the compiler, making debugging them much more difficult.
2020-07-27 23:46:59 +01:00
amaajemyfren
13efaec2e0
bpo-41045: Document debug feature of f-strings ('=') (GH-21509)
...
Co-Authored-By: Rishi <rishi93dev@gmail.com>
Automerge-Triggered-By: @gvanrossum
2020-07-27 15:31:02 -07:00
Lysandros Nikolaou
b3fbff7289
bpo-40939: Remove even more references to the old parser (GH-21642)
...
Automerge-Triggered-By: @lysnikolaou
2020-07-27 12:52:59 -07:00
Pablo Galindo
72cabb2aa6
bpo-40939: Use the new grammar for the grammar specification documentation (GH-19969)
...
(We censor the heck out of actions and some other stuff using a custom "highlighter".)
Co-authored-by: Guido van Rossum <guido@python.org>
2020-07-27 11:20:36 -07:00
Serhiy Storchaka
67987acd5d
bpo-41401: Fix test_fspath_support in test_io. (GH-21640)
...
The error is exposed on non-UTF-8 locales.
2020-07-27 20:58:35 +03:00
pxinwr
855e68855e
bpo-31904: Fix test_ftplib failures for VxWorks RTOS (GH-19447)
2020-07-27 15:17:47 +09:00
wasiher
5798f78777
bpo-41340: Removed fallback implementation for strdup (GH-21634)
2020-07-27 12:28:45 +09:00
Akuli
f1d40f941a
bpo-41384: Raise TclError in tkinter.OptionMenu (GH-21601)
...
... when an unknown option is passed. TypeError was being raised because a 2to3 fix was missing.
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2020-07-26 21:48:17 -04:00
linchiwei123
52bf4706a3
Fix atexitmodule doc (GH-21456)
2020-07-26 20:33:00 -03:00
Guido van Rossum
508ed2d912
Delete remaining references to Grammar/Grammar from docs ( #21624 )
...
(Ironically, the file itself remains, see https://github.com/we-like-parsers/cpython/issues/135 .)
2020-07-26 08:27:52 -07:00
Serhiy Storchaka
b1a87300a0
bpo-41385: Fix test_executable_without_cwd on Windows (GH-21608)
2020-07-26 10:21:39 +03:00