Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1512)

Delta Between Two Patch Sets: Misc/NEWS

Issue 25994: File descriptor leaks in os.scandir()
Left Patch Set: Created 3 years, 8 months ago
Right Patch Set: Created 3 years, 8 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 +++++++++++ 1 +++++++++++
2 Python News 2 Python News
3 +++++++++++ 3 +++++++++++
4 4
5 What's New in Python 3.6.0 alpha 1? 5 What's New in Python 3.6.0 alpha 1?
6 =================================== 6 ===================================
7 7
8 Release date: tba 8 Release date: tba
9 9
10 Core and Builtins 10 Core and Builtins
11 ----------------- 11 -----------------
12
13 - Issue #26136: Upgrade the warning when a generator raises StopIteration
14 from PendingDeprecationWarning to DeprecationWarning. Patch by Anish
15 Shah.
12 16
13 - Issue #26204: The compiler now ignores all constant statements: bytes, str, 17 - Issue #26204: The compiler now ignores all constant statements: bytes, str,
14 int, float, complex, name constants (None, False, True), Ellipsis 18 int, float, complex, name constants (None, False, True), Ellipsis
15 and ast.Constant; not only str and int. For example, ``1.0`` is now ignored 19 and ast.Constant; not only str and int. For example, ``1.0`` is now ignored
16 in ``def f(): 1.0``. 20 in ``def f(): 1.0``.
17 21
18 - Issue #4806: Avoid masking the original TypeError exception when using star 22 - Issue #4806: Avoid masking the original TypeError exception when using star
19 (*) unpacking in function calls. Based on patch by Hagen F├╝rstenau and 23 (*) unpacking in function calls. Based on patch by Hagen F├╝rstenau and
20 Daniel Urban. 24 Daniel Urban.
21 25
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 171
168 - Issue #26171: Fix possible integer overflow and heap corruption in 172 - Issue #26171: Fix possible integer overflow and heap corruption in
169 zipimporter.get_data(). 173 zipimporter.get_data().
170 174
171 - Issue #25660: Fix TAB key behaviour in REPL with readline. 175 - Issue #25660: Fix TAB key behaviour in REPL with readline.
172 176
173 - Issue #26288: Optimize PyLong_AsDouble. 177 - Issue #26288: Optimize PyLong_AsDouble.
174 178
175 Library 179 Library
176 ------- 180 -------
181
182 - Issue #26243: Support keyword arguments to zlib.compress(). Patch by Aviv
183 Palivoda.
177 184
178 - Issue #25994: Added the close() method and the support of the context manager 185 - Issue #25994: Added the close() method and the support of the context manager
179 protocol for the os.scandir() class. 186 protocol for the os.scandir() class.
180 187
181 - Issue #26117: The os.scandir() iterator now closes file descriptor not only 188 - Issue #26117: The os.scandir() iterator now closes file descriptor not only
182 when the iteration is finished, but when it was failed with error. 189 when the iteration is finished, but when it was failed with error.
183 190
184 - Issue #25949: __dict__ for an OrderedDict instance is now created only when 191 - Issue #25949: __dict__ for an OrderedDict instance is now created only when
185 needed. 192 needed.
186 193
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 - Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive 2220 - Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive
2214 creation) mode. 2221 creation) mode.
2215 2222
2216 - Issue #21802: The reader in BufferedRWPair now is closed even when closing 2223 - Issue #21802: The reader in BufferedRWPair now is closed even when closing
2217 writer failed in BufferedRWPair.close(). 2224 writer failed in BufferedRWPair.close().
2218 2225
2219 - Issue #23622: Unknown escapes in regular expressions that consist of ``'\'`` 2226 - Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``
2220 and ASCII letter now raise a deprecation warning and will be forbidden in 2227 and ASCII letter now raise a deprecation warning and will be forbidden in
2221 Python 3.6. 2228 Python 3.6.
2222 2229
2223 - Issue #23671: string.Template now allows to specify the "self" parameter as 2230 - Issue #23671: string.Template now allows specifying the "self" parameter as
2224 keyword argument. string.Formatter now allows to specify the "self" and 2231 a keyword argument. string.Formatter now allows specifying the "self" and
2225 the "format_string" parameters as keyword arguments. 2232 the "format_string" parameters as keyword arguments.
2226 2233
2227 - Issue #23502: The pprint module now supports mapping proxies. 2234 - Issue #23502: The pprint module now supports mapping proxies.
2228 2235
2229 - Issue #17530: pprint now wraps long bytes objects and bytearrays. 2236 - Issue #17530: pprint now wraps long bytes objects and bytearrays.
2230 2237
2231 - Issue #22687: Fixed some corner cases in breaking words in tetxtwrap. 2238 - Issue #22687: Fixed some corner cases in breaking words in tetxtwrap.
2232 Got rid of quadratic complexity in breaking long words. 2239 Got rid of quadratic complexity in breaking long words.
2233 2240
2234 - Issue #4727: The copy module now uses pickle protocol 4 (PEP 3154) and 2241 - Issue #4727: The copy module now uses pickle protocol 4 (PEP 3154) and
(...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
3343 of HTMLParser to True. Patch by Berker Peksag. 3350 of HTMLParser to True. Patch by Berker Peksag.
3344 3351
3345 - Add an __all__ to html.entities. 3352 - Add an __all__ to html.entities.
3346 3353
3347 - Issue #15114: the strict mode and argument of HTMLParser, HTMLParser.error, 3354 - Issue #15114: the strict mode and argument of HTMLParser, HTMLParser.error,
3348 and the HTMLParserError exception have been removed. 3355 and the HTMLParserError exception have been removed.
3349 3356
3350 - Issue #22085: Dropped support of Tk 8.3 in Tkinter. 3357 - Issue #22085: Dropped support of Tk 8.3 in Tkinter.
3351 3358
3352 - Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk. 3359 - Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
3353 In particular this allows to initialize images from binary data. 3360 In particular this allows initializing images from binary data.
3354 3361
3355 - Issue #22003: When initialized from a bytes object, io.BytesIO() now 3362 - Issue #22003: When initialized from a bytes object, io.BytesIO() now
3356 defers making a copy until it is mutated, improving performance and 3363 defers making a copy until it is mutated, improving performance and
3357 memory use on some use cases. Patch by David Wilson. 3364 memory use on some use cases. Patch by David Wilson.
3358 3365
3359 - Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets. 3366 - Issue #22018: On Windows, signal.set_wakeup_fd() now also supports sockets.
3360 A side effect is that Python depends to the WinSock library. 3367 A side effect is that Python depends to the WinSock library.
3361 3368
3362 - Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get 3369 - Issue #22054: Add os.get_blocking() and os.set_blocking() functions to get
3363 and set the blocking mode of a file descriptor (False if the O_NONBLOCK flag 3370 and set the blocking mode of a file descriptor (False if the O_NONBLOCK flag
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
3488 3495
3489 - Issue #21722: The distutils "upload" command now exits with a non-zero 3496 - Issue #21722: The distutils "upload" command now exits with a non-zero
3490 return code when uploading fails. Patch by Martin Dengler. 3497 return code when uploading fails. Patch by Martin Dengler.
3491 3498
3492 - Issue #21723: asyncio.Queue: support any type of number (ex: float) for the 3499 - Issue #21723: asyncio.Queue: support any type of number (ex: float) for the
3493 maximum size. Patch written by Vajrasky Kok. 3500 maximum size. Patch written by Vajrasky Kok.
3494 3501
3495 - Issue #21711: support for "site-python" directories has now been removed 3502 - Issue #21711: support for "site-python" directories has now been removed
3496 from the site module (it was deprecated in 3.4). 3503 from the site module (it was deprecated in 3.4).
3497 3504
3498 - Issue #17552: new socket.sendfile() method allowing to send a file over a 3505 - Issue #17552: new socket.sendfile() method allowing a file to be sent over a
3499 socket by using high-performance os.sendfile() on UNIX. 3506 socket by using high-performance os.sendfile() on UNIX.
3500 Patch by Giampaolo Rodola'. 3507 Patch by Giampaolo Rodola'.
3501 3508
3502 - Issue #18039: dbm.dump.open() now always creates a new database when the 3509 - Issue #18039: dbm.dump.open() now always creates a new database when the
3503 flag has the value 'n'. Patch by Claudiu Popa. 3510 flag has the value 'n'. Patch by Claudiu Popa.
3504 3511
3505 - Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop. 3512 - Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop.
3506 run_forever() and run_until_complete() methods of asyncio.BaseEventLoop now 3513 run_forever() and run_until_complete() methods of asyncio.BaseEventLoop now
3507 raise an exception if the event loop was closed. 3514 raise an exception if the event loop was closed.
3508 3515
(...skipping 3942 matching lines...) Expand 10 before | Expand all | Expand 10 after
7451 7458
7452 - Issue #17149: Fix random.vonmisesvariate to always return results in 7459 - Issue #17149: Fix random.vonmisesvariate to always return results in
7453 [0, 2*math.pi]. 7460 [0, 2*math.pi].
7454 7461
7455 - Issue #1470548: XMLGenerator now works with binary output streams. 7462 - Issue #1470548: XMLGenerator now works with binary output streams.
7456 7463
7457 - Issue #6975: os.path.realpath() now correctly resolves multiple nested 7464 - Issue #6975: os.path.realpath() now correctly resolves multiple nested
7458 symlinks on POSIX platforms. 7465 symlinks on POSIX platforms.
7459 7466
7460 - Issue #13773: sqlite3.connect() gets a new `uri` parameter to pass the 7467 - Issue #13773: sqlite3.connect() gets a new `uri` parameter to pass the
7461 filename as a URI, allowing to pass custom options. 7468 filename as a URI, allowing custom options to be passed.
7462 7469
7463 - Issue #16564: Fixed regression relative to Python2 in the operation of 7470 - Issue #16564: Fixed regression relative to Python2 in the operation of
7464 email.encoders.encode_noop when used with binary data. 7471 email.encoders.encode_noop when used with binary data.
7465 7472
7466 - Issue #10355: The mode, name, encoding and newlines properties now work on 7473 - Issue #10355: The mode, name, encoding and newlines properties now work on
7467 SpooledTemporaryFile objects even when they have not yet rolled over. 7474 SpooledTemporaryFile objects even when they have not yet rolled over.
7468 Obsolete method xreadline (which has never worked in Python 3) has been 7475 Obsolete method xreadline (which has never worked in Python 3) has been
7469 removed. 7476 removed.
7470 7477
7471 - Issue #16686: Fixed a lot of bugs in audioop module. Fixed crashes in 7478 - Issue #16686: Fixed a lot of bugs in audioop module. Fixed crashes in
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
7712 7719
7713 - Issue #13614: Fix setup.py register failure with invalid rst in description. 7720 - Issue #13614: Fix setup.py register failure with invalid rst in description.
7714 Patch by Julien Courteau and Pierre Paul Lefebvre. 7721 Patch by Julien Courteau and Pierre Paul Lefebvre.
7715 7722
7716 - Issue #13512: Create ~/.pypirc securely (CVE-2011-4944). Initial patch by 7723 - Issue #13512: Create ~/.pypirc securely (CVE-2011-4944). Initial patch by
7717 Philip Jenvey, tested by Mageia and Debian. 7724 Philip Jenvey, tested by Mageia and Debian.
7718 7725
7719 - Issue #7719: Make distutils ignore ``.nfs*`` files instead of choking later 7726 - Issue #7719: Make distutils ignore ``.nfs*`` files instead of choking later
7720 on. Initial patch by SilentGhost and Jeff Ramnani. 7727 on. Initial patch by SilentGhost and Jeff Ramnani.
7721 7728
7722 - Issue #13120: Allow to call pdb.set_trace() from thread. 7729 - Issue #13120: Allow calling pdb.set_trace() from thread.
7723 Patch by Ilya Sandler. 7730 Patch by Ilya Sandler.
7724 7731
7725 - Issue #16585: Make CJK encoders support error handlers that return bytes per 7732 - Issue #16585: Make CJK encoders support error handlers that return bytes per
7726 PEP 383. 7733 PEP 383.
7727 7734
7728 - Issue #10182: The re module doesn't truncate indices to 32 bits anymore. 7735 - Issue #10182: The re module doesn't truncate indices to 32 bits anymore.
7729 Patch by Serhiy Storchaka. 7736 Patch by Serhiy Storchaka.
7730 7737
7731 - Issue #16333: use (",", ": ") as default separator in json when indent is 7738 - Issue #16333: use (",", ": ") as default separator in json when indent is
7732 specified, to avoid trailing whitespace. Patch by Serhiy Storchaka. 7739 specified, to avoid trailing whitespace. Patch by Serhiy Storchaka.
(...skipping 854 matching lines...) Expand 10 before | Expand all | Expand 10 after
8587 - Issue #13301: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py . 8594 - Issue #13301: use ast.literal_eval() instead of eval() in Tools/i18n/msgfmt.py .
8588 Patch by Serhiy Storchaka. 8595 Patch by Serhiy Storchaka.
8589 8596
8590 Windows 8597 Windows
8591 ------- 8598 -------
8592 8599
8593 - Issue #18569: The installer now adds .py to the PATHEXT variable when extensio ns 8600 - Issue #18569: The installer now adds .py to the PATHEXT variable when extensio ns
8594 are registered. Patch by Paul Moore. 8601 are registered. Patch by Paul Moore.
8595 8602
8596 **(For information about older versions, consult the HISTORY file.)** 8603 **(For information about older versions, consult the HISTORY file.)**
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+