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

Delta Between Two Patch Sets: Misc/NEWS

Issue 25994: File descriptor leaks in os.scandir()
Left Patch Set: Created 3 years, 7 months ago
Right Patch Set: Created 3 years, 7 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.
16
17 - Issue #26204: The compiler now ignores all constant statements: bytes, str,
18 int, float, complex, name constants (None, False, True), Ellipsis
19 and ast.Constant; not only str and int. For example, ``1.0`` is now ignored
20 in ``def f(): 1.0``.
12 21
13 - Issue #4806: Avoid masking the original TypeError exception when using star 22 - Issue #4806: Avoid masking the original TypeError exception when using star
14 (*) 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
15 Daniel Urban. 24 Daniel Urban.
16 25
17 - Issue #26146: Add a new kind of AST node: ``ast.Constant``. It can be used 26 - Issue #26146: Add a new kind of AST node: ``ast.Constant``. It can be used
18 by external AST optimizers, but the compiler does not emit directly such 27 by external AST optimizers, but the compiler does not emit directly such
19 node. 28 node.
20 29
21 - Issue #23601: Sped-up allocation of dict key objects by using Python's 30 - Issue #23601: Sped-up allocation of dict key objects by using Python's
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 171
163 - Issue #26171: Fix possible integer overflow and heap corruption in 172 - Issue #26171: Fix possible integer overflow and heap corruption in
164 zipimporter.get_data(). 173 zipimporter.get_data().
165 174
166 - Issue #25660: Fix TAB key behaviour in REPL with readline. 175 - Issue #25660: Fix TAB key behaviour in REPL with readline.
167 176
168 - Issue #26288: Optimize PyLong_AsDouble. 177 - Issue #26288: Optimize PyLong_AsDouble.
169 178
170 Library 179 Library
171 ------- 180 -------
181
182 - Issue #26243: Support keyword arguments to zlib.compress(). Patch by Aviv
183 Palivoda.
172 184
173 - 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
174 protocol for the os.scandir() class. 186 protocol for the os.scandir() class.
175 187
176 - 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
177 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.
178 190
179 - 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
180 needed. 192 needed.
181 193
(...skipping 2026 matching lines...) Expand 10 before | Expand all | Expand 10 after
2208 - Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive 2220 - Issue #21717: The zipfile.ZipFile.open function now supports 'x' (exclusive
2209 creation) mode. 2221 creation) mode.
2210 2222
2211 - 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
2212 writer failed in BufferedRWPair.close(). 2224 writer failed in BufferedRWPair.close().
2213 2225
2214 - Issue #23622: Unknown escapes in regular expressions that consist of ``'\'`` 2226 - Issue #23622: Unknown escapes in regular expressions that consist of ``'\'``
2215 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
2216 Python 3.6. 2228 Python 3.6.
2217 2229
2218 - Issue #23671: string.Template now allows to specify the "self" parameter as 2230 - Issue #23671: string.Template now allows specifying the "self" parameter as
2219 keyword argument. string.Formatter now allows to specify the "self" and 2231 a keyword argument. string.Formatter now allows specifying the "self" and
2220 the "format_string" parameters as keyword arguments. 2232 the "format_string" parameters as keyword arguments.
2221 2233
2222 - Issue #23502: The pprint module now supports mapping proxies. 2234 - Issue #23502: The pprint module now supports mapping proxies.
2223 2235
2224 - Issue #17530: pprint now wraps long bytes objects and bytearrays. 2236 - Issue #17530: pprint now wraps long bytes objects and bytearrays.
2225 2237
2226 - Issue #22687: Fixed some corner cases in breaking words in tetxtwrap. 2238 - Issue #22687: Fixed some corner cases in breaking words in tetxtwrap.
2227 Got rid of quadratic complexity in breaking long words. 2239 Got rid of quadratic complexity in breaking long words.
2228 2240
2229 - 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
3338 of HTMLParser to True. Patch by Berker Peksag. 3350 of HTMLParser to True. Patch by Berker Peksag.
3339 3351
3340 - Add an __all__ to html.entities. 3352 - Add an __all__ to html.entities.
3341 3353
3342 - Issue #15114: the strict mode and argument of HTMLParser, HTMLParser.error, 3354 - Issue #15114: the strict mode and argument of HTMLParser, HTMLParser.error,
3343 and the HTMLParserError exception have been removed. 3355 and the HTMLParserError exception have been removed.
3344 3356
3345 - Issue #22085: Dropped support of Tk 8.3 in Tkinter. 3357 - Issue #22085: Dropped support of Tk 8.3 in Tkinter.
3346 3358
3347 - Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk. 3359 - Issue #21580: Now Tkinter correctly handles bytes arguments passed to Tk.
3348 In particular this allows to initialize images from binary data. 3360 In particular this allows initializing images from binary data.
3349 3361
3350 - Issue #22003: When initialized from a bytes object, io.BytesIO() now 3362 - Issue #22003: When initialized from a bytes object, io.BytesIO() now
3351 defers making a copy until it is mutated, improving performance and 3363 defers making a copy until it is mutated, improving performance and
3352 memory use on some use cases. Patch by David Wilson. 3364 memory use on some use cases. Patch by David Wilson.
3353 3365
3354 - 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.
3355 A side effect is that Python depends to the WinSock library. 3367 A side effect is that Python depends to the WinSock library.
3356 3368
3357 - 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
3358 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
3483 3495
3484 - 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
3485 return code when uploading fails. Patch by Martin Dengler. 3497 return code when uploading fails. Patch by Martin Dengler.
3486 3498
3487 - 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
3488 maximum size. Patch written by Vajrasky Kok. 3500 maximum size. Patch written by Vajrasky Kok.
3489 3501
3490 - Issue #21711: support for "site-python" directories has now been removed 3502 - Issue #21711: support for "site-python" directories has now been removed
3491 from the site module (it was deprecated in 3.4). 3503 from the site module (it was deprecated in 3.4).
3492 3504
3493 - 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
3494 socket by using high-performance os.sendfile() on UNIX. 3506 socket by using high-performance os.sendfile() on UNIX.
3495 Patch by Giampaolo Rodola'. 3507 Patch by Giampaolo Rodola'.
3496 3508
3497 - 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
3498 flag has the value 'n'. Patch by Claudiu Popa. 3510 flag has the value 'n'. Patch by Claudiu Popa.
3499 3511
3500 - Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop. 3512 - Issue #21326: Add a new is_closed() method to asyncio.BaseEventLoop.
3501 run_forever() and run_until_complete() methods of asyncio.BaseEventLoop now 3513 run_forever() and run_until_complete() methods of asyncio.BaseEventLoop now
3502 raise an exception if the event loop was closed. 3514 raise an exception if the event loop was closed.
3503 3515
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
3927 name you enter (even if your system does not display it). Some systems 3939 name you enter (even if your system does not display it). Some systems
3928 automatically add .txt when type is Text files. 3940 automatically add .txt when type is Text files.
3929 3941
3930 - Issue #21986: Code objects are not normally pickled by the pickle module. 3942 - Issue #21986: Code objects are not normally pickled by the pickle module.
3931 To match this, they are no longer pickled when running under Idle. 3943 To match this, they are no longer pickled when running under Idle.
3932 3944
3933 - Issue #17390: Adjust Editor window title; remove 'Python', 3945 - Issue #17390: Adjust Editor window title; remove 'Python',
3934 move version to end. 3946 move version to end.
3935 3947
3936 - Issue #14105: Idle debugger breakpoints no longer disappear 3948 - Issue #14105: Idle debugger breakpoints no longer disappear
3937 when inseting or deleting lines. 3949 when inserting or deleting lines.
3938 3950
3939 - Issue #17172: Turtledemo can now be run from Idle. 3951 - Issue #17172: Turtledemo can now be run from Idle.
3940 Currently, the entry is on the Help menu, but it may move to Run. 3952 Currently, the entry is on the Help menu, but it may move to Run.
3941 Patch by Ramchandra Apt and Lita Cho. 3953 Patch by Ramchandra Apt and Lita Cho.
3942 3954
3943 - Issue #21765: Add support for non-ascii identifiers to HyperParser. 3955 - Issue #21765: Add support for non-ascii identifiers to HyperParser.
3944 3956
3945 - Issue #21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav 3957 - Issue #21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav
3946 Heblikar. 3958 Heblikar.
3947 3959
(...skipping 3498 matching lines...) Expand 10 before | Expand all | Expand 10 after
7446 7458
7447 - Issue #17149: Fix random.vonmisesvariate to always return results in 7459 - Issue #17149: Fix random.vonmisesvariate to always return results in
7448 [0, 2*math.pi]. 7460 [0, 2*math.pi].
7449 7461
7450 - Issue #1470548: XMLGenerator now works with binary output streams. 7462 - Issue #1470548: XMLGenerator now works with binary output streams.
7451 7463
7452 - Issue #6975: os.path.realpath() now correctly resolves multiple nested 7464 - Issue #6975: os.path.realpath() now correctly resolves multiple nested
7453 symlinks on POSIX platforms. 7465 symlinks on POSIX platforms.
7454 7466
7455 - 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
7456 filename as a URI, allowing to pass custom options. 7468 filename as a URI, allowing custom options to be passed.
7457 7469
7458 - Issue #16564: Fixed regression relative to Python2 in the operation of 7470 - Issue #16564: Fixed regression relative to Python2 in the operation of
7459 email.encoders.encode_noop when used with binary data. 7471 email.encoders.encode_noop when used with binary data.
7460 7472
7461 - 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
7462 SpooledTemporaryFile objects even when they have not yet rolled over. 7474 SpooledTemporaryFile objects even when they have not yet rolled over.
7463 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
7464 removed. 7476 removed.
7465 7477
7466 - 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
7707 7719
7708 - 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.
7709 Patch by Julien Courteau and Pierre Paul Lefebvre. 7721 Patch by Julien Courteau and Pierre Paul Lefebvre.
7710 7722
7711 - Issue #13512: Create ~/.pypirc securely (CVE-2011-4944). Initial patch by 7723 - Issue #13512: Create ~/.pypirc securely (CVE-2011-4944). Initial patch by
7712 Philip Jenvey, tested by Mageia and Debian. 7724 Philip Jenvey, tested by Mageia and Debian.
7713 7725
7714 - Issue #7719: Make distutils ignore ``.nfs*`` files instead of choking later 7726 - Issue #7719: Make distutils ignore ``.nfs*`` files instead of choking later
7715 on. Initial patch by SilentGhost and Jeff Ramnani. 7727 on. Initial patch by SilentGhost and Jeff Ramnani.
7716 7728
7717 - Issue #13120: Allow to call pdb.set_trace() from thread. 7729 - Issue #13120: Allow calling pdb.set_trace() from thread.
7718 Patch by Ilya Sandler. 7730 Patch by Ilya Sandler.
7719 7731
7720 - 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
7721 PEP 383. 7733 PEP 383.
7722 7734
7723 - 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.
7724 Patch by Serhiy Storchaka. 7736 Patch by Serhiy Storchaka.
7725 7737
7726 - Issue #16333: use (",", ": ") as default separator in json when indent is 7738 - Issue #16333: use (",", ": ") as default separator in json when indent is
7727 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
8582 - 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 .
8583 Patch by Serhiy Storchaka. 8595 Patch by Serhiy Storchaka.
8584 8596
8585 Windows 8597 Windows
8586 ------- 8598 -------
8587 8599
8588 - 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
8589 are registered. Patch by Paul Moore. 8601 are registered. Patch by Paul Moore.
8590 8602
8591 **(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+