Pablo Galindo
175421b58c
bpo-36016: Add generation option to gc.getobjects() (GH-11909)
2019-02-23 12:02:06 +09:00
Raymond Hettinger
47d9987247
bpo-35904: Add statistics.fmean() (GH-11892)
2019-02-21 15:06:29 -08:00
Joe Jevnik
f36f89257b
bpo-36068: Make _tuplegetter objects serializable (GH-11981)
2019-02-21 13:00:40 -08:00
Stefan Behnel
d8b9e1fc2e
bpo-36012: Avoid linear slot search for non-dunder methods (GH-11907)
2019-02-20 09:29:24 -08:00
Raymond Hettinger
e182318e6a
bpo-33234: Add another attribution in Whatsnew (GH-11899)
...
https://bugs.python.org/issue33234
2019-02-16 12:47:48 -08:00
Raymond Hettinger
63fa1cfece
bpo-32492: Add missing whatsnew entries for itemgetter and namedtuple (GH-11897)
...
https://bugs.python.org/issue32492
2019-02-16 12:02:22 -08:00
Raymond Hettinger
3ff5962d2e
bpo-33089: Add math.dist() and math.hypot() to Whatsnew (GH-11896)
...
https://bugs.python.org/issue33089
2019-02-16 11:00:42 -08:00
Serhiy Storchaka
62e4481238
bpo-15248: Emit a compiler warning when missed a comma before tuple or list. (GH-11757)
2019-02-16 08:12:19 +02: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
Pablo Galindo
bc09851586
bpo-35606: Implement math.prod (GH-11359)
2019-02-06 23:04:02 -08:00
Raymond Hettinger
f75d59e1a8
bpo-35884: Add variable access benchmarking script (GH-11725)
2019-02-02 22:54:56 -08: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
David H
ea446409cd
bpo-35701: Update doc for UUID weak referencing (GH-11621)
2019-01-28 10:31:19 +01:00
Victor Stinner
f6243ac1e4
bpo-35537: subprocess can use posix_spawn with pipes (GH-11575)
...
* subprocess.Popen can now also use os.posix_spawn() with pipes,
but only if pipe file descriptors are greater than 2.
* Fix Popen._posix_spawn(): set '_child_created' attribute to True.
* Add Popen._close_pipe_fds() helper function to factorize the code.
2019-01-23 19:00:39 +01:00
Victor Stinner
bf4ac2d2fd
bpo-35713: Rework Python initialization (GH-11647)
...
* The PyByteArray_Init() and PyByteArray_Fini() functions have been
removed. They did nothing since Python 2.7.4 and Python 3.2.0, were
excluded from the limited API (stable ABI), and were not
documented.
* Move "_PyXXX_Init()" and "_PyXXX_Fini()" declarations from
Include/cpython/pylifecycle.h to
Include/internal/pycore_pylifecycle.h. Replace
"PyAPI_FUNC(TYPE)" with "extern TYPE".
* _PyExc_Init() now returns an error on failure rather than calling
Py_FatalError(). Move macros inside _PyExc_Init() and undefine them
when done. Rewrite macros to make them look more like statement:
add ";" when using them, add "do { ... } while (0)".
* _PyUnicode_Init() now returns a _PyInitError error rather than call
Py_FatalError().
* Move stdin check from _PySys_BeginInit() to init_sys_streams().
* _Py_ReadyTypes() now returns a _PyInitError error rather than
calling Py_FatalError().
2019-01-22 17:39:03 +01:00
Serhiy Storchaka
3bcbedc9f1
bpo-34850: Emit a warning for "is" and "is not" with a literal. (GH-9642)
2019-01-18 07:47:48 +02:00
Dong-hee Na
89669ffe10
bpo-35283: Add deprecation warning for Thread.isAlive (GH-11454)
...
Add a deprecated warning for the threading.Thread.isAlive() method.
2019-01-17 13:14:45 +01:00
Victor Stinner
8c349565e8
Revert "bpo-35537: subprocess can now use os.posix_spawnp (GH-11579)" (GH-11582)
...
This reverts commit 0785889468
.
2019-01-16 23:38:06 +01:00
Victor Stinner
0785889468
bpo-35537: subprocess can now use os.posix_spawnp (GH-11579)
...
The subprocess module can now use the os.posix_spawnp() function,
if it is available, to locate the program in the PATH.
2019-01-16 15:26:20 +01:00
Victor Stinner
9daecf37a5
bpo-35537: subprocess uses os.posix_spawn in some cases (GH-11452)
...
The subprocess module can now use the os.posix_spawn() function
in some cases for better performance. Currently, it is only used on macOS
and Linux (using glibc 2.24 or newer) if all these conditions are met:
* executable path contains a directory
* close_fds=False
* preexec_fn, pass_fds, cwd, stdin, stdout, stderr
and start_new_session parameters are not set
Co-authored-by: Joannah Nanjekye <nanjekyejoannah@gmail.com>
2019-01-16 00:02:35 +01:00
Joannah Nanjekye
572168a016
bpo-35702: Add new identifier time.CLOCK_UPTIME_RAW for macOS 10.12 (GH-11503)
2019-01-10 17:56:38 +01:00
jab
9e00d9e88f
bpo-20849: add dirs_exist_ok arg to shutil.copytree (patch by Josh Bronson)
2018-12-28 19:03:40 +01:00
Serhiy Storchaka
2b57c43f21
bpo-35506: Remove redundant and incorrect links from keywords. (GH-11174)
2018-12-19 08:09:46 +02:00
Victor Stinner
d7538dd5e3
bpo-35471: Remove the macpath module (GH-11129)
...
Python 2.4 dropped MacOS 9 support. The macpath module was deprecated
in Python 3.7. This change removes it.
2018-12-14 13:37:26 +01:00
Xiang Zhang
4fb0b8bc25
bpo-33106: change dbm key deletion error for readonly file from KeyError to dbm.error ( #6295 )
2018-12-12 20:46:55 +08:00
Mariatta
16501b7082
bpo-35434 Fix wrong issue number in what's new in 3.8 (GH-11012)
...
https://bugs.python.org/issue35434
2018-12-06 21:59:42 -08:00
Victor Stinner
73104fa1e6
bpo-35345: Remove platform.popen() (GH-10781)
...
Remove platform.popen() function, it was deprecated since Python 3.3:
use os.popen() instead.
Rename also the "Removed" section to "API and Feature Removals"
of What's New in Python 3.8.
2018-11-29 09:58:20 +01:00
Giampaolo Rodola
19c46a4c96
bpo-33695 shutil.copytree() + os.scandir() cache ( #7874 )
2018-11-12 06:18:15 -08:00
Lisa Roach
0f221d09ca
bpo-24412: Adds cleanUps for setUpClass and setUpModule. (GH-9190)
2018-11-08 18:34:33 -08:00
Andrés Delfino
ca68261c75
Fix markup for xml.sax in 3.8 notes. (GH-9603)
2018-11-07 19:29:14 +02:00
Cheryl Sabella
637a33b996
bpo-2504: Add pgettext() and variants to gettext. (GH-7253)
2018-11-07 16:12:20 +02:00
HongWeipeng
f194479949
bpo-31553: add --json-lines option to json.tool ( #10051 )
...
* add jsonlines option to json.tool
* code review
* fix:avoid read infile after it close
* improve doc in whatsnew 3.8
2018-11-07 12:09:32 +02:00
guoci
0e7497cb46
bpo-34898: Add mtime parameter to gzip.compress(). (GH-9704)
...
Without setting mtime, time.time() will be used as the timestamp which will
end up in the compressed data and each invocation of the compress() function
will vary over time.
2018-11-07 11:50:23 +02:00
Rémi Lapeyre
6531bf6309
bpo-33462: Add __reversed__ to dict and dict views (GH-6827)
2018-11-06 09:38:54 +09:00
Max Bélanger
2810dd7be9
closes bpo-32285: Add unicodedata.is_normalized. (GH-4806)
2018-11-04 15:58:24 -08:00
Serhiy Storchaka
3f819ca138
bpo-35110: Fix unintentional spaces around hyphens and dashes. (GH-10231)
2018-10-31 02:26:06 +02:00
Serhiy Storchaka
b232df9197
bpo-31680: Add curses.ncurses_version. (GH-4217)
...
Use curses.ncurses_version for conditionally skipping a test.
2018-10-30 13:22:42 +02:00
Pablo Galindo
c61e229d2a
bpo-33234: Add exact allocation optimization to lists in What's New (GH-10200)
...
In commit 372d705
a new optimization to the list() type was introduced but it was not added
to the optimization section in What's new for Python 3.8.
2018-10-28 22:03:18 +00:00
Serhiy Storchaka
fec35c99aa
bpo-33710: Deprecate l*gettext() and related functions in the gettext module. (GH-10139)
...
They return encoded bytes and are Python 2 artifacts.
2018-10-27 08:00:41 +03:00
Tal Einat
dfba1f67e7
bpo-33899: Mention tokenize behavior change in What's New (GH-10073)
2018-10-24 00:20:05 -07:00
Serhiy Storchaka
b2e2025941
bpo-33073: Rework int.as_integer_ratio() implementation (GH-9303)
...
* Simplify the C code.
* Simplify tests and make them more strict and robust.
* Add references in the documentation.
2018-10-19 23:46:31 +02:00
Serhiy Storchaka
6543912c90
bpo-32912: Replace a DeprecationWarning with a SyntaxWarning (GH-9652)
...
for invalid escape sequences in string and bytes literals.
2018-10-19 17:42:06 +03:00
Juliette Monsel
bf034715db
bpo-23831: Add moveto method to the tkinter.Canvas widget. (GH-9768)
2018-10-12 19:44:10 +03:00
Juliette Monsel
af5658ae93
bpo-34829: Add missing selection_ methods to the Tkinter Spinbox. (GH-9617)
...
Implement the methods selection_from(), selection_range(), selection_present()
and selection_to() for Tkinter Spinbox.
2018-10-08 19:29:24 +03:00
Serhiy Storchaka
3f22811fef
bpo-32892: Use ast.Constant instead of specific constant AST types. (GH-9445)
2018-09-27 17:42:37 +03:00
Terry Jan Reedy
fdcb5ae25c
bpo-1529353: IDLE - Squeezer What's New for 3.8 ( #9572 )
2018-09-25 12:45:27 -04:00
Victor Stinner
6ea29c5e90
bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538)
2018-09-25 11:27:08 -04:00
Christian Heimes
17b1d5d4e3
bpo-17239: Disable external entities in SAX parser (GH-9217)
...
The SAX parser no longer processes general external entities by default
to increase security. Before, the parser created network connections
to fetch remote files or loaded local files from the file system for DTD
and entities.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue17239
2018-09-23 00:50:25 -07:00
Christian Heimes
9fb051f032
bpo-34670: Add TLS 1.3 post handshake auth (GH-9460)
...
Add SSLContext.post_handshake_auth and
SSLSocket.verify_client_post_handshake for TLS 1.3 post-handshake
authentication.
Signed-off-by: Christian Heimes <christian@python.org>q
https://bugs.python.org/issue34670
2018-09-22 23:32:31 -07:00
jChapman
8fabae3b00
bpo-32117: Iterable unpacking in return and yield documentation (GH-9487)
...
News entry clean up, added to what's new
Requested by @gvanrossum in https://github.com/python/cpython/pull/4509
https://bugs.python.org/issue32117
2018-09-22 18:13:10 -07:00