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
9edur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Myy
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
Łukasz Langa
8efa3b69f6
[blurb] v3.8.0a1
2019-02-03 14:02:52 +01:00
Raymond Hettinger
f75d59e1a8
bpo-35884: Add variable access benchmarking script (GH-11725)
2019-02-02 22:54:56 -08:00
Ned Deily
2c2ba05a6b
Update macOS installer Welcome and ReadMe for 3.8 (GH-11748)
2019-02-03 00:41:20 -05:00
Minmin Gong
8ebc6451f3
bpo-35890 : Fix some API calling consistency (GH-11742)
...
Unicode version of Windows APIs are used in places, but not for GetVersionEx in Python/sysmodule.c
The wcstok_s is called on Windows in Modules/main.c and PC/launcher.c, but not in Python/pathconfig.c
2019-02-02 20:26:55 -08:00
Steve Dower
4c70d9f79c
bpo-34691: Compile _contextvars module into main Python library (GH-11741)
2019-02-02 14:36:23 -08:00
Mark Becwar
b82bfac436
bpo-29734: nt._getfinalpathname handle leak (GH-740)
...
Make sure that failure paths call CloseHandle outside of the function that failed
2019-02-02 13:08:23 -08:00
Shiva Saxena
cb09047626
bpo-32560: inherit the py launcher's STARTUPINFO (GH-9000)
...
https://bugs.python.org/issue32560
2019-02-02 11:21:04 -08:00
Stefan Krah
d08ea70464
bpo-35845: Add order={'C', 'F', 'A'} parameter to memoryview.tobytes(). ( #11730 )
2019-02-02 18:57:41 +01:00
Tony Roberts
4860f01ac0
bpo-33895: Relase GIL while calling functions that acquire Windows loader lock (GH-7789)
...
LoadLibrary, GetProcAddress, FreeLibrary and GetModuleHandle acquire the system loader lock. Calling these while holding the GIL will cause a deadlock on the rare occasion that another thread is detaching and needs to destroy its thread state at the same time.
2019-02-02 09:16:42 -08:00
Tzu-ping Chung
2de576e16d
bpo-1104: msilib.SummaryInfo.GetProperty() truncates the string by one character (GH-4517)
...
Add one char to MsiSummaryInfoGetProperty() output
Based on the patch in bpo-1104 by Anthony Tuininga (atuining) and Mark McMahon (markm).
2019-02-02 09:13:23 -08:00
native-api
05e922136a
bpo-33316: PyThread_release_lock always fails (GH-6541)
...
Use correct interpretation of return value from APIs.
2019-02-02 08:22:55 -08:00
Cheryl Sabella
00e9c55d27
bpo-26256: Document algorithm speed for the Decimal module. ( #4808 )
2019-02-02 15:37:39 +01:00
Davin Potts
e5ef45b8f5
bpo-35813: Added shared_memory submodule of multiprocessing. ( #11664 )
...
Added shared_memory submodule to multiprocessing in time for first alpha with cross-platform tests soon to follow.
2019-02-01 22:52:23 -06:00
Guido van Rossum
d2b4c19d53
bpo-35879: Fix type comment leaks (GH-11728)
...
* Fix leak for # type: ignore
* Fix the type comment leak
2019-02-01 15:28:13 -08:00
Emily Morehouse
ac19081c26
bpo-35877: Add test for while loop named expression without parentheses (GH-11726)
2019-02-01 15:27:38 -07:00
Xtreak
d4fceaafb8
bpo-35877: Make parenthesis optional for named expression in while statement (GH-11724)
...
* Add parenthesis optional in named expressions for while statement
* Add NEWS entry
2019-02-01 14:40:16 -07:00
Amador Pahim
85d83ec7c9
bpo-35864: fix namedtuple._asdict() docstring (GH-11720)
2019-02-01 12:38:57 -08:00
Joannah Nanjekye
075de6cf6c
bpo-35861: Fix SyntaxWarning in test_named_expressions.py (GH-11722)
2019-02-01 12:58:43 -07:00
Guido van Rossum
3a32e3bf88
bpo-35766 follow-up: Kill half-support for FunctionType in PyAST_obj2mod ( #11714 )
...
See 229874c612 (r252631862)
https://bugs.python.org/issue35766
2019-02-01 11:37:34 -08:00
Victor Stinner
325e4bac5a
bpo-35537: Fix function name in os.posix_spawnp() errors (GH-11719)
2019-02-01 15:47:24 +01:00
Victor Stinner
1e39b83f24
bpo-35537: Skip test_start_new_session() of posix_spawn (GH-11718)
...
The test fails. Skip the test until a fix can be found.
2019-02-01 11:40:26 +01:00
Joannah Nanjekye
80c5dfe74b
bpo-35537: Add setsid parameter to os.posix_spawn() and os.posix_spawnp() (GH-11608)
2019-02-01 11:05:22 +01:00
Raymond Hettinger
05f1b93f58
Speed-up argument parsing for common cases in deque.__init__()(GH-11717)
2019-01-31 22:13:43 -08:00
Raymond Hettinger
ffdf1c30ab
Consistently move the misses update to just before the user function call (GH-11715)
2019-01-31 15:03:38 -08:00
Guido van Rossum
dcfcd146f8
bpo-35766: Merge typed_ast back into CPython (GH-11645)
2019-01-31 12:40:27 +01:00
Phil Jones
d97daebfa6
doc: http: Fix enum name for status code 416 (GH-11689)
2019-01-31 19:08:57 +09:00
Raymond Hettinger
0bb4bdf0d9
bpo-35864: Replace OrderedDict with regular dict in namedtuple() ( #11708 )
...
* Change from OrderedDict to a regular dict
* Add blurb
2019-01-31 00:59:50 -08:00
Inada Naoki
0897e0c597
bpo-33504: fix wrong "versionchanged" (GH-11712)
2019-01-31 17:53:48 +09:00
Michael Selik
9f3f0931cf
bpo-34003: Use dict instead of OrderedDict in csv.DictReader (GH-8014)
2019-01-31 00:47:53 -08:00
Steve Dower
a1f9a3332b
bpo-35854: Fix EnvBuilder and --symlinks in venv on Windows (GH-11700)
2019-01-30 13:49:14 -08:00
Raymond Hettinger
40ebe948e9
Document differences between random.choices() and random.choice(). (GH-11703)
2019-01-30 13:30:20 -08:00
João Matos
cf991e653a
bpo-35835: Add reference to Python 3.7 new breakpoint() function in pdb documentation. (GH-11691)
2019-01-30 09:23:39 -08:00
jdemeyer
598e15d4fe
bpo-25592: Improve documentation of distutils data_files (GH-9767)
2019-01-30 16:49:39 +01:00
Raymond Hettinger
cfd735ea28
Move float conversion into a macro. Apply to fsum (GH-11698)
2019-01-29 20:39:53 -08:00
Giampaolo Rodola
bafa8487f7
subprocess: close pipes/fds by using ExitStack (GH-11686)
...
Close pipes/fds in subprocess by using ExitStack.
"In case of premature failure on X.Close() or os.close(X) the remaining pipes/fds will remain "open". Perhaps it makes sense to use contextlib.ExitStack."
- Rationale: https://github.com/python/cpython/pull/11575#discussion_r250288394
2019-01-29 13:14:24 -08:00
Andreas Schwab
742d768656
bpo-35847: RISC-V needs CTYPES_PASS_BY_REF_HACK (GH-11694)
...
This fixes the ctypes.test.test_structures.StructureTestCase test.
https://bugs.python.org/issue35847
2019-01-29 08:16:10 -08:00
Raymond Hettinger
808180c206
Fast path for int inputs to math.dist() and math.hypot() (GH-11692)
2019-01-28 13:59:56 -08:00
David H
ea446409cd
bpo-35701: Update doc for UUID weak referencing (GH-11621)
2019-01-28 10:31:19 +01:00
nu_no
dfc8bb987d
Fix typo: class declaration (GH-11678)
2019-01-27 14:07:47 -08:00
Nick Coghlan
3171df3414
Clarify U-mode deprecation in open() (GH-11646)
...
The previous wording could be read as saying that universal
newlines mode itself was deprecated, when it's only the 'U'
character in the mode field that should be avoided.
The update also moves the description of the 'U' mode character
out of the mode table, as the longer explanation was overly
intrusive as a table entry and overshadowed the actually useful
mode characters.
2019-01-28 02:21:11 +10:00
Gregory P. Smith
81d04bcf21
Fix docstr/comment typos in _use_posix_spawn(). (GH-11684)
2019-01-26 15:19:11 -08:00