Georg Brandl | 8506d35 | 2012-09-23 17:15:21 +0200 | [diff] [blame] | 1 | +++++++++++ |
Georg Brandl | ab6f2f6 | 2009-03-31 04:16:10 +0000 | [diff] [blame] | 2 | Python News |
Skip Montanaro | e5d7f7f | 2002-09-20 14:16:59 +0000 | [diff] [blame] | 3 | +++++++++++ |
| 4 | |
Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 5 | What's New in Python 3.4.0 Alpha 1? |
| 6 | =================================== |
Ezio Melotti | ee8d998 | 2011-08-15 09:09:57 +0300 | [diff] [blame] | 7 | |
Georg Brandl | 08a9012 | 2012-09-29 09:34:13 +0200 | [diff] [blame] | 8 | *Relase date: XX-XXX-2014* |
Ezio Melotti | ee8d998 | 2011-08-15 09:09:57 +0300 | [diff] [blame] | 9 | |
| 10 | Core and Builtins |
| 11 | ----------------- |
| 12 | |
Chris Jerdonek | 83fe2e1 | 2012-10-07 14:48:36 -0700 | [diff] [blame] | 13 | - Issue #14783: Improve int() docstring and switch docstrings for str(), |
| 14 | range(), and slice() to use multi-line signatures. |
| 15 | |
Benjamin Peterson | b8350f1 | 2012-09-29 13:47:39 -0400 | [diff] [blame] | 16 | - Upgrade Unicode data (UCD) to version 6.2. |
| 17 | |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 18 | - 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 Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 21 | - 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 Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 24 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 25 | - Issue #15965: Explicitly cast `AT_FDCWD` as (int). Required on Solaris 10 |
| 26 | (which defines `AT_FDCWD` as ``0xffd19553``), harmless on other platforms. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 27 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 28 | - Issue #15839: Convert SystemErrors in `super()` to RuntimeErrors. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 29 | |
Jesus Cea | dc46945 | 2012-10-04 12:37:56 +0200 | [diff] [blame] | 30 | - Issue #15448: Buffered IO now frees the buffer when closed, instead |
| 31 | of when deallocating. |
| 32 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 33 | - Issue #15846: Fix SystemError which happened when using `ast.parse()` in an |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 34 | exception handler on code with syntax errors. |
| 35 | |
Jesus Cea | 42db415 | 2012-10-03 03:03:04 +0200 | [diff] [blame] | 36 | - Issue #15897: zipimport.c doesn't check return value of fseek(). |
| 37 | Patch by Felipe Cruz. |
| 38 | |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 39 | - Issue #15801: Make sure mappings passed to '%' formatting are actually |
| 40 | subscriptable. |
| 41 | |
Petri Lehtinen | a0578e9 | 2012-08-28 12:34:09 +0300 | [diff] [blame] | 42 | Library |
| 43 | ------- |
| 44 | |
Gregory P. Smith | a10ddb8 | 2012-10-10 03:44:47 -0700 | [diff] [blame] | 45 | - 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 Oudkerk | ea69bd3 | 2012-10-09 13:28:10 +0100 | [diff] [blame] | 49 | - Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror. |
| 50 | |
Hynek Schlawack | 4865376 | 2012-10-07 12:49:58 +0200 | [diff] [blame] | 51 | - Issue #1492704: shutil.copyfile() raises a distinct SameFileError now if |
| 52 | source and destination are the same file. Patch by Atsuo Ishimoto. |
| 53 | |
Andrew Svetlov | ef08fb1 | 2012-10-06 13:52:19 +0300 | [diff] [blame] | 54 | - Issue #13896: Make shelf instances work with 'with' as context managers. |
| 55 | Original patch by Filip Gruszczyński. |
| 56 | |
Andrew Svetlov | dc22587 | 2012-10-06 13:44:12 +0300 | [diff] [blame] | 57 | - 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 Pitrou | ee32931 | 2012-10-04 19:53:29 +0200 | [diff] [blame] | 62 | - Issue #16089: Allow ElementTree.TreeBuilder to work again with a non-Element |
| 63 | element_factory (fixes a regression in SimpleTAL). |
| 64 | |
Alexander Belopolsky | cf77454 | 2012-10-02 18:39:16 -0400 | [diff] [blame] | 65 | - Issue #9650: List commonly used format codes in time.strftime and |
| 66 | time.strptime docsttings. Original patch by Mike Hoy. |
| 67 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 68 | - Issue #16034: Fix performance regressions in the new `bz2.BZ2File` |
| 69 | implementation. Initial patch by Serhiy Storchaka. |
Nadeem Vawda | 6c57318 | 2012-09-30 03:57:33 +0200 | [diff] [blame] | 70 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 71 | - `pty.spawn()` now returns the child process status returned by `os.waitpid()`. |
Gregory P. Smith | 0f21adf7 | 2012-09-29 12:41:03 -0700 | [diff] [blame] | 72 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 73 | - 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. Smith | 3905171 | 2012-09-29 11:40:38 -0700 | [diff] [blame] | 76 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 77 | - Issue #15323: Improve failure message of `Mock.assert_called_once_with()`. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 78 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 79 | - Issue #16064: ``unittest -m`` claims executable is "python", not "python3". |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 80 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 81 | - Issue #12376: Pass on parameters in `TextTestResult.__init__()` super call. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 82 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 83 | - Issue #15222: Insert blank line after each message in mbox mailboxes. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 84 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 85 | - Issue #16013: Fix `csv.Reader` parsing issue with ending quote characters. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 86 | Patch by Serhiy Storchaka. |
| 87 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 88 | - Issue #15421: Fix an OverflowError in `Calendar.itermonthdates()` after |
| 89 | `datetime.MAXYEAR`. Patch by Cédric Krier. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 90 | |
Jesus Cea | 677ffd1 | 2012-10-04 13:58:22 +0200 | [diff] [blame] | 91 | - Issue #16112: platform.architecture does not correctly escape argument to |
| 92 | /usr/bin/file. Patch by David Benjamin. |
| 93 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 94 | - Issue #15970: `xml.etree.ElementTree` now serializes correctly the empty HTML |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 95 | elements 'meta' and 'param'. |
| 96 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 97 | - Issue #15842: The `SocketIO.{readable,writable,seekable}` methods now raise |
| 98 | ValueError when the file-like object is closed. Patch by Alessandro Moura. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 99 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 100 | - Issue #15876: Fix a refleak in the `curses` module: window.encoding. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 101 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 102 | - Issue #15881: Fix `atexit` hook in `multiprocessing`. Original patch by Chris |
| 103 | McDonough. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 104 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 105 | - 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 Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 108 | |
Jesus Cea | 6e1d2b6 | 2012-10-04 16:06:30 +0200 | [diff] [blame] | 109 | - Issue #16126: PyErr_Format format mismatch in _testcapimodule.c. |
| 110 | Patch by Serhiy Storchaka. |
| 111 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 112 | - Issue #15447: Use `subprocess.DEVNULL` in webbrowser, instead of opening |
| 113 | `os.devnull` explicitly and leaving it open. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 114 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 115 | - Issue #15509: `webbrowser.UnixBrowser` no longer passes empty arguments to |
| 116 | Popen when ``%action`` substitutions produce empty strings. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 117 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 118 | - 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 Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 123 | |
| 124 | - Issue #15906: Fix a regression in argparse caused by the preceding change, |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 125 | when ``action='append'``, ``type='str'`` and ``default=[]``. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 126 | |
Petri Lehtinen | a0578e9 | 2012-08-28 12:34:09 +0300 | [diff] [blame] | 127 | Extension Modules |
| 128 | ----------------- |
| 129 | |
Christian Heimes | 2519fd3 | 2012-10-06 02:27:57 +0200 | [diff] [blame] | 130 | - 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 Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 135 | Tests |
| 136 | ----- |
| 137 | |
Chris Jerdonek | 776cb19 | 2012-10-08 15:56:43 -0700 | [diff] [blame] | 138 | - Issue #16115: Add some tests for the executable argument to |
| 139 | subprocess.Popen(). Initial patch by Kushal Das. |
| 140 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 141 | - Issue #15304: Fix warning message when `os.chdir()` fails inside |
| 142 | `test.support.temp_cwd()`. Patch by Chris Jerdonek. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 143 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 144 | - Issue #15802: Fix test logic in `TestMaildir.test_create_tmp()`. Patch by |
| 145 | Serhiy Storchaka. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 146 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 147 | - Issue #15557: Added a test suite for the webbrowser module, thanks to Anton |
| 148 | Barkovsky. |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 149 | |
| 150 | Build |
| 151 | ----- |
| 152 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 153 | - Issue #15923: Fix a mistake in ``asdl_c.py`` that resulted in a TypeError |
| 154 | after 2801bf875a24 (see #15801). |
Ezio Melotti | 8a9cc52 | 2012-09-30 22:47:47 +0300 | [diff] [blame] | 155 | |
Jesus Cea | b48925a | 2012-10-05 01:04:27 +0200 | [diff] [blame] | 156 | - Issue #16135: Remove OS/2 support. |
| 157 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 158 | - Issue #15819: Make sure we can build Python out-of-tree from a readonly source |
| 159 | directory. (Somewhat related to Issue #9860.) |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 160 | |
| 161 | Documentation |
| 162 | ------------- |
| 163 | |
Chris Jerdonek | ad01498 | 2012-10-08 23:12:21 -0700 | [diff] [blame] | 164 | - Issue #16115: Improve subprocess.Popen() documentation around args, shell, |
| 165 | and executable arguments. |
| 166 | |
Hynek Schlawack | c3c6fe5 | 2012-10-08 07:46:11 +0200 | [diff] [blame] | 167 | - Issue #13498: Clarify docs of os.makedirs()'s exist_ok argument. Done with |
| 168 | great native-speaker help from R. David Murray. |
| 169 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 170 | - Issue #15533: Clarify docs and add tests for `subprocess.Popen()`'s cwd |
Chris Jerdonek | 28714c8 | 2012-09-30 02:15:37 -0700 | [diff] [blame] | 171 | argument. |
| 172 | |
Ezio Melotti | 4443762 | 2012-10-02 06:01:16 +0300 | [diff] [blame] | 173 | - Issue #15979: Improve timeit documentation. |
| 174 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 175 | - Issue #16036: Improve documentation of built-in `int()`'s signature and |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 176 | arguments. |
| 177 | |
Georg Brandl | 7dead3a | 2012-10-01 19:32:07 +0200 | [diff] [blame] | 178 | - Issue #15935: Clarification of `argparse` docs, re: add_argument() type and |
Chris Jerdonek | 009f5b3 | 2012-09-30 01:27:18 -0700 | [diff] [blame] | 179 | 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 | |
| 184 | Tools/Demos |
| 185 | ----------- |
| 186 | |
| 187 | |
Eli Bendersky | 906b88f | 2011-07-29 07:05:08 +0300 | [diff] [blame] | 188 | **(For information about older versions, consult the HISTORY file.)** |