Paul Monson
8a1657b934
bpo-35976: Enable Windows projects to build with platform ARM32 (GH-11825)
...
This change adds the necessary items to the build projects to avoid erroring out right at the start. It does not add _support_ for targeting Windows on ARM32, but is a necessary prerequisite for adding it.
2019-02-14 08:31:30 -08:00
Zackery Spytz
bb3c05d7ef
closes bpo-35991: Fix a potential double free in Modules/_randommodule.c. (GH-11849)
2019-02-13 23:43:17 -08:00
Kevin Mai-Husan Chia
d73ac0eba9
Fix typo: equivalent code of `async with cond` (GH-11681)
2019-02-13 18:39:25 -08:00
Susan Su
2bdd5858e3
bpo-35500: align expected and actual calls on mock.assert_called_with error message. (GH-11804)
2019-02-13 18:22:29 -08:00
Nina Zakharenko
1dc5cb9cb3
bpo-35887: Add make regen-importlib step to importlib._bootstrap docstring (GH-11777)
2019-02-13 15:21:17 -08:00
Victor Stinner
dcb68f47f7
bpo-35961: Fix a crash in slice_richcompare() (GH-11830)
...
Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.
The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
2019-02-13 12:31:56 +01:00
Cheryl Sabella
5680f6546d
bpo-18283: Add support for bytes to shutil.which (GH-11818)
2019-02-13 12:25:10 +01:00
Raymond Hettinger
cfd31f0af2
Be consistent about the use of from-imports in random module (GH-11837)
...
Minor code clean-up.
2019-02-13 02:04:17 -08:00
Anthony Sottile
73d600239b
Remove stray quote in os.replace docstring. (GH-11556)
2019-02-12 20:15:54 -08:00
Pablo Galindo
b9d2e97601
Fix potential memory leak in parsetok.c (GH-11832)
2019-02-13 00:45:53 +00:00
Matěj Cepl
3dc67d0316
bpo-35505: Skip test_imap4_host_default_value if localhost listens on IMAP port (GH-11823)
...
Make test_imap4_host_default_value independent on whether the
local IMAP server is running.
2019-02-12 19:30:19 +01:00
Alexey Izbyshev
16f842da3c
bpo-35972: _xxsubinterpreters: Fix potential integer truncation on 32-bit in channel_send() (gh-11822)
2019-02-12 09:06:43 -07:00
Christopher Hunt
b01786c881
bpo-35960: Fix dataclasses.field throwing away empty metadata. (GH-11815)
2019-02-12 06:50:49 -05:00
Rémi Lapeyre
a31f4cc881
bpo-35918: Remove broken has_key method and add test ( #11819 )
2019-02-11 16:37:24 -08:00
Guido van Rossum
522346d792
Complete switch cases in symtable.c; fixes bpo-35963 (GH-11821)
2019-02-11 11:34:50 -08:00
Pablo Galindo
3766f18c52
bpo-35378: Fix multiprocessing.Pool references (GH-11627)
...
Changes in this commit:
1. Use a _strong_ reference between the Pool and associated iterators
2. Rework PR #8450 to eliminate a cycle in the Pool.
There is no test in this commit because any test that automatically tests this behaviour needs to eliminate the pool before joining the pool to check that the pool object is garbaged collected/does not hang. But doing this will potentially leak threads and processes (see https://bugs.python.org/issue35413 ).
2019-02-11 17:29:00 +00:00
Guido van Rossum
4b250fc1da
bpo-35766 follow-up: Add an error check to new_type_comment() ( #11766 )
...
If PyUnicode_DecodeUTF8() returns NULL, PyArena_AddPyObject() would crash.
Found by @msullivan for https://github.com/python/typed_ast/pull/93 .
2019-02-11 08:10:42 -08:00
Eivind Teig
537b6caa56
bpo-22062: Updated docstring and documentation for pathlib (GH-8519)
...
Original patch by Mike Short
https://bugs.python.org/issue22062
2019-02-11 02:47:09 -08:00
Julien Palard
9db56fb8fa
Doc sidebar: 3.6 has moved to security-fix mode. (GH-11810)
2019-02-10 13:27:12 -08:00
Pablo Galindo
164686f33a
Fix compiler warning about non initialised variable (GH-11806)
2019-02-10 20:37:07 +00:00
Pablo Galindo
4207907c2b
Fix division by 0 when checking for overflow in math.prod (GH-11808)
2019-02-10 19:56:58 +00:00
Ivan Levkivskyi
181835d5a9
Fix compiler warnings about end_col_offset and end_lineno (GH-11735)
2019-02-10 15:39:49 +00:00
Pablo Galindo
5033e315d2
Fix broken :ref: in asyncio docs (GH-11805)
2019-02-10 00:21:37 +00:00
Pablo Galindo
7b2a37b728
Make sure the BaseManager in test_multiprocessing is cleaned up correctly (GH-11653)
2019-02-09 17:35:05 +00:00
Pablo Galindo
613f729e5d
Do not retain references to processes and managers in TestSyncManagerTypes (GH-11801)
...
Keeping references to processes and managers between tests makes them count as dangling processes.
2019-02-09 17:08:49 +00:00
Terry Jan Reedy
8a03ff2ff4
bpo-35833: Revise IDLE doc for control codes sent to Shell. (GH-11799)
...
Add a code example block.
2019-02-08 22:51:51 -05:00
Raymond Hettinger
2dda72a2e8
lru_cache: Add more comments. Fix comment typos. Clarify a comment. (GH-11795)
2019-02-08 18:55:02 -08:00
Tim Peters
7ab3d1573c
Rework tuple hash tests. (GH-10161)
...
Add tooling that will useful in future updates, paying particular attention to difficult cases where only the upper bits on the input vary.
2019-02-08 13:09:26 -08:00
Neil Schemenauer
5741c45acf
bpo-35903: Use autoconfig to probe for shm_open() and shm_unlink(). ( #11765 )
...
Use autoconfig to probe for shm_open() and shm_unlink(). Set SHM_NEEDS_LIBRT if we must
link with librt to get the shm_* functions. Change setup.py to use the autoconfig defines. These
changes should make it more likely that _multiprocessing/posixshmem.c gets built correctly on
different platforms.
2019-02-08 10:48:46 -08:00
Raymond Hettinger
64360ada0f
Complete and neaten-up namedtuple's replacement of builtin function lookups with derefs (GH-11794)
2019-02-08 10:37:39 -08:00
Paul Ganssle
d9503c307a
Add What's New entry for date subclass behavior ( #11790 )
...
This was a backwards incompatible change and should be clearly noted.
Related bugs:
bpo-32417: https://bugs.python.org/issue32417
bpo-35364: https://bugs.python.org/issue35364
2019-02-08 17:02:00 +01:00
Fish
96d37dbcd2
bpo-35615: Fix crashes when copying a Weak{Key,Value}Dictionary. (GH-11384)
...
Protect dict iterations by wrapping them with _IterationGuard in the
following methods:
- WeakValueDictionary.copy()
- WeakValueDictionary.__deepcopy__()
- WeakKeyDictionary.copy()
- WeakKeyDictionary.__deepcopy__()
2019-02-07 19:51:59 +00:00
Pierre Glaser
df8d2cde63
bpo-35911: add cell constructor (GH-11771)
...
Add a cell constructor, expose the cell type in the types module.
2019-02-07 19:36:48 +00:00
Jason R. Coombs
f289084c83
bpo-24209: In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter. ( #11767 )
...
In http.server script, rely on getaddrinfo to bind to preferred address based on the bind parameter.
As a result, now IPv6 is used as the default (including IPv4 on dual-stack systems). Enhanced tests.
2019-02-07 08:22:45 -05:00
Giampaolo Rodola
2848d9d299
bpo-35917: Test multiprocessing manager classes and shareable types (GH-11772)
...
multiprocessing: provide unittests for manager classes and shareable types
2019-02-07 11:03:11 +00:00
Pablo Galindo
bc09851586
bpo-35606: Implement math.prod (GH-11359)
2019-02-06 23:04:02 -08:00
Mariatta
e9bc4172d1
Fix url to core-mentorship mailing list (GH-11775)
2019-02-06 12:45:03 -08:00
Harmandeep Singh
cd90f6a369
bpo-20001: update pathlib landing image (GH-11304)
2019-02-05 19:16:13 +09:00
Inada Naoki
c95404ff65
email: use dict instead of OrderedDict (GH-11709)
2019-02-05 17:05:43 +09:00
Inada Naoki
f345170940
asyncio: use dict instead of OrderedDict (GH-11710)
2019-02-05 17:04:40 +09:00
Raymond Hettinger
9da3583e78
Fix typo (micro->nano) (GH-11759)
2019-02-04 23:32:55 -08:00
Steve Dower
85e102a2b0
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
2019-02-04 17:15:13 -08:00
Nina Zakharenko
69091cb497
bpo-35321: Set the spec origin to frozen in frozen modules ( #11732 )
...
* bpo-35321: Set the spec origin to frozen in frozen modules
This fix correctly sets the spec origin to
"frozen" for the _frozen_importlib module. Note that the
origin was already correctly set in _frozen_importlib_external.
* 📜 🤖 Added by blurb_it.
2019-02-04 16:56:26 -08:00
Paul Ganssle
89427cd0fe
bpo-32417: Make timedelta arithmetic respect subclasses ( #10902 )
...
* Make timedelta return subclass types
Previously timedelta would always return the `date` and `datetime`
types, regardless of what it is added to. This makes it return
an object of the type it was added to.
* Add tests for timedelta arithmetic on subclasses
* Make pure python timedelta return subclass types
* Add test for fromtimestamp with tz argument
* Add tests for subclass behavior in now
* Add news entry.
Fixes:
bpo-32417
bpo-35364
* More descriptive variable names in tests
Addresses Victor's comments
2019-02-04 14:42:04 -05:00
Łukasz Langa
ca7d2933a3
Post 3.8.0a1
2019-02-04 09:39:24 +01:00
Łukasz Langa
e7afe1ab25
Python 3.8.0a1
...
-----BEGIN PGP SIGNATURE-----
iQIzBAABCAAdFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAlxW66AACgkQsmmV4xAl
BWh3QQ//ZMI2a0KicKZ/MTnaW0cpTSQ5MoikOVL98z1Mx2MGDm5k5pzxN7E4qT39
WPcnUJyK6o6juigq49qwpufaHRDhn/FoscFpQgTwf4POw23f6OB6karzV6xijOW7
AoxjqKs7QhjIifAsxe76c4KzpR85tUgxJGsN4KHC6hwAbkri5HQ0372bjg+dkis1
nmjnDwf6ZkzwtNqOwP5aAnm5z6XWXngQk1BHL1xG+ECXeAYTWEHbgjMlJpsc/28E
rPDeL08BYiJYLuOghV71Yq3T1FSHicLwwKt0+Q61zBGsjwrEmqfRZpB4oOrr65Ca
0QdqYbNwm9hkfp3/XnNV+JwBnBLJsd+vzEz3Lcu/hPb7YMAD7DMIrIeG6zVHVVEo
9edurimM8w5QsmHyGFgVVEh4qImiGgmYSDFrU3l/u3SXjnSLnNJM2dGLMSmJ6N14
komPeq4vg0daPqRPTbWHTZvjt7aidAJlSzrmjg45KOgv6TdJq8X/Sm/v70zopaXL
gUW9SNHQY84WpHOni3+SKweh4IsmXT+ZagKHUVuf9h9W9U3u43eGYIWXlLbDUOTj
tSx3scYJK97YIJjpz7RacAMrEcrn5gWrLnJemnlF5Bsv9tekKBP4vaF7hbkZn+0U
6aPJ56OOSjtCMPrAl6uw9EbEz1ysPVY0wz6Lpcrb6j7dYCn81Ds=
=g9Mg
-----END PGP SIGNATURE-----
gpgsig -----BEGIN PGP SIGNATURE-----
iQJEBAABCAAuFiEE4/8oOcBIslwITevpsmmV4xAlBWgFAlxX+EUQHGx1a2FzekBs
YW5nYS5wbAAKCRCyaZXjECUFaIGiEACDEsoAjSDnlydMqQ94L5lpy+Tk9hOYiXjV
ZG4JOhTSuWJzbEdjXHuwWf7rnXgu3xjgsct3wfkFkGuH11XxyyQRJ9u32zsCBE6k
MO2CsNVVCKyFWM0CJ1A0BrILsVMY2N9mr3nmbiaGZt5eaIY7JUhTtpzhjmyrNIVL
YWL+EfGgU/1xinsYXuhuOJXACBlJnxR8MOtdJ5X2HZb+6RokYj7efKP7Ty84vZIV
bW7cngQsoac6C7QNalFRP6Z1pO81HoDQHxlAwh2dUU/4vYQTIZ3zNA7K8JbaJnWL
bcQkUVvPr2OTqDkro2Hj6qKSpdroAu/7LzNjB3ky+iNkEtVonIX6H/sY9EfbwuYx
3KS88d9ETdDkxVfRThp8pbedPJL8sIFVsR6E/PzUjLKyfqKQGdifKh+vzrfs642u
3Xz7xJFyvCPT3xSeemRQRPODhWfPf1sd/rfHbk0SLBF5Se3lqFnNZ4/DhKXMr8/D
BVozJSRD4P1A7xgEy59/jD5oIkkd8M9g6YtDTD5RYvfWxb/geLN+BAIXsIouRtTe
ANPX0plC56FfY3xZYqeQi05f+C7j/P2FUKKL9tjiuxKJ8UQ3ftaDw39CneyDLMyy
u/ynrv3H4EAWsV1qFjOeUIwc+k4rjlprcB+LRQguLBbBlFg1vj8MTOO+Kfgui0Lv
y9Wpvhkeqw==
=WuSS
-----END PGP SIGNATURE-----
Merge tag 'v3.8.0a1'
Python 3.8.0a1
2019-02-04 09:30:59 +01:00
Steve Dower
a8474d025c
bpo-35872 and bpo-35873: Clears __PYVENV_LAUNCHER__ variable (GH-11745)
...
After reading __PYVENV_LAUNCHER__ we now set sys._base_executable value for later use.
Make the same changes for macOS to avoid extra platform checks.
2019-02-03 23:19:38 -08:00
Steve Dower
2f6fae6e51
bpo-35692: pathlib no longer raises when checking file and directory existence on drives that are not ready (GH-11746)
2019-02-03 23:08:18 -08:00
Łukasz Langa
e75eeb00b5
v3.8.0a1
2019-02-03 14:17:38 +01:00
Łukasz Langa
aab0e57045
[pydoc] Regenerate topics for v3.8.0a1
2019-02-03 14:04:12 +01:00