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

Delta Between Two Patch Sets: Misc/NEWS

Issue 7776: http.client.HTTPConnection tunneling is broken
Left Patch Set: Created 6 years ago
Right Patch Set: Created 6 years 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
« no previous file with change/comment | « Lib/test/test_httplib.py ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 +++++++++++ 1 +++++++++++
2 Python News 2 Python News
3 +++++++++++ 3 +++++++++++
4 4
5 What's New in Python 3.4.0 Release Candidate 1? 5 What's New in Python 3.4.0 Beta 3?
6 =============================================== 6 ==================================
7 7
8 Release date: 2014-01-19 8 Release date: 2014-01-25
9 9
10 Core and Builtins 10 Core and Builtins
11 ----------------- 11 -----------------
12
13 - Issue #20189: Four additional builtin types (PyTypeObject,
14 PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
15 have been modified to provide introspection information for builtins.
16
17 - Issue #17825: Cursor "^" is correctly positioned for SyntaxError and
18 IndentationError.
19
20 - Issue #2382: SyntaxError cursor "^" is now written at correct position in most
21 cases when multibyte characters are in line (before "^"). This still not
22 works correctly with wide East Asian characters.
12 23
13 - Issue #18960: The first line of Python script could be executed twice when 24 - Issue #18960: The first line of Python script could be executed twice when
14 the source encoding was specified on the second line. Now the source encoding 25 the source encoding was specified on the second line. Now the source encoding
15 declaration on the second line isn't effective if the first line contains 26 declaration on the second line isn't effective if the first line contains
16 anything except a comment. 'python -x' works now again with files with the 27 anything except a comment. 'python -x' works now again with files with the
17 source encoding declarations, and can be used to make Python batch files 28 source encoding declarations, and can be used to make Python batch files
18 on Windows. 29 on Windows.
19 30
20 - Issue #19081: When a zipimport .zip file in sys.path being imported from 31 - Issue #19081: When a zipimport .zip file in sys.path being imported from
21 is modified during the lifetime of the Python process after zipimport has 32 is modified during the lifetime of the Python process after zipimport has
22 already cached the zip's table of contents we detect this and recover 33 already cached the zip's table of contents we detect this and recover
23 rather than read bad data from the .zip (causing odd import errors). 34 rather than read bad data from the .zip (causing odd import errors).
24 35
25 Library 36 Library
26 ------- 37 -------
27 38
39 - Issue #20367: Fix behavior of concurrent.futures.as_completed() for
40 duplicate arguments. Patch by Glenn Langford.
41
42 - Issue #8260: The read(), readline() and readlines() methods of
43 codecs.StreamReader returned incomplete data when were called after
44 readline() or read(size). Based on patch by Amaury Forgeot d'Arc.
45
46 - Issue #20105: the codec exception chaining now correctly sets the
47 traceback of the original exception as its __traceback__ attribute.
48
49 - asyncio: Various improvements and small changes not all covered by
50 issues listed below. E.g. wait_for() now cancels the inner task if
51 the timeout occcurs; tweaked the set of exported symbols; renamed
52 Empty/Full to QueueEmpty/QueueFull; "with (yield from lock)" now
53 uses a separate context manager; readexactly() raises if not enough
54 data was read; PTY support tweaks.
55
56 - Issue #20311: asyncio: Add a granularity attribute to BaseEventLoop: maximum
57 between the resolution of the BaseEventLoop.time() method and the resolution
58 of the selector. The granuarility is used in the scheduler to round time and
59 deadline.
60
61 - Issue #20311: selectors: Add a resolution attribute to BaseSelector.
62
63 - Issue #20189: unittest.mock now no longer assumes that any object for
64 which it could get an inspect.Signature is a callable written in Python.
65 Fix courtesy of Michael Foord.
66
67 - Issue #20317: ExitStack.__exit__ could create a self-referential loop if an
68 exception raised by a cleanup operation already had its context set
69 correctly (for example, by the @contextmanager decorator). The infinite
70 loop this caused is now avoided by checking if the expected context is
71 already set before trying to fix it.
72
73 - Issue #20374: Fix build with GNU readline >= 6.3.
74
75 - Issue #20262: Warnings are raised now when duplicate names are added in the
76 ZIP file or too long ZIP file comment is truncated.
77
78 - Issue #20165: The unittest module no longer considers tests marked with
79 @expectedFailure successful if they pass.
80
81 - Issue #18574: Added missing newline in 100-Continue reply from
82 http.server.BaseHTTPRequestHandler. Patch by Nikolaus Rath.
83
84 - Issue #20270: urllib.urlparse now supports empty ports.
85
86 - Issue #20243: TarFile no longer raise ReadError when opened in write mode.
87
88 - Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn't
89 write complete output on close.
90
91 - Issue #20245: The open functions in the tarfile module now correctly handle
92 empty mode.
93
28 - Issue #20242: Fixed basicConfig() format strings for the alternative 94 - Issue #20242: Fixed basicConfig() format strings for the alternative
29 formatting styles. Thanks to kespindler for the bug report and patch. 95 formatting styles. Thanks to kespindler for the bug report and patch.
30 96
31 - Issue #20246: Fix buffer overflow in socket.recvfrom_into. 97 - Issue #20246: Fix buffer overflow in socket.recvfrom_into.
32 98
33 - Issues #20206 and #5803: Fix edge case in email.quoprimime.encode where it 99 - Issues #20206 and #5803: Fix edge case in email.quoprimime.encode where it
34 truncated lines ending in a character needing encoding but no newline by 100 truncated lines ending in a character needing encoding but no newline by
35 using a more efficient algorithm that doesn't have the bug. 101 using a more efficient algorithm that doesn't have the bug.
36 102
37 - Issue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in 103 - Issue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 - Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver(). 139 - Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().
74 140
75 - Issue #14455: Fix some problems with the new binary plist support in plistlib. 141 - Issue #14455: Fix some problems with the new binary plist support in plistlib.
76 142
77 - Issue #7776: Fix ``Host:'' header and reconnection when using 143 - Issue #7776: Fix ``Host:'' header and reconnection when using
78 http.client.HTTPConnection.set_tunnel(). Patch by Nikolaus Rath. 144 http.client.HTTPConnection.set_tunnel(). Patch by Nikolaus Rath.
79 145
80 IDLE 146 IDLE
81 ---- 147 ----
82 148
149 - Issue #17721: Remove non-functional configuration dialog help button until we
150 make it actually gives some help when clicked. Patch by Guilherme Simões.
151
152 - Issue #17390: Add Python version to Idle editor window title bar.
153 Original patches by Edmond Burnett and Kent Johnson.
154
83 - Issue #18960: IDLE now ignores the source encoding declaration on the second 155 - Issue #18960: IDLE now ignores the source encoding declaration on the second
84 line if the first line contains anything except a comment. 156 line if the first line contains anything except a comment.
85 157
86 Tests 158 Tests
87 ----- 159 -----
88 160
161 - Issue #19990: Added tests for the imghdr module. Based on patch by
162 Claudiu Popa.
163
164 - Issue #20358: Tests for curses.window.overlay and curses.window.overwrite
165 no longer specify min{row,col} > max{row,col}.
166
167 - Issue #19804: The test_find_mac test in test_uuid is now skipped if the
168 ifconfig executable is not available.
169
89 - Issue #19886: Use better estimated memory requirements for bigmem tests. 170 - Issue #19886: Use better estimated memory requirements for bigmem tests.
90 171
91 Tools/Demos 172 Tools/Demos
92 ----------- 173 -----------
174
175 - Issue #20390: Argument Clinic's "file" output preset now defaults to
176 "{dirname}/clinic/{basename}.h".
177
178 - Issue #20390: Argument Clinic's "class" directive syntax has been extended
179 with two new required arguments: "typedef" and "type_object".
180
181 - Issue #20390: Argument Clinic: If __new__ or __init__ functions didn't use
182 kwargs (or args), the PyArg_NoKeywords (or PyArg_NoPositional) calls
183 generated are only run when the type object is an exact match.
184
185 - Issue #20390: Argument Clinic now fails if you have required parameters after
186 optional parameters.
187
188 - Issue #20390: Argument Clinic converters now have a new template they can
189 inject code into: "modifiers". Code put there is run in the parsing
190 function after argument parsing but before the call to the impl.
191
192 - Issue #20376: Argument Clinic now escapes backslashes in docstrings.
193
194 - Issue #20381: Argument Clinic now sanity checks the default argument when
195 c_default is also specified, providing a nice failure message for
196 disallowed values.
197
198 - Issue #20189: Argument Clinic now ensures that parser functions for
199 __new__ are always of type newfunc, the type of the tp_new slot.
200 Similarly, parser functions for __init__ are now always of type initproc,
201 the type of tp_init.
202
203 - Issue #20189: Argument Clinic now suppresses the docstring for __new__
204 and __init__ functions if no docstring is provided in the input.
205
206 - Issue #20189: Argument Clinic now suppresses the "self" parameter in the
207 impl for @staticmethod functions.
208
209 - Issue #20294: Argument Clinic now supports argument parsing for __new__ and
210 __init__ functions.
211
212 - Issue #20299: Argument Clinic custom converters may now change the default
213 value of c_default and py_default with a class member.
93 214
94 - Issue #20287: Argument Clinic's output is now configurable, allowing 215 - Issue #20287: Argument Clinic's output is now configurable, allowing
95 delaying its output or even redirecting it to a separate file. 216 delaying its output or even redirecting it to a separate file.
96 217
97 - Issue #20226: Argument Clinic now permits simple expressions 218 - Issue #20226: Argument Clinic now permits simple expressions
98 (e.g. "sys.maxsize - 1") as default values for parameters. 219 (e.g. "sys.maxsize - 1") as default values for parameters.
99 220
100 - Issue #19936: Added executable bits or shebang lines to Python scripts which 221 - Issue #19936: Added executable bits or shebang lines to Python scripts which
101 requires them. Disable executable bits and shebang lines in test and 222 requires them. Disable executable bits and shebang lines in test and
102 benchmark files in order to prevent using a random system python, and in 223 benchmark files in order to prevent using a random system python, and in
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 424
304 - Issue #19063: if a Charset's body_encoding was set to None, the email 425 - Issue #19063: if a Charset's body_encoding was set to None, the email
305 package would generate a message claiming the Content-Transfer-Encoding 426 package would generate a message claiming the Content-Transfer-Encoding
306 was 7bit, and produce garbage output for the content. This now works. 427 was 7bit, and produce garbage output for the content. This now works.
307 A couple of other set_payload mishandlings of non-ASCII are also fixed. 428 A couple of other set_payload mishandlings of non-ASCII are also fixed.
308 In addition, calling set_payload with a string argument without 429 In addition, calling set_payload with a string argument without
309 specifying a charset now raises an error (this is a new error in 3.4). 430 specifying a charset now raises an error (this is a new error in 3.4).
310 431
311 - Issue #15475: Add __sizeof__ implementations for itertools objects. 432 - Issue #15475: Add __sizeof__ implementations for itertools objects.
312 433
434 - Issue #19944: Fix importlib.find_spec() so it imports parents as needed
435 and move the function to importlib.util.
436
313 - Issue #19880: Fix a reference leak in unittest.TestCase. Explicitly break 437 - Issue #19880: Fix a reference leak in unittest.TestCase. Explicitly break
314 reference cycles between frames and the _Outcome instance. 438 reference cycles between frames and the _Outcome instance.
315 439
316 - Issue #17429: platform.linux_distribution() now decodes files from the UTF-8 440 - Issue #17429: platform.linux_distribution() now decodes files from the UTF-8
317 encoding with the surrogateescape error handler, instead of decoding from the 441 encoding with the surrogateescape error handler, instead of decoding from the
318 locale encoding in strict mode. It fixes the function on Fedora 19 which is 442 locale encoding in strict mode. It fixes the function on Fedora 19 which is
319 probably the first major distribution release with a non-ASCII name. Patch 443 probably the first major distribution release with a non-ASCII name. Patch
320 written by Toshio Kuratomi. 444 written by Toshio Kuratomi.
321 445
322 - Issue #19343: Expose FreeBSD-specific APIs in resource module. Original 446 - Issue #19343: Expose FreeBSD-specific APIs in resource module. Original
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 555
432 - Issue #20058: sys.stdin.readline() in IDLE now always returns only one line. 556 - Issue #20058: sys.stdin.readline() in IDLE now always returns only one line.
433 557
434 - Issue #19481: print() of string subclass instance in IDLE no longer hangs. 558 - Issue #19481: print() of string subclass instance in IDLE no longer hangs.
435 559
436 - Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial 560 - Issue #18270: Prevent possible IDLE AttributeError on OS X when no initial
437 shell window is present. 561 shell window is present.
438 562
439 Tests 563 Tests
440 ----- 564 -----
441
442 - Issue #19804: The test_find_mac test in test_uuid is now skipped if the
443 ifconfig executable is not available.
444 565
445 - Issue #20055: Fix test_shutil under Windows with symlink privileges held. 566 - Issue #20055: Fix test_shutil under Windows with symlink privileges held.
446 Patch by Vajrasky Kok. 567 Patch by Vajrasky Kok.
447 568
448 - Issue #20070: Don't run test_urllib2net when network resources are not 569 - Issue #20070: Don't run test_urllib2net when network resources are not
449 enabled. 570 enabled.
450 571
451 - Issue #19938: Re-enabled test_bug_1333982 in test_dis, which had been 572 - Issue #19938: Re-enabled test_bug_1333982 in test_dis, which had been
452 disabled since 3.0 due to the changes in listcomp handling. 573 disabled since 3.0 due to the changes in listcomp handling.
453 574
(...skipping 7436 matching lines...) Expand 10 before | Expand all | Expand 10 after
7890 8011
7891 - Issue #13237: Reorganise subprocess documentation to emphasise convenience 8012 - Issue #13237: Reorganise subprocess documentation to emphasise convenience
7892 functions and the most commonly needed arguments to Popen. 8013 functions and the most commonly needed arguments to Popen.
7893 8014
7894 - Issue #13141: Demonstrate recommended style for socketserver examples. 8015 - Issue #13141: Demonstrate recommended style for socketserver examples.
7895 8016
7896 - Issue #11818: Fix tempfile examples for Python 3. 8017 - Issue #11818: Fix tempfile examples for Python 3.
7897 8018
7898 8019
7899 **(For information about older versions, consult the HISTORY file.)** 8020 **(For information about older versions, consult the HISTORY file.)**
LEFTRIGHT

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