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

Side by Side Diff: Misc/NEWS

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 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:
View unified diff | Download patch
« no previous file with comments | « Misc/ACKS ('k') | Modules/cjkcodecs/_codecs_cn.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 +++++++++++ 1 +++++++++++
2 Python News 2 Python News
3 +++++++++++ 3 +++++++++++
4 4
5 What's New in Python 3.3 Alpha 1? 5 What's New in Python 3.3 Alpha 1?
6 ================================= 6 =================================
7 7
8 *Release date: XX-XXX-20XX* 8 *Release date: XX-XXX-20XX*
9 9
10 Core and Builtins 10 Core and Builtins
11 ----------------- 11 -----------------
12
13 - Verify the types of AST strings and identifiers provided by the user before
14 compiling them.
15
16 - Issue #12579: str.format_map() now raises a ValueError if used on a
17 format string that contains positional fields. Initial patch by
18 Julian Berman.
19
20 - Issue #10271: Allow warnings.showwarning() be any callable.
21
22 - Issue #11627: Fix segfault when __new__ on a exception returns a
23 non-exception class.
24
25 - Issue #12149: Update the method cache after a type's dictionnary gets
26 cleared by the garbage collector. This fixes a segfault when an instance
27 and its type get caught in a reference cycle, and the instance's
28 deallocator calls one of the methods on the type (e.g. when subclassing
29 IOBase). Diagnosis and patch by Davide Rizzo.
30
31 - Issue #9611, #9015: FileIO.read() clamps the length to INT_MAX on Windows.
32
33 - Issue #9642: Uniformize the tests on the availability of the mbcs codec, add
34 a new HAVE_MBCS define.
35
36 - Issue #9642: Fix filesystem encoding initialization: use the ANSI code page
37 on Windows if the mbcs codec is not available, and fail with a fatal error if
38 we cannot get the locale encoding (if nl_langinfo(CODESET) is not available)
39 instead of using UTF-8.
40
41 - When a generator yields, do not retain the caller's exception state on the
42 generator.
43
44 - Issue #12475: Prevent generators from leaking their exception state into the
45 caller's frame as they return for the last time.
46
47 - Issue #12291: You can now load multiple marshalled objects from a stream,
48 with other data interleaved between marshalled objects.
49
50 - Issue #12356: When required positional or keyword-only arguments are not
51 given, produce a informative error message which includes the name(s) of the
52 missing arguments.
53 12
54 - Issue #12370: Fix super with not arguments when __class__ is overriden in the 13 - Issue #12370: Fix super with not arguments when __class__ is overriden in the
55 class body. 14 class body.
56 15
57 - Issue #12084: os.stat on Windows now works properly with relative symbolic 16 - Issue #12084: os.stat on Windows now works properly with relative symbolic
58 links when called from any directory. 17 links when called from any directory.
59 18
60 - Loosen type restrictions on the __dir__ method. __dir__ can now return any 19 - Loosen type restrictions on the __dir__ method. __dir__ can now return any
61 sequence, which will be converted to a list and sorted by dir(). 20 sequence, which will be converted to a list and sorted by dir().
62 21
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 188
230 - Check for NULL result in PyType_FromSpec. 189 - Check for NULL result in PyType_FromSpec.
231 190
232 - Issue #10516: New copy() and clear() methods for lists and bytearrays. 191 - Issue #10516: New copy() and clear() methods for lists and bytearrays.
233 192
234 - Issue #11386: bytearray.pop() now throws IndexError when the bytearray is 193 - Issue #11386: bytearray.pop() now throws IndexError when the bytearray is
235 empty, instead of OverflowError. 194 empty, instead of OverflowError.
236 195
237 Library 196 Library
238 ------- 197 -------
239
240 - Issue #12102: Document that buffered files must be flushed before being used
241 with mmap. Patch by Steffen Daode Nurpmeso.
242
243 - Issue #12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling.
244
245 - Issue #1813: Fix codec lookup under Turkish locales.
246
247 - Issue #12591: Improve support of "universal newlines" in the subprocess
248 module: the piped streams can now be properly read from or written to.
249
250 - Issue #12591: Allow io.TextIOWrapper to work with raw IO objects (without
251 a read1() method), and add a *write_through* parameter to mandate
252 unbuffered writes.
253
254 - Issue #10883: Fix socket leaks in urllib.request when using FTP.
255
256 - Issue #12592: Make Python build on OpenBSD 5 (and future major releases).
257
258 - Issue #12372: POSIX semaphores are broken on AIX: don't use them.
259
260 - Issue #12551: Provide a get_channel_binding() method on SSL sockets so as
261 to get channel binding data for the current SSL session (only the
262 "tls-unique" channel binding is implemented). This allows the implementation
263 of certain authentication mechanisms such as SCRAM-SHA-1-PLUS. Patch by
264 Jacek Konieczny.
265
266 - Issue #665194: email.utils now has format_datetime and parsedate_to_datetime
267 functions, allowing for round tripping of RFC2822 format dates.
268
269 - Issue #12571: Add a plat-linux3 directory mirroring the plat-linux2
270 directory, so that "import DLFCN" and other similar imports work on
271 Linux 3.0.
272
273 - Issue #7484: smtplib no longer puts <> around addresses in VRFY and EXPN
274 commands; they aren't required and in fact postfix doesn't support that form.
275
276 - Issue #12273: Remove ast.__version__. AST changes can be accounted for by
277 checking sys.version_info or sys._mercurial.
278
279 - Silence spurious "broken pipe" tracebacks when shutting down a
280 ProcessPoolExecutor.
281
282 - Fix potential resource leaks in concurrent.futures.ProcessPoolExecutor
283 by joining all queues and processes when shutdown() is called.
284
285 - Issue #11603: Fix a crash when __str__ is rebound as __repr__. Patch by
286 Andreas Stührk.
287
288 - Issue #11321: Fix a crash with multiple imports of the _pickle module when
289 embedding Python. Patch by Andreas Stührk.
290
291 - Issue #6755: Add get_wch() method to curses.window class. Patch by Iñigo
292 Serna.
293
294 - Add cgi.closelog() function to close the log file.
295
296 - Issue #12502: asyncore: fix polling loop with AF_UNIX sockets.
297
298 - Issue #4376: ctypes now supports nested structures in a endian different than
299 the parent structure. Patch by Vlad Riscutia.
300
301 - Raise ValueError when attempting to set the _CHUNK_SIZE attribute of a
302 TextIOWrapper to a huge value, not TypeError.
303
304 - Issue #12504: Close file handles in a timely manner in packaging.database.
305 This fixes a bug with the remove (uninstall) feature on Windows.
306
307 - Issues #12169 and #10510: Factor out code used by various packaging commands
308 to make HTTP POST requests, and make sure it uses CRLF.
309
310 - Issue #12016: Multibyte CJK decoders now resynchronize faster. They only
311 ignore the first byte of an invalid byte sequence. For example,
312 b'\xff\n'.decode('gb2312', 'replace') gives '\ufffd\n' instead of '\ufffd'.
313
314 - Issue #12459: time.sleep() now raises a ValueError if the sleep length is
315 negative, instead of an infinite sleep on Windows or raising an IOError on
316 Linux for example, to have the same behaviour on all platforms.
317
318 - Issue #12451: pydoc: html_getfile() now uses tokenize.open() to support
319 Python scripts using a encoding different than UTF-8 (read the coding cookie
320 of the script).
321
322 - Issue #12493: subprocess: Popen.communicate() now also handles EINTR errors
323 if the process has only one pipe.
324
325 - Issue #12467: warnings: fix a race condition if a warning is emitted at
326 shutdown, if globals()['__file__'] is None.
327
328 - Issue #12451: pydoc: importfile() now opens the Python script in binary mode,
329 instead of text mode using the locale encoding, to avoid encoding issues.
330
331 - Issue #12451: runpy: run_path() now opens the Python script in binary mode,
332 instead of text mode using the locale encoding, to support other encodings
333 than UTF-8 (scripts using the coding cookie).
334
335 - Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
336 of the text mode (using the locale encoding) to avoid encoding issues.
337
338 - Issue #12147: Adjust the new-in-3.2 smtplib.send_message method for better
339 conformance to the RFCs: correctly handle Sender and Resent- headers.
340
341 - Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
342 the garbage collector while the Heap lock is held.
343
344 - Issue #12462: time.sleep() now calls immediatly the (Python) signal handler
345 if it is interrupted by a signal, instead of having to wait until the next
346 instruction.
347
348 - Issue #12442: new shutil.disk_usage function, providing total, used and free
349 disk space statistics.
350
351 - Issue #12451: The XInclude default loader of xml.etree now decodes files from
352 UTF-8 instead of the locale encoding if the encoding is not specified. It now
353 also opens XML files for the parser in binary mode instead of the text mode
354 to avoid encoding issues.
355
356 - Issue #12451: doctest.debug_script() doesn't create a temporary file
357 anymore to avoid encoding issues.
358
359 - Issue #12451: pydoc.synopsis() now reads the encoding cookie if available,
360 to read the Python script from the right encoding.
361
362 - Issue #12451: distutils now opens the setup script in binary mode to read the
363 encoding cookie, instead of opening it in UTF-8.
364
365 - Issue #9516: On Mac OS X, change Distutils to no longer globally attempt to
366 check or set the MACOSX_DEPLOYMENT_TARGET environment variable for the
367 interpreter process. This could cause failures in non-Distutils subprocesses
368 and was unreliable since tests or user programs could modify the interpreter
369 environment after Distutils set it. Instead, have Distutils set the the
370 deployment target only in the environment of each build subprocess. It is
371 still possible to globally override the default by setting
372 MACOSX_DEPLOYMENT_TARGET before launching the interpreter; its value must be
373 greater or equal to the default value, the value with which the interpreter
374 was built. Also, implement the same handling in packaging.
375
376 - Issue #12422: In the copy module, don't store objects that are their own copy
377 in the memo dict.
378
379 - Issue #12303: Add sigwaitinfo() and sigtimedwait() to the signal module.
380
381 - Issue #12404: Remove C89 incompatible code from mmap module. Patch by Akira
382 Kitada.
383
384 - Issue #1874: email now detects and reports as a defect the presence of
385 any CTE other than 7bit, 8bit, or binary on a multipart.
386 198
387 - Issue #12383: Fix subprocess module with env={}: don't copy the environment 199 - Issue #12383: Fix subprocess module with env={}: don't copy the environment
388 variables, start with an empty environment. 200 variables, start with an empty environment.
389 201
390 - Issue #11637: Fix support for importing packaging setup hooks from the 202 - Issue #11637: Fix support for importing packaging setup hooks from the
391 project directory. 203 project directory.
392 204
393 - Issue #6771: Moved the curses.wrapper function from the single-function 205 - Issue #6771: Moved the curses.wrapper function from the single-function
394 wrapper module into __init__, eliminating the module. Since __init__ was 206 wrapper module into __init__, eliminating the module. Since __init__ was
395 already importing the function to curses.wrapper, there is no API change. 207 already importing the function to curses.wrapper, there is no API change.
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
1022 834
1023 - Issue #9343: Document that argparse parent parsers must be configured before 835 - Issue #9343: Document that argparse parent parsers must be configured before
1024 their children. 836 their children.
1025 837
1026 - Issue #9026: Fix order of argparse sub-commands in help messages. 838 - Issue #9026: Fix order of argparse sub-commands in help messages.
1027 839
1028 - Issue #9347: Fix formatting for tuples in argparse type= error messages. 840 - Issue #9347: Fix formatting for tuples in argparse type= error messages.
1029 841
1030 Build 842 Build
1031 ----- 843 -----
1032
1033 - Issue #11863: Remove support for legacy systems deprecated in Python 3.2
1034 (following PEP 11). These systems are systems using Mach C Threads,
1035 SunOS lightweight processes, GNU pth threads and IRIX threads.
1036
1037 - Issue #8746: Correct faulty configure checks so that os.chflags() and
1038 os.lchflags() are once again built on systems that support these
1039 functions (*BSD and OS X). Also add new stat file flags for OS X
1040 (UF_HIDDEN and UF_COMPRESSED).
1041 844
1042 - Issue #10645: Installing Python does no longer create a 845 - Issue #10645: Installing Python does no longer create a
1043 Python-X.Y.Z-pyX.Y.egg-info file in the lib-dynload directory. 846 Python-X.Y.Z-pyX.Y.egg-info file in the lib-dynload directory.
1044 847
1045 - Do not accidentally include the directory containing sqlite.h twice when 848 - Do not accidentally include the directory containing sqlite.h twice when
1046 building sqlite3. 849 building sqlite3.
1047 850
1048 - Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds, 851 - Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds,
1049 ensure "make install" creates symlinks in --prefix bin for the "-32" 852 ensure "make install" creates symlinks in --prefix bin for the "-32"
1050 files in the framework bin directory like the installer does. 853 files in the framework bin directory like the installer does.
(...skipping 17 matching lines...) Expand all
1068 Tools/Demos 871 Tools/Demos
1069 ----------- 872 -----------
1070 873
1071 - Issue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and 874 - Issue #11996: libpython (gdb), replace "py-bt" command by "py-bt-full" and
1072 add a smarter "py-bt" command printing a classic Python traceback. 875 add a smarter "py-bt" command printing a classic Python traceback.
1073 876
1074 - Issue #11179: Make ccbench work under Python 3.1 and 2.7 again. 877 - Issue #11179: Make ccbench work under Python 3.1 and 2.7 again.
1075 878
1076 Extension Modules 879 Extension Modules
1077 ----------------- 880 -----------------
1078
1079 - Issue #10309: Define _GNU_SOURCE so that mremap() gets the proper
1080 signature. Without this, architectures where sizeof void* != sizeof int are
1081 broken. Patch given by Hallvard B Furuseth.
1082 881
1083 - Issue #12221: Replace pyexpat.__version__ with the Python version. 882 - Issue #12221: Replace pyexpat.__version__ with the Python version.
1084 883
1085 - Issue #12051: Fix segfault in json.dumps() while encoding highly-nested 884 - Issue #12051: Fix segfault in json.dumps() while encoding highly-nested
1086 objects using the C accelerations. 885 objects using the C accelerations.
1087 886
1088 - Issue #12017: Fix segfault in json.loads() while decoding highly-nested 887 - Issue #12017: Fix segfault in json.loads() while decoding highly-nested
1089 objects using the C accelerations. 888 objects using the C accelerations.
1090 889
1091 - Issue #1838: Prevent segfault in ctypes, when _as_parameter_ on a class is set 890 - Issue #1838: Prevent segfault in ctypes, when _as_parameter_ on a class is set
1092 to an instance of the class. 891 to an instance of the class.
1093 892
1094 Tests 893 Tests
1095 ----- 894 -----
1096
1097 - Issue #12624: It is now possible to fail after the first failure when
1098 running in verbose mode (``-v`` or ``-W``), by using the ``--failfast``
1099 (or ``-G``) option to regrtest. This is useful with long test suites
1100 such as test_io or test_subprocess.
1101
1102 - Issue #12587: Correct faulty test file and reference in test_tokenize.
1103 (Patch by Robert Xiao)
1104
1105 - Issue #12573: Add resource checks for dangling Thread and Process objects.
1106
1107 - Issue #12549: Correct test_platform to not fail when OS X returns 'x86_64'
1108 as the processor type on some Mac systems.
1109
1110 - Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
1111 failure in name resolution.
1112
1113 - Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
1114 an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
1115 Web site.
1116
1117 - Avoid failing in test_urllibnet.test_bad_address when some overzealous
1118 DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
1119 is now skipped instead.
1120
1121 - Issue #12440: When testing whether some bits in SSLContext.options can be
1122 reset, check the version of the OpenSSL headers Python was compiled against,
1123 rather than the runtime version of the OpenSSL library.
1124
1125 - Issue #11512: Add a test suite for the cgitb module. Patch by Robbie Clemons.
1126
1127 - Issue #12497: Install test/data to prevent failures of the various codecmaps
1128 tests.
1129
1130 - Issue #12496: Install test/capath directory to prevent test_connect_capath
1131 testcase failure in test_ssl.
1132
1133 - Issue #12469: Run wakeup and pending signal tests in a subprocess to run the
1134 test in a fresh process with only one thread and to not change signal
1135 handling of the parent process.
1136
1137 - Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
1138 test_tk or test_ttk_guionly under a username that is not currently logged
1139 in to the console windowserver (as may be the case under buildbot or ssh).
1140
1141 - Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
1142
1143 - Issue #12400: regrtest -W doesn't rerun the tests twice anymore, but captures
1144 the output and displays it on failure instead. regrtest -v doesn't print the
1145 error twice anymore if there is only one error.
1146
1147 - Issue #12141: Install copies of template C module file so that
1148 test_build_ext of test_distutils and test_command_build_ext of
1149 test_packaging are no longer silently skipped when
1150 run outside of a build directory.
1151
1152 - Issue #8746: Add additional tests for os.chflags() and os.lchflags().
1153 Patch by Garrett Cooper.
1154
1155 - Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
1156 2.8 + on Mac OS X. (Patch by Ronald Oussoren)
1157 895
1158 - Issue #12057: Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2, 896 - Issue #12057: Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2,
1159 iso2022_kr). 897 iso2022_kr).
1160 898
1161 - Issue #12180: Fixed a few remaining errors in test_packaging when no 899 - Issue #12180: Fixed a few remaining errors in test_packaging when no
1162 threading. 900 threading.
1163 901
1164 - Issue #12120, #12119: skip a test in packaging and distutils 902 - Issue #12120, #12119: skip a test in packaging and distutils
1165 if sys.dont_write_bytecode is set to True. 903 if sys.dont_write_bytecode is set to True.
1166 904
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser 1201 io.FileIO objects (to not translate newlines, \r\n <=> \n). The Python parser
1464 translates newlines (\r\n => \n). 1202 translates newlines (\r\n => \n).
1465 1203
1466 - Remove buffer API from stable ABI for now, see #10181. 1204 - Remove buffer API from stable ABI for now, see #10181.
1467 1205
1468 - Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file 1206 - Issue #8651: PyArg_Parse*() functions raise an OverflowError if the file
1469 doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int 1207 doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int
1470 (length bigger than 2^31-1 bytes). 1208 (length bigger than 2^31-1 bytes).
1471 1209
1472 - Issue #9015, #9611: FileIO.readinto(), FileIO.write(), os.write() and 1210 - Issue #9015, #9611: FileIO.readinto(), FileIO.write(), os.write() and
1473 stdprinter.write() clamp the length to INT_MAX on Windows. 1211 stdprinter.write() clamp the length to 2^31-1 on Windows.
1474 1212
1475 - Issue #8278: On Windows and with a NTFS filesystem, os.stat() and os.utime() 1213 - Issue #8278: On Windows and with a NTFS filesystem, os.stat() and os.utime()
1476 can now handle dates after 2038. 1214 can now handle dates after 2038.
1477 1215
1478 - Issue #10780: PyErr_SetFromWindowsErrWithFilename() and 1216 - Issue #10780: PyErr_SetFromWindowsErrWithFilename() and
1479 PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the 1217 PyErr_SetExcFromWindowsErrWithFilename() decode the filename from the
1480 filesystem encoding instead of UTF-8. 1218 filesystem encoding instead of UTF-8.
1481 1219
1482 - Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem 1220 - Issue #10779: PyErr_WarnExplicit() decodes the filename from the filesystem
1483 encoding instead of UTF-8. 1221 encoding instead of UTF-8.
(...skipping 5171 matching lines...) Expand 10 before | Expand all | Expand 10 after
6655 from test support, which does the conversion. 6393 from test support, which does the conversion.
6656 6394
6657 - Issue #5083: New 'gui' resource for regrtest. 6395 - Issue #5083: New 'gui' resource for regrtest.
6658 6396
6659 6397
6660 Docs 6398 Docs
6661 ---- 6399 ----
6662 6400
6663 6401
6664 **(For information about older versions, consult the HISTORY file.)** 6402 **(For information about older versions, consult the HISTORY file.)**
OLDNEW
« no previous file with comments | « Misc/ACKS ('k') | Modules/cjkcodecs/_codecs_cn.c » ('j') | no next file with comments »

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