blob: b033898a41e64ad932bb521eec9b81c268f755f9 [file] [log] [blame]
Georg Brandl8506d352012-09-23 17:15:21 +02001+++++++++++
Georg Brandlab6f2f62009-03-31 04:16:10 +00002Python News
Skip Montanaroe5d7f7f2002-09-20 14:16:59 +00003+++++++++++
4
Georg Brandl08a90122012-09-29 09:34:13 +02005What's New in Python 3.4.0 Alpha 1?
6===================================
Ezio Melottiee8d9982011-08-15 09:09:57 +03007
Georg Brandl08a90122012-09-29 09:34:13 +02008*Relase date: XX-XXX-2014*
Ezio Melottiee8d9982011-08-15 09:09:57 +03009
10Core and Builtins
11-----------------
12
Chris Jerdonek83fe2e12012-10-07 14:48:36 -070013- Issue #14783: Improve int() docstring and switch docstrings for str(),
14 range(), and slice() to use multi-line signatures.
15
Benjamin Petersonb8350f12012-09-29 13:47:39 -040016- Upgrade Unicode data (UCD) to version 6.2.
17
Chris Jerdonek009f5b32012-09-30 01:27:18 -070018- Issue #15379: Fix passing of non-BMP characters as integers for the charmap
19 decoder (already working as unicode strings). Patch by Serhiy Storchaka.
20
Georg Brandl7dead3a2012-10-01 19:32:07 +020021- Issue #15144: Fix possible integer overflow when handling pointers as integer
22 values, by using `Py_uintptr_t` instead of `size_t`. Patch by Serhiy
23 Storchaka.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070024
Georg Brandl7dead3a2012-10-01 19:32:07 +020025- Issue #15965: Explicitly cast `AT_FDCWD` as (int). Required on Solaris 10
26 (which defines `AT_FDCWD` as ``0xffd19553``), harmless on other platforms.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070027
Georg Brandl7dead3a2012-10-01 19:32:07 +020028- Issue #15839: Convert SystemErrors in `super()` to RuntimeErrors.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070029
Jesus Ceadc469452012-10-04 12:37:56 +020030- Issue #15448: Buffered IO now frees the buffer when closed, instead
31 of when deallocating.
32
Georg Brandl7dead3a2012-10-01 19:32:07 +020033- Issue #15846: Fix SystemError which happened when using `ast.parse()` in an
Chris Jerdonek009f5b32012-09-30 01:27:18 -070034 exception handler on code with syntax errors.
35
Jesus Cea42db4152012-10-03 03:03:04 +020036- Issue #15897: zipimport.c doesn't check return value of fseek().
37 Patch by Felipe Cruz.
38
Chris Jerdonek009f5b32012-09-30 01:27:18 -070039- Issue #15801: Make sure mappings passed to '%' formatting are actually
40 subscriptable.
41
Petri Lehtinena0578e92012-08-28 12:34:09 +030042Library
43-------
44
Gregory P. Smitha10ddb82012-10-10 03:44:47 -070045- Issue #16114: The subprocess module no longer provides a misleading error
46 message stating that args[0] did not exist when either the cwd or executable
47 keyword arguments specified a path that did not exist.
48
Richard Oudkerkea69bd32012-10-09 13:28:10 +010049- Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror.
50
Hynek Schlawack48653762012-10-07 12:49:58 +020051- Issue #1492704: shutil.copyfile() raises a distinct SameFileError now if
52 source and destination are the same file. Patch by Atsuo Ishimoto.
53
Andrew Svetlovef08fb12012-10-06 13:52:19 +030054- Issue #13896: Make shelf instances work with 'with' as context managers.
55 Original patch by Filip Gruszczyński.
56
Andrew Svetlovdc225872012-10-06 13:44:12 +030057- Issue #15417: Add support for csh and fish in venv activation scripts.
58
59- Issue #16123: IDLE - deprecate running without a subprocess.
60 Patch by Roger Serwy.
61
Antoine Pitrouee329312012-10-04 19:53:29 +020062- Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element
63 element_factory (fixes a regression in SimpleTAL).
64
Alexander Belopolskycf774542012-10-02 18:39:16 -040065- Issue #9650: List commonly used format codes in time.strftime and
66 time.strptime docsttings. Original patch by Mike Hoy.
67
Georg Brandl7dead3a2012-10-01 19:32:07 +020068- Issue #16034: Fix performance regressions in the new `bz2.BZ2File`
69 implementation. Initial patch by Serhiy Storchaka.
Nadeem Vawda6c573182012-09-30 03:57:33 +020070
Georg Brandl7dead3a2012-10-01 19:32:07 +020071- `pty.spawn()` now returns the child process status returned by `os.waitpid()`.
Gregory P. Smith0f21adf72012-09-29 12:41:03 -070072
Georg Brandl7dead3a2012-10-01 19:32:07 +020073- Issue #15756: `subprocess.poll()` now properly handles `errno.ECHILD` to
74 return a returncode of 0 when the child has already exited or cannot be waited
75 on.
Gregory P. Smith39051712012-09-29 11:40:38 -070076
Georg Brandl7dead3a2012-10-01 19:32:07 +020077- Issue #15323: Improve failure message of `Mock.assert_called_once_with()`.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070078
Georg Brandl7dead3a2012-10-01 19:32:07 +020079- Issue #16064: ``unittest -m`` claims executable is "python", not "python3".
Chris Jerdonek009f5b32012-09-30 01:27:18 -070080
Georg Brandl7dead3a2012-10-01 19:32:07 +020081- Issue #12376: Pass on parameters in `TextTestResult.__init__()` super call.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070082
Georg Brandl7dead3a2012-10-01 19:32:07 +020083- Issue #15222: Insert blank line after each message in mbox mailboxes.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070084
Georg Brandl7dead3a2012-10-01 19:32:07 +020085- Issue #16013: Fix `csv.Reader` parsing issue with ending quote characters.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070086 Patch by Serhiy Storchaka.
87
Georg Brandl7dead3a2012-10-01 19:32:07 +020088- Issue #15421: Fix an OverflowError in `Calendar.itermonthdates()` after
89 `datetime.MAXYEAR`. Patch by Cédric Krier.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070090
Jesus Cea677ffd12012-10-04 13:58:22 +020091- Issue #16112: platform.architecture does not correctly escape argument to
92 /usr/bin/file. Patch by David Benjamin.
93
Georg Brandl7dead3a2012-10-01 19:32:07 +020094- Issue #15970: `xml.etree.ElementTree` now serializes correctly the empty HTML
Chris Jerdonek009f5b32012-09-30 01:27:18 -070095 elements 'meta' and 'param'.
96
Georg Brandl7dead3a2012-10-01 19:32:07 +020097- Issue #15842: The `SocketIO.{readable,writable,seekable}` methods now raise
98 ValueError when the file-like object is closed. Patch by Alessandro Moura.
Chris Jerdonek009f5b32012-09-30 01:27:18 -070099
Georg Brandl7dead3a2012-10-01 19:32:07 +0200100- Issue #15876: Fix a refleak in the `curses` module: window.encoding.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700101
Georg Brandl7dead3a2012-10-01 19:32:07 +0200102- Issue #15881: Fix `atexit` hook in `multiprocessing`. Original patch by Chris
103 McDonough.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700104
Georg Brandl7dead3a2012-10-01 19:32:07 +0200105- Issue #15841: The readable(), writable() and seekable() methods of
106 `io.BytesIO` and `io.StringIO` objects now raise ValueError when the object
107 has been closed. Patch by Alessandro Moura.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700108
Jesus Cea6e1d2b62012-10-04 16:06:30 +0200109- Issue #16126: PyErr_Format format mismatch in _testcapimodule.c.
110 Patch by Serhiy Storchaka.
111
Georg Brandl7dead3a2012-10-01 19:32:07 +0200112- Issue #15447: Use `subprocess.DEVNULL` in webbrowser, instead of opening
113 `os.devnull` explicitly and leaving it open.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700114
Georg Brandl7dead3a2012-10-01 19:32:07 +0200115- Issue #15509: `webbrowser.UnixBrowser` no longer passes empty arguments to
116 Popen when ``%action`` substitutions produce empty strings.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700117
Georg Brandl7dead3a2012-10-01 19:32:07 +0200118- Issue #12776, issue #11839: Call `argparse` type function (specified by
119 add_argument) only once. Before, the type function was called twice in the
120 case where the default was specified and the argument was given as well. This
121 was especially problematic for the FileType type, as a default file would
122 always be opened, even if a file argument was specified on the command line.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700123
124- Issue #15906: Fix a regression in argparse caused by the preceding change,
Georg Brandl7dead3a2012-10-01 19:32:07 +0200125 when ``action='append'``, ``type='str'`` and ``default=[]``.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700126
Petri Lehtinena0578e92012-08-28 12:34:09 +0300127Extension Modules
128-----------------
129
Christian Heimes2519fd32012-10-06 02:27:57 +0200130- Issue #16113: Added sha3 module based on the Keccak reference implementation
131 3.2. The `hashlib` module has four additional hash algorithms: `sha3_224`,
132 `sha3_256`, `sha3_384` and `sha3_512`. As part of the patch some common
133 code was moved from _hashopenssl.c to hashlib.h.
134
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700135Tests
136-----
137
Chris Jerdonek776cb192012-10-08 15:56:43 -0700138- Issue #16115: Add some tests for the executable argument to
139 subprocess.Popen(). Initial patch by Kushal Das.
140
Georg Brandl7dead3a2012-10-01 19:32:07 +0200141- Issue #15304: Fix warning message when `os.chdir()` fails inside
142 `test.support.temp_cwd()`. Patch by Chris Jerdonek.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700143
Georg Brandl7dead3a2012-10-01 19:32:07 +0200144- Issue #15802: Fix test logic in `TestMaildir.test_create_tmp()`. Patch by
145 Serhiy Storchaka.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700146
Georg Brandl7dead3a2012-10-01 19:32:07 +0200147- Issue #15557: Added a test suite for the webbrowser module, thanks to Anton
148 Barkovsky.
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700149
150Build
151-----
152
Georg Brandl7dead3a2012-10-01 19:32:07 +0200153- Issue #15923: Fix a mistake in ``asdl_c.py`` that resulted in a TypeError
154 after 2801bf875a24 (see #15801).
Ezio Melotti8a9cc522012-09-30 22:47:47 +0300155
Jesus Ceab48925a2012-10-05 01:04:27 +0200156- Issue #16135: Remove OS/2 support.
157
Georg Brandl7dead3a2012-10-01 19:32:07 +0200158- Issue #15819: Make sure we can build Python out-of-tree from a readonly source
159 directory. (Somewhat related to Issue #9860.)
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700160
161Documentation
162-------------
163
Chris Jerdonekad014982012-10-08 23:12:21 -0700164- Issue #16115: Improve subprocess.Popen() documentation around args, shell,
165 and executable arguments.
166
Hynek Schlawackc3c6fe52012-10-08 07:46:11 +0200167- Issue #13498: Clarify docs of os.makedirs()'s exist_ok argument. Done with
168 great native-speaker help from R. David Murray.
169
Georg Brandl7dead3a2012-10-01 19:32:07 +0200170- Issue #15533: Clarify docs and add tests for `subprocess.Popen()`'s cwd
Chris Jerdonek28714c82012-09-30 02:15:37 -0700171 argument.
172
Ezio Melotti44437622012-10-02 06:01:16 +0300173- Issue #15979: Improve timeit documentation.
174
Georg Brandl7dead3a2012-10-01 19:32:07 +0200175- Issue #16036: Improve documentation of built-in `int()`'s signature and
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700176 arguments.
177
Georg Brandl7dead3a2012-10-01 19:32:07 +0200178- Issue #15935: Clarification of `argparse` docs, re: add_argument() type and
Chris Jerdonek009f5b32012-09-30 01:27:18 -0700179 default arguments. Patch contributed by Chris Jerdonek.
180
181- Issue #11964: Document a change in v3.2 to the behavior of the indent
182 parameter of json encoding operations.
183
184Tools/Demos
185-----------
186
187
Eli Bendersky906b88f2011-07-29 07:05:08 +0300188**(For information about older versions, consult the HISTORY file.)**