| 1 |
+++++++++++ |
| 2 |
Python News |
| 3 |
+++++++++++ |
| 4 |
|
| 5 |
What's New in Python 2.7.18 final? |
| 6 |
================================== |
| 7 |
|
| 8 |
*Release date: 2020-04-19* |
| 9 |
|
| 10 |
There were no new changes in version 2.7.18. |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
What's New in Python 2.7.18 release candidate 1? |
| 15 |
================================================ |
| 16 |
|
| 17 |
*Release date: 2020-04-04* |
| 18 |
|
| 19 |
Security |
| 20 |
-------- |
| 21 |
|
| 22 |
- bpo-38945: Newline characters have been escaped when performing uu |
| 23 |
encoding to prevent them from overflowing into to content section of the |
| 24 |
encoded file. This prevents malicious or accidental modification of data |
| 25 |
during the decoding process. |
| 26 |
|
| 27 |
- bpo-38804: Fixes a ReDoS vulnerability in :mod:`http.cookiejar`. Patch by |
| 28 |
Ben Caller. |
| 29 |
|
| 30 |
Core and Builtins |
| 31 |
----------------- |
| 32 |
|
| 33 |
- bpo-38535: Fixed line numbers and column offsets for AST nodes for calls |
| 34 |
without arguments in decorators. |
| 35 |
|
| 36 |
Library |
| 37 |
------- |
| 38 |
|
| 39 |
- bpo-38576: Disallow control characters in hostnames in http.client, |
| 40 |
addressing CVE-2019-18348. Such potentially malicious header injection |
| 41 |
URLs now cause a InvalidURL to be raised. |
| 42 |
|
| 43 |
- bpo-27973: Fix urllib.urlretrieve failing on subsequent ftp transfers from |
| 44 |
the same host. |
| 45 |
|
| 46 |
Build |
| 47 |
----- |
| 48 |
|
| 49 |
- bpo-38730: Fix problems identified by GCC's ``-Wstringop-truncation`` |
| 50 |
warning. |
| 51 |
|
| 52 |
Windows |
| 53 |
------- |
| 54 |
|
| 55 |
- bpo-37025: ``AddRefActCtx()`` was needlessly being checked for failure in |
| 56 |
``PC/dl_nt.c``. |
| 57 |
|
| 58 |
macOS |
| 59 |
----- |
| 60 |
|
| 61 |
- bpo-38295: Prevent failure of test_relative_path in test_py_compile on |
| 62 |
macOS Catalina. |
| 63 |
|
| 64 |
C API |
| 65 |
----- |
| 66 |
|
| 67 |
- bpo-38540: Fixed possible leak in :c:func:`PyArg_Parse` and similar |
| 68 |
functions for format units ``"es#"`` and ``"et#"`` when the macro |
| 69 |
:c:macro:`PY_SSIZE_T_CLEAN` is not defined. |
| 70 |
|
| 71 |
|
| 72 |
What's New in Python 2.7.17 final? |
| 73 |
================================== |
| 74 |
|
| 75 |
*Release date: 2019-10-19* |
| 76 |
|
| 77 |
There were no new changes in version 2.7.17. |
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
What's New in Python 2.7.17 release candidate 1? |
| 82 |
================================================ |
| 83 |
|
| 84 |
*Release date: 2019-10-07* |
| 85 |
|
| 86 |
Security |
| 87 |
-------- |
| 88 |
|
| 89 |
- bpo-38243: Escape the server title of |
| 90 |
:class:`DocXMLRPCServer.DocXMLRPCServer` when rendering the document page |
| 91 |
as HTML. (Contributed by Dong-hee Na in :issue:`38243`.) |
| 92 |
|
| 93 |
- bpo-38174: Update vendorized expat library version to 2.2.8, which |
| 94 |
resolves CVE-2019-15903. |
| 95 |
|
| 96 |
- bpo-34631: Updated OpenSSL to 1.0.2s in Windows installer |
| 97 |
|
| 98 |
- bpo-35647: Don't set cookie for a request when the request path is a |
| 99 |
prefix match of the cookie's path attribute but doesn't end with "/". |
| 100 |
Patch by Karthikeyan Singaravelan. |
| 101 |
|
| 102 |
- bpo-35121: Don't send cookies of domain A without Domain attribute to |
| 103 |
domain B when domain A is a suffix match of domain B while using a |
| 104 |
cookiejar with :class:`cookielib.DefaultCookiePolicy` policy. Patch by |
| 105 |
Karthikeyan Singaravelan. |
| 106 |
|
| 107 |
- bpo-34155: Fix parsing of invalid email addresses with more than one ``@`` |
| 108 |
(e.g. a@[email protected].) to not return the part before 2nd ``@`` as valid email |
| 109 |
address. Patch by maxking & jpic. |
| 110 |
|
| 111 |
- bpo-36742: Fixes mishandling of pre-normalization characters in |
| 112 |
urlsplit(). |
| 113 |
|
| 114 |
- bpo-30458: Address CVE-2019-9740 by disallowing URL paths with embedded |
| 115 |
whitespace or control characters through into the underlying http client |
| 116 |
request. Such potentially malicious header injection URLs now cause an |
| 117 |
httplib.InvalidURL exception to be raised. |
| 118 |
|
| 119 |
- bpo-36216: Changes urlsplit() to raise ValueError when the URL contains |
| 120 |
characters that decompose under IDNA encoding (NFKC-normalization) into |
| 121 |
characters that affect how the URL is parsed. |
| 122 |
|
| 123 |
- bpo-35907: CVE-2019-9948: Avoid file reading by disallowing |
| 124 |
``local-file://`` and ``local_file://`` URL schemes in |
| 125 |
:func:`urllib.urlopen`, :meth:`urllib.URLopener.open` and |
| 126 |
:meth:`urllib.URLopener.retrieve`. |
| 127 |
|
| 128 |
Core and Builtins |
| 129 |
----------------- |
| 130 |
|
| 131 |
- bpo-38106: Fix race in PyThread_release_lock that was leading to memory |
| 132 |
corruption and deadlocks. The fix applies to POSIX systems where Python |
| 133 |
locks are implemented with mutex and condition variable because POSIX |
| 134 |
semaphores are either not provided, or are known to be broken. One |
| 135 |
particular example of such system is macOS. |
| 136 |
|
| 137 |
- bpo-37329: valgrind: suppress a false alarm in memory leak checks. |
| 138 |
_PyWarnings_Init() only allocates memory once at startup but it is not |
| 139 |
released at exit. Ignore this issue to be able to catch other bugs more |
| 140 |
easily. |
| 141 |
|
| 142 |
- bpo-26423: Fix possible overflow in ``wrap_lenfunc()`` when ``sizeof(long) |
| 143 |
< sizeof(Py_ssize_t)`` (e.g., 64-bit Windows). |
| 144 |
|
| 145 |
- bpo-27987: pymalloc returns memory blocks aligned by 16 bytes, instead of |
| 146 |
8 bytes, on 64-bit platforms to conform x86-64 ABI. Recent compilers |
| 147 |
assume this alignment more often. Patch by Inada Naoki. |
| 148 |
|
| 149 |
- bpo-36504: Fix signed integer overflow in _ctypes.c's |
| 150 |
``PyCArrayType_new()``. |
| 151 |
|
| 152 |
- bpo-36459: Fix a possible double ``PyMem_FREE()`` due to tokenizer.c's |
| 153 |
``tok_nextc()``. |
| 154 |
|
| 155 |
- bpo-36430: Fix a possible reference leak in :func:`itertools.count`. |
| 156 |
|
| 157 |
- bpo-18368: PyOS_StdioReadline() no longer leaks memory when realloc() |
| 158 |
fails. |
| 159 |
|
| 160 |
- bpo-36262: Fix an unlikely memory leak on conversion from string to float |
| 161 |
in the function ``_Py_dg_strtod()`` used by ``float(str)``, |
| 162 |
``complex(str)``, :func:`pickle.load`, :func:`marshal.load`, etc. |
| 163 |
|
| 164 |
- bpo-36149: Fix use of uninitialized memory in cPickle when reading a |
| 165 |
truncated pickle from a file object. |
| 166 |
|
| 167 |
- bpo-33006: Clarified Doc string for builtin filter function. 2nd Argument |
| 168 |
can be any iterable. Patch by Tony Flury |
| 169 |
|
| 170 |
Library |
| 171 |
------- |
| 172 |
|
| 173 |
- bpo-38216: Allow the rare code that wants to send invalid http requests |
| 174 |
from the `http.client` library a way to do so. The fixes for bpo-30458 |
| 175 |
led to breakage for some projects that were relying on this ability to |
| 176 |
test their own behavior in the face of bad requests. |
| 177 |
|
| 178 |
- bpo-38175: Fix a memory leak in comparison of :class:`sqlite3.Row` |
| 179 |
objects. |
| 180 |
|
| 181 |
- bpo-33936: _hashlib no longer calls obsolete OpenSSL initialization |
| 182 |
function with OpenSSL 1.1.0+. |
| 183 |
|
| 184 |
- bpo-34410: Fixed a crash in the :func:`tee` iterator when re-enter it. |
| 185 |
RuntimeError is now raised in this case. |
| 186 |
|
| 187 |
- bpo-37965: Fix C compiler warning caused by |
| 188 |
distutils.ccompiler.CCompiler.has_function. |
| 189 |
|
| 190 |
- bpo-34521: Fix file descriptors transfer in multiprocessing on FreeBSD: |
| 191 |
use ``CMSG_SPACE()`` rather than ``CMSG_LEN()``; see :rfc:`3542`. |
| 192 |
|
| 193 |
- bpo-37664: Update wheels bundled with ensurepip (pip 19.2.3 and setuptools |
| 194 |
41.2.0) |
| 195 |
|
| 196 |
- bpo-37437: Update vendorized expat version to 2.2.7. |
| 197 |
|
| 198 |
- bpo-36742: :func:`urlparse.urlsplit` error message for invalid ``netloc`` |
| 199 |
according to NFKC normalization is now a :class:`str` string, rather than |
| 200 |
a :class:`unicode` string, to prevent error when displaying the error. |
| 201 |
|
| 202 |
- bpo-12639: :meth:`msilib.Directory.start_component()` no longer fails if |
| 203 |
*keyfile* is not ``None``. |
| 204 |
|
| 205 |
- bpo-36713: Rename the :meth:`test_ascii_replace` to |
| 206 |
:meth:`test_ascii_strict`. |
| 207 |
|
| 208 |
- bpo-28552: Fix :mod:`distutils.sysconfig` if :data:`sys.executable` is |
| 209 |
``None`` or an empty string: use :func:`os.getcwd` to initialize |
| 210 |
``project_base``. Fix also the distutils build command: don't use |
| 211 |
:data:`sys.executable` if it is ``None`` or an empty string. |
| 212 |
|
| 213 |
- bpo-36337: Fix buffer overflow in :meth:`~socket.socket.send` and |
| 214 |
:meth:`~socket.socket.sendall` methods of :func:`socket.socket` for data |
| 215 |
larger than 2 GiB. |
| 216 |
|
| 217 |
- bpo-36291: Fix a possible reference leak in the json module. |
| 218 |
|
| 219 |
- bpo-36289: Fix a possible reference leak in the io module. |
| 220 |
|
| 221 |
- bpo-36212: Fix two possible reference leaks in the hotshot module. |
| 222 |
|
| 223 |
- bpo-36235: Fix ``CFLAGS`` in ``customize_compiler()`` of |
| 224 |
``distutils.sysconfig``: when the ``CFLAGS`` environment variable is |
| 225 |
defined, don't override ``CFLAGS`` variable with the ``OPT`` variable |
| 226 |
anymore. Initial patch written by David Malcolm. |
| 227 |
|
| 228 |
- bpo-35807: Update ensurepip to install pip 19.0.3 and setuptools 40.8.0. |
| 229 |
|
| 230 |
- bpo-36186: Fix linuxaudiodev.linux_audio_device() error handling: close |
| 231 |
the internal file descriptor if it fails to open the device. |
| 232 |
|
| 233 |
- bpo-13096: Fix memory leak in ctypes POINTER handling of large values. |
| 234 |
|
| 235 |
- bpo-36179: Fix two unlikely reference leaks in _hashopenssl. The leaks |
| 236 |
only occur in out-of-memory cases. |
| 237 |
|
| 238 |
- bpo-36106: Resolve potential name clash with libm's sinpi(). Patch by |
| 239 |
Dmitrii Pasechnik. |
| 240 |
|
| 241 |
- bpo-31292: Fix ``setup.py check --restructuredtext`` for files containing |
| 242 |
``include`` directives. |
| 243 |
|
| 244 |
Documentation |
| 245 |
------------- |
| 246 |
|
| 247 |
- bpo-37487: Fix PyList_GetItem index description to include 0. |
| 248 |
|
| 249 |
- bpo-37149: Replace the dead link to the Tkinter 8.5 reference by John |
| 250 |
Shipman, New Mexico Tech, with a link to the archive.org copy. |
| 251 |
|
| 252 |
- bpo-35126: Improve the examples in the "How do I convert a number to |
| 253 |
string?" question of the "Programming" section of the FAQ. Contributed by |
| 254 |
Stéphane Wirtel. |
| 255 |
|
| 256 |
- bpo-35605: Fix documentation build for sphinx<1.6. Patch by Anthony |
| 257 |
Sottile. |
| 258 |
|
| 259 |
- bpo-35564: Explicitly set master_doc variable in conf.py for compliance |
| 260 |
with Sphinx 2.0 |
| 261 |
|
| 262 |
- bpo-33832: Add glossary entry for 'magic method'. |
| 263 |
|
| 264 |
Tests |
| 265 |
----- |
| 266 |
|
| 267 |
- bpo-37411: Fix test_wsgiref.testEnviron() to no longer depend on the |
| 268 |
environment variables (don't fail if "X" variable is set). |
| 269 |
|
| 270 |
- bpo-37359: Add --cleanup option to python3 -m test to remove |
| 271 |
``test_python_*`` directories of previous failed jobs. Add "make |
| 272 |
cleantest" to run ``python3 -m test --cleanup``. |
| 273 |
|
| 274 |
- bpo-37362: test_gdb no longer fails if it gets an "unexpected" message on |
| 275 |
stderr: it now ignores stderr. The purpose of test_gdb is to test that |
| 276 |
python-gdb.py commands work as expected, not to test gdb. |
| 277 |
|
| 278 |
- bpo-36816: Update Lib/test/selfsigned_pythontestdotnet.pem to match |
| 279 |
self-signed.pythontest.net's new TLS certificate. |
| 280 |
|
| 281 |
- bpo-35925: Skip specific nntplib and ssl networking tests when they would |
| 282 |
otherwise fail due to a modern OS or distro with a default OpenSSL policy |
| 283 |
of rejecting connections to servers with weak certificates or disabling |
| 284 |
TLS below TLSv1.2. |
| 285 |
|
| 286 |
- bpo-36560: Fix reference leak hunting in regrtest: compute also deltas (of |
| 287 |
reference count and file descriptor count) during warmup, to ensure that |
| 288 |
everything is initialized before starting to hunt reference leaks. |
| 289 |
|
| 290 |
- bpo-36234: test_posix.PosixUidGidTests: add tests for invalid uid/gid type |
| 291 |
(str). Patch written by David Malcolm. |
| 292 |
|
| 293 |
- bpo-36019: Add test.support.TEST_HTTP_URL and replace references of |
| 294 |
http://www.example.com by this new constant. Contributed by Stéphane |
| 295 |
Wirtel. |
| 296 |
|
| 297 |
- bpo-27313: Avoid test_ttk_guionly ComboboxTest failure with macOS Cocoa |
| 298 |
Tk. |
| 299 |
|
| 300 |
- bpo-26386: Re-enable missing widget testcases in test_ttk_guionly. |
| 301 |
|
| 302 |
- bpo-34836: Fix ``test_default_ecdh_curve`` when TLSv1.3 is enabled by |
| 303 |
default. |
| 304 |
|
| 305 |
Build |
| 306 |
----- |
| 307 |
|
| 308 |
- bpo-38301: In Solaris family, we must be sure to use ``-D_REENTRANT``. |
| 309 |
Patch by Jesús Cea Avión. |
| 310 |
|
| 311 |
- bpo-14353: Fix detection of the bind_textdomain_codeset function for |
| 312 |
building gettext support into the locale module. |
| 313 |
|
| 314 |
- bpo-36605: ``make tags`` and ``make TAGS`` now also parse |
| 315 |
``Modules/_io/*.c`` and ``Modules/_io/*.h``. |
| 316 |
|
| 317 |
- bpo-35264: Fix SSL module build with OpenSSL 1.1.0 |
| 318 |
|
| 319 |
Windows |
| 320 |
------- |
| 321 |
|
| 322 |
- bpo-38117: Updates bundled OpenSSL to 1.0.2t |
| 323 |
|
| 324 |
- bpo-37445: Include the ``FORMAT_MESSAGE_IGNORE_INSERTS`` flag in |
| 325 |
``FormatMessageW()`` calls. |
| 326 |
|
| 327 |
- bpo-35360: Update Windows builds to use SQLite 3.28.0. |
| 328 |
|
| 329 |
- bpo-1104: Correctly handle string length in |
| 330 |
``msilib.SummaryInfo.GetProperty()`` to prevent it from truncating the |
| 331 |
last character. |
| 332 |
|
| 333 |
macOS |
| 334 |
----- |
| 335 |
|
| 336 |
- bpo-38117: Updated OpenSSL to 1.0.2t in macOS installer for 2.7.x. |
| 337 |
|
| 338 |
- bpo-19960: When building 2.7 on macOS without system header files |
| 339 |
installed in ``/usr/include``, a few extension modules dependent on |
| 340 |
system-supplied third-party libraries were not being built, most notably |
| 341 |
zlib. |
| 342 |
|
| 343 |
- bpo-35360: Update macOS installer to use SQLite 3.28.0. |
| 344 |
|
| 345 |
- bpo-34631: Updated OpenSSL to 1.0.2s in macOS installer. |
| 346 |
|
| 347 |
- bpo-36231: Support building Python on macOS without /usr/include |
| 348 |
installed. As of macOS 10.14, system header files are only available |
| 349 |
within an SDK provided by either the Command Line Tools or the Xcode app. |
| 350 |
|
| 351 |
IDLE |
| 352 |
---- |
| 353 |
|
| 354 |
- bpo-37177: Properly 'attach' search dialogs to their main window so that |
| 355 |
they behave like other dialogs and do not get hidden behind their main |
| 356 |
window. |
| 357 |
|
| 358 |
- bpo-13102: When saving a file, call os.fsync() so bits are flushed to e.g. |
| 359 |
USB drive. |
| 360 |
|
| 361 |
Tools/Demos |
| 362 |
----------- |
| 363 |
|
| 364 |
- bpo-37675: 2to3 now works when run from a zipped standard library. |
| 365 |
|
| 366 |
- bpo-14546: Fix the argument handling in Tools/scripts/lll.py. |
| 367 |
|
| 368 |
C API |
| 369 |
----- |
| 370 |
|
| 371 |
- bpo-37170: Fix the cast on error in |
| 372 |
:c:func:`PyLong_AsUnsignedLongLongMask()`. |
| 373 |
|
| 374 |
|
| 375 |
What's New in Python 2.7.16 final? |
| 376 |
================================== |
| 377 |
|
| 378 |
*Release date: 2019-03-02* |
| 379 |
|
| 380 |
IDLE |
| 381 |
---- |
| 382 |
|
| 383 |
- bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Patch |
| 384 |
by Kevin Walzer. |
| 385 |
|
| 386 |
|
| 387 |
What's New in Python 2.7.16 release candidate 1? |
| 388 |
================================================ |
| 389 |
|
| 390 |
*Release date: 2019-02-16* |
| 391 |
|
| 392 |
Security |
| 393 |
-------- |
| 394 |
|
| 395 |
- bpo-35746: [CVE-2019-5010] Fix a NULL pointer deref in ssl module. The |
| 396 |
cert parser did not handle CRL distribution points with empty DP or URI |
| 397 |
correctly. A malicious or buggy certificate can result into segfault. |
| 398 |
Vulnerability (TALOS-2018-0758) reported by Colin Read and Nicolas Edet of |
| 399 |
Cisco. |
| 400 |
|
| 401 |
- bpo-16039: CVE-2013-1752: Change use of ``readline()`` in |
| 402 |
:class:`imaplib.IMAP4_SSL` to limit line length. |
| 403 |
|
| 404 |
- bpo-28043: SSLContext has improved default settings: OP_NO_SSLv2, |
| 405 |
OP_NO_SSLv3, OP_NO_COMPRESSION, OP_CIPHER_SERVER_PREFERENCE, |
| 406 |
OP_SINGLE_DH_USE, OP_SINGLE_ECDH_USE and HIGH ciphers without MD5. |
| 407 |
|
| 408 |
- bpo-34791: The xml.sax and xml.dom.domreg no longer use environment |
| 409 |
variables to override parser implementations when |
| 410 |
sys.flags.ignore_environment is set by -E or -I arguments. |
| 411 |
|
| 412 |
- bpo-34623: CVE-2018-14647: The C accelerated _elementtree module now |
| 413 |
initializes hash randomization salt from _Py_HashSecret instead of |
| 414 |
libexpat's default CSPRNG. |
| 415 |
|
| 416 |
- bpo-34540: When ``shutil.make_archive`` falls back to the external ``zip`` |
| 417 |
problem, it uses :mod:`subprocess` to invoke it rather than |
| 418 |
:mod:`distutils.spawn`. This closes a possible shell injection vector. |
| 419 |
|
| 420 |
- bpo-34405: Updated to OpenSSL 1.0.2p for Windows builds. |
| 421 |
|
| 422 |
Core and Builtins |
| 423 |
----------------- |
| 424 |
|
| 425 |
- bpo-35552: Format character ``%s`` in :c:func:`PyString_FromFormat` no |
| 426 |
longer read memory past the limit if *precision* is specified. |
| 427 |
|
| 428 |
- bpo-35504: Fix segfaults and :exc:`SystemError`\ s when deleting certain |
| 429 |
attributes. Patch by Zackery Spytz. |
| 430 |
|
| 431 |
- bpo-35368: :c:func:`PyMem_Malloc` is now also thread-safe in debug mode. |
| 432 |
|
| 433 |
- bpo-35214: Fixed an out of bounds memory access when parsing a truncated |
| 434 |
unicode escape sequence at the end of a string such as ``u'\N'``. It |
| 435 |
would read one byte beyond the end of the memory allocation. |
| 436 |
|
| 437 |
- bpo-34974: The :class:`bytearray` constructor no longer convert unexpected |
| 438 |
exceptions (e.g. :exc:`MemoryError` and :exc:`KeyboardInterrupt`) to |
| 439 |
:exc:`TypeError`. |
| 440 |
|
| 441 |
- bpo-22851: Fix a segfault when accessing |
| 442 |
``generator.gi_frame.f_restricted`` when the generator is exhausted. |
| 443 |
Patch by Zackery Spytz. |
| 444 |
|
| 445 |
- bpo-18560: Fix potential NULL pointer dereference in sum(). |
| 446 |
|
| 447 |
- bpo-34400: Fix undefined behavior in parsetok.c. Patch by Zackery Spytz. |
| 448 |
|
| 449 |
- bpo-25083: Adding I/O error checking when reading .py files and aborting |
| 450 |
importing on error. |
| 451 |
|
| 452 |
- bpo-25943: Fix potential heap corruption in the :mod:`bsddb` module. |
| 453 |
Patch by Zackery Spytz. |
| 454 |
|
| 455 |
- bpo-34068: In :meth:`io.IOBase.close`, ensure that the |
| 456 |
:attr:`~io.IOBase.closed` attribute is not set with a live exception. |
| 457 |
Patch by Zackery Spytz and Serhiy Storchaka. |
| 458 |
|
| 459 |
- bpo-34080: Fixed a memory leak in the compiler when it raised some |
| 460 |
uncommon errors during tokenizing. |
| 461 |
|
| 462 |
- bpo-33956: Update vendored Expat library copy to version 2.2.5. |
| 463 |
|
| 464 |
- bpo-30654: Fixed reset of the SIGINT handler to SIG_DFL on interpreter |
| 465 |
shutdown even when there was a custom handler set previously. Patch by |
| 466 |
Philipp Kerling. |
| 467 |
|
| 468 |
- bpo-33645: Fixed an "unknown parsing error" on parsing the "<>" operator |
| 469 |
when run Python with both options ``-3`` and ``-We``. |
| 470 |
|
| 471 |
- bpo-33622: Fixed a leak when the garbage collector fails to add an object |
| 472 |
with the ``__del__`` method or referenced by it into the |
| 473 |
:data:`gc.garbage` list. :c:func:`PyGC_Collect` can now be called when an |
| 474 |
exception is set and preserves it. |
| 475 |
|
| 476 |
- bpo-33391: Fix a leak in set_symmetric_difference(). |
| 477 |
|
| 478 |
- bpo-25750: Fix rare Python crash due to bad refcounting in |
| 479 |
``type_getattro()`` if a descriptor deletes itself from the class. Patch |
| 480 |
by Jeroen Demeyer. |
| 481 |
|
| 482 |
- bpo-25862: Fix assertion failures in the ``tell()`` method of |
| 483 |
``io.TextIOWrapper``. Patch by Zackery Spytz. |
| 484 |
|
| 485 |
Library |
| 486 |
------- |
| 487 |
|
| 488 |
- bpo-8765: The write() method of buffered and unbuffered binary streams in |
| 489 |
the io module emits now a DeprecationWarning in Py3k mode for unicode |
| 490 |
argument. |
| 491 |
|
| 492 |
- bpo-35052: Fix xml.dom.minidom cloneNode() on a document with an entity: |
| 493 |
pass the correct arguments to the user data handler of an entity. |
| 494 |
|
| 495 |
- bpo-10496: :func:`~distutils.utils.check_environ` of |
| 496 |
:mod:`distutils.utils` now catchs :exc:`KeyError` on calling |
| 497 |
:func:`pwd.getpwuid`: don't create the ``HOME`` environment variable in |
| 498 |
this case. |
| 499 |
|
| 500 |
- bpo-10496: :func:`posixpath.expanduser` now returns the input *path* |
| 501 |
unchanged if the ``HOME`` environment variable is not set and the current |
| 502 |
user has no home directory (if the current user identifier doesn't exist |
| 503 |
in the password database). This change fix the :mod:`site` module if the |
| 504 |
current user doesn't exist in the password database (if the user has no |
| 505 |
home directory). |
| 506 |
|
| 507 |
- bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff. |
| 508 |
Orignial patch by R. David Murray & Jairo Trad. Enhanced by Sanyam |
| 509 |
Khurana. |
| 510 |
|
| 511 |
- bpo-35277: Update ensurepip to install pip 18.1 and setuptools 40.6.2. |
| 512 |
|
| 513 |
- bpo-35062: Fix incorrect parsing of |
| 514 |
:class:`_io.IncrementalNewlineDecoder`'s *translate* argument. |
| 515 |
|
| 516 |
- bpo-35079: Improve difflib.SequenceManager.get_matching_blocks doc by |
| 517 |
adding 'non- overlapping' and changing '!=' to '<'. |
| 518 |
|
| 519 |
- bpo-35017: :meth:`socketserver.BaseServer.serve_forever` now exits |
| 520 |
immediately if it's :meth:`~socketserver.BaseServer.shutdown` method is |
| 521 |
called while it is polling for new events. |
| 522 |
|
| 523 |
- bpo-34794: Fixed a leak in Tkinter when pass the Python wrapper around |
| 524 |
Tcl_Obj back to Tcl/Tk. |
| 525 |
|
| 526 |
- bpo-23420: Verify the value for the parameter '-s' of the cProfile CLI. |
| 527 |
Patch by Robert Kuska |
| 528 |
|
| 529 |
- bpo-16965: The :term:`2to3` :2to3fixer:`execfile` fixer now opens the file |
| 530 |
with mode ``'rb'``. Patch by Zackery Spytz. |
| 531 |
|
| 532 |
- bpo-34936: Fix ``TclError`` in ``tkinter.Spinbox.selection_element()``. |
| 533 |
Patch by Juliette Monsel. |
| 534 |
|
| 535 |
- bpo-34866: Adding ``max_num_fields`` to ``cgi.FieldStorage`` to make DOS |
| 536 |
attacks harder by limiting the number of ``MiniFieldStorage`` objects |
| 537 |
created by ``FieldStorage``. |
| 538 |
|
| 539 |
- bpo-34738: ZIP files created by :mod:`distutils` will now include entries |
| 540 |
for directories. |
| 541 |
|
| 542 |
- bpo-34652: Ensure :func:`os.lchmod` is never defined on Linux. |
| 543 |
|
| 544 |
- bpo-34625: Update vendorized expat library version to 2.2.6. |
| 545 |
|
| 546 |
- bpo-34610: Fixed iterator of :class:`multiprocessing.managers.DictProxy`. |
| 547 |
|
| 548 |
- bpo-34530: ``distutils.spawn.find_executable()`` now falls back on |
| 549 |
:data:`os.defpath` if the ``PATH`` environment variable is not set. |
| 550 |
|
| 551 |
- bpo-34472: Improved compatibility for streamed files in :mod:`zipfile`. |
| 552 |
Previously an optional signature was not being written and certain ZIP |
| 553 |
applications were not supported. Patch by Silas Sewell. |
| 554 |
|
| 555 |
- bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks. |
| 556 |
Patch by Vladimir Matveev. |
| 557 |
|
| 558 |
- bpo-31715: Associate ``.mjs`` file extension with |
| 559 |
``application/javascript`` MIME Type. |
| 560 |
|
| 561 |
- bpo-32947: Add OP_ENABLE_MIDDLEBOX_COMPAT and test workaround for TLSv1.3 |
| 562 |
for future compatibility with OpenSSL 1.1.1. |
| 563 |
|
| 564 |
- bpo-34341: Appending to the ZIP archive with the ZIP64 extension no longer |
| 565 |
grows the size of extra fields of existing entries. |
| 566 |
|
| 567 |
- bpo-34052: :meth:`sqlite3.Connection.create_aggregate`, |
| 568 |
:meth:`sqlite3.Connection.create_function`, |
| 569 |
:meth:`sqlite3.Connection.set_authorizer`, |
| 570 |
:meth:`sqlite3.Connection.set_progress_handler` methods raises TypeError |
| 571 |
when unhashable objects are passed as callable. These methods now don't |
| 572 |
pass such objects to SQLite API. Previous behavior could lead to |
| 573 |
segfaults. Patch by Sergey Fedoseev. |
| 574 |
|
| 575 |
- bpo-34019: webbrowser: Correct the arguments passed to Opera Browser when |
| 576 |
opening a new URL using the ``webbrowser`` module. Patch by Bumsik Kim. |
| 577 |
|
| 578 |
- bpo-33974: Fixed passing lists and tuples of strings containing special |
| 579 |
characters ``"``, ``\``, ``{``, ``}`` and ``\n`` as options to |
| 580 |
:mod:`~tkinter.ttk` widgets. |
| 581 |
|
| 582 |
- bpo-26544: Fixed implementation of :func:`platform.libc_ver`. It almost |
| 583 |
always returned version '2.9' for glibc. |
| 584 |
|
| 585 |
- bpo-33767: The concatenation (``+``) and repetition (``*``) sequence |
| 586 |
operations now raise :exc:`TypeError` instead of :exc:`SystemError` when |
| 587 |
performed on :class:`mmap.mmap` objects. Patch by Zackery Spytz. |
| 588 |
|
| 589 |
- bpo-11874: Use a better regex when breaking usage into wrappable parts. |
| 590 |
Avoids bogus assertion errors from custom metavar strings. |
| 591 |
|
| 592 |
- bpo-33570: Change TLS 1.3 cipher suite settings for compatibility with |
| 593 |
OpenSSL 1.1.1-pre6 and newer. OpenSSL 1.1.1 will have TLS 1.3 cipers |
| 594 |
enabled by default. |
| 595 |
|
| 596 |
- bpo-33542: Prevent ``uuid.get_node`` from using a DUID instead of a MAC on |
| 597 |
Windows. Patch by Zvi Effron |
| 598 |
|
| 599 |
- bpo-33096: Removed unintentionally backported from Python 3 Tkinter files. |
| 600 |
|
| 601 |
- bpo-20087: Updated alias mapping with glibc 2.27 supported locales. |
| 602 |
|
| 603 |
- bpo-33422: Fix trailing quotation marks getting deleted when looking up |
| 604 |
byte/string literals on pydoc. Patch by Andrés Delfino. |
| 605 |
|
| 606 |
- bpo-33336: ``imaplib`` now allows ``MOVE`` command in ``IMAP4.uid()`` (RFC |
| 607 |
6851: IMAP MOVE Extension) and potentially as a name of supported method |
| 608 |
of ``IMAP4`` object. |
| 609 |
|
| 610 |
- bpo-33359: Fix running ``python -m curses.has_key``. |
| 611 |
|
| 612 |
- bpo-33131: Upgrade bundled version of pip to 10.0.1. |
| 613 |
|
| 614 |
- bpo-33308: Fixed a crash in the :mod:`parser` module when converting an ST |
| 615 |
object to a tree of tuples or lists with ``line_info=False`` and |
| 616 |
``col_info=True``. |
| 617 |
|
| 618 |
- bpo-33256: Fix display of ``<module>`` call in the html produced by |
| 619 |
``cgitb.html()``. Patch by Stéphane Blondon. |
| 620 |
|
| 621 |
- bpo-32861: The urllib.robotparser's ``__str__`` representation now |
| 622 |
includes wildcard entries and the "Crawl-delay" and "Request-rate" fields. |
| 623 |
Patch by Michael Lazar. |
| 624 |
|
| 625 |
- bpo-33038: gzip.GzipFile no longer produces an AttributeError exception |
| 626 |
when used with a file object with a non-string name attribute. Patch by Bo |
| 627 |
Bayles. |
| 628 |
|
| 629 |
- bpo-32857: In :mod:`tkinter`, ``after_cancel(None)`` now raises a |
| 630 |
:exc:`ValueError` instead of canceling the first scheduled function. |
| 631 |
Patch by Cheryl Sabella. |
| 632 |
|
| 633 |
- bpo-32502: uuid.uuid1 no longer raises an exception if a 64-bit hardware |
| 634 |
address is encountered. |
| 635 |
|
| 636 |
- bpo-31608: Raise a ``TypeError`` instead of crashing if a |
| 637 |
``collections.deque`` subclass returns a non-deque from ``__new__``. Patch |
| 638 |
by Oren Milman. |
| 639 |
|
| 640 |
- bpo-16865: Support arrays >=2GiB in :mod:`ctypes`. Patch by Segev Finer. |
| 641 |
|
| 642 |
- bpo-29456: Fix bugs in hangul normalization: u1176, u11a7 and u11c3 |
| 643 |
|
| 644 |
Documentation |
| 645 |
------------- |
| 646 |
|
| 647 |
- bpo-35035: Rename documentation for :mod:`email.utils` to |
| 648 |
``email.utils.rst``. |
| 649 |
|
| 650 |
- bpo-34967: Use app.add_object_type() instead of the deprecated Sphinx |
| 651 |
function app.description_unit() |
| 652 |
|
| 653 |
- bpo-13407: Add a note to :mod:`bz2` and :mod:`tarfile` stating that |
| 654 |
handling of multi-stream bzip2 files is not supported. |
| 655 |
|
| 656 |
- bpo-33503: Fix broken pypi link |
| 657 |
|
| 658 |
Tests |
| 659 |
----- |
| 660 |
|
| 661 |
- bpo-34279: :func:`test.support.run_unittest` no longer raise |
| 662 |
:exc:`TestDidNotRun` if the test result contains skipped tests. The |
| 663 |
exception is now only raised if no test have been run and no test have |
| 664 |
been skipped. |
| 665 |
|
| 666 |
- bpo-34279: regrtest issue a warning when no tests have been executed in a |
| 667 |
particular test file. Also, a new final result state is issued if no test |
| 668 |
have been executed across all test files. Patch by Pablo Galindo. |
| 669 |
|
| 670 |
- bpo-34661: Fix test_shutil if unzip doesn't support -t. |
| 671 |
|
| 672 |
- bpo-34542: Use 3072 RSA keys and SHA-256 signature for test certs and |
| 673 |
keys. |
| 674 |
|
| 675 |
- bpo-34391: Fix ftplib test for TLS 1.3 by reading from data socket. |
| 676 |
|
| 677 |
- bpo-34399: Update all RSA keys and DH params to use at least 2048 bits. |
| 678 |
|
| 679 |
- bpo-33901: Fix test_gdbm on macOS with gdbm 1.15: add a larger value to |
| 680 |
make sure that the file size changes. |
| 681 |
|
| 682 |
- bpo-33873: Fix a bug in ``regrtest`` that caused an extra test to run if |
| 683 |
--huntrleaks/-R was used. Exit with error in case that invalid parameters |
| 684 |
are specified to --huntrleaks/-R (at least one warmup run and one |
| 685 |
repetition must be used). |
| 686 |
|
| 687 |
- bpo-29512: Rename Lib/test/bisect.py to Lib/test/bisect_cmd.py. The old |
| 688 |
name was in conflict with Lib/bisect.py, causing test failures, depending |
| 689 |
how tests were run. |
| 690 |
|
| 691 |
- bpo-32962: Fixed test_gdb when Python is compiled with flags -mcet |
| 692 |
-fcf-protection -O0. |
| 693 |
|
| 694 |
- bpo-33354: Skip ``test_ssl.test_load_dh_params`` when Python filesystem |
| 695 |
encoding cannot encode the provided path. |
| 696 |
|
| 697 |
- bpo-19417: Add test_bdb.py. |
| 698 |
|
| 699 |
Build |
| 700 |
----- |
| 701 |
|
| 702 |
- bpo-35139: Fix a compiler error when statically linking `pyexpat` in |
| 703 |
`Modules/Setup`. |
| 704 |
|
| 705 |
- bpo-34710: Fixed SSL module build with OpenSSL & pedantic CFLAGS. |
| 706 |
|
| 707 |
- bpo-33015: Fix an undefined behaviour in the pthread implementation of |
| 708 |
:c:func:`PyThread_start_new_thread`: add a function wrapper to always |
| 709 |
return ``NULL``. |
| 710 |
|
| 711 |
- bpo-30345: Add -g to LDFLAGS when compiling with LTO to get debug symbols. |
| 712 |
|
| 713 |
Windows |
| 714 |
------- |
| 715 |
|
| 716 |
- bpo-35401: Updates Windows build to OpenSSL 1.0.2q |
| 717 |
|
| 718 |
- bpo-34603: Fix returning structs from functions produced by MSVC |
| 719 |
|
| 720 |
- bpo-33711: Fixed licence generation error when building the installer. |
| 721 |
|
| 722 |
macOS |
| 723 |
----- |
| 724 |
|
| 725 |
- bpo-15663: The macOS 10.6+ installer now provides a private copy of Tcl/Tk |
| 726 |
8.6, like the 10.9+ installer does. |
| 727 |
|
| 728 |
- bpo-35401: Update macOS installer to use OpenSSL 1.0.2q. |
| 729 |
|
| 730 |
- bpo-34405: Update to OpenSSL 1.0.2p for macOS installer builds. |
| 731 |
|
| 732 |
IDLE |
| 733 |
---- |
| 734 |
|
| 735 |
- bpo-34275: Make IDLE calltips always visible on Mac. Some MacOS-tk |
| 736 |
combinations need .update_idletasks(). Patch by Kevin Walzer. |
| 737 |
|
| 738 |
- bpo-34120: Fix unresponsiveness after closing certain windows and dialogs. |
| 739 |
|
| 740 |
- bpo-33856: Add "help" in the welcome message of IDLE |
| 741 |
|
| 742 |
- bpo-31500: Default fonts now are scaled on HiDPI displays. |
| 743 |
|
| 744 |
Tools/Demos |
| 745 |
----------- |
| 746 |
|
| 747 |
- bpo-34989: python-gdb.py now handles errors on computing the line number |
| 748 |
of a Python frame. |
| 749 |
|
| 750 |
- bpo-34500: Fix 2 ResourceWarning in difflib.py. Patch by Mickaël |
| 751 |
Schoentgen. |
| 752 |
|
| 753 |
- bpo-29367: python-gdb.py now supports also method-wrapper (wrapperobject) |
| 754 |
objects. |
| 755 |
|
| 756 |
- bpo-32962: python-gdb now catchs ``UnicodeDecodeError`` exceptions when |
| 757 |
calling ``string()``. |
| 758 |
|
| 759 |
- bpo-32962: python-gdb now catchs ValueError on read_var(): when Python has |
| 760 |
no debug symbols for example. |
| 761 |
|
| 762 |
C API |
| 763 |
----- |
| 764 |
|
| 765 |
- bpo-33817: Fixed :c:func:`_PyString_Resize` and |
| 766 |
:c:func:`_PyUnicode_Resize` for empty strings. This fixed also |
| 767 |
:c:func:`PyString_FromFormat` and :c:func:`PyUnicode_FromFormat` when they |
| 768 |
return an empty string (e.g. ``PyString_FromFormat("%s", "")``). |
| 769 |
|
| 770 |
- bpo-34229: Check start and stop of slice object to be long when they are |
| 771 |
not int in :c:func:`PySlice_GetIndices`. |
| 772 |
|
| 773 |
- bpo-23927: Fixed :exc:`SystemError` in |
| 774 |
:c:func:`PyArg_ParseTupleAndKeywords` when the ``w*`` format unit is used |
| 775 |
for optional parameter. |
| 776 |
|
| 777 |
|
| 778 |
What's New in Python 2.7.15 final? |
| 779 |
================================== |
| 780 |
|
| 781 |
*Release date: 2018-04-29* |
| 782 |
|
| 783 |
Core and Builtins |
| 784 |
----------------- |
| 785 |
|
| 786 |
- bpo-33374: Tweak the definition of PyGC_Head, so compilers do not believe |
| 787 |
it is always 16-byte aligned on x86. This prevents crashes with more |
| 788 |
aggressive optimizations present in GCC 8. |
| 789 |
|
| 790 |
|
| 791 |
What's New in Python 2.7.15 release candidate 1? |
| 792 |
================================================ |
| 793 |
|
| 794 |
*Release date: 2018-04-14* |
| 795 |
|
| 796 |
Security |
| 797 |
-------- |
| 798 |
|
| 799 |
- bpo-32997: A regex in fpformat was vulnerable to catastrophic |
| 800 |
backtracking. This regex was a potential DOS vector (REDOS). Based on |
| 801 |
typical uses of fpformat the risk seems low. The regex has been refactored |
| 802 |
and is now safe. Patch by Jamie Davis. |
| 803 |
|
| 804 |
- bpo-32981: Regexes in difflib and poplib were vulnerable to catastrophic |
| 805 |
backtracking. These regexes formed potential DOS vectors (REDOS). They |
| 806 |
have been refactored. This resolves CVE-2018-1060 and CVE-2018-1061. Patch |
| 807 |
by Jamie Davis. |
| 808 |
|
| 809 |
- bpo-31339: Rewrite time.asctime() and time.ctime(). Backport and adapt the |
| 810 |
_asctime() function from the master branch to not depend on the |
| 811 |
implementation of asctime() and ctime() from the external C library. This |
| 812 |
change fixes a bug when Python is run using the musl C library. |
| 813 |
|
| 814 |
- bpo-30730: Prevent environment variables injection in subprocess on |
| 815 |
Windows. Prevent passing other environment variables and command |
| 816 |
arguments. |
| 817 |
|
| 818 |
- bpo-30694: Upgrade expat copy from 2.2.0 to 2.2.1 to get fixes of multiple |
| 819 |
security vulnerabilities including: CVE-2017-9233 (External entity |
| 820 |
infinite loop DoS), CVE-2016-9063 (Integer overflow, re-fix), |
| 821 |
CVE-2016-0718 (Fix regression bugs from 2.2.0's fix to CVE-2016-0718) and |
| 822 |
CVE-2012-0876 (Counter hash flooding with SipHash). Note: the |
| 823 |
CVE-2016-5300 (Use os-specific entropy sources like getrandom) doesn't |
| 824 |
impact Python, since Python already gets entropy from the OS to set the |
| 825 |
expat secret using ``XML_SetHashSalt()``. |
| 826 |
|
| 827 |
- bpo-30500: Fix urllib.splithost() to correctly parse fragments. For |
| 828 |
example, ``splithost('//127.0.0.1#@evil.com/')`` now correctly returns the |
| 829 |
``127.0.0.1`` host, instead of treating ``@evil.com`` as the host in an |
| 830 |
authentification (``login@host``). |
| 831 |
|
| 832 |
- bpo-29591: Update expat copy from 2.1.1 to 2.2.0 to get fixes of |
| 833 |
CVE-2016-0718 and CVE-2016-4472. See |
| 834 |
https://sourceforge.net/p/expat/bugs/537/ for more information. |
| 835 |
|
| 836 |
Core and Builtins |
| 837 |
----------------- |
| 838 |
|
| 839 |
- bpo-33026: Fixed jumping out of "with" block by setting f_lineno. |
| 840 |
|
| 841 |
- bpo-17288: Prevent jumps from 'return' and 'exception' trace events. |
| 842 |
|
| 843 |
- bpo-18533: ``repr()`` on a dict containing its own ``viewvalues()`` or |
| 844 |
``viewitems()`` no longer raises ``RuntimeError``. Instead, use ``...``, |
| 845 |
as for other recursive structures. Patch by Ben North. |
| 846 |
|
| 847 |
- bpo-10544: Yield expressions are now deprecated in comprehensions and |
| 848 |
generator expressions when checking Python 3 compatibility. They are still |
| 849 |
permitted in the definition of the outermost iterable, as that is |
| 850 |
evaluated directly in the enclosing scope. |
| 851 |
|
| 852 |
- bpo-32137: The repr of deeply nested dict now raises a RecursionError |
| 853 |
instead of crashing due to a stack overflow. |
| 854 |
|
| 855 |
- bpo-20047: Bytearray methods partition() and rpartition() now accept only |
| 856 |
bytes-like objects as separator, as documented. In particular they now |
| 857 |
raise TypeError rather of returning a bogus result when an integer is |
| 858 |
passed as a separator. |
| 859 |
|
| 860 |
- bpo-31733: Add a new PYTHONSHOWREFCOUNT environment variable. In debug |
| 861 |
mode, Python now only print the total reference count if |
| 862 |
PYTHONSHOWREFCOUNT is set. |
| 863 |
|
| 864 |
- bpo-31692: Add a new PYTHONSHOWALLOCCOUNT environment variable. When |
| 865 |
Python is compiled with COUNT_ALLOCS, PYTHONSHOWALLOCCOUNT now has to be |
| 866 |
set to dump allocation counts into stderr on shutdown. Moreover, |
| 867 |
allocations statistics are now dumped into stderr rather than stdout. |
| 868 |
|
| 869 |
- bpo-31478: Prevent unwanted behavior in `_random.Random.seed()` in case |
| 870 |
the argument has a bad ``__abs__()`` method. Patch by Oren Milman. |
| 871 |
|
| 872 |
- bpo-31530: Fixed crashes when iterating over a file on multiple threads. |
| 873 |
|
| 874 |
- bpo-31490: Fix an assertion failure in `ctypes` class definition, in case |
| 875 |
the class has an attribute whose name is specified in ``_anonymous_`` but |
| 876 |
not in ``_fields_``. Patch by Oren Milman. |
| 877 |
|
| 878 |
- bpo-31411: Raise a TypeError instead of SystemError in case |
| 879 |
warnings.onceregistry is not a dictionary. Patch by Oren Milman. |
| 880 |
|
| 881 |
- bpo-31343: Include sys/sysmacros.h for major(), minor(), and makedev(). |
| 882 |
GNU C libray plans to remove the functions from sys/types.h. |
| 883 |
|
| 884 |
- bpo-31311: Fix a crash in the ``__setstate__()`` method of |
| 885 |
`ctypes._CData`, in case of a bad ``__dict__``. Patch by Oren Milman. |
| 886 |
|
| 887 |
- bpo-31243: Fix a crash in some methods of `io.TextIOWrapper`, when the |
| 888 |
decoder's state is invalid. Patch by Oren Milman. |
| 889 |
|
| 890 |
- bpo-31095: Fix potential crash during GC caused by ``tp_dealloc`` which |
| 891 |
doesn't call ``PyObject_GC_UnTrack()``. |
| 892 |
|
| 893 |
- bpo-30657: Fixed possible integer overflow in PyString_DecodeEscape. Patch |
| 894 |
by Jay Bosamiya. |
| 895 |
|
| 896 |
- bpo-27945: Fixed various segfaults with dict when input collections are |
| 897 |
mutated during searching, inserting or comparing. Based on patches by |
| 898 |
Duane Griffin and Tim Mitchell. |
| 899 |
|
| 900 |
- bpo-25794: Fixed type.__setattr__() and type.__delattr__() for |
| 901 |
non-interned or unicode attribute names. Based on patch by Eryk Sun. |
| 902 |
|
| 903 |
- bpo-29935: Fixed error messages in the index() method of tuple and list |
| 904 |
when pass indices of wrong type. |
| 905 |
|
| 906 |
- bpo-28598: Support __rmod__ for subclasses of str being called before |
| 907 |
str.__mod__. Patch by Martijn Pieters. |
| 908 |
|
| 909 |
- bpo-29602: Fix incorrect handling of signed zeros in complex constructor |
| 910 |
for complex subclasses and for inputs having a __complex__ method. Patch |
| 911 |
by Serhiy Storchaka. |
| 912 |
|
| 913 |
- bpo-29347: Fixed possibly dereferencing undefined pointers when creating |
| 914 |
weakref objects. |
| 915 |
|
| 916 |
- bpo-14376: Allow sys.exit to accept longs as well as ints. Patch by Gareth |
| 917 |
Rees. |
| 918 |
|
| 919 |
- bpo-29028: Fixed possible use-after-free bugs in the subscription of the |
| 920 |
buffer object with custom index object. |
| 921 |
|
| 922 |
- bpo-29145: Fix overflow checks in string, bytearray and unicode. Patch by |
| 923 |
jan matejek and Xiang Zhang. |
| 924 |
|
| 925 |
- bpo-28932: Do not include <sys/random.h> if it does not exist. |
| 926 |
|
| 927 |
Library |
| 928 |
------- |
| 929 |
|
| 930 |
- bpo-33096: Allow ttk.Treeview.insert to insert iid that has a false |
| 931 |
boolean value. Note iid=0 and iid=False would be same. Patch by Garvit |
| 932 |
Khatri. |
| 933 |
|
| 934 |
- bpo-33127: The ssl module now compiles with LibreSSL 2.7.1. |
| 935 |
|
| 936 |
- bpo-30622: The ssl module now detects missing NPN support in LibreSSL. |
| 937 |
|
| 938 |
- bpo-21060: Rewrite confusing message from setup.py upload from "No dist |
| 939 |
file created in earlier command" to the more helpful "Must create and |
| 940 |
upload files in one command". |
| 941 |
|
| 942 |
- bpo-30157: Fixed guessing quote and delimiter in csv.Sniffer.sniff() when |
| 943 |
only the last field is quoted. Patch by Jake Davis. |
| 944 |
|
| 945 |
- bpo-32647: The ctypes module used to depend on indirect linking for |
| 946 |
dlopen. The shared extension is now explicitly linked against libdl on |
| 947 |
platforms with dl. |
| 948 |
|
| 949 |
- bpo-32304: distutils' upload command no longer corrupts tar files ending |
| 950 |
with a CR byte, and no longer tries to convert CR to CRLF in any of the |
| 951 |
upload text fields. |
| 952 |
|
| 953 |
- bpo-31848: Fix the error handling in Aifc_read.initfp() when the SSND |
| 954 |
chunk is not found. Patch by Zackery Spytz. |
| 955 |
|
| 956 |
- bpo-32521: The nis module is now compatible with new libnsl and headers |
| 957 |
location. |
| 958 |
|
| 959 |
- bpo-32539: Fix ``OSError`` for ``os.listdir`` with deep paths (starting |
| 960 |
with ``\\?\``) on windows. Patch by Anthony Sottile. |
| 961 |
|
| 962 |
- bpo-32521: glibc has removed Sun RPC. Use replacement libtirpc headers and |
| 963 |
library in nis module. |
| 964 |
|
| 965 |
- bpo-18035: ``telnetlib``: ``select.error`` doesn't have an ``errno`` |
| 966 |
attribute. Patch by Segev Finer. |
| 967 |
|
| 968 |
- bpo-32185: The SSL module no longer sends IP addresses in SNI TLS |
| 969 |
extension on platforms with OpenSSL 1.0.2+ or inet_pton. |
| 970 |
|
| 971 |
- bpo-32186: Creating io.FileIO() and builtin file() objects now release the |
| 972 |
GIL when checking the file descriptor. io.FileIO.readall(), |
| 973 |
io.FileIO.read(), and file.read() now release the GIL when getting the |
| 974 |
file size. Fixed hang of all threads with inaccessible NFS server. Patch |
| 975 |
by Nir Soffer. |
| 976 |
|
| 977 |
- bpo-32110: ``codecs.StreamReader.read(n)`` now returns not more than *n* |
| 978 |
characters/bytes for non-negative *n*. This makes it compatible with |
| 979 |
``read()`` methods of other file-like objects. |
| 980 |
|
| 981 |
- bpo-21149: Silence a `'NoneType' object is not callable` in |
| 982 |
`_removeHandlerRef` error that could happen when a logging Handler is |
| 983 |
destroyed as part of cyclic garbage collection during process shutdown. |
| 984 |
|
| 985 |
- bpo-31764: Prevent a crash in ``sqlite3.Cursor.close()`` in case the |
| 986 |
``Cursor`` object is uninitialized. Patch by Oren Milman. |
| 987 |
|
| 988 |
- bpo-31955: Fix CCompiler.set_executable() of distutils to handle properly |
| 989 |
Unicode strings. |
| 990 |
|
| 991 |
- bpo-9678: Fixed determining the MAC address in the uuid module: |
| 992 |
|
| 993 |
* Using ifconfig on NetBSD and OpenBSD. |
| 994 |
* Using arp on Linux, FreeBSD, NetBSD and OpenBSD. |
| 995 |
|
| 996 |
Based on patch by Takayuki Shimizukawa. |
| 997 |
|
| 998 |
- bpo-30057: Fix potential missed signal in signal.signal(). |
| 999 |
|
| 1000 |
- bpo-31927: Fixed reading arbitrary data when parse a AF_BLUETOOTH address |
| 1001 |
on NetBSD and DragonFly BSD. |
| 1002 |
|
| 1003 |
- bpo-27666: Fixed stack corruption in curses.box() and curses.ungetmouse() |
| 1004 |
when the size of types chtype or mmask_t is less than the size of C long. |
| 1005 |
curses.box() now accepts characters as arguments. Based on patch by Steve |
| 1006 |
Fink. |
| 1007 |
|
| 1008 |
- bpo-25720: Fix the method for checking pad state of curses WINDOW. Patch |
| 1009 |
by Masayuki Yamamoto. |
| 1010 |
|
| 1011 |
- bpo-31893: Fixed the layout of the kqueue_event structure on OpenBSD and |
| 1012 |
NetBSD. Fixed the comparison of the kqueue_event objects. |
| 1013 |
|
| 1014 |
- bpo-31891: Fixed building the curses module on NetBSD. |
| 1015 |
|
| 1016 |
- bpo-30058: Fixed buffer overflow in select.kqueue.control(). |
| 1017 |
|
| 1018 |
- bpo-31770: Prevent a crash when calling the ``__init__()`` method of a |
| 1019 |
``sqlite3.Cursor`` object more than once. Patch by Oren Milman. |
| 1020 |
|
| 1021 |
- bpo-31728: Prevent crashes in `_elementtree` due to unsafe cleanup of |
| 1022 |
`Element.text` and `Element.tail`. Patch by Oren Milman. |
| 1023 |
|
| 1024 |
- bpo-31752: Fix possible crash in timedelta constructor called with custom |
| 1025 |
integers. |
| 1026 |
|
| 1027 |
- bpo-31681: Fix pkgutil.get_data to avoid leaking open files. |
| 1028 |
|
| 1029 |
- bpo-31675: Fixed memory leaks in Tkinter's methods splitlist() and split() |
| 1030 |
when pass a string larger than 2 GiB. |
| 1031 |
|
| 1032 |
- bpo-30806: Fix the string representation of a netrc object. |
| 1033 |
|
| 1034 |
- bpo-30347: Stop crashes when concurrently iterate over itertools.groupby() |
| 1035 |
iterators. |
| 1036 |
|
| 1037 |
- bpo-25732: `functools.total_ordering()` now implements the `__ne__` |
| 1038 |
method. |
| 1039 |
|
| 1040 |
- bpo-31351: python -m ensurepip now exits with non-zero exit code if pip |
| 1041 |
bootstrapping has failed. |
| 1042 |
|
| 1043 |
- bpo-31544: The C accelerator module of ElementTree ignored exceptions |
| 1044 |
raised when looking up TreeBuilder target methods in XMLParser(). |
| 1045 |
|
| 1046 |
- bpo-31455: The C accelerator module of ElementTree ignored exceptions |
| 1047 |
raised when looking up TreeBuilder target methods in XMLParser(). |
| 1048 |
|
| 1049 |
- bpo-25404: SSLContext.load_dh_params() now supports non-ASCII path. |
| 1050 |
|
| 1051 |
- bpo-28958: ssl.SSLContext() now uses OpenSSL error information when a |
| 1052 |
context cannot be instantiated. |
| 1053 |
|
| 1054 |
- bpo-27448: Work around a `gc.disable()` race condition in the `subprocess` |
| 1055 |
module that could leave garbage collection disabled when multiple threads |
| 1056 |
are spawning subprocesses at once. Users are *strongly encouraged* to use |
| 1057 |
the `subprocess32` module from PyPI on Python 2.7 instead, it is much more |
| 1058 |
reliable. |
| 1059 |
|
| 1060 |
- bpo-31170: expat: Update libexpat from 2.2.3 to 2.2.4. Fix copying of |
| 1061 |
partial characters for UTF-8 input (libexpat bug 115): |
| 1062 |
https://github.com/libexpat/libexpat/issues/115 |
| 1063 |
|
| 1064 |
- bpo-29136: Add TLS 1.3 cipher suites and OP_NO_TLSv1_3. |
| 1065 |
|
| 1066 |
- bpo-31334: Fix ``poll.poll([timeout])`` in the ``select`` module for |
| 1067 |
arbitrary negative timeouts on all OSes where it can only be a |
| 1068 |
non-negative integer or -1. Patch by Riccardo Coccioli. |
| 1069 |
|
| 1070 |
- bpo-10746: Fix ctypes producing wrong PEP 3118 type codes for integer |
| 1071 |
types. |
| 1072 |
|
| 1073 |
- bpo-30102: The ssl and hashlib modules now call |
| 1074 |
OPENSSL_add_all_algorithms_noconf() on OpenSSL < 1.1.0. The function |
| 1075 |
detects CPU features and enables optimizations on some CPU architectures |
| 1076 |
such as POWER8. Patch is based on research from Gustavo Serra Scalet. |
| 1077 |
|
| 1078 |
- bpo-30502: Fix handling of long oids in ssl. Based on patch by Christian |
| 1079 |
Heimes. |
| 1080 |
|
| 1081 |
- bpo-25684: Change ``ttk.OptionMenu`` radiobuttons to be unique across |
| 1082 |
instances of ``OptionMenu``. |
| 1083 |
|
| 1084 |
- bpo-29169: Update zlib to 1.2.11. |
| 1085 |
|
| 1086 |
- bpo-30746: Prohibited the '=' character in environment variable names in |
| 1087 |
``os.putenv()`` and ``os.spawn*()``. |
| 1088 |
|
| 1089 |
- bpo-30418: On Windows, subprocess.Popen.communicate() now also ignore |
| 1090 |
EINVAL on stdin.write() if the child process is still running but closed |
| 1091 |
the pipe. |
| 1092 |
|
| 1093 |
- bpo-30378: Fix the problem that logging.handlers.SysLogHandler cannot |
| 1094 |
handle IPv6 addresses. |
| 1095 |
|
| 1096 |
- bpo-29960: Preserve generator state when _random.Random.setstate() raises |
| 1097 |
an exception. Patch by Bryan Olson. |
| 1098 |
|
| 1099 |
- bpo-30310: tkFont now supports unicode options (e.g. font family). |
| 1100 |
|
| 1101 |
- bpo-30414: multiprocessing.Queue._feed background running thread do not |
| 1102 |
break from main loop on exception. |
| 1103 |
|
| 1104 |
- bpo-30003: Fix handling escape characters in HZ codec. Based on patch by |
| 1105 |
Ma Lin. |
| 1106 |
|
| 1107 |
- bpo-30375: Warnings emitted when compile a regular expression now always |
| 1108 |
point to the line in the user code. Previously they could point into |
| 1109 |
inners of the re module if emitted from inside of groups or conditionals. |
| 1110 |
|
| 1111 |
- bpo-30363: Running Python with the -3 option now warns about regular |
| 1112 |
expression syntax that is invalid or has different semantic in Python 3 or |
| 1113 |
will change the behavior in future Python versions. |
| 1114 |
|
| 1115 |
- bpo-30365: Running Python with the -3 option now emits deprecation |
| 1116 |
warnings for getchildren() and getiterator() methods of the Element class |
| 1117 |
in the xml.etree.cElementTree module and when pass the html argument to |
| 1118 |
xml.etree.ElementTree.XMLParser(). |
| 1119 |
|
| 1120 |
- bpo-30365: Fixed a deprecation warning about the doctype() method of the |
| 1121 |
xml.etree.ElementTree.XMLParser class. Now it is emitted only when define |
| 1122 |
the doctype() method in the subclass of XMLParser. |
| 1123 |
|
| 1124 |
- bpo-30329: imaplib now catchs the Windows socket WSAEINVAL error (code |
| 1125 |
10022) on shutdown(SHUT_RDWR): An invalid operation was attempted. This |
| 1126 |
error occurs sometimes on SSL connections. |
| 1127 |
|
| 1128 |
- bpo-30342: Fix sysconfig.is_python_build() if Python is built with Visual |
| 1129 |
Studio 2008 (VS 9.0). |
| 1130 |
|
| 1131 |
- bpo-29990: Fix range checking in GB18030 decoder. Original patch by Ma |
| 1132 |
Lin. |
| 1133 |
|
| 1134 |
- bpo-30243: Removed the __init__ methods of _json's scanner and encoder. |
| 1135 |
Misusing them could cause memory leaks or crashes. Now scanner and |
| 1136 |
encoder objects are completely initialized in the __new__ methods. |
| 1137 |
|
| 1138 |
- bpo-26293: Change resulted because of zipfile breakage. (See also: |
| 1139 |
bpo-29094) |
| 1140 |
|
| 1141 |
- bpo-30070: Fixed leaks and crashes in errors handling in the parser |
| 1142 |
module. |
| 1143 |
|
| 1144 |
- bpo-30061: Fixed crashes in IOBase methods next() and readlines() when |
| 1145 |
readline() or next() respectively return non-sizeable object. Fixed |
| 1146 |
possible other errors caused by not checking results of PyObject_Size(), |
| 1147 |
PySequence_Size(), or PyMapping_Size(). |
| 1148 |
|
| 1149 |
- bpo-30011: Fixed race condition in HTMLParser.unescape(). |
| 1150 |
|
| 1151 |
- bpo-30068: _io._IOBase.readlines will check if it's closed first when hint |
| 1152 |
is present. |
| 1153 |
|
| 1154 |
- bpo-27863: Fixed multiple crashes in ElementTree caused by race conditions |
| 1155 |
and wrong types. |
| 1156 |
|
| 1157 |
- bpo-29942: Fix a crash in itertools.chain.from_iterable when encountering |
| 1158 |
long runs of empty iterables. |
| 1159 |
|
| 1160 |
- bpo-29861: Release references to tasks, their arguments and their results |
| 1161 |
as soon as they are finished in multiprocessing.Pool. |
| 1162 |
|
| 1163 |
- bpo-27880: Fixed integer overflow in cPickle when pickle large strings or |
| 1164 |
too many objects. |
| 1165 |
|
| 1166 |
- bpo-29110: Fix file object leak in aifc.open() when file is given as a |
| 1167 |
filesystem path and is not in valid AIFF format. Original patch by Anthony |
| 1168 |
Zhang. |
| 1169 |
|
| 1170 |
- bpo-29354: Fixed inspect.getargs() for parameters which are cell |
| 1171 |
variables. |
| 1172 |
|
| 1173 |
- bpo-29335: Fix subprocess.Popen.wait() when the child process has exited |
| 1174 |
to a stopped instead of terminated state (ex: when under ptrace). |
| 1175 |
|
| 1176 |
- bpo-29219: Fixed infinite recursion in the repr of uninitialized |
| 1177 |
ctypes.CDLL instances. |
| 1178 |
|
| 1179 |
- bpo-29082: Fixed loading libraries in ctypes by unicode names on Windows. |
| 1180 |
Original patch by Chi Hsuan Yen. |
| 1181 |
|
| 1182 |
- bpo-29188: Support glibc 2.24 on Linux: don't use getentropy() function |
| 1183 |
but read from /dev/urandom to get random bytes, for example in |
| 1184 |
os.urandom(). On Linux, getentropy() is implemented which getrandom() is |
| 1185 |
blocking mode, whereas os.urandom() should not block. |
| 1186 |
|
| 1187 |
- bpo-29142: In urllib, suffixes in no_proxy environment variable with |
| 1188 |
leading dots could match related hostnames again (e.g. .b.c matches |
| 1189 |
a.b.c). Patch by Milan Oberkirch. |
| 1190 |
|
| 1191 |
- bpo-13051: Fixed recursion errors in large or resized |
| 1192 |
curses.textpad.Textbox. Based on patch by Tycho Andersen. |
| 1193 |
|
| 1194 |
- bpo-9770: curses.ascii predicates now work correctly with negative |
| 1195 |
integers. |
| 1196 |
|
| 1197 |
- bpo-28427: old keys should not remove new values from WeakValueDictionary |
| 1198 |
when collecting from another thread. |
| 1199 |
|
| 1200 |
- bpo-28998: More APIs now support longs as well as ints. |
| 1201 |
|
| 1202 |
- bpo-28923: Remove editor artifacts from Tix.py, including encoding not |
| 1203 |
recognized by codecs.lookup. |
| 1204 |
|
| 1205 |
- bpo-29019: Fix dict.fromkeys(x) overallocates when x is sparce dict. |
| 1206 |
Original patch by Rasmus Villemoes. |
| 1207 |
|
| 1208 |
- bpo-19542: Fix bugs in WeakValueDictionary.setdefault() and |
| 1209 |
WeakValueDictionary.pop() when a GC collection happens in another thread. |
| 1210 |
|
| 1211 |
- bpo-28925: cPickle now correctly propagates errors when unpickle instances |
| 1212 |
of old-style classes. |
| 1213 |
|
| 1214 |
Documentation |
| 1215 |
------------- |
| 1216 |
|
| 1217 |
- bpo-27212: Modify documentation for the :func:`islice` recipe to consume |
| 1218 |
initial values up to the start index. |
| 1219 |
|
| 1220 |
- bpo-32800: Update link to w3c doc for xml default namespaces. |
| 1221 |
|
| 1222 |
- bpo-17799: Explain real behaviour of sys.settrace and sys.setprofile and |
| 1223 |
their C-API counterparts regarding which type of events are received in |
| 1224 |
each function. Patch by Pablo Galindo Salgado. |
| 1225 |
|
| 1226 |
- bpo-8243: Add a note about curses.addch and curses.addstr exception |
| 1227 |
behavior when writing outside a window, or pad. |
| 1228 |
|
| 1229 |
- bpo-21649: Add RFC 7525 and Mozilla server side TLS links to SSL |
| 1230 |
documentation. |
| 1231 |
|
| 1232 |
- bpo-30176: Add missing attribute related constants in curses |
| 1233 |
documentation. |
| 1234 |
|
| 1235 |
- bpo-28929: Link the documentation to its source file on GitHub. |
| 1236 |
|
| 1237 |
- bpo-26355: Add canonical header link on each page to corresponding major |
| 1238 |
version of the documentation. Patch by Matthias Bussonnier. |
| 1239 |
|
| 1240 |
- bpo-12067: Rewrite Comparisons section in the Expressions chapter of the |
| 1241 |
language reference. Some of the details of comparing mixed types were |
| 1242 |
incorrect or ambiguous. Added default behaviour and consistency |
| 1243 |
suggestions for user-defined classes. Based on patch from Andy Maier. |
| 1244 |
|
| 1245 |
Tests |
| 1246 |
----- |
| 1247 |
|
| 1248 |
- bpo-31719: Fix test_regrtest.test_crashed() on s390x. Add a new |
| 1249 |
_testcapi._read_null() function to crash Python in a reliable way on |
| 1250 |
s390x. On s390x, ctypes.string_at(0) returns an empty string rather than |
| 1251 |
crashing. |
| 1252 |
|
| 1253 |
- bpo-31518: Debian Unstable has disabled TLS 1.0 and 1.1 for |
| 1254 |
SSLv23_METHOD(). Change TLS/SSL protocol of some tests to PROTOCOL_TLS or |
| 1255 |
PROTOCOL_TLSv1_2 to make them pass on Debian. |
| 1256 |
|
| 1257 |
- bpo-25674: Remove sha256.tbs-internet.com ssl test |
| 1258 |
|
| 1259 |
- bpo-11790: Fix sporadic failures in |
| 1260 |
test_multiprocessing.WithProcessesTestCondition. |
| 1261 |
|
| 1262 |
- bpo-30236: Backported test.regrtest options -m/--match and -G/--failfast |
| 1263 |
from Python 3. |
| 1264 |
|
| 1265 |
- bpo-30223: To unify running tests in Python 2.7 and Python 3, the test |
| 1266 |
package can be run as a script. This is equivalent to running the |
| 1267 |
test.regrtest module as a script. |
| 1268 |
|
| 1269 |
- bpo-30207: To simplify backports from Python 3, the test.test_support |
| 1270 |
module was converted into a package and renamed to test.support. The |
| 1271 |
test.script_helper module was moved into the test.support package. Names |
| 1272 |
test.test_support and test.script_helper are left as aliases to |
| 1273 |
test.support and test.support.script_helper. |
| 1274 |
|
| 1275 |
- bpo-30197: Enhanced function swap_attr() in the test.test_support module. |
| 1276 |
It now works when delete replaced attribute inside the with statement. |
| 1277 |
The old value of the attribute (or None if it doesn't exist) now will be |
| 1278 |
assigned to the target of the "as" clause, if there is one. Also |
| 1279 |
backported function swap_item(). |
| 1280 |
|
| 1281 |
- bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. Skip |
| 1282 |
some tests of select.poll when running on macOS due to unresolved issues |
| 1283 |
with the underlying system poll function on some macOS versions. |
| 1284 |
|
| 1285 |
- bpo-15083: Convert ElementTree doctests to unittests. |
| 1286 |
|
| 1287 |
Build |
| 1288 |
----- |
| 1289 |
|
| 1290 |
- bpo-33163: Upgrade pip to 9.0.3 and setuptools to v39.0.1. |
| 1291 |
|
| 1292 |
- bpo-32616: Disable computed gotos by default for clang < 5.0. It caused |
| 1293 |
significant performance regression. |
| 1294 |
|
| 1295 |
- bpo-32635: Fix segfault of the crypt module when libxcrypt is provided |
| 1296 |
instead of libcrypt at the system. |
| 1297 |
|
| 1298 |
- bpo-31934: Abort the build when building out of a not clean source tree. |
| 1299 |
|
| 1300 |
- bpo-31474: Fix -Wint-in-bool-context warnings in PyMem_MALLOC and |
| 1301 |
PyMem_REALLOC macros |
| 1302 |
|
| 1303 |
- bpo-29243: Prevent unnecessary rebuilding of Python during ``make test``, |
| 1304 |
``make install`` and some other make targets when configured with |
| 1305 |
``--enable-optimizations``. |
| 1306 |
|
| 1307 |
- bpo-23404: Don't regenerate generated files based on file modification |
| 1308 |
time anymore: the action is now explicit. Replace ``make touch`` with |
| 1309 |
``make regen-all``. |
| 1310 |
|
| 1311 |
- bpo-27593: sys.version and the platform module python_build(), |
| 1312 |
python_branch(), and python_revision() functions now use git information |
| 1313 |
rather than hg when building from a repo. |
| 1314 |
|
| 1315 |
- bpo-29643: Fix ``--enable-optimization`` configure option didn't work. |
| 1316 |
|
| 1317 |
- bpo-29572: Update Windows build and OS X installers to use OpenSSL 1.0.2k. |
| 1318 |
|
| 1319 |
- bpo-28768: Fix implicit declaration of function _setmode. Patch by |
| 1320 |
Masayuki Yamamoto |
| 1321 |
|
| 1322 |
Windows |
| 1323 |
------- |
| 1324 |
|
| 1325 |
- bpo-33184: Update Windows build to use OpenSSL 1.0.2o. |
| 1326 |
|
| 1327 |
- bpo-32903: Fix a memory leak in os.chdir() on Windows if the current |
| 1328 |
directory is set to a UNC path. |
| 1329 |
|
| 1330 |
- bpo-30855: Bump Tcl/Tk to 8.5.19. |
| 1331 |
|
| 1332 |
- bpo-30450: Pull build dependencies from GitHub rather than svn.python.org. |
| 1333 |
|
| 1334 |
macOS |
| 1335 |
----- |
| 1336 |
|
| 1337 |
- bpo-32726: Provide an additional, more modern macOS installer variant that |
| 1338 |
supports macOS 10.9+ systems in 64-bit mode only. Upgrade the supplied |
| 1339 |
third-party libraries to OpenSSL 1.0.2n and SQLite 3.22.0. The 10.9+ |
| 1340 |
installer now supplies its own private copy of Tcl/Tk 8.6.8. |
| 1341 |
|
| 1342 |
- bpo-24414: Default macOS deployment target is now set by ``configure`` to |
| 1343 |
the build system's OS version (as is done by Python 3), not ``10.4``; |
| 1344 |
override with, for example, ``./configure MACOSX_DEPLOYMENT_TARGET=10.4``. |
| 1345 |
|
| 1346 |
- bpo-17128: All 2.7 macOS installer variants now supply their own version |
| 1347 |
of ``OpenSSL 1.0.2``; the Apple-supplied SSL libraries and root |
| 1348 |
certificates are not longer used. The ``Installer Certificate`` command |
| 1349 |
in ``/Applications/Python 2.7`` may be used to download and install a |
| 1350 |
default set of root certificates from the third-party ``certifi`` package. |
| 1351 |
|
| 1352 |
- bpo-11485: python.org macOS Pythons no longer supply a default SDK value |
| 1353 |
(e.g. ``-isysroot /``) or specific compiler version default (e.g. |
| 1354 |
``gcc-4.2``) when building extension modules. Use ``CC``, ``SDKROOT``, |
| 1355 |
and ``DEVELOPER_DIR`` environment variables to override compilers or to |
| 1356 |
use an SDK. See Apple's ``xcrun`` man page for more info. |
| 1357 |
|
| 1358 |
- bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. |
| 1359 |
|
| 1360 |
Tools/Demos |
| 1361 |
----------- |
| 1362 |
|
| 1363 |
- bpo-31920: Fixed handling directories as arguments in the ``pygettext`` |
| 1364 |
script. Based on patch by Oleg Krasnikov. |
| 1365 |
|
| 1366 |
- bpo-30109: Fixed Tools/scripts/reindent.py for non-ASCII files. It now |
| 1367 |
processes files as binary streams. This also fixes "make reindent". |
| 1368 |
|
| 1369 |
- bpo-24960: 2to3 and lib2to3 can now read pickled grammar files using |
| 1370 |
pkgutil.get_data() rather than probing the filesystem. This lets 2to3 and |
| 1371 |
lib2to3 work when run from a zipfile. |
| 1372 |
|
| 1373 |
C API |
| 1374 |
----- |
| 1375 |
|
| 1376 |
- bpo-20891: Fix PyGILState_Ensure(). When PyGILState_Ensure() is called in |
| 1377 |
a non-Python thread before PyEval_InitThreads(), only call |
| 1378 |
PyEval_InitThreads() after calling PyThreadState_New() to fix a crash. |
| 1379 |
|
| 1380 |
- bpo-31626: When Python is built in debug mode, the memory debug hooks now |
| 1381 |
fail with a fatal error if realloc() fails to shrink a memory block, |
| 1382 |
because the debug hook just erased freed bytes without keeping a copy of |
| 1383 |
them. |
| 1384 |
|
| 1385 |
|
| 1386 |
What's New in Python 2.7.14 release candidate 1? |
| 1387 |
================================================ |
| 1388 |
|
| 1389 |
*Release date: 2017-08-26* |
| 1390 |
|
| 1391 |
Security |
| 1392 |
-------- |
| 1393 |
|
| 1394 |
- bpo-30947: Upgrade libexpat embedded copy from version 2.2.1 to 2.2.3 to |
| 1395 |
get security fixes. |
| 1396 |
|
| 1397 |
Core and Builtins |
| 1398 |
----------------- |
| 1399 |
|
| 1400 |
- bpo-30765: Avoid blocking in pthread_mutex_lock() when |
| 1401 |
PyThread_acquire_lock() is asked not to block. |
| 1402 |
|
| 1403 |
Library |
| 1404 |
------- |
| 1405 |
|
| 1406 |
- bpo-31135: ttk: Fix LabeledScale and OptionMenu destroy() method. Call the |
| 1407 |
parent destroy() method even if the used attribute doesn't exist. The |
| 1408 |
LabeledScale.destroy() method now also explicitly clears label and scale |
| 1409 |
attributes to help the garbage collector to destroy all widgets. |
| 1410 |
|
| 1411 |
- bpo-31107: Fix `copy_reg._slotnames()` mangled attribute calculation for |
| 1412 |
classes whose name begins with an underscore. Patch by Shane Harvey. |
| 1413 |
|
| 1414 |
- bpo-29519: Fix weakref spewing exceptions during interpreter shutdown when |
| 1415 |
used with a rare combination of multiprocessing and custom codecs. |
| 1416 |
|
| 1417 |
- bpo-30119: ftplib.FTP.putline() now throws ValueError on commands that |
| 1418 |
contains CR or LF. Patch by Dong-hee Na. |
| 1419 |
|
| 1420 |
- bpo-30595: multiprocessing.Queue.get() with a timeout now polls its reader |
| 1421 |
in non-blocking mode if it succeeded to aquire the lock but the acquire |
| 1422 |
took longer than the timeout. |
| 1423 |
|
| 1424 |
- bpo-29902: Py3k deprecation warning now is emitted when pickling or |
| 1425 |
copying some builtin and extension objects that don't support pickling |
| 1426 |
explicitly and are pickled incorrectly by default (like memoryview or |
| 1427 |
staticmethod). This is a TypeError in Python 3.6. |
| 1428 |
|
| 1429 |
- bpo-29854: Fix segfault in readline when using readline's history-size |
| 1430 |
option. Patch by Nir Soffer. |
| 1431 |
|
| 1432 |
- bpo-30807: signal.setitimer() may disable the timer when passed a tiny |
| 1433 |
value. |
| 1434 |
|
| 1435 |
Tiny values (such as 1e-6) are valid non-zero values for setitimer(), |
| 1436 |
which is specified as taking microsecond-resolution intervals. However, on |
| 1437 |
some platform, our conversion routine could convert 1e-6 into a zero |
| 1438 |
interval, therefore disabling the timer instead of (re-)scheduling it. |
| 1439 |
|
| 1440 |
Tests |
| 1441 |
----- |
| 1442 |
|
| 1443 |
- bpo-30715: Address ALPN callback changes for OpenSSL 1.1.0f. The latest |
| 1444 |
version behaves like OpenSSL 1.0.2 and no longer aborts handshake. |
| 1445 |
|
| 1446 |
- bpo-30822: Fix regrtest command line parser to allow passing -u |
| 1447 |
extralargefile to run test_zipfile64. |
| 1448 |
|
| 1449 |
- bpo-30283: regrtest: Enhance regrtest and backport features from the |
| 1450 |
master branch. |
| 1451 |
|
| 1452 |
Add options: --coverage, --testdir, --list-tests (list test files, don't |
| 1453 |
run them), --list-cases (list test identifiers, don't run them, |
| 1454 |
:issue:`30523`), --matchfile (load a list of test filters from a text |
| 1455 |
file, :issue:`30540`), --slowest (alias to --slow). |
| 1456 |
|
| 1457 |
Enhance output: add timestamp, test result, currently running tests, |
| 1458 |
"Tests result: xxx" summary with total duration, etc. |
| 1459 |
|
| 1460 |
Fix reference leak hunting in regrtest, --huntrleaks: regrtest now warms |
| 1461 |
up caches, create explicitly all internal singletons which are created on |
| 1462 |
demand to prevent false positives when checking for reference leaks. |
| 1463 |
(:issue:`30675`). |
| 1464 |
|
| 1465 |
|
| 1466 |
What's New in Python 2.7.13 final? |
| 1467 |
================================== |
| 1468 |
|
| 1469 |
*Release date: 2016-12-17* |
| 1470 |
|
| 1471 |
Core and Builtins |
| 1472 |
----------------- |
| 1473 |
|
| 1474 |
- bpo-5322: Revert a37cc3d926ec. |
| 1475 |
|
| 1476 |
|
| 1477 |
What's New in Python 2.7.13 release candidate 1? |
| 1478 |
================================================ |
| 1479 |
|
| 1480 |
*Release date: 2016-12-03* |
| 1481 |
|
| 1482 |
Core and Builtins |
| 1483 |
----------------- |
| 1484 |
|
| 1485 |
- bpo-5322: Fixed setting __new__ to a PyCFunction inside Python code. |
| 1486 |
Original patch by Andreas Stührk. |
| 1487 |
|
| 1488 |
- bpo-28847: dumbdbm no longer writes the index file in when it is not |
| 1489 |
changed and supports reading read-only files. |
| 1490 |
|
| 1491 |
- bpo-11145: Fixed miscellaneous issues with C-style formatting of types |
| 1492 |
with custom __oct__ and __hex__. |
| 1493 |
|
| 1494 |
- bpo-24469: Fixed memory leak caused by int subclasses without overridden |
| 1495 |
tp_free (e.g. C-inherited Cython classes). |
| 1496 |
|
| 1497 |
- bpo-19398: Extra slash no longer added to sys.path components in case of |
| 1498 |
empty compile-time PYTHONPATH components. |
| 1499 |
|
| 1500 |
- bpo-21720: Improve exception message when the type of fromlist is unicode. |
| 1501 |
fromlist parameter of __import__() only accepts str in Python 2 and this |
| 1502 |
will help to identify the problem especially when the unicode_literals |
| 1503 |
future import is used. |
| 1504 |
|
| 1505 |
- bpo-26906: Resolving special methods of uninitialized type now causes |
| 1506 |
implicit initialization of the type instead of a fail. |
| 1507 |
|
| 1508 |
- bpo-18287: PyType_Ready() now checks that tp_name is not NULL. Original |
| 1509 |
patch by Niklas Koep. |
| 1510 |
|
| 1511 |
- bpo-24098: Fixed possible crash when AST is changed in process of |
| 1512 |
compiling it. |
| 1513 |
|
| 1514 |
- bpo-28350: String constants with null character no longer interned. |
| 1515 |
|
| 1516 |
- bpo-27942: String constants now interned recursively in tuples and |
| 1517 |
frozensets. |
| 1518 |
|
| 1519 |
- bpo-15578: Correctly incref the parent module while importing. |
| 1520 |
|
| 1521 |
- bpo-26307: The profile-opt build now applies PGO to the built-in modules. |
| 1522 |
|
| 1523 |
- bpo-26020: set literal evaluation order did not match documented |
| 1524 |
behaviour. |
| 1525 |
|
| 1526 |
- bpo-27870: A left shift of zero by a large integer no longer attempts to |
| 1527 |
allocate large amounts of memory. |
| 1528 |
|
| 1529 |
- bpo-25604: Fix a minor bug in integer true division; this bug could |
| 1530 |
potentially have caused off-by-one-ulp results on platforms with |
| 1531 |
unreliable ldexp implementations. |
| 1532 |
|
| 1533 |
- bpo-27473: Fixed possible integer overflow in str, unicode and bytearray |
| 1534 |
concatenations and repetitions. Based on patch by Xiang Zhang. |
| 1535 |
|
| 1536 |
- bpo-27507: Add integer overflow check in bytearray.extend(). Patch by |
| 1537 |
Xiang Zhang. |
| 1538 |
|
| 1539 |
- bpo-27581: Don't rely on wrapping for overflow check in |
| 1540 |
PySequence_Tuple(). Patch by Xiang Zhang. |
| 1541 |
|
| 1542 |
- bpo-23908: os functions, open() and the io.FileIO constructor now reject |
| 1543 |
unicode paths with embedded null character on Windows instead of silently |
| 1544 |
truncating them. |
| 1545 |
|
| 1546 |
- bpo-27514: Make having too many statically nested blocks a SyntaxError |
| 1547 |
instead of SystemError. |
| 1548 |
|
| 1549 |
Library |
| 1550 |
------- |
| 1551 |
|
| 1552 |
- bpo-25659: In ctypes, prevent a crash calling the from_buffer() and |
| 1553 |
from_buffer_copy() methods on abstract classes like Array. |
| 1554 |
|
| 1555 |
- bpo-28563: Fixed possible DoS and arbitrary code execution when handle |
| 1556 |
plural form selections in the gettext module. The expression parser now |
| 1557 |
supports exact syntax supported by GNU gettext. |
| 1558 |
|
| 1559 |
- bpo-28387: Fixed possible crash in _io.TextIOWrapper deallocator when the |
| 1560 |
garbage collector is invoked in other thread. Based on patch by Sebastian |
| 1561 |
Cufre. |
| 1562 |
|
| 1563 |
- bpo-28449: tarfile.open() with mode "r" or "r:" now tries to open a tar |
| 1564 |
file with compression before trying to open it without compression. |
| 1565 |
Otherwise it had 50% chance failed with ignore_zeros=True. |
| 1566 |
|
| 1567 |
- bpo-25464: Fixed HList.header_exists() in Tix module by adding a |
| 1568 |
workaround to Tix library bug. |
| 1569 |
|
| 1570 |
- bpo-28488: shutil.make_archive() no longer adds entry "./" to ZIP archive. |
| 1571 |
|
| 1572 |
- bpo-28480: Fix error building _sqlite3 module when multithreading is |
| 1573 |
disabled. |
| 1574 |
|
| 1575 |
- bpo-24452: Make webbrowser support Chrome on Mac OS X. |
| 1576 |
|
| 1577 |
- bpo-26293: Fixed writing ZIP files that starts not from the start of the |
| 1578 |
file. Offsets in ZIP file now are relative to the start of the archive in |
| 1579 |
conforming to the specification. |
| 1580 |
|
| 1581 |
- Fix possible integer overflows and crashes in the mmap module with unusual |
| 1582 |
usage patterns. |
| 1583 |
|
| 1584 |
- bpo-27897: Fixed possible crash in sqlite3.Connection.create_collation() |
| 1585 |
if pass invalid string-like object as a name. Original patch by Xiang |
| 1586 |
Zhang. |
| 1587 |
|
| 1588 |
- bpo-1703178: Fix the ability to pass the --link-objects option to the |
| 1589 |
distutils build_ext command. |
| 1590 |
|
| 1591 |
- bpo-28253: Fixed calendar functions for extreme months: 0001-01 and |
| 1592 |
9999-12. |
| 1593 |
|
| 1594 |
Methods itermonthdays() and itermonthdays2() are reimplemented so that |
| 1595 |
they don't call itermonthdates() which can cause datetime.date |
| 1596 |
under/overflow. |
| 1597 |
|
| 1598 |
- bpo-27963: Fixed possible null pointer dereference in |
| 1599 |
ctypes.set_conversion_mode(). Patch by Xiang Zhang. |
| 1600 |
|
| 1601 |
- bpo-28284: Strengthen resistance of ``_json.encode_basestring_ascii()`` to |
| 1602 |
integer overflow. |
| 1603 |
|
| 1604 |
- bpo-27611: Fixed support of default root window in the Tix module. |
| 1605 |
|
| 1606 |
- bpo-24363: When parsing HTTP header fields, if an invalid line is |
| 1607 |
encountered, skip it and continue parsing. Previously, no more header |
| 1608 |
fields were parsed, which could lead to fields for HTTP framing like |
| 1609 |
Content-Length and Transfer-Encoding being overlooked. |
| 1610 |
|
| 1611 |
- bpo-27599: Fixed buffer overrun in binascii.b2a_qp() and |
| 1612 |
binascii.a2b_qp(). |
| 1613 |
|
| 1614 |
- bpo-25969: Update the lib2to3 grammar to handle the unpacking |
| 1615 |
generalizations added in 3.5. |
| 1616 |
|
| 1617 |
- bpo-24594: Validates persist parameter when opening MSI database |
| 1618 |
|
| 1619 |
- bpo-27570: Avoid zero-length memcpy() etc calls with null source pointers |
| 1620 |
in the "ctypes" and "array" modules. |
| 1621 |
|
| 1622 |
- bpo-22450: urllib now includes an "Accept: */*" header among the default |
| 1623 |
headers. This makes the results of REST API requests more consistent and |
| 1624 |
predictable especially when proxy servers are involved. |
| 1625 |
|
| 1626 |
- lib2to3.pgen3.driver.load_grammar() now creates a stable cache file |
| 1627 |
between runs given the same Grammar.txt input regardless of the hash |
| 1628 |
randomization setting. |
| 1629 |
|
| 1630 |
- bpo-27691: Fix ssl module's parsing of GEN_RID subject alternative name |
| 1631 |
fields in X.509 certs. |
| 1632 |
|
| 1633 |
- bpo-27850: Remove 3DES from ssl module's default cipher list to counter |
| 1634 |
measure sweet32 attack (CVE-2016-2183). |
| 1635 |
|
| 1636 |
- bpo-27766: Add ChaCha20 Poly1305 to ssl module's default ciper list. |
| 1637 |
(Required OpenSSL 1.1.0 or LibreSSL). |
| 1638 |
|
| 1639 |
- bpo-26470: Port ssl and hashlib module to OpenSSL 1.1.0. |
| 1640 |
|
| 1641 |
- bpo-27944: Fix some memory-corruption bugs in the log reading code of the |
| 1642 |
_hotshot module. |
| 1643 |
|
| 1644 |
- bpo-27934: Use ``float.__repr__`` instead of plain ``repr`` when JSON- |
| 1645 |
encoding an instance of a float subclass. Thanks Eddie James. |
| 1646 |
|
| 1647 |
- bpo-27861: Fixed a crash in sqlite3.Connection.cursor() when a factory |
| 1648 |
creates not a cursor. Patch by Xiang Zhang. |
| 1649 |
|
| 1650 |
- bpo-19884: Avoid spurious output on OS X with Gnu Readline. |
| 1651 |
|
| 1652 |
- bpo-10513: Fix a regression in Connection.commit(). Statements should not |
| 1653 |
be reset after a commit. |
| 1654 |
|
| 1655 |
- bpo-2466: posixpath.ismount now correctly recognizes mount points which |
| 1656 |
the user does not have permission to access. |
| 1657 |
|
| 1658 |
- bpo-27783: Fix possible usage of uninitialized memory in |
| 1659 |
operator.methodcaller. |
| 1660 |
|
| 1661 |
- bpo-27774: Fix possible Py_DECREF on unowned object in _sre. |
| 1662 |
|
| 1663 |
- bpo-27760: Fix possible integer overflow in binascii.b2a_qp. |
| 1664 |
|
| 1665 |
- In the curses module, raise an error if window.getstr() or window.instr() |
| 1666 |
is passed a negative value. |
| 1667 |
|
| 1668 |
- bpo-27758: Fix possible integer overflow in the _csv module for large |
| 1669 |
record lengths. |
| 1670 |
|
| 1671 |
- bpo-23369: Fixed possible integer overflow in |
| 1672 |
_json.encode_basestring_ascii. |
| 1673 |
|
| 1674 |
- bpo-27568: Prevent HTTPoxy attack (CVE-2016-1000110). Ignore the |
| 1675 |
HTTP_PROXY variable when REQUEST_METHOD environment is set, which |
| 1676 |
indicates that the script is in CGI mode. |
| 1677 |
|
| 1678 |
- bpo-27130: In the "zlib" module, fix handling of large buffers (typically |
| 1679 |
2 or 4 GiB). Previously, inputs were limited to 2 GiB, and compression and |
| 1680 |
decompression operations did not properly handle results of 2 or 4 GiB. |
| 1681 |
|
| 1682 |
- bpo-23804: Fix SSL zero-length recv() calls to not block and not raise an |
| 1683 |
error about unclean EOF. |
| 1684 |
|
| 1685 |
- bpo-27466: Change time format returned by http.cookie.time2netscape, |
| 1686 |
confirming the netscape cookie format and making it consistent with |
| 1687 |
documentation. |
| 1688 |
|
| 1689 |
- bpo-22115: Fixed tracing Tkinter variables: trace_vdelete() with wrong |
| 1690 |
mode no longer break tracing, trace_vinfo() now always returns a list of |
| 1691 |
pairs of strings. |
| 1692 |
|
| 1693 |
- bpo-27079: Fixed curses.ascii functions isblank(), iscntrl() and |
| 1694 |
ispunct(). |
| 1695 |
|
| 1696 |
- bpo-22636: Avoid shell injection problems with ctypes.util.find_library(). |
| 1697 |
|
| 1698 |
- bpo-27330: Fixed possible leaks in the ctypes module. |
| 1699 |
|
| 1700 |
- bpo-27238: Got rid of bare excepts in the turtle module. Original patch |
| 1701 |
by Jelle Zijlstra. |
| 1702 |
|
| 1703 |
- bpo-26386: Fixed ttk.TreeView selection operations with item id's |
| 1704 |
containing spaces. |
| 1705 |
|
| 1706 |
- bpo-25455: Fixed a crash in repr of cElementTree.Element with recursive |
| 1707 |
tag. |
| 1708 |
|
| 1709 |
- bpo-21201: Improves readability of multiprocessing error message. Thanks |
| 1710 |
to Wojciech Walczak for patch. |
| 1711 |
|
| 1712 |
IDLE |
| 1713 |
---- |
| 1714 |
|
| 1715 |
- bpo-27854: Make Help => IDLE Help work again on Windows. Include |
| 1716 |
idlelib/help.html in 2.7 Windows installer. |
| 1717 |
|
| 1718 |
- bpo-25507: Add back import needed for 2.x encoding warning box. Add |
| 1719 |
pointer to 'Encoding declaration' in Language Reference. |
| 1720 |
|
| 1721 |
- bpo-15308: Add 'interrupt execution' (^C) to Shell menu. Patch by Roger |
| 1722 |
Serwy, updated by Bayard Randel. |
| 1723 |
|
| 1724 |
- bpo-27922: Stop IDLE tests from 'flashing' gui widgets on the screen. |
| 1725 |
|
| 1726 |
- bpo-17642: add larger font sizes for classroom projection. |
| 1727 |
|
| 1728 |
- Add version to title of IDLE help window. |
| 1729 |
|
| 1730 |
- bpo-25564: In section on IDLE -- console differences, mention that using |
| 1731 |
exec means that __builtins__ is defined for each statement. |
| 1732 |
|
| 1733 |
- bpo-27714: text_textview and test_autocomplete now pass when re-run in the |
| 1734 |
same process. This occurs when test_idle fails when run with the -w |
| 1735 |
option but without -jn. Fix warning from test_config. |
| 1736 |
|
| 1737 |
- bpo-27452: add line counter and crc to IDLE configHandler test dump. |
| 1738 |
|
| 1739 |
- bpo-27365: Allow non-ascii chars in IDLE NEWS.txt, for contributor names. |
| 1740 |
|
| 1741 |
- bpo-27245: IDLE: Cleanly delete custom themes and key bindings. |
| 1742 |
Previously, when IDLE was started from a console or by import, a cascade |
| 1743 |
of warnings was emitted. Patch by Serhiy Storchaka. |
| 1744 |
|
| 1745 |
Documentation |
| 1746 |
------------- |
| 1747 |
|
| 1748 |
- bpo-28513: Documented command-line interface of zipfile. |
| 1749 |
|
| 1750 |
- bpo-16484: Change the default PYTHONDOCS URL to "https:", and fix the |
| 1751 |
resulting links to use lowercase. Patch by Sean Rodman, test by Kaushik |
| 1752 |
Nadikuditi. |
| 1753 |
|
| 1754 |
Tests |
| 1755 |
----- |
| 1756 |
|
| 1757 |
- bpo-28666: Now test.test_support.rmtree is able to remove unwritable or |
| 1758 |
unreadable directories. |
| 1759 |
|
| 1760 |
- bpo-23839: Various caches now are cleared before running every test file. |
| 1761 |
|
| 1762 |
- bpo-27369: In test_pyexpat, avoid testing an error message detail that |
| 1763 |
changed in Expat 2.2.0. |
| 1764 |
|
| 1765 |
Build |
| 1766 |
----- |
| 1767 |
|
| 1768 |
- bpo-10656: Fix out-of-tree building on AIX. Patch by Tristan Carel and |
| 1769 |
Michael Haubenwallner. |
| 1770 |
|
| 1771 |
- bpo-26359: Rename --with-optimiations to --enable-optimizations. |
| 1772 |
|
| 1773 |
- bpo-28248: Update Windows build and OS X installers to use OpenSSL 1.0.2j. |
| 1774 |
|
| 1775 |
- bpo-28258: Fixed build with Estonian locale (distclean target in |
| 1776 |
Makefile). Patch by Arfrever Frehtes Taifersar Arahesis. |
| 1777 |
|
| 1778 |
- bpo-26661: setup.py now detects system libffi with multiarch wrapper. |
| 1779 |
|
| 1780 |
- bpo-15819: The Include directory in the build tree is already searched; |
| 1781 |
drop unused code trying to add it again. |
| 1782 |
|
| 1783 |
- bpo-27566: Fix clean target in freeze makefile (patch by Lisa Roach) |
| 1784 |
|
| 1785 |
- bpo-27983: Cause lack of llvm-profdata tool when using clang as required |
| 1786 |
for PGO linking to be a configure time error rather than make time when |
| 1787 |
``--with-optimizations`` is enabled. Also improve our ability to find the |
| 1788 |
llvm-profdata tool on MacOS and some Linuxes. |
| 1789 |
|
| 1790 |
- bpo-26359: Add the --with-optimizations configure flag. |
| 1791 |
|
| 1792 |
- bpo-10910: Avoid C++ compilation errors on FreeBSD and OS X. Also update |
| 1793 |
FreedBSD version checks for the original ctype UTF-8 workaround. |
| 1794 |
|
| 1795 |
- bpo-27806: Fix 32-bit builds on macOS Sierra 10.12 broken by removal of |
| 1796 |
deprecated QuickTime/QuickTime.h header file. Patch by Aleks Bunin. |
| 1797 |
|
| 1798 |
- bpo-28676: Prevent missing 'getentropy' declaration warning on macOS. |
| 1799 |
Initial patch by Gareth Rees. |
| 1800 |
|
| 1801 |
Tools/Demos |
| 1802 |
----------- |
| 1803 |
|
| 1804 |
- bpo-27952: Get Tools/scripts/fixcid.py working with the current "re" |
| 1805 |
module, avoid invalid Python backslash escapes, and fix a bug parsing |
| 1806 |
escaped C quote signs. |
| 1807 |
|
| 1808 |
Windows |
| 1809 |
------- |
| 1810 |
|
| 1811 |
- bpo-27932: Prevent memory leak in win32_ver(). |
| 1812 |
|
| 1813 |
- bpo-27888: Prevent Windows installer from displaying console windows and |
| 1814 |
failing when pip cannot be installed/uninstalled. |
| 1815 |
|
| 1816 |
macOS |
| 1817 |
----- |
| 1818 |
|
| 1819 |
- bpo-28440: No longer add /Library/Python/site-packages, the Apple-supplied |
| 1820 |
system Python site-packages directory, to sys.path for macOS framework |
| 1821 |
builds. The coupling between the two Python instances often caused |
| 1822 |
confusion and, as of macOS 10.12, changes to the site-packages layout can |
| 1823 |
cause pip component installations to fail. This change reverts the |
| 1824 |
effects introduced in 2.7.0 by Issue #4865. If you are using a package |
| 1825 |
with both the Apple system Python 2.7 and a user-installed Python 2.7, you |
| 1826 |
will need to ensure that copies of the package are installed with both |
| 1827 |
Python instances. |
| 1828 |
|
| 1829 |
|
| 1830 |
What's New in Python 2.7.12 final? |
| 1831 |
================================== |
| 1832 |
|
| 1833 |
*Release date: 2016-06-25* |
| 1834 |
|
| 1835 |
Build |
| 1836 |
----- |
| 1837 |
|
| 1838 |
- bpo-27641: The configure script now inserts comments into the makefile to |
| 1839 |
prevent the pgen executable from being cross-compiled. |
| 1840 |
|
| 1841 |
- bpo-26930: Update Windows builds to use OpenSSL 1.0.2h. |
| 1842 |
|
| 1843 |
IDLE |
| 1844 |
---- |
| 1845 |
|
| 1846 |
- bpo-27365: Fix about dialog. |
| 1847 |
|
| 1848 |
|
| 1849 |
What's New in Python 2.7.12 release candidate 1? |
| 1850 |
================================================ |
| 1851 |
|
| 1852 |
*Release date: 2016-06-12* |
| 1853 |
|
| 1854 |
Core and Builtins |
| 1855 |
----------------- |
| 1856 |
|
| 1857 |
- bpo-20041: Fixed TypeError when frame.f_trace is set to None. Patch by |
| 1858 |
Xavier de Gaye. |
| 1859 |
|
| 1860 |
- bpo-25702: A --with-lto configure option has been added that will enable |
| 1861 |
link time optimizations at build time during a make profile-opt. Some |
| 1862 |
compilers and toolchains are known to not produce stable code when using |
| 1863 |
LTO, be sure to test things thoroughly before relying on it. It can |
| 1864 |
provide a few % speed up over profile-opt alone. |
| 1865 |
|
| 1866 |
- bpo-26168: Fixed possible refleaks in failing Py_BuildValue() with the "N" |
| 1867 |
format unit. |
| 1868 |
|
| 1869 |
- bpo-27039: Fixed bytearray.remove() for values greater than 127. Patch by |
| 1870 |
Joe Jevnik. |
| 1871 |
|
| 1872 |
- bpo-4806: Avoid masking the original TypeError exception when using star |
| 1873 |
(*) unpacking and the exception was raised from a generator. Based on |
| 1874 |
patch by Hagen Fürstenau. |
| 1875 |
|
| 1876 |
- bpo-26659: Make the builtin slice type support cycle collection. |
| 1877 |
|
| 1878 |
- bpo-26718: super.__init__ no longer leaks memory if called multiple times. |
| 1879 |
NOTE: A direct call of super.__init__ is not endorsed! |
| 1880 |
|
| 1881 |
- bpo-13410: Fixed a bug in PyUnicode_Format where it failed to properly |
| 1882 |
ignore errors from a __int__() method. |
| 1883 |
|
| 1884 |
- bpo-26494: Fixed crash on iterating exhausting iterators. Affected classes |
| 1885 |
are generic sequence iterators, iterators of bytearray, list, tuple, set, |
| 1886 |
frozenset, dict, OrderedDict and corresponding views. |
| 1887 |
|
| 1888 |
- bpo-26581: If coding cookie is specified multiple times on a line in |
| 1889 |
Python source code file, only the first one is taken to account. |
| 1890 |
|
| 1891 |
- bpo-22836: Ensure exception reports from PyErr_Display() and |
| 1892 |
PyErr_WriteUnraisable() are sensible even when formatting them produces |
| 1893 |
secondary errors. This affects the reports produced by |
| 1894 |
sys.__excepthook__() and when __del__() raises an exception. |
| 1895 |
|
| 1896 |
- bpo-22847: Improve method cache efficiency. |
| 1897 |
|
| 1898 |
- bpo-25843: When compiling code, don't merge constants if they are equal |
| 1899 |
but have a different types. For example, ``f1, f2 = lambda: 1, lambda: |
| 1900 |
1.0`` is now correctly compiled to two different functions: ``f1()`` |
| 1901 |
returns ``1`` (``int``) and ``f2()`` returns ``1.0`` (``int``), even if |
| 1902 |
``1`` and ``1.0`` are equal. |
| 1903 |
|
| 1904 |
- bpo-22995: [UPDATE] Remove the one of the pickleability tests in |
| 1905 |
_PyObject_GetState() due to regressions observed in Cython-based projects. |
| 1906 |
|
| 1907 |
- bpo-25961: Disallowed null characters in the type name. |
| 1908 |
|
| 1909 |
- bpo-22995: Instances of extension types with a state that aren't |
| 1910 |
subclasses of list or dict and haven't implemented any pickle-related |
| 1911 |
methods (__reduce__, __reduce_ex__, __getnewargs__, __getnewargs_ex__, or |
| 1912 |
__getstate__), can no longer be pickled. Including memoryview. |
| 1913 |
|
| 1914 |
- bpo-20440: Massive replacing unsafe attribute setting code with special |
| 1915 |
macro Py_SETREF. |
| 1916 |
|
| 1917 |
- bpo-25421: __sizeof__ methods of builtin types now use dynamic basic size. |
| 1918 |
This allows sys.getsize() to work correctly with their subclasses with |
| 1919 |
__slots__ defined. |
| 1920 |
|
| 1921 |
- bpo-19543: Added Py3k warning for decoding unicode. |
| 1922 |
|
| 1923 |
- bpo-24097: Fixed crash in object.__reduce__() if slot name is freed inside |
| 1924 |
__getattr__. |
| 1925 |
|
| 1926 |
- bpo-24731: Fixed crash on converting objects with special methods __str__, |
| 1927 |
__trunc__, and __float__ returning instances of subclasses of str, long, |
| 1928 |
and float to subclasses of str, long, and float correspondingly. |
| 1929 |
|
| 1930 |
- bpo-26478: Fix semantic bugs when using binary operators with dictionary |
| 1931 |
views and tuples. |
| 1932 |
|
| 1933 |
- bpo-26171: Fix possible integer overflow and heap corruption in |
| 1934 |
zipimporter.get_data(). |
| 1935 |
|
| 1936 |
Library |
| 1937 |
------- |
| 1938 |
|
| 1939 |
- bpo-26556: Update expat to 2.1.1, fixes CVE-2015-1283. |
| 1940 |
|
| 1941 |
- Fix TLS stripping vulnerability in smptlib, CVE-2016-0772. Reported by |
| 1942 |
Team Oststrom |
| 1943 |
|
| 1944 |
- bpo-7356: ctypes.util: Make parsing of ldconfig output independent of the |
| 1945 |
locale. |
| 1946 |
|
| 1947 |
- bpo-25738: Stop BaseHTTPServer.BaseHTTPRequestHandler.send_error() from |
| 1948 |
sending a message body for 205 Reset Content. Also, don't send the |
| 1949 |
Content-Type header field in responses that don't have a body. Based on |
| 1950 |
patch by Susumu Koshiba. |
| 1951 |
|
| 1952 |
- bpo-21313: Fix the "platform" module to tolerate when sys.version contains |
| 1953 |
truncated build information. |
| 1954 |
|
| 1955 |
- bpo-27211: Fix possible memory corruption in io.IOBase.readline(). |
| 1956 |
|
| 1957 |
- bpo-27114: Fix SSLContext._load_windows_store_certs fails with |
| 1958 |
PermissionError |
| 1959 |
|
| 1960 |
- bpo-14132: Fix urllib.request redirect handling when the target only has a |
| 1961 |
query string. Fix by Ján Janech. |
| 1962 |
|
| 1963 |
- Removed the requirements for the ctypes and modulefinder modules to be |
| 1964 |
compatible with earlier Python versions. |
| 1965 |
|
| 1966 |
- bpo-22274: In the subprocess module, allow stderr to be redirected to |
| 1967 |
stdout even when stdout is not redirected. Patch by Akira Li. |
| 1968 |
|
| 1969 |
- bpo-12045: Avoid duplicate execution of command in |
| 1970 |
ctypes.util._get_soname(). Patch by Sijin Joseph. |
| 1971 |
|
| 1972 |
- bpo-26960: Backported #16270 from Python 3 to Python 2, to prevent urllib |
| 1973 |
from hanging when retrieving certain FTP files. |
| 1974 |
|
| 1975 |
- bpo-25745: Fixed leaking a userptr in curses panel destructor. |
| 1976 |
|
| 1977 |
- bpo-17765: weakref.ref() no longer silently ignores keyword arguments. |
| 1978 |
Patch by Georg Brandl. |
| 1979 |
|
| 1980 |
- bpo-26873: xmlrpclib now raises ResponseError on unsupported type tags |
| 1981 |
instead of silently return incorrect result. |
| 1982 |
|
| 1983 |
- bpo-24114: Fix an uninitialized variable in `ctypes.util`. |
| 1984 |
|
| 1985 |
The bug only occurs on SunOS when the ctypes implementation searches for |
| 1986 |
the `crle` program. Patch by Xiang Zhang. Tested on SunOS by Kees Bos. |
| 1987 |
|
| 1988 |
- bpo-26864: In urllib, change the proxy bypass host checking against |
| 1989 |
no_proxy to be case-insensitive, and to not match unrelated host names |
| 1990 |
that happen to have a bypassed hostname as a suffix. Patch by Xiang |
| 1991 |
Zhang. |
| 1992 |
|
| 1993 |
- bpo-26804: urllib will prefer lower_case proxy environment variables over |
| 1994 |
UPPER_CASE or Mixed_Case ones. Patch contributed by Hans-Peter Jansen. |
| 1995 |
|
| 1996 |
- bpo-26837: assertSequenceEqual() now correctly outputs non-stringified |
| 1997 |
differing items. This affects assertListEqual() and assertTupleEqual(). |
| 1998 |
|
| 1999 |
- bpo-26822: itemgetter, attrgetter and methodcaller objects no longer |
| 2000 |
silently ignore keyword arguments. |
| 2001 |
|
| 2002 |
- bpo-26657: Fix directory traversal vulnerability with SimpleHTTPServer on |
| 2003 |
Windows. This fixes a regression that was introduced in 2.7.7. Based on |
| 2004 |
patch by Philipp Hagemeister. |
| 2005 |
|
| 2006 |
- bpo-19377: Add .svg to mimetypes.types_map. |
| 2007 |
|
| 2008 |
- bpo-13952: Add .csv to mimetypes.types_map. Patch by Geoff Wilson. |
| 2009 |
|
| 2010 |
- bpo-16329: Add .webm to mimetypes.types_map. Patch by Giampaolo Rodola'. |
| 2011 |
|
| 2012 |
- bpo-23735: Handle terminal resizing with Readline 6.3+ by installing our |
| 2013 |
own SIGWINCH handler. Patch by Eric Price. |
| 2014 |
|
| 2015 |
- bpo-26644: Raise ValueError rather than SystemError when a negative length |
| 2016 |
is passed to SSLSocket.recv() or read(). |
| 2017 |
|
| 2018 |
- bpo-23804: Fix SSL recv(0) and read(0) methods to return zero bytes |
| 2019 |
instead of up to 1024. |
| 2020 |
|
| 2021 |
- bpo-24266: Ctrl+C during Readline history search now cancels the search |
| 2022 |
mode when compiled with Readline 7. |
| 2023 |
|
| 2024 |
- bpo-23857: Implement PEP 493, adding a Python-2-only ssl module API and |
| 2025 |
environment variable to configure the default handling of SSL/TLS |
| 2026 |
certificates for HTTPS connections. |
| 2027 |
|
| 2028 |
- bpo-26313: ssl.py _load_windows_store_certs fails if windows cert store is |
| 2029 |
empty. Patch by Baji. |
| 2030 |
|
| 2031 |
- bpo-26513: Fixes platform module detection of Windows Server |
| 2032 |
|
| 2033 |
- bpo-23718: Fixed parsing time in week 0 before Jan 1. Original patch by |
| 2034 |
Tamás Bence Gedai. |
| 2035 |
|
| 2036 |
- bpo-26177: Fixed the keys() method for Canvas and Scrollbar widgets. |
| 2037 |
|
| 2038 |
- bpo-15068: Got rid of excessive buffering in the fileinput module. The |
| 2039 |
bufsize parameter is no longer used. |
| 2040 |
|
| 2041 |
- bpo-2202: Fix UnboundLocalError in |
| 2042 |
AbstractDigestAuthHandler.get_algorithm_impls. Initial patch by Mathieu |
| 2043 |
Dupuy. |
| 2044 |
|
| 2045 |
- bpo-26475: Fixed debugging output for regular expressions with the (?x) |
| 2046 |
flag. |
| 2047 |
|
| 2048 |
- bpo-26385: Remove the file if the internal fdopen() call in |
| 2049 |
NamedTemporaryFile() fails. Based on patch by Silent Ghost. |
| 2050 |
|
| 2051 |
- bpo-26309: In the "SocketServer" module, shut down the request (closing |
| 2052 |
the connected socket) when verify_request() returns false. Based on patch |
| 2053 |
by Aviv Palivoda. |
| 2054 |
|
| 2055 |
- bpo-25939: On Windows open the cert store readonly in |
| 2056 |
ssl.enum_certificates. |
| 2057 |
|
| 2058 |
- bpo-24303: Fix random EEXIST upon multiprocessing semaphores creation with |
| 2059 |
Linux PID namespaces enabled. |
| 2060 |
|
| 2061 |
- bpo-25698: Importing module if the stack is too deep no longer replaces |
| 2062 |
imported module with the empty one. |
| 2063 |
|
| 2064 |
- bpo-12923: Reset FancyURLopener's redirect counter even if there is an |
| 2065 |
exception. Based on patches by Brian Brazil and Daniel Rocco. |
| 2066 |
|
| 2067 |
- bpo-25945: Fixed a crash when unpickle the functools.partial object with |
| 2068 |
wrong state. Fixed a leak in failed functools.partial constructor. "args" |
| 2069 |
and "keywords" attributes of functools.partial have now always types tuple |
| 2070 |
and dict correspondingly. |
| 2071 |
|
| 2072 |
- bpo-19883: Fixed possible integer overflows in zipimport. |
| 2073 |
|
| 2074 |
- bpo-26147: xmlrpclib now works with unicode not encodable with used |
| 2075 |
non-UTF-8 encoding. |
| 2076 |
|
| 2077 |
- bpo-16620: Fixed AttributeError in msilib.Directory.glob(). |
| 2078 |
|
| 2079 |
- bpo-21847: Fixed xmlrpclib on Unicode-disabled builds. |
| 2080 |
|
| 2081 |
- bpo-6500: Fixed infinite recursion in urllib2.Request.__getattr__(). |
| 2082 |
|
| 2083 |
- bpo-26083: Workaround a subprocess bug that raises an incorrect |
| 2084 |
"ValueError: insecure string pickle" exception instead of the actual |
| 2085 |
exception on some platforms such as Mac OS X when an exception raised in |
| 2086 |
the forked child process prior to the exec() was large enough that it |
| 2087 |
overflowed the internal errpipe_read pipe buffer. |
| 2088 |
|
| 2089 |
- bpo-24103: Fixed possible use after free in ElementTree.iterparse(). |
| 2090 |
|
| 2091 |
- bpo-20954: _args_from_interpreter_flags used by multiprocessing and some |
| 2092 |
tests no longer behaves incorrectly in the presence of the PYTHONHASHSEED |
| 2093 |
environment variable. |
| 2094 |
|
| 2095 |
- bpo-14285: When executing a package with the "python -m package" option, |
| 2096 |
and package initialization raises ImportError, a proper traceback is now |
| 2097 |
reported. |
| 2098 |
|
| 2099 |
- bpo-6478: _strptime's regexp cache now is reset after changing timezone |
| 2100 |
with time.tzset(). |
| 2101 |
|
| 2102 |
- bpo-25718: Fixed copying object with state with boolean value is false. |
| 2103 |
|
| 2104 |
- bpo-25742: :func:`locale.setlocale` now accepts a Unicode string for its |
| 2105 |
second parameter. |
| 2106 |
|
| 2107 |
- bpo-10131: Fixed deep copying of minidom documents. Based on patch by |
| 2108 |
Marian Ganisin. |
| 2109 |
|
| 2110 |
- bpo-25725: Fixed a reference leak in cPickle.loads() when unpickling |
| 2111 |
invalid data including tuple instructions. |
| 2112 |
|
| 2113 |
- bpo-25663: In the Readline completer, avoid listing duplicate global |
| 2114 |
names, and search the global namespace before searching builtins. |
| 2115 |
|
| 2116 |
- bpo-25688: Fixed file leak in ElementTree.iterparse() raising an error. |
| 2117 |
|
| 2118 |
- bpo-23914: Fixed SystemError raised by CPickle unpickler on broken data. |
| 2119 |
|
| 2120 |
- bpo-25924: Avoid unnecessary serialization of getaddrinfo(3) calls on OS X |
| 2121 |
versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis. |
| 2122 |
|
| 2123 |
- bpo-26406: Avoid unnecessary serialization of getaddrinfo(3) calls on |
| 2124 |
current versions of OpenBSD and NetBSD. Patch by A. Jesse Jiryu Davis. |
| 2125 |
|
| 2126 |
IDLE |
| 2127 |
---- |
| 2128 |
|
| 2129 |
- bpo-5124: Paste with text selected now replaces the selection on X11. This |
| 2130 |
matches how paste works on Windows, Mac, most modern Linux apps, and ttk |
| 2131 |
widgets. Original patch by Serhiy Storchaka. |
| 2132 |
|
| 2133 |
- bpo-24759: Make clear in idlelib.idle_test.__init__ that the directory is |
| 2134 |
a private implementation of test.test_idle and tool for maintainers. |
| 2135 |
|
| 2136 |
- bpo-26673: When tk reports font size as 0, change to size 10. Such fonts |
| 2137 |
on Linux prevented the configuration dialog from opening. |
| 2138 |
|
| 2139 |
- bpo-27044: Add ConfigDialog.remove_var_callbacks to stop memory leaks. |
| 2140 |
|
| 2141 |
- In the 'IDLE-console differences' section of the IDLE doc, clarify how |
| 2142 |
running with IDLE affects sys.modules and the standard streams. |
| 2143 |
|
| 2144 |
- bpo-25507: fix incorrect change in IOBinding that prevented printing. |
| 2145 |
Change also prevented saving shell window with non-ascii characters. |
| 2146 |
Augment IOBinding htest to include all major IOBinding functions. |
| 2147 |
|
| 2148 |
- bpo-25905: Revert unwanted conversion of ' to ’ RIGHT SINGLE QUOTATION |
| 2149 |
MARK in README.txt and open this and NEWS.txt with 'ascii'. Re-encode |
| 2150 |
CREDITS.txt to utf-8 and open it with 'utf-8'. |
| 2151 |
|
| 2152 |
- bpo-26417: Prevent spurious errors and incorrect defaults when installing |
| 2153 |
IDLE 2.7 on OS X: default configuration settings are no longer installed |
| 2154 |
from OS X specific copies. |
| 2155 |
|
| 2156 |
Documentation |
| 2157 |
------------- |
| 2158 |
|
| 2159 |
- bpo-26736: Used HTTPS for external links in the documentation if possible. |
| 2160 |
|
| 2161 |
- bpo-6953: Rework the Readline module documentation to group related |
| 2162 |
functions together, and add more details such as what underlying Readline |
| 2163 |
functions and variables are accessed. |
| 2164 |
|
| 2165 |
- bpo-26014: Guide users to the newer packaging documentation as was done |
| 2166 |
for Python 3.x. In particular, the top-level 2.7 documentation page now |
| 2167 |
links to the newer installer and distributions pages rather than the |
| 2168 |
legacy install and Distutils pages; these are still linked to in the |
| 2169 |
library/distutils doc page. |
| 2170 |
|
| 2171 |
Tests |
| 2172 |
----- |
| 2173 |
|
| 2174 |
- bpo-21916: Added tests for the turtle module. Patch by ingrid, Gregory |
| 2175 |
Loyse and Jelle Zijlstra. |
| 2176 |
|
| 2177 |
- bpo-25940: Changed test_ssl to use self-signed.pythontest.net. This |
| 2178 |
avoids relying on svn.python.org, which recently changed root certificate. |
| 2179 |
|
| 2180 |
- bpo-25616: Tests for OrderedDict are extracted from test_collections into |
| 2181 |
separate file test_ordered_dict. |
| 2182 |
|
| 2183 |
Build |
| 2184 |
----- |
| 2185 |
|
| 2186 |
- bpo-22359: Avoid incorrect recursive $(MAKE), and disable the rules for |
| 2187 |
running pgen when cross-compiling. The pgen output is normally saved with |
| 2188 |
the source code anyway, and is still regenerated when doing a native |
| 2189 |
build. Patch by Jonas Wagner and Xavier de Gaye. |
| 2190 |
|
| 2191 |
- bpo-19450: Update Windows builds to use SQLite 3.8.11.0. |
| 2192 |
|
| 2193 |
- bpo-27229: Fix the cross-compiling pgen rule for in-tree builds. Patch by |
| 2194 |
Xavier de Gaye. |
| 2195 |
|
| 2196 |
- bpo-17603: Avoid error about nonexistant fileblocks.o file by using a |
| 2197 |
lower-level check for st_blocks in struct stat. |
| 2198 |
|
| 2199 |
- bpo-26465: Update Windows builds to use OpenSSL 1.0.2g. |
| 2200 |
|
| 2201 |
- bpo-24421: Compile Modules/_math.c once, before building extensions. |
| 2202 |
Previously it could fail to compile properly if the math and cmath builds |
| 2203 |
were concurrent. |
| 2204 |
|
| 2205 |
- bpo-25824: Fixes sys.winver to not include any architecture suffix. |
| 2206 |
|
| 2207 |
- bpo-25348: Added ``--pgo`` and ``--pgo-job`` arguments to |
| 2208 |
``PCbuild\build.bat`` for building with Profile-Guided Optimization. The |
| 2209 |
old ``PCbuild\build_pgo.bat`` script is now deprecated, and simply calls |
| 2210 |
``PCbuild\build.bat --pgo %*``. |
| 2211 |
|
| 2212 |
- bpo-25827: Add support for building with ICC to ``configure``, including a |
| 2213 |
new ``--with-icc`` flag. |
| 2214 |
|
| 2215 |
- bpo-25696: Fix installation of Python on UNIX with make -j9. |
| 2216 |
|
| 2217 |
- bpo-26930: Update OS X 10.5+ 32-bit-only installer to build and link with |
| 2218 |
OpenSSL 1.0.2h. |
| 2219 |
|
| 2220 |
- bpo-26268: Update Windows builds to use OpenSSL 1.0.2f. |
| 2221 |
|
| 2222 |
- bpo-25136: Support Apple Xcode 7's new textual SDK stub libraries. |
| 2223 |
|
| 2224 |
Tools/Demos |
| 2225 |
----------- |
| 2226 |
|
| 2227 |
- bpo-26799: Fix python-gdb.py: don't get C types once when the Python code |
| 2228 |
is loaded, but get C types on demand. The C types can change if |
| 2229 |
python-gdb.py is loaded before the Python executable. Patch written by |
| 2230 |
Thomas Ilsche. |
| 2231 |
|
| 2232 |
C API |
| 2233 |
----- |
| 2234 |
|
| 2235 |
- bpo-30255: PySlice_GetIndicesEx now clips the step to [-PY_SSIZE_T_MAX, |
| 2236 |
PY_SSIZE_T_MAX] instead of [-PY_SSIZE_T_MAX-1, PY_SSIZE_T_MAX]. This |
| 2237 |
makes it safe to do "step = -step" when reversing a slice. |
| 2238 |
|
| 2239 |
- bpo-26476: Fixed compilation error when use PyErr_BadInternalCall() in |
| 2240 |
C++. Patch by Jeroen Demeyer. |
| 2241 |
|
| 2242 |
Windows |
| 2243 |
------- |
| 2244 |
|
| 2245 |
- bpo-17500: Remove unused and outdated icons. (See also: |
| 2246 |
https://github.com/python/pythondotorg/issues/945) |
| 2247 |
|
| 2248 |
|
| 2249 |
What's New in Python 2.7.11 final? |
| 2250 |
================================== |
| 2251 |
|
| 2252 |
*Release date: 2015-12-05* |
| 2253 |
|
| 2254 |
Library |
| 2255 |
------- |
| 2256 |
|
| 2257 |
- bpo-25624: ZipFile now always writes a ZIP_STORED header for directory |
| 2258 |
entries. Patch by Dingyuan Wang. |
| 2259 |
|
| 2260 |
|
| 2261 |
What's New in Python 2.7.11 release candidate 1? |
| 2262 |
================================================ |
| 2263 |
|
| 2264 |
*Release date: 2015-11-21* |
| 2265 |
|
| 2266 |
Core and Builtins |
| 2267 |
----------------- |
| 2268 |
|
| 2269 |
- bpo-25678: Avoid buffer overreads when int(), long(), float(), and |
| 2270 |
compile() are passed buffer objects. These objects are not necessarily |
| 2271 |
terminated by a null byte, but the functions assumed they were. |
| 2272 |
|
| 2273 |
- bpo-25388: Fixed tokenizer hang when processing undecodable source code |
| 2274 |
with a null byte. |
| 2275 |
|
| 2276 |
- bpo-22995: Default implementation of __reduce__ and __reduce_ex__ now |
| 2277 |
rejects builtin types with not defined __new__. |
| 2278 |
|
| 2279 |
- bpo-7267: format(int, 'c') now raises OverflowError when the argument is |
| 2280 |
not in range(0, 256). |
| 2281 |
|
| 2282 |
- bpo-24806: Prevent builtin types that are not allowed to be subclassed |
| 2283 |
from being subclassed through multiple inheritance. |
| 2284 |
|
| 2285 |
- bpo-24848: Fixed a number of bugs in UTF-7 decoding of misformed data. |
| 2286 |
|
| 2287 |
- bpo-25003: os.urandom() doesn't use getentropy() on Solaris because |
| 2288 |
getentropy() is blocking, whereas os.urandom() should not block. |
| 2289 |
getentropy() is supported since Solaris 11.3. |
| 2290 |
|
| 2291 |
- bpo-21167: NAN operations are now handled correctly when python is |
| 2292 |
compiled with ICC even if -fp-model strict is not specified. |
| 2293 |
|
| 2294 |
- bpo-24467: Fixed possible buffer over-read in bytearray. The bytearray |
| 2295 |
object now always allocates place for trailing null byte and it's buffer |
| 2296 |
now is always null-terminated. |
| 2297 |
|
| 2298 |
- bpo-19543: encode() and decode() methods and constructors of str, unicode |
| 2299 |
and bytearray classes now emit deprecation warning for known non-text |
| 2300 |
encodings when Python is ran with the -3 option. |
| 2301 |
|
| 2302 |
- bpo-24115: Update uses of PyObject_IsTrue(), PyObject_Not(), |
| 2303 |
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains() |
| 2304 |
to check for and handle errors correctly. |
| 2305 |
|
| 2306 |
- bpo-4753: On compilers where it is supported, use "computed gotos" for |
| 2307 |
bytecode dispatch in the interpreter. This improves interpretation |
| 2308 |
performance. |
| 2309 |
|
| 2310 |
- bpo-22939: Fixed integer overflow in iterator object. Original patch by |
| 2311 |
Clement Rouault. |
| 2312 |
|
| 2313 |
- bpo-24102: Fixed exception type checking in standard error handlers. |
| 2314 |
|
| 2315 |
Library |
| 2316 |
------- |
| 2317 |
|
| 2318 |
- bpo-10128: backport issue #10845's mitigation of incompatibilities between |
| 2319 |
the multiprocessing module and directory and zipfile execution. |
| 2320 |
Multiprocessing on Windows will now automatically skip rerunning __main__ |
| 2321 |
in spawned processes, rather than failing with AssertionError. |
| 2322 |
|
| 2323 |
- bpo-25578: Fix (another) memory leak in SSLSocket.getpeercer(). |
| 2324 |
|
| 2325 |
- bpo-25590: In the Readline completer, only call getattr() once per |
| 2326 |
attribute. |
| 2327 |
|
| 2328 |
- bpo-25530: Disable the vulnerable SSLv3 protocol by default when creating |
| 2329 |
ssl.SSLContext. |
| 2330 |
|
| 2331 |
- bpo-25569: Fix memory leak in SSLSocket.getpeercert(). |
| 2332 |
|
| 2333 |
- bpo-7759: Fixed the mhlib module on filesystems that doesn't support link |
| 2334 |
counting for directories. |
| 2335 |
|
| 2336 |
- bpo-892902: Fixed pickling recursive objects. |
| 2337 |
|
| 2338 |
- bpo-18010: Fix the pydoc GUI's search function to handle exceptions from |
| 2339 |
importing packages. |
| 2340 |
|
| 2341 |
- bpo-25515: Always use os.urandom as a source of randomness in uuid.uuid4. |
| 2342 |
|
| 2343 |
- bpo-21827: Fixed textwrap.dedent() for the case when largest common |
| 2344 |
whitespace is a substring of smallest leading whitespace. Based on patch |
| 2345 |
by Robert Li. |
| 2346 |
|
| 2347 |
- bpo-21709: Fix the logging module to not depend upon __file__ being set |
| 2348 |
properly to get the filename of its caller from the stack. This allows it |
| 2349 |
to work if run in a frozen or embedded environment where the module's |
| 2350 |
.__file__ attribute does not match its code object's .co_filename. |
| 2351 |
|
| 2352 |
- bpo-25319: When threading.Event is reinitialized, the underlying condition |
| 2353 |
should use a regular lock rather than a recursive lock. |
| 2354 |
|
| 2355 |
- bpo-25232: Fix CGIRequestHandler to split the query from the URL at the |
| 2356 |
first question mark (?) rather than the last. Patch from Xiang Zhang. |
| 2357 |
|
| 2358 |
- bpo-24657: Prevent CGIRequestHandler from collapsing slashes in the query |
| 2359 |
part of the URL as if it were a path. Patch from Xiang Zhang. |
| 2360 |
|
| 2361 |
- bpo-22958: Constructor and update method of weakref.WeakValueDictionary |
| 2362 |
now accept the self keyword argument. |
| 2363 |
|
| 2364 |
- bpo-22609: Constructor and the update method of collections.UserDict now |
| 2365 |
accept the self keyword argument. |
| 2366 |
|
| 2367 |
- bpo-25203: Failed readline.set_completer_delims() no longer left the |
| 2368 |
module in inconsistent state. |
| 2369 |
|
| 2370 |
- bpo-19143: platform module now reads Windows version from kernel32.dll to |
| 2371 |
avoid compatibility shims. |
| 2372 |
|
| 2373 |
- bpo-25135: Make deque_clear() safer by emptying the deque before clearing. |
| 2374 |
This helps avoid possible reentrancy issues. |
| 2375 |
|
| 2376 |
- bpo-24684: socket.socket.getaddrinfo() now calls |
| 2377 |
PyUnicode_AsEncodedString() instead of calling the encode() method of the |
| 2378 |
host, to handle correctly custom unicode string with an encode() method |
| 2379 |
which doesn't return a byte string. The encoder of the IDNA codec is now |
| 2380 |
called directly instead of calling the encode() method of the string. |
| 2381 |
|
| 2382 |
- bpo-24982: shutil.make_archive() with the "zip" format now adds entries |
| 2383 |
for directories (including empty directories) in ZIP file. |
| 2384 |
|
| 2385 |
- bpo-17849: Raise a sensible exception if an invalid response is received |
| 2386 |
for a HTTP tunnel request, as seen with some servers that do not support |
| 2387 |
tunnelling. Initial patch from Cory Benfield. |
| 2388 |
|
| 2389 |
- bpo-16180: Exit pdb if file has syntax error, instead of trapping user in |
| 2390 |
an infinite loop. Patch by Xavier de Gaye. |
| 2391 |
|
| 2392 |
- bpo-22812: Fix unittest discovery examples. Patch from Pam McA'Nulty. |
| 2393 |
|
| 2394 |
- bpo-24634: Importing uuid should not try to load libc on Windows |
| 2395 |
|
| 2396 |
- bpo-23652: Make it possible to compile the select module against the libc |
| 2397 |
headers from the Linux Standard Base, which do not include some EPOLL |
| 2398 |
macros. Initial patch by Matt Frank. |
| 2399 |
|
| 2400 |
- bpo-15138: Speed up base64.urlsafe_b64{en,de}code considerably. |
| 2401 |
|
| 2402 |
- bpo-23319: Fix ctypes.BigEndianStructure, swap correctly bytes. Patch |
| 2403 |
written by Matthieu Gautier. |
| 2404 |
|
| 2405 |
- bpo-23254: Document how to close the TCPServer listening socket. Patch |
| 2406 |
from Martin Panter. |
| 2407 |
|
| 2408 |
- bpo-17527: Add PATCH to wsgiref.validator. Patch from Luca Sbardella. |
| 2409 |
|
| 2410 |
- bpo-24613: Calling array.fromstring() with self is no longer allowed to |
| 2411 |
prevent the use-after-free error. Patch by John Leitch. |
| 2412 |
|
| 2413 |
- bpo-24708: Fix possible integer overflow in strop.replace(). |
| 2414 |
|
| 2415 |
- bpo-24620: Random.setstate() now validates the value of state last |
| 2416 |
element. |
| 2417 |
|
| 2418 |
- bpo-13938: 2to3 converts StringTypes to a tuple. Patch from Mark Hammond. |
| 2419 |
|
| 2420 |
- bpo-24611: Fixed compiling the posix module on non-Windows platforms |
| 2421 |
without mknod() or makedev() (e.g. on Unixware). |
| 2422 |
|
| 2423 |
- bpo-18684: Fixed reading out of the buffer in the re module. |
| 2424 |
|
| 2425 |
- bpo-24259: tarfile now raises a ReadError if an archive is truncated |
| 2426 |
inside a data segment. |
| 2427 |
|
| 2428 |
- bpo-24514: tarfile now tolerates number fields consisting of only |
| 2429 |
whitespace. |
| 2430 |
|
| 2431 |
- bpo-20387: Restore semantic round-trip correctness in tokenize/untokenize |
| 2432 |
for tab-indented blocks. |
| 2433 |
|
| 2434 |
- bpo-24456: Fixed possible buffer over-read in adpcm2lin() and lin2adpcm() |
| 2435 |
functions of the audioop module. Fixed SystemError when the state is not |
| 2436 |
a tuple. Fixed possible memory leak. |
| 2437 |
|
| 2438 |
- bpo-24481: Fix possible memory corruption with large profiler info strings |
| 2439 |
in hotshot. |
| 2440 |
|
| 2441 |
- bpo-24489: ensure a previously set C errno doesn't disturb cmath.polar(). |
| 2442 |
|
| 2443 |
- bpo-19543: io.TextIOWrapper (and hence io.open()) now uses the internal |
| 2444 |
codec marking system added to emit deprecation warning for known non-text |
| 2445 |
encodings at stream construction time when Python is ran with the -3 |
| 2446 |
option. |
| 2447 |
|
| 2448 |
- bpo-24264: Fixed buffer overflow in the imageop module. |
| 2449 |
|
| 2450 |
- bpo-5633: Fixed timeit when the statement is a string and the setup is |
| 2451 |
not. |
| 2452 |
|
| 2453 |
- bpo-24326: Fixed audioop.ratecv() with non-default weightB argument. |
| 2454 |
Original patch by David Moore. |
| 2455 |
|
| 2456 |
- bpo-22095: Fixed HTTPConnection.set_tunnel with default port. The port |
| 2457 |
value in the host header was set to "None". Patch by Demian Brecht. |
| 2458 |
|
| 2459 |
- bpo-24257: Fixed segmentation fault in sqlite3.Row constructor with faked |
| 2460 |
cursor type. |
| 2461 |
|
| 2462 |
- bpo-24286: Dict view were not registered with the MappingView abstract |
| 2463 |
base classes. This caused key and item views in OrderedDict to not be |
| 2464 |
equal to their regular dict counterparts. |
| 2465 |
|
| 2466 |
- bpo-22107: tempfile.gettempdir() and tempfile.mkdtemp() now try again when |
| 2467 |
a directory with the chosen name already exists on Windows as well as on |
| 2468 |
Unix. tempfile.mkstemp() now fails early if parent directory is not valid |
| 2469 |
(not exists or is a file) on Windows. |
| 2470 |
|
| 2471 |
- bpo-6598: Increased time precision and random number range in |
| 2472 |
email.utils.make_msgid() to strengthen the uniqueness of the message ID. |
| 2473 |
|
| 2474 |
- bpo-24091: Fixed various crashes in corner cases in cElementTree. |
| 2475 |
|
| 2476 |
- bpo-15267: HTTPConnection.request() now is compatible with old-style |
| 2477 |
classes (such as TemporaryFile). Original patch by Atsuo Ishimoto. |
| 2478 |
|
| 2479 |
- bpo-20014: array.array() now accepts unicode typecodes. Based on patch by |
| 2480 |
Vajrasky Kok. |
| 2481 |
|
| 2482 |
- bpo-23637: Showing a warning no longer fails with UnicodeError. Formatting |
| 2483 |
unicode warning in the file with the path containing non-ascii characters |
| 2484 |
no longer fails with UnicodeError. |
| 2485 |
|
| 2486 |
- bpo-24134: Reverted issue #24134 changes. |
| 2487 |
|
| 2488 |
IDLE |
| 2489 |
---- |
| 2490 |
|
| 2491 |
- bpo-15348: Stop the debugger engine (normally in a user process) before |
| 2492 |
closing the debugger window (running in the IDLE process). This prevents |
| 2493 |
the RuntimeErrors that were being caught and ignored. |
| 2494 |
|
| 2495 |
- bpo-24455: Prevent IDLE from hanging when a) closing the shell while the |
| 2496 |
debugger is active (15347); b) closing the debugger with the [X] button |
| 2497 |
(15348); and c) activating the debugger when already active (24455). The |
| 2498 |
patch by Mark Roseman does this by making two changes. 1. Suspend and |
| 2499 |
resume the gui.interaction method with the tcl vwait mechanism intended |
| 2500 |
for this purpose (instead of root.mainloop & .quit). 2. In gui.run, allow |
| 2501 |
any existing interaction to terminate first. |
| 2502 |
|
| 2503 |
- Change 'The program' to 'Your program' in an IDLE 'kill program?' message |
| 2504 |
to make it clearer that the program referred to is the currently running |
| 2505 |
user program, not IDLE itself. |
| 2506 |
|
| 2507 |
- bpo-24750: Improve the appearance of the IDLE editor window status bar. |
| 2508 |
Patch by Mark Roseman. |
| 2509 |
|
| 2510 |
- bpo-25313: Change the handling of new built-in text color themes to better |
| 2511 |
address the compatibility problem introduced by the addition of IDLE Dark. |
| 2512 |
Consistently use the revised idleConf.CurrentTheme everywhere in idlelib. |
| 2513 |
|
| 2514 |
- bpo-24782: Extension configuration is now a tab in the IDLE Preferences |
| 2515 |
dialog rather than a separate dialog. The former tabs are now a sorted |
| 2516 |
list. Patch by Mark Roseman. |
| 2517 |
|
| 2518 |
- bpo-22726: Re-activate the config dialog help button with some content |
| 2519 |
about the other buttons and the new IDLE Dark theme. |
| 2520 |
|
| 2521 |
- bpo-24820: IDLE now has an 'IDLE Dark' built-in text color theme. It is |
| 2522 |
more or less IDLE Classic inverted, with a cobalt blue background. |
| 2523 |
Strings, comments, keywords, ... are still green, red, orange, ... . To |
| 2524 |
use it with IDLEs released before November 2015, hit the 'Save as New |
| 2525 |
Custom Theme' button and enter a new name, such as 'Custom Dark'. The |
| 2526 |
custom theme will work with any IDLE release, and can be modified. |
| 2527 |
|
| 2528 |
- bpo-25224: README.txt is now an idlelib index for IDLE developers and |
| 2529 |
curious users. The previous user content is now in the IDLE doc chapter. |
| 2530 |
'IDLE' now means 'Integrated Development and Learning Environment'. |
| 2531 |
|
| 2532 |
- bpo-24820: Users can now set breakpoint colors in Settings -> Custom |
| 2533 |
Highlighting. Original patch by Mark Roseman. |
| 2534 |
|
| 2535 |
- bpo-24972: Inactive selection background now matches active selection |
| 2536 |
background, as configured by users, on all systems. Found items are now |
| 2537 |
always highlighted on Windows. Initial patch by Mark Roseman. |
| 2538 |
|
| 2539 |
- bpo-24570: Idle: make calltip and completion boxes appear on Macs affected |
| 2540 |
by a tk regression. Initial patch by Mark Roseman. |
| 2541 |
|
| 2542 |
- bpo-24988: Idle ScrolledList context menus (used in debugger) now work on |
| 2543 |
Mac Aqua. Patch by Mark Roseman. |
| 2544 |
|
| 2545 |
- bpo-24801: Make right-click for context menu work on Mac Aqua. Patch by |
| 2546 |
Mark Roseman. |
| 2547 |
|
| 2548 |
- bpo-25173: Associate tkinter messageboxes with a specific widget. For Mac |
| 2549 |
OSX, make them a 'sheet'. Patch by Mark Roseman. |
| 2550 |
|
| 2551 |
- bpo-25198: Enhance the initial html viewer now used for Idle Help. * |
| 2552 |
Properly indent fixed-pitch text (patch by Mark Roseman). * Give code |
| 2553 |
snippet a very Sphinx-like light blueish-gray background. * Re-use initial |
| 2554 |
width and height set by users for shell and editor. * When the Table of |
| 2555 |
Contents (TOC) menu is used, put the section header at the top of the |
| 2556 |
screen. |
| 2557 |
|
| 2558 |
- bpo-25225: Condense and rewrite Idle doc section on text colors. |
| 2559 |
|
| 2560 |
- bpo-21995: Explain some differences between IDLE and console Python. |
| 2561 |
|
| 2562 |
- bpo-22820: Explain need for *print* when running file from Idle editor. |
| 2563 |
|
| 2564 |
- bpo-25224: Doc: augment Idle feature list and no-subprocess section. |
| 2565 |
|
| 2566 |
- bpo-25219: Update doc for Idle command line options. Some were missing and |
| 2567 |
notes were not correct. |
| 2568 |
|
| 2569 |
- bpo-24861: Most of idlelib is private and subject to change. Use |
| 2570 |
idleib.idle.* to start Idle. See idlelib.__init__.__doc__. |
| 2571 |
|
| 2572 |
- bpo-25199: Idle: add synchronization comments for future maintainers. |
| 2573 |
|
| 2574 |
- bpo-16893: Replace help.txt with help.html for Idle doc display. The new |
| 2575 |
idlelib/help.html is rstripped Doc/build/html/library/idle.html. It looks |
| 2576 |
better than help.txt and will better document Idle as released. The |
| 2577 |
tkinter html viewer that works for this file was written by Mark Roseman. |
| 2578 |
The now unused EditorWindow.HelpDialog class and helt.txt file are |
| 2579 |
deprecated. |
| 2580 |
|
| 2581 |
- bpo-24199: Deprecate unused idlelib.idlever with possible removal in 3.6. |
| 2582 |
|
| 2583 |
- bpo-24790: Remove extraneous code (which also create 2 & 3 conflicts). |
| 2584 |
|
| 2585 |
- bpo-23672: Allow Idle to edit and run files with astral chars in name. |
| 2586 |
Patch by Mohd Sanad Zaki Rizvi. |
| 2587 |
|
| 2588 |
- bpo-24745: Idle editor default font. Switch from Courier to |
| 2589 |
platform-sensitive TkFixedFont. This should not affect current customized |
| 2590 |
font selections. If there is a problem, edit |
| 2591 |
$HOME/.idlerc/config-main.cfg and remove 'fontxxx' entries from [Editor |
| 2592 |
Window]. Patch by Mark Roseman. |
| 2593 |
|
| 2594 |
- bpo-21192: Idle editor. When a file is run, put its name in the restart |
| 2595 |
bar. Do not print false prompts. Original patch by Adnan Umer. |
| 2596 |
|
| 2597 |
- bpo-13884: Idle menus. Remove tearoff lines. Patch by Roger Serwy. |
| 2598 |
|
| 2599 |
- bpo-15809: IDLE shell now uses locale encoding instead of Latin1 for |
| 2600 |
decoding unicode literals. |
| 2601 |
|
| 2602 |
Documentation |
| 2603 |
------------- |
| 2604 |
|
| 2605 |
- bpo-24952: Clarify the default size argument of stack_size() in the |
| 2606 |
"threading" and "thread" modules. Patch from Mattip. |
| 2607 |
|
| 2608 |
- bpo-20769: Improve reload() docs. Patch by Dorian Pula. |
| 2609 |
|
| 2610 |
- bpo-23589: Remove duplicate sentence from the FAQ. Patch by Yongzhi Pan. |
| 2611 |
|
| 2612 |
- bpo-22155: Add File Handlers subsection with createfilehandler to Tkinter |
| 2613 |
doc. Remove obsolete example from FAQ. Patch by Martin Panter. |
| 2614 |
|
| 2615 |
Tests |
| 2616 |
----- |
| 2617 |
|
| 2618 |
- bpo-24751: When running regrtest with the ``-w`` command line option, a |
| 2619 |
test run is no longer marked as a failure if all tests succeed when |
| 2620 |
re-run. |
| 2621 |
|
| 2622 |
- PCbuild\rt.bat now accepts an unlimited number of arguments to pass along |
| 2623 |
to regrtest.py. Previously there was a limit of 9. |
| 2624 |
|
| 2625 |
Build |
| 2626 |
----- |
| 2627 |
|
| 2628 |
- bpo-24915: When doing a PGO build, the test suite is now used instead of |
| 2629 |
pybench; Clang support was also added as part off this work. Initial patch |
| 2630 |
by Alecsandru Patrascu of Intel. |
| 2631 |
|
| 2632 |
- bpo-24986: It is now possible to build Python on Windows without errors |
| 2633 |
when external libraries are not available. |
| 2634 |
|
| 2635 |
- bpo-24508: Backported the MSBuild project files from Python 3.5. The |
| 2636 |
backported files replace the old project files in PCbuild; the old files |
| 2637 |
moved to PC/VS9.0 and remain supported. |
| 2638 |
|
| 2639 |
- bpo-24603: Update Windows builds and OS X 10.5 installer to use OpenSSL |
| 2640 |
1.0.2d. |
| 2641 |
|
| 2642 |
Windows |
| 2643 |
------- |
| 2644 |
|
| 2645 |
- bpo-25022: Removed very outdated PC/example_nt/ directory. |
| 2646 |
|
| 2647 |
|
| 2648 |
What's New in Python 2.7.10 final? |
| 2649 |
================================== |
| 2650 |
|
| 2651 |
*Release date: 2015-05-23* |
| 2652 |
|
| 2653 |
Library |
| 2654 |
------- |
| 2655 |
|
| 2656 |
- bpo-22931: Allow '[' and ']' in cookie values. |
| 2657 |
|
| 2658 |
|
| 2659 |
What's New in Python 2.7.10 release candidate 1? |
| 2660 |
================================================ |
| 2661 |
|
| 2662 |
*Release date: 2015-05-10* |
| 2663 |
|
| 2664 |
Core and Builtins |
| 2665 |
----------------- |
| 2666 |
|
| 2667 |
- bpo-23971: Fix underestimated presizing in dict.fromkeys(). |
| 2668 |
|
| 2669 |
- bpo-23757: PySequence_Tuple() incorrectly called the concrete list API |
| 2670 |
when the data was a list subclass. |
| 2671 |
|
| 2672 |
- bpo-23629: Fix the default __sizeof__ implementation for variable-sized |
| 2673 |
objects. |
| 2674 |
|
| 2675 |
- bpo-23055: Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis and |
| 2676 |
fix by Guido Vranken. |
| 2677 |
|
| 2678 |
- bpo-23048: Fix jumping out of an infinite while loop in the pdb. |
| 2679 |
|
| 2680 |
Library |
| 2681 |
------- |
| 2682 |
|
| 2683 |
- The keywords attribute of functools.partial is now always a dictionary. |
| 2684 |
|
| 2685 |
- bpo-20274: When calling a _sqlite.Connection, it now complains if passed |
| 2686 |
any keyword arguments. Previously it silently ignored them. |
| 2687 |
|
| 2688 |
- bpo-20274: Remove ignored and erroneous "kwargs" parameters from three |
| 2689 |
METH_VARARGS methods on _sqlite.Connection. |
| 2690 |
|
| 2691 |
- bpo-24134: assertRaises() and assertRaisesRegexp() checks are not longer |
| 2692 |
successful if the callable is None. |
| 2693 |
|
| 2694 |
- bpo-23008: Fixed resolving attributes with boolean value is False in |
| 2695 |
pydoc. |
| 2696 |
|
| 2697 |
- bpo-24099: Fix use-after-free bug in heapq's siftup and siftdown |
| 2698 |
functions. (See also: bpo-24100, bpo-24101) |
| 2699 |
|
| 2700 |
- Backport collections.deque fixes from Python 3.5. Prevents reentrant |
| 2701 |
badness during deletion by deferring the decref until the container has |
| 2702 |
been restored to a consistent state. |
| 2703 |
|
| 2704 |
- bpo-23842: os.major(), os.minor() and os.makedev() now support ints again. |
| 2705 |
|
| 2706 |
- bpo-23811: Add missing newline to the PyCompileError error message. Patch |
| 2707 |
by Alex Shkop. |
| 2708 |
|
| 2709 |
- bpo-17898: Fix exception in gettext.py when parsing certain plural forms. |
| 2710 |
|
| 2711 |
- bpo-23865: close() methods in multiple modules now are idempotent and more |
| 2712 |
robust at shutdown. If they need to release multiple resources, all are |
| 2713 |
released even if errors occur. |
| 2714 |
|
| 2715 |
- bpo-23881: urllib.ftpwrapper constructor now closes the socket if the FTP |
| 2716 |
connection failed. |
| 2717 |
|
| 2718 |
- bpo-15133: _tkinter.tkapp.getboolean() now supports long and Tcl_Obj and |
| 2719 |
always returns bool. tkinter.BooleanVar now validates input values |
| 2720 |
(accepted bool, int, long, str, unicode, and Tcl_Obj). |
| 2721 |
tkinter.BooleanVar.get() now always returns bool. |
| 2722 |
|
| 2723 |
- bpo-23338: Fixed formatting ctypes error messages on Cygwin. Patch by |
| 2724 |
Makoto Kato. |
| 2725 |
|
| 2726 |
- bpo-16840: Tkinter now supports 64-bit integers added in Tcl 8.4 and |
| 2727 |
arbitrary precision integers added in Tcl 8.5. |
| 2728 |
|
| 2729 |
- bpo-23834: Fix socket.sendto(), use the C long type to store the result of |
| 2730 |
sendto() instead of the C int type. |
| 2731 |
|
| 2732 |
- bpo-21526: Tkinter now supports new boolean type in Tcl 8.5. |
| 2733 |
|
| 2734 |
- bpo-23838: linecache now clears the cache and returns an empty result on |
| 2735 |
MemoryError. |
| 2736 |
|
| 2737 |
- bpo-23742: ntpath.expandvars() no longer loses unbalanced single quotes. |
| 2738 |
|
| 2739 |
- bpo-21802: The reader in BufferedRWPair now is closed even when closing |
| 2740 |
writer failed in BufferedRWPair.close(). |
| 2741 |
|
| 2742 |
- bpo-23671: string.Template now allows specifying the "self" parameter as a |
| 2743 |
keyword argument. string.Formatter now allows specifying the "self" and |
| 2744 |
the "format_string" parameters as keyword arguments. |
| 2745 |
|
| 2746 |
- bpo-21560: An attempt to write a data of wrong type no longer cause |
| 2747 |
GzipFile corruption. Original patch by Wolfgang Maier. |
| 2748 |
|
| 2749 |
- bpo-23647: Increase impalib's MAXLINE to accommodate modern mailbox sizes. |
| 2750 |
|
| 2751 |
- bpo-23539: If body is None, http.client.HTTPConnection.request now sets |
| 2752 |
Content-Length to 0 for PUT, POST, and PATCH headers to avoid 411 errors |
| 2753 |
from some web servers. |
| 2754 |
|
| 2755 |
- bpo-23136: _strptime now uniformly handles all days in week 0, including |
| 2756 |
Dec 30 of previous year. Based on patch by Jim Carroll. |
| 2757 |
|
| 2758 |
- bpo-23138: Fixed parsing cookies with absent keys or values in cookiejar. |
| 2759 |
Patch by Demian Brecht. |
| 2760 |
|
| 2761 |
- bpo-23051: multiprocessing.Pool methods imap() and imap_unordered() now |
| 2762 |
handle exceptions raised by an iterator. Patch by Alon Diamant and Davin |
| 2763 |
Potts. |
| 2764 |
|
| 2765 |
- bpo-22928: Disabled HTTP header injections in httplib. Original patch by |
| 2766 |
Demian Brecht. |
| 2767 |
|
| 2768 |
- bpo-23615: Module tarfile is now can be reloaded with imp.reload(). |
| 2769 |
|
| 2770 |
- bpo-22853: Fixed a deadlock when use multiprocessing.Queue at import time. |
| 2771 |
Patch by Florian Finkernagel and Davin Potts. |
| 2772 |
|
| 2773 |
- bpo-23476: In the ssl module, enable OpenSSL's X509_V_FLAG_TRUSTED_FIRST |
| 2774 |
flag on certificate stores when it is available. |
| 2775 |
|
| 2776 |
- bpo-23576: Avoid stalling in SSL reads when EOF has been reached in the |
| 2777 |
SSL layer but the underlying connection hasn't been closed. |
| 2778 |
|
| 2779 |
- bpo-23504: Added an __all__ to the types module. |
| 2780 |
|
| 2781 |
- bpo-23458: On POSIX, the file descriptor kept open by os.urandom() is now |
| 2782 |
set to non inheritable |
| 2783 |
|
| 2784 |
- bpo-22113: struct.pack_into() now supports new buffer protocol (in |
| 2785 |
particular accepts writable memoryview). |
| 2786 |
|
| 2787 |
- bpo-814253: Warnings now are raised when group references and conditional |
| 2788 |
group references are used in lookbehind assertions in regular expressions. |
| 2789 |
(See also: bpo-9179) |
| 2790 |
|
| 2791 |
- bpo-23215: Multibyte codecs with custom error handlers that ignores errors |
| 2792 |
consumed too much memory and raised SystemError or MemoryError. Original |
| 2793 |
patch by Aleksi Torhamo. |
| 2794 |
|
| 2795 |
- bpo-5700: io.FileIO() called flush() after closing the file. flush() was |
| 2796 |
not called in close() if closefd=False. |
| 2797 |
|
| 2798 |
- bpo-21548: Fix pydoc.synopsis() and pydoc.apropos() on modules with empty |
| 2799 |
docstrings. Initial patch by Yuyang Guo. |
| 2800 |
|
| 2801 |
- bpo-22885: Fixed arbitrary code execution vulnerability in the dumbdbm |
| 2802 |
module. Original patch by Claudiu Popa. |
| 2803 |
|
| 2804 |
- bpo-23481: Remove RC4 from the SSL module's default cipher list. |
| 2805 |
|
| 2806 |
- bpo-21849: Fixed xmlrpclib serialization of non-ASCII unicode strings in |
| 2807 |
the multiprocessing module. |
| 2808 |
|
| 2809 |
- bpo-21840: Fixed expanding unicode variables of form $var in |
| 2810 |
posixpath.expandvars(). Fixed all os.path implementations on |
| 2811 |
unicode-disabled builds. |
| 2812 |
|
| 2813 |
- bpo-23367: Fix possible overflows in the unicodedata module. |
| 2814 |
|
| 2815 |
- bpo-23363: Fix possible overflow in itertools.permutations. |
| 2816 |
|
| 2817 |
- bpo-23364: Fix possible overflow in itertools.product. |
| 2818 |
|
| 2819 |
- bpo-23365: Fixed possible integer overflow in |
| 2820 |
itertools.combinations_with_replacement. |
| 2821 |
|
| 2822 |
- bpo-23366: Fixed possible integer overflow in itertools.combinations. |
| 2823 |
|
| 2824 |
- bpo-23191: fnmatch functions that use caching are now threadsafe. |
| 2825 |
|
| 2826 |
- bpo-18518: timeit now rejects statements which can't be compiled outside a |
| 2827 |
function or a loop (e.g. "return" or "break"). |
| 2828 |
|
| 2829 |
- bpo-19996: Make :mod:`httplib` ignore headers with no name rather than |
| 2830 |
assuming the body has started. |
| 2831 |
|
| 2832 |
- bpo-20188: Support Application-Layer Protocol Negotiation (ALPN) in the |
| 2833 |
ssl module. |
| 2834 |
|
| 2835 |
- bpo-23248: Update ssl error codes from latest OpenSSL git master. |
| 2836 |
|
| 2837 |
- bpo-23098: 64-bit dev_t is now supported in the os module. |
| 2838 |
|
| 2839 |
- bpo-23063: In the disutils' check command, fix parsing of reST with code |
| 2840 |
or code-block directives. |
| 2841 |
|
| 2842 |
- bpo-21356: Make ssl.RAND_egd() optional to support LibreSSL. The |
| 2843 |
availability of the function is checked during the compilation. Patch |
| 2844 |
written by Bernard Spil. |
| 2845 |
|
| 2846 |
- Backport the context argument to ftplib.FTP_TLS. |
| 2847 |
|
| 2848 |
- bpo-23111: Maximize compatibility in protocol versions of ftplib.FTP_TLS. |
| 2849 |
|
| 2850 |
- bpo-23112: Fix SimpleHTTPServer to correctly carry the query string and |
| 2851 |
fragment when it redirects to add a trailing slash. |
| 2852 |
|
| 2853 |
- bpo-22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(), |
| 2854 |
instead of reading /dev/urandom, to get pseudo-random bytes. |
| 2855 |
|
| 2856 |
- bpo-23093: In the io, module allow more operations to work on detached |
| 2857 |
streams. |
| 2858 |
|
| 2859 |
- bpo-23071: Added missing names to codecs.__all__. Patch by Martin Panter. |
| 2860 |
|
| 2861 |
- bpo-23016: A warning no longer produces an AttributeError when sys.stderr |
| 2862 |
is None. |
| 2863 |
|
| 2864 |
- bpo-21032: Fixed socket leak if HTTPConnection.getresponse() fails. |
| 2865 |
Original patch by Martin Panter. |
| 2866 |
|
| 2867 |
- bpo-22609: Constructors and update methods of mapping classes in the |
| 2868 |
collections module now accept the self keyword argument. |
| 2869 |
|
| 2870 |
Documentation |
| 2871 |
------------- |
| 2872 |
|
| 2873 |
- bpo-23006: Improve the documentation and indexing of dict.__missing__. Add |
| 2874 |
an entry in the language datamodel special methods section. Revise and |
| 2875 |
index its discussion in the stdtypes mapping/dict section. Backport the |
| 2876 |
code example from 3.4. |
| 2877 |
|
| 2878 |
- bpo-21514: The documentation of the json module now refers to new JSON RFC |
| 2879 |
7159 instead of obsoleted RFC 4627. |
| 2880 |
|
| 2881 |
Tools/Demos |
| 2882 |
----------- |
| 2883 |
|
| 2884 |
- bpo-23330: h2py now supports arbitrary filenames in #include. |
| 2885 |
|
| 2886 |
- bpo-6639: Module-level turtle functions no longer raise TclError after |
| 2887 |
closing the window. |
| 2888 |
|
| 2889 |
- bpo-22314: pydoc now works when the LINES environment variable is set. |
| 2890 |
|
| 2891 |
- bpo-18905: "pydoc -p 0" now outputs actually used port. Based on patch by |
| 2892 |
Wieland Hoffmann. |
| 2893 |
|
| 2894 |
- bpo-23345: Prevent test_ssl failures with large OpenSSL patch level values |
| 2895 |
(like 0.9.8zc). |
| 2896 |
|
| 2897 |
Tests |
| 2898 |
----- |
| 2899 |
|
| 2900 |
- bpo-23799: Added test.test_support.start_threads() for running and |
| 2901 |
cleaning up multiple threads. |
| 2902 |
|
| 2903 |
- bpo-22390: test.regrtest now emits a warning if temporary files or |
| 2904 |
directories are left after running a test. |
| 2905 |
|
| 2906 |
- bpo-23583: Added tests for standard IO streams in IDLE. |
| 2907 |
|
| 2908 |
- bpo-23392: Added tests for marshal C API that works with FILE*. |
| 2909 |
|
| 2910 |
- bpo-18982: Add tests for CLI of the calendar module. |
| 2911 |
|
| 2912 |
- bpo-19949: The test_xpickle test now tests compatibility with installed |
| 2913 |
Python 2.7 and reports skipped tests. Based on patch by Zachary Ware. |
| 2914 |
|
| 2915 |
- bpo-11578: Backported test for the timeit module. |
| 2916 |
|
| 2917 |
- bpo-22943: bsddb tests are locale independend now. |
| 2918 |
|
| 2919 |
IDLE |
| 2920 |
---- |
| 2921 |
|
| 2922 |
- bpo-23583: Fixed writing unicode to standard output stream in IDLE. |
| 2923 |
|
| 2924 |
- bpo-20577: Configuration of the max line length for the FormatParagraph |
| 2925 |
extension has been moved from the General tab of the Idle preferences |
| 2926 |
dialog to the FormatParagraph tab of the Config Extensions dialog. Patch |
| 2927 |
by Tal Einat. |
| 2928 |
|
| 2929 |
- bpo-16893: Update Idle doc chapter to match current Idle and add new |
| 2930 |
information. |
| 2931 |
|
| 2932 |
- bpo-23180: Rename IDLE "Windows" menu item to "Window". Patch by Al |
| 2933 |
Sweigart. |
| 2934 |
|
| 2935 |
Build |
| 2936 |
----- |
| 2937 |
|
| 2938 |
- bpo-15506: Use standard PKG_PROG_PKG_CONFIG autoconf macro in the |
| 2939 |
configure script. |
| 2940 |
|
| 2941 |
- bpo-23032: Fix installer build failures on OS X 10.4 Tiger by disabling |
| 2942 |
assembly code in the OpenSSL build. |
| 2943 |
|
| 2944 |
- bpo-23686: Update OS X 10.5 installer and Windows builds to use OpenSSL |
| 2945 |
1.0.2a. |
| 2946 |
|
| 2947 |
C API |
| 2948 |
----- |
| 2949 |
|
| 2950 |
- bpo-23998: PyImport_ReInitLock() now checks for lock allocation error |
| 2951 |
|
| 2952 |
- bpo-22079: PyType_Ready() now checks that statically allocated type has no |
| 2953 |
dynamically allocated bases. |
| 2954 |
|
| 2955 |
|
| 2956 |
What's New in Python 2.7.9 final? |
| 2957 |
================================= |
| 2958 |
|
| 2959 |
*Release date: 2014-12-10* |
| 2960 |
|
| 2961 |
Library |
| 2962 |
------- |
| 2963 |
|
| 2964 |
- bpo-22959: Remove the *check_hostname* parameter of |
| 2965 |
httplib.HTTPSConnection. The *context* parameter should be used instead. |
| 2966 |
|
| 2967 |
- bpo-16043: Add a default limit for the amount of data |
| 2968 |
xmlrpclib.gzip_decode will return. This resolves CVE-2013-1753. |
| 2969 |
|
| 2970 |
- bpo-16042: CVE-2013-1752: smtplib: Limit amount of data read by limiting |
| 2971 |
the call to readline(). Original patch by Christian Heimes. |
| 2972 |
|
| 2973 |
- bpo-16041: In poplib, limit maximum line length read from the server to |
| 2974 |
prevent CVE-2013-1752. |
| 2975 |
|
| 2976 |
- bpo-22960: Add a context argument to xmlrpclib.ServerProxy. |
| 2977 |
|
| 2978 |
Build |
| 2979 |
----- |
| 2980 |
|
| 2981 |
- bpo-22935: Allow the ssl module to be compiled if openssl doesn't support |
| 2982 |
SSL 3. |
| 2983 |
|
| 2984 |
- bpo-17128: Use private version of OpenSSL for 2.7.9 OS X 10.5+ installer. |
| 2985 |
|
| 2986 |
|
| 2987 |
What's New in Python 2.7.9 release candidate 1? |
| 2988 |
=============================================== |
| 2989 |
|
| 2990 |
*Release date: 2014-11-25* |
| 2991 |
|
| 2992 |
Core and Builtins |
| 2993 |
----------------- |
| 2994 |
|
| 2995 |
- bpo-21963: backout issue #1856 patch (avoid crashes and lockups when |
| 2996 |
daemon threads run while the interpreter is shutting down; instead, these |
| 2997 |
threads are now killed when they try to take the GIL), as it seems to |
| 2998 |
break some existing code. |
| 2999 |
|
| 3000 |
- bpo-22604: Fix assertion error in debug mode when dividing a complex |
| 3001 |
number by (nan+0j). |
| 3002 |
|
| 3003 |
- bpo-22470: Fixed integer overflow issues in "backslashreplace" and |
| 3004 |
"xmlcharrefreplace" error handlers. |
| 3005 |
|
| 3006 |
- bpo-22526: Fix iterating through files with lines longer than 2^31 bytes. |
| 3007 |
|
| 3008 |
- bpo-22519: Fix overflow checking in PyString_Repr. |
| 3009 |
|
| 3010 |
- bpo-22518: Fix integer overflow issues in latin-1 encoding. |
| 3011 |
|
| 3012 |
- bpo-22379: Fix empty exception message in a TypeError raised in |
| 3013 |
``str.join``. |
| 3014 |
|
| 3015 |
- bpo-22221: Now the source encoding declaration on the second line isn't |
| 3016 |
effective if the first line contains anything except a comment. |
| 3017 |
|
| 3018 |
- bpo-22023: Fix ``%S``, ``%R`` and ``%V`` formats of |
| 3019 |
:c:func:`PyUnicode_FromFormat`. |
| 3020 |
|
| 3021 |
- bpo-21591: Correctly handle qualified exec statements in tuple form by |
| 3022 |
moving compatibility layer from run-time to AST transformation. |
| 3023 |
|
| 3024 |
Library |
| 3025 |
------- |
| 3026 |
|
| 3027 |
- bpo-22417: Verify certificates by default in httplib (PEP 476). |
| 3028 |
|
| 3029 |
- bpo-22927: Allow urllib.urlopen to take a *context* parameter to control |
| 3030 |
SSL settings for HTTPS connections. |
| 3031 |
|
| 3032 |
- bpo-22921: Allow SSLContext to take the *hostname* parameter even if |
| 3033 |
OpenSSL doesn't support SNI. |
| 3034 |
|
| 3035 |
- bpo-9003: httplib.HTTPSConnection, urllib2.HTTPSHandler and |
| 3036 |
urllib2.urlopen now take optional arguments to allow for server |
| 3037 |
certificate checking, as recommended in public uses of HTTPS. This |
| 3038 |
backport is part of PEP 467. (See also: bpo-22366) |
| 3039 |
|
| 3040 |
- bpo-12728: Different Unicode characters having the same uppercase but |
| 3041 |
different lowercase are now matched in case-insensitive regular |
| 3042 |
expressions. |
| 3043 |
|
| 3044 |
- bpo-22821: Fixed fcntl() with integer argument on 64-bit big-endian |
| 3045 |
platforms. |
| 3046 |
|
| 3047 |
- bpo-17293: uuid.getnode() now determines MAC address on AIX using netstat. |
| 3048 |
Based on patch by Aivars Kalvāns. |
| 3049 |
|
| 3050 |
- bpo-22769: Fixed ttk.Treeview.tag_has() when called without arguments. |
| 3051 |
|
| 3052 |
- bpo-22787: Allow the keyfile argument of SSLContext.load_cert_chain to be |
| 3053 |
None. |
| 3054 |
|
| 3055 |
- bpo-22775: Fixed unpickling of Cookie.SimpleCookie with protocol 2. Patch |
| 3056 |
by Tim Graham. |
| 3057 |
|
| 3058 |
- bpo-22776: Brought excluded code into the scope of a try block in |
| 3059 |
SysLogHandler.emit(). |
| 3060 |
|
| 3061 |
- bpo-17381: Fixed ranges handling in case-insensitive regular expressions. |
| 3062 |
|
| 3063 |
- bpo-19329: Optimized compiling charsets in regular expressions. |
| 3064 |
|
| 3065 |
- bpo-22410: Module level functions in the re module now cache compiled |
| 3066 |
locale-dependent regular expressions taking into account the locale. |
| 3067 |
|
| 3068 |
- bpo-8876: distutils now falls back to copying files when hard linking |
| 3069 |
doesn't work. This allows use with special filesystems such as VirtualBox |
| 3070 |
shared folders. |
| 3071 |
|
| 3072 |
- bpo-9351: Defaults set with set_defaults on an argparse subparser are no |
| 3073 |
longer ignored when also set on the parent parser. |
| 3074 |
|
| 3075 |
- bpo-20421: Add a .version() method to SSL sockets exposing the actual |
| 3076 |
protocol version in use. |
| 3077 |
|
| 3078 |
- bpo-22435: Fix a file descriptor leak when SocketServer bind fails. |
| 3079 |
|
| 3080 |
- bpo-13664: GzipFile now supports non-ascii Unicode filenames. |
| 3081 |
|
| 3082 |
- bpo-13096: Fixed segfault in CTypes POINTER handling of large values. |
| 3083 |
|
| 3084 |
- bpo-11694: Raise ConversionError in xdrlib as documented. Patch by Filip |
| 3085 |
Gruszczyński and Claudiu Popa. |
| 3086 |
|
| 3087 |
- bpo-1686: Fix string.Template when overriding the pattern attribute. |
| 3088 |
|
| 3089 |
- bpo-11866: Eliminated race condition in the computation of names for new |
| 3090 |
threads. |
| 3091 |
|
| 3092 |
- bpo-22219: The zipfile module CLI now adds entries for directories |
| 3093 |
(including empty directories) in ZIP file. |
| 3094 |
|
| 3095 |
- bpo-22449: In the ssl.SSLContext.load_default_certs, consult the |
| 3096 |
environmental variables SSL_CERT_DIR and SSL_CERT_FILE on Windows. |
| 3097 |
|
| 3098 |
- bpo-8473: doctest.testfile now uses universal newline mode to read the |
| 3099 |
test file. |
| 3100 |
|
| 3101 |
- bpo-20076: Added non derived UTF-8 aliases to locale aliases table. |
| 3102 |
|
| 3103 |
- bpo-20079: Added locales supported in glibc 2.18 to locale alias table. |
| 3104 |
|
| 3105 |
- bpo-22530: Allow the ``group()`` method of regular expression match |
| 3106 |
objects to take a ``long`` as an index. |
| 3107 |
|
| 3108 |
- bpo-22517: When an io.BufferedRWPair object is deallocated, clear its |
| 3109 |
weakrefs. |
| 3110 |
|
| 3111 |
- bpo-10510: distutils register and upload methods now use HTML standards |
| 3112 |
compliant CRLF line endings. |
| 3113 |
|
| 3114 |
- bpo-9850: Fixed macpath.join() for empty first component. Patch by Oleg |
| 3115 |
Oshmyan. |
| 3116 |
|
| 3117 |
- bpo-20912: Now directories added to ZIP file have correct Unix and MS-DOS |
| 3118 |
directory attributes. |
| 3119 |
|
| 3120 |
- bpo-21866: ZipFile.close() no longer writes ZIP64 central directory |
| 3121 |
records if allowZip64 is false. |
| 3122 |
|
| 3123 |
- bpo-22415: Fixed debugging output of the GROUPREF_EXISTS opcode in the re |
| 3124 |
module. |
| 3125 |
|
| 3126 |
- bpo-22423: Unhandled exception in thread no longer causes unhandled |
| 3127 |
AttributeError when sys.stderr is None. |
| 3128 |
|
| 3129 |
- bpo-22419: Limit the length of incoming HTTP request in wsgiref server to |
| 3130 |
65536 bytes and send a 414 error code for higher lengths. Patch |
| 3131 |
contributed by Devin Cook. |
| 3132 |
|
| 3133 |
- Lax cookie parsing in http.cookies could be a security issue when combined |
| 3134 |
with non-standard cookie handling in some Web browsers. Reported by |
| 3135 |
Sergey Bobrov. |
| 3136 |
|
| 3137 |
- bpo-21147: sqlite3 now raises an exception if the request contains a null |
| 3138 |
character instead of truncating it. Based on patch by Victor Stinner. |
| 3139 |
|
| 3140 |
- bpo-21951: Fixed a crash in Tkinter on AIX when called Tcl command with |
| 3141 |
empty string or tuple argument. |
| 3142 |
|
| 3143 |
- bpo-21951: Tkinter now most likely raises MemoryError instead of crash if |
| 3144 |
the memory allocation fails. |
| 3145 |
|
| 3146 |
- bpo-22226: First letter no longer is stripped from the "status" key in the |
| 3147 |
result of Treeview.heading(). |
| 3148 |
|
| 3149 |
- bpo-22051: turtledemo no longer reloads examples to re-run them. |
| 3150 |
Initialization of variables and gui setup should be done in main(), which |
| 3151 |
is called each time a demo is run, but not on import. |
| 3152 |
|
| 3153 |
- bpo-21597: The separator between the turtledemo text pane and the drawing |
| 3154 |
canvas can now be grabbed and dragged with a mouse. The code text pane |
| 3155 |
can be widened to easily view or copy the full width of the text. The |
| 3156 |
canvas can be widened on small screens. Original patches by Jan Kanis and |
| 3157 |
Lita Cho. |
| 3158 |
|
| 3159 |
- bpo-18132: Turtledemo buttons no longer disappear when the window is |
| 3160 |
shrunk. Original patches by Jan Kanis and Lita Cho. |
| 3161 |
|
| 3162 |
- bpo-22312: Fix ntpath.splitdrive IndexError. |
| 3163 |
|
| 3164 |
- bpo-22216: smtplib now resets its state more completely after a quit. The |
| 3165 |
most obvious consequence of the previous behavior was a STARTTLS failure |
| 3166 |
during a connect/starttls/quit/connect/starttls sequence. |
| 3167 |
|
| 3168 |
- bpo-21305: os.urandom now caches a fd to /dev/urandom. This is a PEP 466 |
| 3169 |
backport from Python 3. |
| 3170 |
|
| 3171 |
- bpo-21307: As part of PEP 466, backport hashlib.algorithms_guaranteed and |
| 3172 |
hashlib.algorithms_available. |
| 3173 |
|
| 3174 |
- bpo-22259: Fix segfault when attempting to fopen a file descriptor |
| 3175 |
corresponding to a directory. |
| 3176 |
|
| 3177 |
- bpo-22236: Fixed Tkinter images copying operations in NoDefaultRoot mode. |
| 3178 |
|
| 3179 |
- bpo-22191: Fixed warnings.__all__. |
| 3180 |
|
| 3181 |
- bpo-21308: Backport numerous features from Python's ssl module. This is |
| 3182 |
part of PEP 466. |
| 3183 |
|
| 3184 |
- bpo-15696: Add a __sizeof__ implementation for mmap objects on Windows. |
| 3185 |
|
| 3186 |
- bpo-8797: Raise HTTPError on failed Basic Authentication immediately. |
| 3187 |
Initial patch by Sam Bull. |
| 3188 |
|
| 3189 |
- bpo-22068: Avoided reference loops with Variables and Fonts in Tkinter. |
| 3190 |
|
| 3191 |
- bpo-21448: Changed FeedParser feed() to avoid O(N**2) behavior when |
| 3192 |
parsing long line. Original patch by Raymond Hettinger. |
| 3193 |
|
| 3194 |
- bpo-17923: glob() patterns ending with a slash no longer match non-dirs on |
| 3195 |
AIX. Based on patch by Delhallt. |
| 3196 |
|
| 3197 |
- bpo-21975: Fixed crash when using uninitialized sqlite3.Row (in particular |
| 3198 |
when unpickling pickled sqlite3.Row). sqlite3.Row is now initialized in |
| 3199 |
the __new__() method. |
| 3200 |
|
| 3201 |
- bpo-16037: HTTPMessage.readheaders() raises an HTTPException when more |
| 3202 |
than 100 headers are read. Patch by Jyrki Pulliainen and Daniel Eriksson. |
| 3203 |
|
| 3204 |
- bpo-21580: Now Tkinter correctly handles binary "data" and "maskdata" |
| 3205 |
configure options of tkinter.PhotoImage. |
| 3206 |
|
| 3207 |
- bpo-19612: subprocess.communicate() now also ignores EINVAL when using at |
| 3208 |
least two pipes. |
| 3209 |
|
| 3210 |
- Fix repr(_socket.socket) on Windows 64-bit: don't fail with OverflowError |
| 3211 |
on closed socket. |
| 3212 |
|
| 3213 |
- bpo-16133: The asynchat.async_chat.handle_read() method now ignores |
| 3214 |
socket.error() exceptions with blocking I/O errors: EAGAIN, EALREADY, |
| 3215 |
EINPROGRESS, or EWOULDBLOCK. |
| 3216 |
|
| 3217 |
- bpo-21990: Clean-up unnecessary and slow inner class definition in |
| 3218 |
saxutils (Contributed by Alex Gaynor). |
| 3219 |
|
| 3220 |
- bpo-1730136: Fix the comparison between a tkFont.Font and an object of |
| 3221 |
another kind. |
| 3222 |
|
| 3223 |
- bpo-19884: readline: Disable the meta modifier key if stdout is not a |
| 3224 |
terminal to not write the ANSI sequence "\033[1034h" into stdout. This |
| 3225 |
sequence is used on some terminal (ex: TERM=xterm-256color") to enable |
| 3226 |
support of 8 bit characters. |
| 3227 |
|
| 3228 |
- bpo-22017: Correct reference counting error in the initialization of the |
| 3229 |
_warnings module. |
| 3230 |
|
| 3231 |
- bpo-21868: Prevent turtle crash when undo buffer set to a value less than |
| 3232 |
one. |
| 3233 |
|
| 3234 |
- bpo-21151: Fixed a segfault in the _winreg module when ``None`` is passed |
| 3235 |
as a ``REG_BINARY`` value to SetValueEx. Patch by John Ehresman. |
| 3236 |
|
| 3237 |
- bpo-21090: io.FileIO.readall() does not ignore I/O errors anymore. Before, |
| 3238 |
it ignored I/O errors if at least the first C call read() succeed. |
| 3239 |
|
| 3240 |
- bpo-19870: BaseCookie now parses 'secure' and 'httponly' flags. Backport |
| 3241 |
of issue #16611. |
| 3242 |
|
| 3243 |
- bpo-21923: Prevent AttributeError in |
| 3244 |
distutils.sysconfig.customize_compiler due to possible uninitialized |
| 3245 |
_config_vars. |
| 3246 |
|
| 3247 |
- bpo-21323: Fix CGIHTTPServer to again handle scripts in CGI |
| 3248 |
subdirectories, broken by the fix for security issue #19435. Patch by |
| 3249 |
Zach Byrne. |
| 3250 |
|
| 3251 |
- bpo-22199: Make get_makefile_filename() available in Lib/sysconfig.py for |
| 3252 |
2.7 to match other versions of sysconfig. |
| 3253 |
|
| 3254 |
IDLE |
| 3255 |
---- |
| 3256 |
|
| 3257 |
- bpo-3068: Add Idle extension configuration dialog to Options menu. Changes |
| 3258 |
are written to HOME/.idlerc/config-extensions.cfg. Original patch by Tal |
| 3259 |
Einat. |
| 3260 |
|
| 3261 |
- bpo-16233: A module browser (File : Class Browser, Alt+C) requires an |
| 3262 |
editor window with a filename. When Class Browser is requested otherwise, |
| 3263 |
from a shell, output window, or 'Untitled' editor, Idle no longer displays |
| 3264 |
an error box. It now pops up an Open Module box (Alt+M). If a valid name |
| 3265 |
is entered and a module is opened, a corresponding browser is also opened. |
| 3266 |
|
| 3267 |
- bpo-4832: Save As to type Python files automatically adds .py to the name |
| 3268 |
you enter (even if your system does not display it). Some systems |
| 3269 |
automatically add .txt when type is Text files. |
| 3270 |
|
| 3271 |
- bpo-21986: Code objects are not normally pickled by the pickle module. To |
| 3272 |
match this, they are no longer pickled when running under Idle. |
| 3273 |
|
| 3274 |
- bpo-22221: IDLE now ignores the source encoding declaration on the second |
| 3275 |
line if the first line contains anything except a comment. |
| 3276 |
|
| 3277 |
- bpo-17390: Adjust Editor window title; remove 'Python', move version to |
| 3278 |
end. |
| 3279 |
|
| 3280 |
- bpo-14105: Idle debugger breakpoints no longer disappear when inserting or |
| 3281 |
deleting lines. |
| 3282 |
|
| 3283 |
Library |
| 3284 |
------- |
| 3285 |
|
| 3286 |
- bpo-22381: Update zlib to 1.2.8. |
| 3287 |
|
| 3288 |
- bpo-22176: Update the ctypes module's libffi to v3.1. This release adds |
| 3289 |
support for the Linux AArch64 and POWERPC ELF ABIv2 little endian |
| 3290 |
architectures. |
| 3291 |
|
| 3292 |
Tools/Demos |
| 3293 |
----------- |
| 3294 |
|
| 3295 |
- bpo-10712: 2to3 has a new "asserts" fixer that replaces deprecated names |
| 3296 |
of unittest methods (e.g. failUnlessEqual -> assertEqual). |
| 3297 |
|
| 3298 |
- bpo-22221: 2to3 and the findnocoding.py script now ignore the source |
| 3299 |
encoding declaration on the second line if the first line contains |
| 3300 |
anything except a comment. |
| 3301 |
|
| 3302 |
- bpo-22201: Command-line interface of the zipfile module now correctly |
| 3303 |
extracts ZIP files with directory entries. Patch by Ryan Wilson. |
| 3304 |
|
| 3305 |
Tests |
| 3306 |
----- |
| 3307 |
|
| 3308 |
- bpo-22236: Tkinter tests now don't reuse default root window. New root |
| 3309 |
window is created for every test class. |
| 3310 |
|
| 3311 |
- bpo-18004: test_overflow in test_list by mistake consumed 40 GiB of memory |
| 3312 |
on 64-bit systems. |
| 3313 |
|
| 3314 |
- bpo-21976: Fix test_ssl to accept LibreSSL version strings. Thanks to |
| 3315 |
William Orr. |
| 3316 |
|
| 3317 |
- bpo-22770: Prevent some Tk segfaults on OS X when running gui tests. |
| 3318 |
|
| 3319 |
Build |
| 3320 |
----- |
| 3321 |
|
| 3322 |
- bpo-20221: Removed conflicting (or circular) hypot definition when |
| 3323 |
compiled with VS 2010 or above. Initial patch by Tabrez Mohammed. |
| 3324 |
|
| 3325 |
- bpo-16537: Check whether self.extensions is empty in setup.py. Patch by |
| 3326 |
Jonathan Hosmer. |
| 3327 |
|
| 3328 |
- The documentation Makefile no longer automatically downloads Sphinx. Users |
| 3329 |
are now required to have Sphinx already installed to build the |
| 3330 |
documentation. |
| 3331 |
|
| 3332 |
- bpo-21958: Define HAVE_ROUND when building with Visual Studio 2013 and |
| 3333 |
above. Patch by Zachary Turner. |
| 3334 |
|
| 3335 |
- bpo-15759: "make suspicious", "make linkcheck" and "make doctest" in Doc/ |
| 3336 |
now display special message when and only when there are failures. |
| 3337 |
|
| 3338 |
- bpo-21166: Prevent possible segfaults and other random failures of python |
| 3339 |
``--generate-posix-vars`` in pybuilddir.txt build target. |
| 3340 |
|
| 3341 |
- bpo-18096: Fix library order returned by python-config. |
| 3342 |
|
| 3343 |
- bpo-17219: Add library build dir for Python extension cross-builds. |
| 3344 |
|
| 3345 |
- bpo-22877: PEP 477 - OS X installer now installs pip. |
| 3346 |
|
| 3347 |
- bpo-22878: PEP 477 - "make install" and "make altinstall" can now install |
| 3348 |
or upgrade pip, using the bundled pip provided by the backported ensurepip |
| 3349 |
module. A configure option, --with-ensurepip[=upgrade|install|no], is |
| 3350 |
available to set the option for subsequent installs; the default for |
| 3351 |
Python 2 in "no" (do not install or upgrade pip). The option can also be |
| 3352 |
set with "make [alt]install ENSUREPIP=[upgrade|install|no]". |
| 3353 |
|
| 3354 |
Windows |
| 3355 |
------- |
| 3356 |
|
| 3357 |
- bpo-17896: The Windows build scripts now expect external library sources |
| 3358 |
to be in ``PCbuild\..\externals`` rather than ``PCbuild\..\..``. |
| 3359 |
|
| 3360 |
- bpo-17717: The Windows build scripts now use a copy of NASM pulled from |
| 3361 |
svn.python.org to build OpenSSL. |
| 3362 |
|
| 3363 |
- bpo-22644: The bundled version of OpenSSL has been updated to 1.0.1j. |
| 3364 |
|
| 3365 |
|
| 3366 |
What's New in Python 2.7.8 final? |
| 3367 |
================================= |
| 3368 |
|
| 3369 |
*Release date: 2014-06-29* |
| 3370 |
|
| 3371 |
Core and Builtins |
| 3372 |
----------------- |
| 3373 |
|
| 3374 |
- bpo-4346: In PyObject_CallMethod and PyObject_CallMethodObjArgs, don't |
| 3375 |
overwrite the error set in PyObject_GetAttr. |
| 3376 |
|
| 3377 |
- bpo-21831: Avoid integer overflow when large sizes and offsets are given |
| 3378 |
to the buffer type. CVE-2014-7185. |
| 3379 |
|
| 3380 |
- bpo-19656: Running Python with the -3 option now also warns about |
| 3381 |
non-ascii bytes literals. |
| 3382 |
|
| 3383 |
- bpo-21642: If the conditional if-else expression, allow an integer written |
| 3384 |
with no space between itself and the ``else`` keyword (e.g. ``True if |
| 3385 |
42else False``) to be valid syntax. |
| 3386 |
|
| 3387 |
- bpo-21523: Fix over-pessimistic computation of the stack effect of some |
| 3388 |
opcodes in the compiler. This also fixes a quadratic compilation time |
| 3389 |
issue noticeable when compiling code with a large number of "and" and "or" |
| 3390 |
operators. |
| 3391 |
|
| 3392 |
Library |
| 3393 |
------- |
| 3394 |
|
| 3395 |
- bpo-21652: Prevent mimetypes.type_map from containing unicode keys on |
| 3396 |
Windows. |
| 3397 |
|
| 3398 |
- bpo-21729: Used the "with" statement in the dbm.dumb module to ensure |
| 3399 |
files closing. |
| 3400 |
|
| 3401 |
- bpo-21672: Fix the behavior of ntpath.join on UNC-style paths. |
| 3402 |
|
| 3403 |
- bpo-19145: The times argument for itertools.repeat now handles negative |
| 3404 |
values the same way for keyword arguments as it does for positional |
| 3405 |
arguments. |
| 3406 |
|
| 3407 |
- bpo-21832: Require named tuple inputs to be exact strings. |
| 3408 |
|
| 3409 |
- bpo-8343: Named group error messages in the re module did not show the |
| 3410 |
name of the erroneous group. |
| 3411 |
|
| 3412 |
- bpo-21491: SocketServer: Fix a race condition in child processes reaping. |
| 3413 |
|
| 3414 |
- bpo-21635: The difflib SequenceMatcher.get_matching_blocks() method cache |
| 3415 |
didn't match the actual result. The former was a list of tuples and the |
| 3416 |
latter was a list of named tuples. |
| 3417 |
|
| 3418 |
- bpo-21722: The distutils "upload" command now exits with a non-zero return |
| 3419 |
code when uploading fails. Patch by Martin Dengler. |
| 3420 |
|
| 3421 |
- bpo-21766: Prevent a security hole in CGIHTTPServer by URL unquoting paths |
| 3422 |
before checking for a CGI script at that path. |
| 3423 |
|
| 3424 |
- bpo-21310: Fixed possible resource leak in failed open(). |
| 3425 |
|
| 3426 |
- bpo-21304: Backport the key derivation function hashlib.pbkdf2_hmac from |
| 3427 |
Python 3 per PEP 466. |
| 3428 |
|
| 3429 |
- bpo-11709: Fix the pydoc.help function to not fail when sys.stdin is not a |
| 3430 |
valid file. |
| 3431 |
|
| 3432 |
- bpo-13223: Fix pydoc.writedoc so that the HTML documentation for methods |
| 3433 |
that use 'self' in the example code is generated correctly. |
| 3434 |
|
| 3435 |
- bpo-21552: Fixed possible integer overflow of too long string lengths in |
| 3436 |
the tkinter module on 64-bit platforms. |
| 3437 |
|
| 3438 |
- bpo-14315: The zipfile module now ignores extra fields in the central |
| 3439 |
directory that are too short to be parsed instead of letting a |
| 3440 |
struct.unpack error bubble up as this "bad data" appears in many real |
| 3441 |
world zip files in the wild and is ignored by other zip tools. |
| 3442 |
|
| 3443 |
- bpo-21402: Tkinter.ttk now works when default root window is not set. |
| 3444 |
|
| 3445 |
- bpo-10203: sqlite3.Row now truly supports sequence protocol. In particulr |
| 3446 |
it supports reverse() and negative indices. Original patch by Claudiu |
| 3447 |
Popa. |
| 3448 |
|
| 3449 |
- bpo-8743: Fix interoperability between set objects and the |
| 3450 |
collections.Set() abstract base class. |
| 3451 |
|
| 3452 |
- bpo-21481: Argparse equality and inequality tests now return |
| 3453 |
NotImplemented when comparing to an unknown type. |
| 3454 |
|
| 3455 |
IDLE |
| 3456 |
---- |
| 3457 |
|
| 3458 |
- bpo-21940: Add unittest for WidgetRedirector. Initial patch by Saimadhav |
| 3459 |
Heblikar. |
| 3460 |
|
| 3461 |
- bpo-18592: Add unittest for SearchDialogBase. Patch by Phil Webster. |
| 3462 |
|
| 3463 |
- bpo-21694: Add unittest for ParenMatch. Patch by Saimadhav Heblikar. |
| 3464 |
|
| 3465 |
- bpo-21686: add unittest for HyperParser. Original patch by Saimadhav |
| 3466 |
Heblikar. |
| 3467 |
|
| 3468 |
- bpo-12387: Add missing upper(lower)case versions of default Windows key |
| 3469 |
bindings for Idle so Caps Lock does not disable them. Patch by Roger |
| 3470 |
Serwy. |
| 3471 |
|
| 3472 |
- bpo-21695: Closing a Find-in-files output window while the search is still |
| 3473 |
in progress no longer closes Idle. |
| 3474 |
|
| 3475 |
- bpo-18910: Add unittest for textView. Patch by Phil Webster. |
| 3476 |
|
| 3477 |
- bpo-18292: Add unittest for AutoExpand. Patch by Saihadhav Heblikar. |
| 3478 |
|
| 3479 |
- bpo-18409: Add unittest for AutoComplete. Patch by Phil Webster. |
| 3480 |
|
| 3481 |
Tests |
| 3482 |
----- |
| 3483 |
|
| 3484 |
- bpo-20155: Changed HTTP method names in failing tests in test_httpservers |
| 3485 |
so that packet filtering software (specifically Windows Base Filtering |
| 3486 |
Engine) does not interfere with the transaction semantics expected by the |
| 3487 |
tests. |
| 3488 |
|
| 3489 |
- bpo-19493: Refactored the ctypes test package to skip tests explicitly |
| 3490 |
rather than silently. |
| 3491 |
|
| 3492 |
- bpo-18492: All resources are now allowed when tests are not run by |
| 3493 |
regrtest.py. |
| 3494 |
|
| 3495 |
- bpo-21605: Added tests for Tkinter images. |
| 3496 |
|
| 3497 |
- bpo-21493: Added test for ntpath.expanduser(). Original patch by Claudiu |
| 3498 |
Popa. |
| 3499 |
|
| 3500 |
- bpo-19925: Added tests for the spwd module. Original patch by Vajrasky |
| 3501 |
Kok. |
| 3502 |
|
| 3503 |
- bpo-13355: random.triangular() no longer fails with a ZeroDivisionError |
| 3504 |
when low equals high. |
| 3505 |
|
| 3506 |
- bpo-21522: Added Tkinter tests for Listbox.itemconfigure(), |
| 3507 |
PanedWindow.paneconfigure(), and Menu.entryconfigure(). |
| 3508 |
|
| 3509 |
- bpo-20635: Added tests for Tk geometry managers. |
| 3510 |
|
| 3511 |
Build |
| 3512 |
----- |
| 3513 |
|
| 3514 |
- bpo-21811: Anticipated fixes to support OS X versions > 10.9. |
| 3515 |
|
| 3516 |
Windows |
| 3517 |
------- |
| 3518 |
|
| 3519 |
- bpo-21671: The bundled version of OpenSSL has been updated to 1.0.1h. (See |
| 3520 |
also: CVE-2014-0224) |
| 3521 |
|
| 3522 |
|
| 3523 |
What's New in Python 2.7.7 final? |
| 3524 |
================================= |
| 3525 |
|
| 3526 |
*Release date: 2014-05-31* |
| 3527 |
|
| 3528 |
Build |
| 3529 |
----- |
| 3530 |
|
| 3531 |
- bpo-21462: Build the Windows installers with OpenSSL 1.0.1g. |
| 3532 |
|
| 3533 |
- bpo-19866: Include some test data in the Windows installers, so tests |
| 3534 |
don't fail. |
| 3535 |
|
| 3536 |
|
| 3537 |
What's New in Python 2.7.7 release candidate 1? |
| 3538 |
=============================================== |
| 3539 |
|
| 3540 |
*Release date: 2014-05-17* |
| 3541 |
|
| 3542 |
Core and Builtins |
| 3543 |
----------------- |
| 3544 |
|
| 3545 |
- bpo-21350: Fix file.writelines() to accept arbitrary buffer objects, as |
| 3546 |
advertised. Patch by Brian Kearns. |
| 3547 |
|
| 3548 |
- bpo-20437: Fixed 43 potential bugs when deleting object references. |
| 3549 |
|
| 3550 |
- bpo-21134: Fix segfault when str is called on an uninitialized |
| 3551 |
UnicodeEncodeError, UnicodeDecodeError, or UnicodeTranslateError object. |
| 3552 |
|
| 3553 |
- bpo-20494: Ensure that free()d memory arenas are really released on POSIX |
| 3554 |
systems supporting anonymous memory mappings. Patch by Charles-François |
| 3555 |
Natali. |
| 3556 |
|
| 3557 |
- bpo-17825: Cursor "^" is correctly positioned for SyntaxError and |
| 3558 |
IndentationError. |
| 3559 |
|
| 3560 |
- Raise a better error when non-unicode codecs are used for a file's coding |
| 3561 |
cookie. |
| 3562 |
|
| 3563 |
- bpo-17976: Fixed potential problem with file.write() not detecting IO |
| 3564 |
error by inspecting the return value of fwrite(). Based on patches by |
| 3565 |
Jaakko Moisio and Victor Stinner. |
| 3566 |
|
| 3567 |
- bpo-14432: Generator now clears the borrowed reference to the thread |
| 3568 |
state. Fix a crash when a generator is created in a C thread that is |
| 3569 |
destroyed while the generator is still used. The issue was that a |
| 3570 |
generator contains a frame, and the frame kept a reference to the Python |
| 3571 |
state of the destroyed C thread. The crash occurs when a trace function is |
| 3572 |
setup. |
| 3573 |
|
| 3574 |
- bpo-19932: Fix typo in import.h, missing whitespaces in function |
| 3575 |
prototypes. |
| 3576 |
|
| 3577 |
- bpo-19638: Fix possible crash / undefined behaviour from huge (more than 2 |
| 3578 |
billion characters) input strings in _Py_dg_strtod. |
| 3579 |
|
| 3580 |
- bpo-12546: Allow \x00 to be used as a fill character when using str, int, |
| 3581 |
float, and complex __format__ methods. |
| 3582 |
|
| 3583 |
Library |
| 3584 |
------- |
| 3585 |
|
| 3586 |
- bpo-10744: Fix PEP 3118 format strings on ctypes objects with a nontrivial |
| 3587 |
shape. |
| 3588 |
|
| 3589 |
- bpo-7776: Backport Fix ``Host:'' header and reconnection when using |
| 3590 |
http.client.HTTPConnection.set_tunnel() from Python 3. Patch by Nikolaus |
| 3591 |
Rath. |
| 3592 |
|
| 3593 |
- bpo-21306: Backport hmac.compare_digest from Python 3. This is part of PEP |
| 3594 |
466. |
| 3595 |
|
| 3596 |
- bpo-21470: Do a better job seeding the random number generator by using |
| 3597 |
enough bytes to span the full state space of the Mersenne Twister. |
| 3598 |
|
| 3599 |
- bpo-21469: Reduced the risk of false positives in robotparser by checking |
| 3600 |
to make sure that robots.txt has been read or does not exist prior to |
| 3601 |
returning True in can_fetch(). |
| 3602 |
|
| 3603 |
- bpo-21321: itertools.islice() now releases the reference to the source |
| 3604 |
iterator when the slice is exhausted. Patch by Anton Afanasyev. |
| 3605 |
|
| 3606 |
- bpo-9291: Do not attempt to re-encode mimetype data read from registry in |
| 3607 |
ANSI mode. Initial patches by Dmitry Jemerov & Vladimir Iofik. |
| 3608 |
|
| 3609 |
- bpo-21349: Passing a memoryview to _winreg.SetValueEx now correctly raises |
| 3610 |
a TypeError where it previously crashed the interpreter. Patch by Brian |
| 3611 |
Kearns |
| 3612 |
|
| 3613 |
- bpo-21529: Fix arbitrary memory access in JSONDecoder.raw_decode with a |
| 3614 |
negative second parameter. Bug reported by Guido Vranken. (See also: |
| 3615 |
CVE-2014-4616) |
| 3616 |
|
| 3617 |
- bpo-21172: isinstance check relaxed from dict to collections.Mapping. |
| 3618 |
|
| 3619 |
- bpo-21191: In os.fdopen, never close the file descriptor when an exception |
| 3620 |
happens. |
| 3621 |
|
| 3622 |
- bpo-21149: Improved thread-safety in logging cleanup during interpreter |
| 3623 |
shutdown. Thanks to Devin Jeanpierre for the patch. |
| 3624 |
|
| 3625 |
- Fix possible overflow bug in strop.expandtabs. You shouldn't be using this |
| 3626 |
module! |
| 3627 |
|
| 3628 |
- bpo-20145: `assertRaisesRegex` now raises a TypeError if the second |
| 3629 |
argument is not a string or compiled regex. |
| 3630 |
|
| 3631 |
- bpo-21058: Fix a leak of file descriptor in tempfile.NamedTemporaryFile(), |
| 3632 |
close the file descriptor if os.fdopen() fails |
| 3633 |
|
| 3634 |
- bpo-20283: RE pattern methods now accept the string keyword parameters as |
| 3635 |
documented. The pattern and source keyword parameters are left as |
| 3636 |
deprecated aliases. |
| 3637 |
|
| 3638 |
- bpo-11599: When an external command (e.g. compiler) fails, distutils now |
| 3639 |
prints out the whole command line (instead of just the command name) if |
| 3640 |
the environment variable DISTUTILS_DEBUG is set. |
| 3641 |
|
| 3642 |
- bpo-4931: distutils should not produce unhelpful "error: None" messages |
| 3643 |
anymore. distutils.util.grok_environment_error is kept but doc-deprecated. |
| 3644 |
|
| 3645 |
- Improve the random module's default seeding to use 256 bits of entropy |
| 3646 |
from os.urandom(). This was already done for Python 3, mildly improving |
| 3647 |
security with a bigger seed space. |
| 3648 |
|
| 3649 |
- bpo-15618: Make turtle.py compatible with 'from __future__ import |
| 3650 |
unicode_literals'. Initial patch by Juancarlo Añez. |
| 3651 |
|
| 3652 |
- bpo-20501: fileinput module no longer reads whole file into memory when |
| 3653 |
using fileinput.hook_encoded. |
| 3654 |
|
| 3655 |
- bpo-6815: os.path.expandvars() now supports non-ASCII Unicode environment |
| 3656 |
variables names and values. |
| 3657 |
|
| 3658 |
- bpo-20635: Fixed grid_columnconfigure() and grid_rowconfigure() methods of |
| 3659 |
Tkinter widgets to work in wantobjects=True mode. |
| 3660 |
|
| 3661 |
- bpo-17671: Fixed a crash when use non-initialized io.BufferedRWPair. Based |
| 3662 |
on patch by Stephen Tu. |
| 3663 |
|
| 3664 |
- bpo-8478: Untokenizer.compat processes first token from iterator input. |
| 3665 |
Patch based on lines from Georg Brandl, Eric Snow, and Gareth Rees. |
| 3666 |
|
| 3667 |
- bpo-20594: Avoid name clash with the libc function posix_close. |
| 3668 |
|
| 3669 |
- bpo-19856: shutil.move() failed to move a directory to other directory on |
| 3670 |
Windows if source name ends with os.altsep. |
| 3671 |
|
| 3672 |
- bpo-14983: email.generator now always adds a line end after each MIME |
| 3673 |
boundary marker, instead of doing so only when there is an epilogue. This |
| 3674 |
fixes an RFC compliance bug and solves an issue with signed MIME parts. |
| 3675 |
|
| 3676 |
- bpo-20013: Some imap servers disconnect if the current mailbox is deleted, |
| 3677 |
and imaplib did not handle that case gracefully. Now it handles the 'bye' |
| 3678 |
correctly. |
| 3679 |
|
| 3680 |
- bpo-20426: When passing the re.DEBUG flag, re.compile() displays the debug |
| 3681 |
output every time it is called, regardless of the compilation cache. |
| 3682 |
|
| 3683 |
- bpo-20368: The null character now correctly passed from Tcl to Python (in |
| 3684 |
unicode strings only). Improved error handling in variables-related |
| 3685 |
commands. |
| 3686 |
|
| 3687 |
- bpo-20435: Fix _pyio.StringIO.getvalue() to take into account newline |
| 3688 |
translation settings. |
| 3689 |
|
| 3690 |
- bpo-20288: fix handling of invalid numeric charrefs in HTMLParser. |
| 3691 |
|
| 3692 |
- bpo-19456: ntpath.join() now joins relative paths correctly when a drive |
| 3693 |
is present. |
| 3694 |
|
| 3695 |
- bpo-8260: The read(), readline() and readlines() methods of |
| 3696 |
codecs.StreamReader returned incomplete data when were called after |
| 3697 |
readline() or read(size). Based on patch by Amaury Forgeot d'Arc. |
| 3698 |
|
| 3699 |
- bpo-20374: Fix build with GNU readline >= 6.3. |
| 3700 |
|
| 3701 |
- bpo-14548: Make multiprocessing finalizers check pid before running to |
| 3702 |
cope with possibility of gc running just after fork. (Backport from 3.x.) |
| 3703 |
|
| 3704 |
- bpo-20262: Warnings are raised now when duplicate names are added in the |
| 3705 |
ZIP file or too long ZIP file comment is truncated. |
| 3706 |
|
| 3707 |
- bpo-20270: urllib and urlparse now support empty ports. |
| 3708 |
|
| 3709 |
- bpo-20243: TarFile no longer raise ReadError when opened in write mode. |
| 3710 |
|
| 3711 |
- bpo-20245: The open functions in the tarfile module now correctly handle |
| 3712 |
empty mode. |
| 3713 |
|
| 3714 |
- bpo-20086: Restored the use of locale-independent mapping instead of |
| 3715 |
locale-dependent str.lower() in locale.normalize(). |
| 3716 |
|
| 3717 |
- bpo-20246: Fix buffer overflow in socket.recvfrom_into. |
| 3718 |
|
| 3719 |
- bpo-19082: Working SimpleXMLRPCServer and xmlrpclib examples, both in |
| 3720 |
modules and documentation. |
| 3721 |
|
| 3722 |
- bpo-13107: argparse and optparse no longer raises an exception when output |
| 3723 |
a help on environment with too small COLUMNS. Based on patch by Elazar |
| 3724 |
Gershuni. |
| 3725 |
|
| 3726 |
- bpo-20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly |
| 3727 |
asked for. |
| 3728 |
|
| 3729 |
- bpo-20072: Fixed multiple errors in tkinter with wantobjects is False. |
| 3730 |
|
| 3731 |
- bpo-1065986: pydoc can now handle unicode strings. |
| 3732 |
|
| 3733 |
- bpo-16039: CVE-2013-1752: Change use of readline in imaplib module to |
| 3734 |
limit line length. Patch by Emil Lind. |
| 3735 |
|
| 3736 |
- bpo-19422: Explicitly disallow non-SOCK_STREAM sockets in the ssl module, |
| 3737 |
rather than silently let them emit clear text data. |
| 3738 |
|
| 3739 |
- bpo-20027: Fixed locale aliases for devanagari locales. |
| 3740 |
|
| 3741 |
- bpo-20067: Tkinter variables now work when wantobjects is false. |
| 3742 |
|
| 3743 |
- bpo-19020: Tkinter now uses splitlist() instead of split() in configure |
| 3744 |
methods. |
| 3745 |
|
| 3746 |
- bpo-12226: HTTPS is now used by default when connecting to PyPI. |
| 3747 |
|
| 3748 |
- bpo-20048: Fixed ZipExtFile.peek() when it is called on the boundary of |
| 3749 |
the uncompress buffer and read() goes through more than one readbuffer. |
| 3750 |
|
| 3751 |
- bpo-20034: Updated alias mapping to most recent locale.alias file from |
| 3752 |
X.org distribution using makelocalealias.py. |
| 3753 |
|
| 3754 |
- bpo-5815: Fixed support for locales with modifiers. Fixed support for |
| 3755 |
locale encodings with hyphens. |
| 3756 |
|
| 3757 |
- bpo-20026: Fix the sqlite module to handle correctly invalid isolation |
| 3758 |
level (wrong type). |
| 3759 |
|
| 3760 |
- bpo-18829: csv.Dialect() now checks type for delimiter, escapechar and |
| 3761 |
quotechar fields. Original patch by Vajrasky Kok. |
| 3762 |
|
| 3763 |
- bpo-19855: uuid.getnode() on Unix now looks on the PATH for the |
| 3764 |
executables used to find the mac address, with /sbin and /usr/sbin as |
| 3765 |
fallbacks. |
| 3766 |
|
| 3767 |
- bpo-20007: HTTPResponse.read(0) no more prematurely closes connection. |
| 3768 |
Original patch by Simon Sapin. |
| 3769 |
|
| 3770 |
- bpo-19912: Fixed numerous bugs in ntpath.splitunc(). |
| 3771 |
|
| 3772 |
- bpo-19623: Fixed writing to unseekable files in the aifc module. Fixed |
| 3773 |
writing 'ulaw' (lower case) compressed AIFC files. |
| 3774 |
|
| 3775 |
- bpo-17919: select.poll.register() again works with poll.POLLNVAL on AIX. |
| 3776 |
Fixed integer overflow in the eventmask parameter. |
| 3777 |
|
| 3778 |
- bpo-17200: telnetlib's read_until and expect timeout was broken by the fix |
| 3779 |
to Issue #14635 in Python 2.7.4 to be interpreted as milliseconds instead |
| 3780 |
of seconds when the platform supports select.poll (ie: everywhere). It is |
| 3781 |
now treated as seconds once again. |
| 3782 |
|
| 3783 |
- bpo-19099: The struct module now supports Unicode format strings. |
| 3784 |
|
| 3785 |
- bpo-19878: Fix segfault in bz2 module after calling __init__ twice with |
| 3786 |
non-existent filename. Initial patch by Vajrasky Kok. |
| 3787 |
|
| 3788 |
- bpo-16373: Prevent infinite recursion for ABC Set class comparisons. |
| 3789 |
|
| 3790 |
- bpo-19138: doctest's IGNORE_EXCEPTION_DETAIL now allows a match when no |
| 3791 |
exception detail exists (no colon following the exception's name, or a |
| 3792 |
colon does follow but no text follows the colon). |
| 3793 |
|
| 3794 |
- bpo-16231: Fixed pickle.Pickler to only fallback to its default pickling |
| 3795 |
behaviour when Pickler.persistent_id returns None, but not for any other |
| 3796 |
false values. This allows false values other than None to be used as |
| 3797 |
persistent IDs. This behaviour is consistent with cPickle. |
| 3798 |
|
| 3799 |
- bpo-11508: Fixed uuid.getnode() and uuid.uuid1() on environment with |
| 3800 |
virtual interface. Original patch by Kent Frazier. |
| 3801 |
|
| 3802 |
- bpo-11489: JSON decoder now accepts lone surrogates. |
| 3803 |
|
| 3804 |
- Fix test.test_support.bind_port() to not cause an error when Python was |
| 3805 |
compiled on a system with SO_REUSEPORT defined in the headers but run on a |
| 3806 |
system with an OS kernel that does not support that new socket option. |
| 3807 |
|
| 3808 |
- bpo-19633: Fixed writing not compressed 16- and 32-bit wave files on |
| 3809 |
big-endian platforms. |
| 3810 |
|
| 3811 |
- bpo-19449: in csv's writerow, handle non-string keys when generating the |
| 3812 |
error message that certain keys are not in the 'fieldnames' list. |
| 3813 |
|
| 3814 |
- bpo-12853: Fix NameError in distutils.command.upload. |
| 3815 |
|
| 3816 |
- bpo-19523: Closed FileHandler leak which occurred when delay was set. |
| 3817 |
|
| 3818 |
- bpo-1575020: Fixed support of 24-bit wave files on big-endian platforms. |
| 3819 |
|
| 3820 |
- bpo-19480: HTMLParser now accepts all valid start-tag names as defined by |
| 3821 |
the HTML5 standard. |
| 3822 |
|
| 3823 |
- bpo-17827: Add the missing documentation for ``codecs.encode`` and |
| 3824 |
``codecs.decode``. |
| 3825 |
|
| 3826 |
- bpo-6157: Fixed Tkinter.Text.debug(). Original patch by Guilherme Polo. |
| 3827 |
|
| 3828 |
- bpo-6160: The bbox() method of tkinter.Spinbox now returns a tuple of |
| 3829 |
integers instead of a string. Based on patch by Guilherme Polo. |
| 3830 |
|
| 3831 |
- bpo-19286: Directories in ``package_data`` are no longer added to the |
| 3832 |
filelist, preventing failure outlined in the ticket. |
| 3833 |
|
| 3834 |
- bpo-6676: Ensure a meaningful exception is raised when attempting to parse |
| 3835 |
more than one XML document per pyexpat xmlparser instance. (Original |
| 3836 |
patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with suggested |
| 3837 |
wording by David Gutteridge) |
| 3838 |
|
| 3839 |
- bpo-21311: Avoid exception in _osx_support with non-standard compiler |
| 3840 |
configurations. Patch by John Szakmeister. |
| 3841 |
|
| 3842 |
Tools/Demos |
| 3843 |
----------- |
| 3844 |
|
| 3845 |
- bpo-3561: The Windows installer now has an option, off by default, for |
| 3846 |
placing the Python installation into the system "Path" environment |
| 3847 |
variable. This was backported from Python 3.3. |
| 3848 |
|
| 3849 |
- Add support for ``yield from`` to 2to3. |
| 3850 |
|
| 3851 |
- Add support for the PEP 465 matrix multiplication operator to 2to3. |
| 3852 |
|
| 3853 |
- bpo-19936: Added executable bits or shebang lines to Python scripts which |
| 3854 |
requires them. Disable executable bits and shebang lines in test and |
| 3855 |
benchmark files in order to prevent using a random system python, and in |
| 3856 |
source files of modules which don't provide command line interface. |
| 3857 |
|
| 3858 |
IDLE |
| 3859 |
---- |
| 3860 |
|
| 3861 |
- bpo-18104: Add idlelib/idle_test/htest.py with a few sample tests to begin |
| 3862 |
consolidating and improving human-validated tests of Idle. Change other |
| 3863 |
files as needed to work with htest. Running the module as __main__ runs |
| 3864 |
all tests. |
| 3865 |
|
| 3866 |
- bpo-21139: Change default paragraph width to 72, the PEP 8 recommendation. |
| 3867 |
|
| 3868 |
- bpo-21284: Paragraph reformat test passes after user changes reformat |
| 3869 |
width. |
| 3870 |
|
| 3871 |
- bpo-20406: Use Python application icons for Idle window title bars. Patch |
| 3872 |
mostly by Serhiy Storchaka. |
| 3873 |
|
| 3874 |
- bpo-21029: Occurrences of "print" are now consistently colored as being a |
| 3875 |
keyword (the colorizer doesn't know if print functions are enabled in the |
| 3876 |
source). |
| 3877 |
|
| 3878 |
- bpo-17721: Remove non-functional configuration dialog help button until we |
| 3879 |
make it actually gives some help when clicked. Patch by Guilherme Simões. |
| 3880 |
|
| 3881 |
- bpo-17390: Add Python version to Idle editor window title bar. Original |
| 3882 |
patches by Edmond Burnett and Kent Johnson. |
| 3883 |
|
| 3884 |
- bpo-20058: sys.stdin.readline() in IDLE now always returns only one line. |
| 3885 |
|
| 3886 |
- bpo-19481: print() of unicode, str or bytearray subclass instance in IDLE |
| 3887 |
no more hangs. |
| 3888 |
|
| 3889 |
- bpo-18270: Prevent possible IDLE AttributeError on OS X when no initial |
| 3890 |
shell window is present. |
| 3891 |
|
| 3892 |
- bpo-17654: Ensure IDLE menus are customized properly on OS X for |
| 3893 |
non-framework builds and for all variants of Tk. |
| 3894 |
|
| 3895 |
Tests |
| 3896 |
----- |
| 3897 |
|
| 3898 |
- bpo-17752: Fix distutils tests when run from the installed location. |
| 3899 |
|
| 3900 |
- bpo-18604: Consolidated checks for GUI availability. All platforms now at |
| 3901 |
least check whether Tk can be instantiated when the GUI resource is |
| 3902 |
requested. |
| 3903 |
|
| 3904 |
- bpo-20946: Correct alignment assumptions of some ctypes tests. |
| 3905 |
|
| 3906 |
- bpo-20743: Fix a reference leak in test_tcl. |
| 3907 |
|
| 3908 |
- bpo-20510: Rewrote test_exit in test_sys to match existing comments, use |
| 3909 |
modern unittest features, and use helpers from test.script_helper instead |
| 3910 |
of using subprocess directly. Initial patch by Gareth Rees. |
| 3911 |
|
| 3912 |
- bpo-20532: Tests which use _testcapi now are marked as CPython only. |
| 3913 |
|
| 3914 |
- bpo-19920: Added tests for TarFile.list(). Based on patch by Vajrasky |
| 3915 |
Kok. |
| 3916 |
|
| 3917 |
- bpo-19990: Added tests for the imghdr module. Based on patch by Claudiu |
| 3918 |
Popa. |
| 3919 |
|
| 3920 |
- bpo-19804: The test_find_mac test in test_uuid is now skipped if the |
| 3921 |
ifconfig executable is not available. |
| 3922 |
|
| 3923 |
- bpo-19886: Use better estimated memory requirements for bigmem tests. |
| 3924 |
|
| 3925 |
- Backported tests for Tkinter variables. |
| 3926 |
|
| 3927 |
- bpo-19320: test_tcl no longer fails when wantobjects is false. |
| 3928 |
|
| 3929 |
- bpo-19683: Removed empty tests from test_minidom. Initial patch by |
| 3930 |
Ajitesh Gupta. |
| 3931 |
|
| 3932 |
- bpo-19928: Implemented a test for repr() of cell objects. |
| 3933 |
|
| 3934 |
- bpo-19595: Re-enabled a long-disabled test in test_winsound. (See also: |
| 3935 |
bpo-19987) |
| 3936 |
|
| 3937 |
- bpo-19588: Fixed tests in test_random that were silently skipped most of |
| 3938 |
the time. Patch by Julian Gindi. |
| 3939 |
|
| 3940 |
- bpo-17883: Tweak test_tcl testLoadWithUNC to skip the test in the event of |
| 3941 |
a permission error on Windows and to properly report other skip |
| 3942 |
conditions. |
| 3943 |
|
| 3944 |
- bpo-17883: Backported _is_gui_available() in test.test_support to avoid |
| 3945 |
hanging Windows buildbots on test_ttk_guionly. |
| 3946 |
|
| 3947 |
- bpo-18702: All skipped tests now reported as skipped. (See also: |
| 3948 |
bpo-19572) |
| 3949 |
|
| 3950 |
- bpo-19085: Added basic tests for all tkinter widget options. |
| 3951 |
|
| 3952 |
- bpo-20605: Make test_socket getaddrinfo OS X segfault test more robust. |
| 3953 |
|
| 3954 |
- bpo-20939: Avoid various network test failures due to new redirect of |
| 3955 |
http://www.python.org/ to https://www.python.org: use |
| 3956 |
http://www.example.com instead. |
| 3957 |
|
| 3958 |
- bpo-21093: Prevent failures of ctypes test_macholib on OS X if a copy of |
| 3959 |
libz exists in $HOME/lib or /usr/local/lib. |
| 3960 |
|
| 3961 |
Build |
| 3962 |
----- |
| 3963 |
|
| 3964 |
- bpo-21285: Refactor and fix curses configure check to always search in a |
| 3965 |
ncursesw directory. |
| 3966 |
|
| 3967 |
Documentation |
| 3968 |
------------- |
| 3969 |
|
| 3970 |
- bpo-20255: Update the about and bugs pages. |
| 3971 |
|
| 3972 |
- bpo-18840: Introduce the json module in the tutorial, and de-emphasize the |
| 3973 |
pickle module. |
| 3974 |
|
| 3975 |
- bpo-19795: Improved markup of True/False constants. |
| 3976 |
|
| 3977 |
Windows |
| 3978 |
------- |
| 3979 |
|
| 3980 |
- bpo-21303: Updated the version of Tcl/Tk included in the installer from |
| 3981 |
8.5.2 to 8.5.15. (See also: bpo-20565) |
| 3982 |
|
| 3983 |
macOS |
| 3984 |
----- |
| 3985 |
|
| 3986 |
- As of 2.7.8, the 32-bit-only installer will support OS X 10.5 and later |
| 3987 |
systems as is currently done for Python 3.x installers. For 2.7.7 only, we |
| 3988 |
will provide three installers: the legacy deprecated 10.3+ 32-bit-only |
| 3989 |
format; the newer 10.5+ 32-bit-only format; and the unchanged 10.6+ |
| 3990 |
64-/32-bit format. Although binary installers will no longer be available |
| 3991 |
from python.org as of 2.7.8, it will still be possible to build from |
| 3992 |
source on 10.3.9 and 10.4 systems if necessary. See |
| 3993 |
Mac/BuildScript/README.txt for more information. |
| 3994 |
|
| 3995 |
|
| 3996 |
What's New in Python 2.7.6 final? |
| 3997 |
================================= |
| 3998 |
|
| 3999 |
*Release date: 2013-11-10* |
| 4000 |
|
| 4001 |
Library |
| 4002 |
------- |
| 4003 |
|
| 4004 |
- bpo-19435: Fix directory traversal attack on CGIHttpRequestHandler. |
| 4005 |
|
| 4006 |
IDLE |
| 4007 |
---- |
| 4008 |
|
| 4009 |
- bpo-19426: Fixed the opening of Python source file with specified |
| 4010 |
encoding. |
| 4011 |
|
| 4012 |
Tests |
| 4013 |
----- |
| 4014 |
|
| 4015 |
- bpo-19457: Fixed xmlcharrefreplace tests on wide build when tests are |
| 4016 |
loaded from .py[co] files. |
| 4017 |
|
| 4018 |
Build |
| 4019 |
----- |
| 4020 |
|
| 4021 |
- bpo-15663: Revert OS X installer built-in Tcl/Tk support for 2.7.6. Some |
| 4022 |
third-party projects, such as Matplotlib and PIL/Pillow, depended on being |
| 4023 |
able to build with Tcl and Tk frameworks in /Library/Frameworks. |
| 4024 |
|
| 4025 |
|
| 4026 |
What's New in Python 2.7.6 release candidate 1? |
| 4027 |
=============================================== |
| 4028 |
|
| 4029 |
*Release date: 2013-10-26* |
| 4030 |
|
| 4031 |
Core and Builtins |
| 4032 |
----------------- |
| 4033 |
|
| 4034 |
- bpo-18603: Ensure that PyOS_mystricmp and PyOS_mystrnicmp are in the |
| 4035 |
Python executable and not removed by the linker's optimizer. |
| 4036 |
|
| 4037 |
- bpo-19279: UTF-7 decoder no more produces illegal unicode strings. |
| 4038 |
|
| 4039 |
- bpo-18739: Fix an inconsistency between math.log(n) and math.log(long(n)); |
| 4040 |
the results could be off from one another by a ulp or two. |
| 4041 |
|
| 4042 |
- bpo-13461: Fix a crash in the "replace" error handler on 64-bit platforms. |
| 4043 |
Patch by Yogesh Chaudhari. |
| 4044 |
|
| 4045 |
- bpo-15866: The xmlcharrefreplace error handler no more produces two XML |
| 4046 |
entities for a non-BMP character on narrow build. |
| 4047 |
|
| 4048 |
- bpo-18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise |
| 4049 |
OverflowError when an argument of %c format is out of range. |
| 4050 |
|
| 4051 |
- bpo-18137: Detect integer overflow on precision in float.__format__() and |
| 4052 |
complex.__format__(). |
| 4053 |
|
| 4054 |
- bpo-18038: SyntaxError raised during compilation sources with illegal |
| 4055 |
encoding now always contains an encoding name. |
| 4056 |
|
| 4057 |
- bpo-18019: Fix crash in the repr of dictionaries containing their own |
| 4058 |
views. |
| 4059 |
|
| 4060 |
- bpo-18427: str.replace could crash the interpreter with huge strings. |
| 4061 |
|
| 4062 |
Library |
| 4063 |
------- |
| 4064 |
|
| 4065 |
- bpo-19393: Fix symtable.symtable function to not be confused when there |
| 4066 |
are functions or classes named "top". |
| 4067 |
|
| 4068 |
- bpo-19327: Fixed the working of regular expressions with too big charset. |
| 4069 |
|
| 4070 |
- bpo-19350: Increasing the test coverage of macurl2path. Patch by Colin |
| 4071 |
Williams. |
| 4072 |
|
| 4073 |
- bpo-19352: Fix unittest discovery when a module can be reached through |
| 4074 |
several paths (e.g. under Debian/Ubuntu with virtualenv). |
| 4075 |
|
| 4076 |
- bpo-15207: Fix mimetypes to read from correct part of Windows registry |
| 4077 |
Original patch by Dave Chambers |
| 4078 |
|
| 4079 |
- bpo-8964: fix platform._sys_version to handle IronPython 2.6+. Patch by |
| 4080 |
Martin Matusiak. |
| 4081 |
|
| 4082 |
- bpo-16038: CVE-2013-1752: ftplib: Limit amount of data read by limiting |
| 4083 |
the call to readline(). Original patch by Michał Jastrzębski and |
| 4084 |
Giampaolo Rodola. |
| 4085 |
|
| 4086 |
- bpo-19276: Fixed the wave module on 64-bit big-endian platforms. |
| 4087 |
|
| 4088 |
- bpo-18458: Prevent crashes with newer versions of libedit. Its readline |
| 4089 |
emulation has changed from 0-based indexing to 1-based like gnu readline. |
| 4090 |
Original patch by Ronald Oussoren. |
| 4091 |
|
| 4092 |
- bpo-18919: If the close() method of a writer in the sunau or wave module |
| 4093 |
failed, second invocation of close() and destructor no more raise an |
| 4094 |
exception. Second invocation of close() on sunau writer now has no |
| 4095 |
effects. The aifc module now accepts lower case of names of the 'ulaw' and |
| 4096 |
'alaw' codecs. |
| 4097 |
|
| 4098 |
- bpo-19131: The aifc module now correctly reads and writes sampwidth of |
| 4099 |
compressed streams. |
| 4100 |
|
| 4101 |
- bpo-19158: A rare race in BoundedSemaphore could allow .release() too |
| 4102 |
often. |
| 4103 |
|
| 4104 |
- bpo-18037: 2to3 now escapes '\u' and '\U' in native strings. |
| 4105 |
|
| 4106 |
- bpo-19137: The pprint module now correctly formats empty set and frozenset |
| 4107 |
and instances of set and frozenset subclasses. |
| 4108 |
|
| 4109 |
- bpo-16040: CVE-2013-1752: nntplib: Limit maximum line lengths to 2048 to |
| 4110 |
prevent readline() calls from consuming too much memory. Patch by Jyrki |
| 4111 |
Pulliainen. |
| 4112 |
|
| 4113 |
- bpo-12641: Avoid passing "-mno-cygwin" to the mingw32 compiler, except |
| 4114 |
when necessary. Patch by Oscar Benjamin. |
| 4115 |
|
| 4116 |
- Properly initialize all fields of a SSL object after allocation. |
| 4117 |
|
| 4118 |
- bpo-4366: Fix building extensions on all platforms when --enable-shared is |
| 4119 |
used. |
| 4120 |
|
| 4121 |
- bpo-18950: Fix miscellaneous bugs in the sunau module. |
| 4122 |
Au_read.readframes() now updates current file position and reads correct |
| 4123 |
number of frames from multichannel stream. Au_write.writeframesraw() now |
| 4124 |
correctly updates current file position. Au_read and Au_write now |
| 4125 |
correctly work with file object if start file position is not a zero. |
| 4126 |
|
| 4127 |
- bpo-18050: Fixed an incompatibility of the re module with Python 2.7.3 and |
| 4128 |
older binaries. |
| 4129 |
|
| 4130 |
- bpo-19037: The mailbox module now makes all changes to maildir files |
| 4131 |
before moving them into place, to avoid race conditions with other |
| 4132 |
programs that may be accessing the maildir directory. |
| 4133 |
|
| 4134 |
- bpo-14984: On POSIX systems, when netrc is called without a filename |
| 4135 |
argument (and therefore is reading the user's $HOME/.netrc file), it now |
| 4136 |
enforces the same security rules as typical ftp clients: the .netrc file |
| 4137 |
must be owned by the user that owns the process and must not be readable |
| 4138 |
by any other user. |
| 4139 |
|
| 4140 |
- bpo-17324: Fix http.server's request handling case on trailing '/'. Patch |
| 4141 |
contributed by Vajrasky Kok. |
| 4142 |
|
| 4143 |
- bpo-19018: The heapq.merge() function no longer suppresses IndexError in |
| 4144 |
the underlying iterables. |
| 4145 |
|
| 4146 |
- bpo-18784: The uuid module no more attempts to load libc via ctypes.CDLL, |
| 4147 |
if all necessary functions are already found in libuuid. Patch by Evgeny |
| 4148 |
Sologubov. |
| 4149 |
|
| 4150 |
- bpo-14971: unittest test discovery no longer gets confused when a function |
| 4151 |
has a different __name__ than its name in the TestCase class dictionary. |
| 4152 |
|
| 4153 |
- bpo-18672: Fixed format specifiers for Py_ssize_t in debugging output in |
| 4154 |
the _sre module. |
| 4155 |
|
| 4156 |
- bpo-18830: inspect.getclasstree() no more produces duplicated entries even |
| 4157 |
when input list contains duplicates. |
| 4158 |
|
| 4159 |
- bpo-18909: Fix _tkinter.tkapp.interpaddr() on Windows 64-bit, don't cast |
| 4160 |
64-bit pointer to long (32 bits). |
| 4161 |
|
| 4162 |
- bpo-18876: The FileIO.mode attribute now better reflects the actual mode |
| 4163 |
under which the file was opened. Patch by Erik Bray. |
| 4164 |
|
| 4165 |
- bpo-18851: Avoid a double close of subprocess pipes when the child process |
| 4166 |
fails starting. |
| 4167 |
|
| 4168 |
- bpo-18418: After fork(), reinit all threads states, not only active ones. |
| 4169 |
Patch by A. Jesse Jiryu Davis. |
| 4170 |
|
| 4171 |
- bpo-11973: Fix a problem in kevent. The flags and fflags fields are now |
| 4172 |
properly handled as unsigned. |
| 4173 |
|
| 4174 |
- bpo-16809: Fixed some tkinter incompatibilities with Tcl/Tk 8.6. |
| 4175 |
|
| 4176 |
- bpo-16809: Tkinter's splitlist() and split() methods now accept Tcl_Obj |
| 4177 |
argument. |
| 4178 |
|
| 4179 |
- bpo-17119: Fixed integer overflows when processing large Unicode strings |
| 4180 |
and tuples in the tkinter module. |
| 4181 |
|
| 4182 |
- bpo-15233: Python now guarantees that callables registered with the atexit |
| 4183 |
module will be called in a deterministic order. |
| 4184 |
|
| 4185 |
- bpo-18747: Re-seed OpenSSL's pseudo-random number generator after fork. A |
| 4186 |
pthread_atfork() parent handler is used to seed the PRNG with pid, time |
| 4187 |
and some stack data. |
| 4188 |
|
| 4189 |
- bpo-8865: Concurrent invocation of select.poll.poll() now raises a |
| 4190 |
RuntimeError exception. Patch by Christian Schubert. |
| 4191 |
|
| 4192 |
- bpo-13461: Fix a crash in the TextIOWrapper.tell method on 64-bit |
| 4193 |
platforms. Patch by Yogesh Chaudhari. |
| 4194 |
|
| 4195 |
- bpo-18777: The ssl module now uses the new CRYPTO_THREADID API of OpenSSL |
| 4196 |
1.0.0+ instead of the deprecated CRYPTO id callback function. |
| 4197 |
|
| 4198 |
- bpo-18768: Correct doc string of RAND_edg(). Patch by Vajrasky Kok. |
| 4199 |
|
| 4200 |
- bpo-18178: Fix ctypes on BSD. dlmalloc.c was compiled twice which broke |
| 4201 |
malloc weak symbols. |
| 4202 |
|
| 4203 |
- bpo-18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes inside |
| 4204 |
subjectAltName correctly. Formerly the module has used OpenSSL's |
| 4205 |
GENERAL_NAME_print() function to get the string representation of ASN.1 |
| 4206 |
strings for ``rfc822Name`` (email), ``dNSName`` (DNS) and |
| 4207 |
``uniformResourceIdentifier`` (URI). |
| 4208 |
|
| 4209 |
- bpo-18756: Improve error reporting in os.urandom() when the failure is due |
| 4210 |
to something else than /dev/urandom not existing (for example, exhausting |
| 4211 |
the file descriptor limit). |
| 4212 |
|
| 4213 |
- Fix tkinter regression introduced by the security fix in issue #16248. |
| 4214 |
|
| 4215 |
- bpo-18676: Change 'positive' to 'non-negative' in queue.py put and get |
| 4216 |
docstrings and ValueError messages. Patch by Zhongyue Luo |
| 4217 |
|
| 4218 |
- bpo-17998: Fix an internal error in regular expression engine. |
| 4219 |
|
| 4220 |
- bpo-17557: Fix os.getgroups() to work with the modified behavior of |
| 4221 |
getgroups(2) on OS X 10.8. Original patch by Mateusz Lenik. |
| 4222 |
|
| 4223 |
- bpo-18455: multiprocessing should not retry connect() with same socket. |
| 4224 |
|
| 4225 |
- bpo-18513: Fix behaviour of cmath.rect w.r.t. signed zeros on OS X 10.8 + |
| 4226 |
gcc. |
| 4227 |
|
| 4228 |
- bpo-18101: Tcl.split() now process Unicode strings nested in a tuple as it |
| 4229 |
do with byte strings. |
| 4230 |
|
| 4231 |
- bpo-18347: ElementTree's html serializer now preserves the case of closing |
| 4232 |
tags. |
| 4233 |
|
| 4234 |
- bpo-17261: Ensure multiprocessing's proxies use proper address. |
| 4235 |
|
| 4236 |
- bpo-17097: Make multiprocessing ignore EINTR. |
| 4237 |
|
| 4238 |
- bpo-18155: The csv module now correctly handles csv files that use a |
| 4239 |
delimiter character that has a special meaning in regexes, instead of |
| 4240 |
throwing an exception. |
| 4241 |
|
| 4242 |
- bpo-18135: ssl.SSLSocket.write() now raises an OverflowError if the input |
| 4243 |
string in longer than 2 gigabytes. The ssl module does not support partial |
| 4244 |
write. |
| 4245 |
|
| 4246 |
- bpo-18167: cgi.FieldStorage no longer fails to handle multipart/form-data |
| 4247 |
when \r\n appears at end of 65535 bytes without other newlines. |
| 4248 |
|
| 4249 |
- bpo-17403: urllib.parse.robotparser normalizes the urls before adding to |
| 4250 |
ruleline. This helps in handling certain types invalid urls in a |
| 4251 |
conservative manner. Patch contributed by Mher Movsisyan. |
| 4252 |
|
| 4253 |
- Implement inequality on weakref.WeakSet. |
| 4254 |
|
| 4255 |
- bpo-17981: Closed socket on error in SysLogHandler. |
| 4256 |
|
| 4257 |
- bpo-18015: Fix unpickling of 2.7.3 and 2.7.4 namedtuples. |
| 4258 |
|
| 4259 |
- bpo-17754: Make ctypes.util.find_library() independent of the locale. |
| 4260 |
|
| 4261 |
- Fix typos in the multiprocessing module. |
| 4262 |
|
| 4263 |
- bpo-17269: Workaround for socket.getaddrinfo crash on MacOS X with port |
| 4264 |
None or "0" and flags AI_NUMERICSERV. |
| 4265 |
|
| 4266 |
- bpo-18080: When building a C extension module on OS X, if the compiler is |
| 4267 |
overridden with the CC environment variable, use the new compiler as the |
| 4268 |
default for linking if LDSHARED is not also overridden. This restores |
| 4269 |
Distutils behavior introduced in 2.7.3 and inadvertently dropped in 2.7.4. |
| 4270 |
|
| 4271 |
- bpo-18071: C extension module builds on OS X could fail with TypeError if |
| 4272 |
the Xcode command line tools were not installed. |
| 4273 |
|
| 4274 |
- bpo-18113: Fixed a refcount leak in the curses.panel module's |
| 4275 |
set_userptr() method. Reported by Atsuo Ishimoto. |
| 4276 |
|
| 4277 |
- bpo-18849: Fixed a Windows-specific tempfile bug where collision with an |
| 4278 |
existing directory caused mkstemp and related APIs to fail instead of |
| 4279 |
retrying. Report and fix by Vlad Shcherbina. |
| 4280 |
|
| 4281 |
- bpo-19400: Prevent extension module build failures with Xcode 5 on OS X |
| 4282 |
10.8+ when using a universal Python that included a PPC architecture, such |
| 4283 |
as with a python.org 32-bit-only binary installer. |
| 4284 |
|
| 4285 |
Tools/Demos |
| 4286 |
----------- |
| 4287 |
|
| 4288 |
- bpo-18873: 2to3 and the findnocoding.py script now detect Python source |
| 4289 |
code encoding only in comment lines. |
| 4290 |
|
| 4291 |
- bpo-18817: Fix a resource warning in Lib/aifc.py demo. |
| 4292 |
|
| 4293 |
- bpo-18439: Make patchcheck work on Windows for ACKS, NEWS. |
| 4294 |
|
| 4295 |
- bpo-18448: Fix a typo in Demo/newmetaclasses/Eiffel.py. |
| 4296 |
|
| 4297 |
- bpo-12990: The "Python Launcher" on OSX could not launch python scripts |
| 4298 |
that have paths that include wide characters. |
| 4299 |
|
| 4300 |
Build |
| 4301 |
----- |
| 4302 |
|
| 4303 |
- bpo-16067: Add description into MSI file to replace installer's temporary |
| 4304 |
name. |
| 4305 |
|
| 4306 |
- bpo-18256: Compilation fix for recent AIX releases. Patch by David |
| 4307 |
Edelsohn. |
| 4308 |
|
| 4309 |
- bpo-18098: The deprecated OS X Build Applet.app fails to build on OS X |
| 4310 |
10.8 systems because the Apple-deprecated QuickDraw headers have been |
| 4311 |
removed from Xcode 4. Skip building it in this case. |
| 4312 |
|
| 4313 |
- bpo-1584: Provide options to override default search paths for Tcl and Tk |
| 4314 |
when building _tkinter. |
| 4315 |
|
| 4316 |
- bpo-15663: Tcl/Tk 8.5.15 is now included with the OS X 10.6+ 64-bit/32-bit |
| 4317 |
installer for 10.6+. It is no longer necessary to install a third-party |
| 4318 |
version of Tcl/Tk 8.5 to work around the problems in the Apple-supplied |
| 4319 |
Tcl/Tk 8.5 shipped in OS X 10.6 and later releases. |
| 4320 |
|
| 4321 |
- bpo-19019: Change the OS X installer build script to use CFLAGS instead of |
| 4322 |
OPT for special build options. By setting OPT, some compiler-specific |
| 4323 |
options like -fwrapv were overridden and thus not used, which could result |
| 4324 |
in broken interpreters when building with clang. |
| 4325 |
|
| 4326 |
IDLE |
| 4327 |
---- |
| 4328 |
|
| 4329 |
- bpo-18873: IDLE now detects Python source code encoding only in comment |
| 4330 |
lines. |
| 4331 |
|
| 4332 |
- bpo-18988: The "Tab" key now works when a word is already autocompleted. |
| 4333 |
|
| 4334 |
- bpo-18489: Add tests for SearchEngine. Original patch by Phil Webster. |
| 4335 |
|
| 4336 |
- bpo-18429: Format / Format Paragraph, now works when comment blocks are |
| 4337 |
selected. As with text blocks, this works best when the selection only |
| 4338 |
includes complete lines. |
| 4339 |
|
| 4340 |
- bpo-18226: Add docstrings and unittests for FormatParagraph.py. Original |
| 4341 |
patches by Todd Rovito and Phil Webster. |
| 4342 |
|
| 4343 |
- bpo-18279: Format - Strip trailing whitespace no longer marks a file as |
| 4344 |
changed when it has not been changed. This fix followed the addition of a |
| 4345 |
test file originally written by Phil Webster (the issue's main goal). |
| 4346 |
|
| 4347 |
- bpo-18539: Calltips now work for float default arguments. |
| 4348 |
|
| 4349 |
- bpo-7136: In the Idle File menu, "New Window" is renamed "New File". Patch |
| 4350 |
by Tal Einat, Roget Serwy, and Todd Rovito. |
| 4351 |
|
| 4352 |
- bpo-8515: Set __file__ when run file in IDLE. Initial patch by Bruce |
| 4353 |
Frederiksen. |
| 4354 |
|
| 4355 |
- bpo-5492: Avoid traceback when exiting IDLE caused by a race condition. |
| 4356 |
|
| 4357 |
- bpo-17511: Keep IDLE find dialog open after clicking "Find Next". Original |
| 4358 |
patch by Sarah K. |
| 4359 |
|
| 4360 |
- bpo-15392: Create a unittest framework for IDLE. Preliminary patch by |
| 4361 |
Rajagopalasarma Jayakrishnan See Lib/idlelib/idle_test/README.txt for how |
| 4362 |
to run Idle tests. |
| 4363 |
|
| 4364 |
- bpo-14146: Highlight source line while debugging on Windows. |
| 4365 |
|
| 4366 |
- bpo-17532: Always include Options menu for IDLE on OS X. Patch by |
| 4367 |
Guilherme Simões. |
| 4368 |
|
| 4369 |
Tests |
| 4370 |
----- |
| 4371 |
|
| 4372 |
- bpo-18919: Added tests for the sunau module. Unified and extended tests |
| 4373 |
for audio modules: aifc, sunau and wave. |
| 4374 |
|
| 4375 |
- bpo-18792: Use "127.0.0.1" or "::1" instead of "localhost" as much as |
| 4376 |
possible, since "localhost" goes through a DNS lookup under recent Windows |
| 4377 |
versions. |
| 4378 |
|
| 4379 |
- bpo-18357: add tests for dictview set difference. Patch by Fraser |
| 4380 |
Tweedale. |
| 4381 |
|
| 4382 |
- bpo-11185: Fix test_wait4 under AIX. Patch by Sébastien Sablé. |
| 4383 |
|
| 4384 |
- bpo-18094: test_uuid no more reports skipped tests as passed. |
| 4385 |
|
| 4386 |
- bpo-11995: test_pydoc doesn't import all sys.path modules anymore. |
| 4387 |
|
| 4388 |
Documentation |
| 4389 |
------------- |
| 4390 |
|
| 4391 |
- bpo-18758: Fixed and improved cross-references. |
| 4392 |
|
| 4393 |
- bpo-18718: datetime documentation contradictory on leap second support. |
| 4394 |
|
| 4395 |
- bpo-17701: Improving strftime documentation. |
| 4396 |
|
| 4397 |
- bpo-17844: Refactor a documentation of Python specific encodings. Add |
| 4398 |
links to encoders and decoders for binary-to-binary codecs. |
| 4399 |
|
| 4400 |
|
| 4401 |
What's New in Python 2.7.5 final? |
| 4402 |
================================= |
| 4403 |
|
| 4404 |
*Release date: 2013-05-12* |
| 4405 |
|
| 4406 |
Core and Builtins |
| 4407 |
----------------- |
| 4408 |
|
| 4409 |
- bpo-15535: Fixed regression in the pickling of named tuples by removing |
| 4410 |
the __dict__ property introduced in 2.7.4. |
| 4411 |
|
| 4412 |
- bpo-17857: Prevent build failures with pre-3.5.0 versions of sqlite3, such |
| 4413 |
as was shipped with Centos 5 and Mac OS X 10.4. |
| 4414 |
|
| 4415 |
- bpo-17703: Fix a regression where an illegal use of Py_DECREF() after |
| 4416 |
interpreter finalization can cause a crash. |
| 4417 |
|
| 4418 |
- bpo-16447: Fixed potential segmentation fault when setting __name__ on a |
| 4419 |
class. |
| 4420 |
|
| 4421 |
- bpo-17610: Don't rely on non-standard behavior of the C qsort() function. |
| 4422 |
|
| 4423 |
Library |
| 4424 |
------- |
| 4425 |
|
| 4426 |
- bpo-17979: Fixed the re module in build with --disable-unicode. |
| 4427 |
|
| 4428 |
- bpo-17606: Fixed support of encoded byte strings in the XMLGenerator |
| 4429 |
.characters() and ignorableWhitespace() methods. Original patch by |
| 4430 |
Sebastian Ortiz Vasquez. |
| 4431 |
|
| 4432 |
- bpo-16601: Restarting iteration over tarfile no more continues from where |
| 4433 |
it left off. Patch by Michael Birtwell. |
| 4434 |
|
| 4435 |
- bpo-16584: in filecomp._cmp, catch IOError as well as os.error. Patch by |
| 4436 |
Till Maas. |
| 4437 |
|
| 4438 |
- bpo-17926: Fix dbm.__contains__ on 64-bit big-endian machines. |
| 4439 |
|
| 4440 |
- bpo-19267: Fix support of multibyte encoding (ex: UTF-16) in the logging |
| 4441 |
module. |
| 4442 |
|
| 4443 |
- bpo-17918: When using SSLSocket.accept(), if the SSL handshake failed on |
| 4444 |
the new socket, the socket would linger indefinitely. Thanks to Peter |
| 4445 |
Saveliev for reporting. |
| 4446 |
|
| 4447 |
- bpo-17289: The readline module now plays nicer with external modules or |
| 4448 |
applications changing the rl_completer_word_break_characters global |
| 4449 |
variable. Initial patch by Bradley Froehle. |
| 4450 |
|
| 4451 |
- bpo-12181: select module: Fix struct kevent definition on OpenBSD 64-bit |
| 4452 |
platforms. Patch by Federico Schwindt. |
| 4453 |
|
| 4454 |
- bpo-14173: Avoid crashing when reading a signal handler during interpreter |
| 4455 |
shutdown. |
| 4456 |
|
| 4457 |
- bpo-16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. |
| 4458 |
|
| 4459 |
- bpo-17192: Restore the patch for Issue #10309 which was ommitted in 2.7.4 |
| 4460 |
when updating the bundled version of libffi used by ctypes. |
| 4461 |
|
| 4462 |
- bpo-17843: Removed test data file that was triggering false-positive virus |
| 4463 |
warnings with certain antivirus software. |
| 4464 |
|
| 4465 |
- bpo-17353: Plistlib emitted empty data tags with deeply nested |
| 4466 |
datastructures |
| 4467 |
|
| 4468 |
- bpo-11714: Use 'with' statements to assure a Semaphore releases a |
| 4469 |
condition variable. Original patch by Thomas Rachel. |
| 4470 |
|
| 4471 |
- bpo-17795: Reverted backwards-incompatible change in SysLogHandler with |
| 4472 |
Unix domain sockets. |
| 4473 |
|
| 4474 |
- bpo-17555: Fix ForkAwareThreadLock so that size of after fork registry |
| 4475 |
does not grow exponentially with generation of process. |
| 4476 |
|
| 4477 |
- bpo-17710: Fix cPickle raising a SystemError on bogus input. |
| 4478 |
|
| 4479 |
- bpo-17341: Include the invalid name in the error messages from re about |
| 4480 |
invalid group names. |
| 4481 |
|
| 4482 |
- bpo-17016: Get rid of possible pointer wraparounds and integer overflows |
| 4483 |
in the re module. Patch by Nickolai Zeldovich. |
| 4484 |
|
| 4485 |
- bpo-17536: Add to webbrowser's browser list: xdg-open, gvfs-open, |
| 4486 |
www-browser, x-www-browser, chromium browsers, iceweasel, iceape. |
| 4487 |
|
| 4488 |
- bpo-17656: Fix extraction of zip files with unicode member paths. |
| 4489 |
|
| 4490 |
- bpo-17666: Fix reading gzip files with an extra field. |
| 4491 |
|
| 4492 |
- bpo-13150: sysconfig no longer parses the Makefile and config.h files when |
| 4493 |
imported, instead doing it at build time. This makes importing sysconfig |
| 4494 |
faster and reduces Python startup time by 20%. (See also: bpo-17512) |
| 4495 |
|
| 4496 |
- bpo-13163: Rename operands in smtplib.SMTP._get_socket to correct names; |
| 4497 |
fixes otherwise misleading output in tracebacks and when when debug is on. |
| 4498 |
|
| 4499 |
- bpo-17526: fix an IndexError raised while passing code without filename to |
| 4500 |
inspect.findsource(). Initial patch by Tyler Doyle. |
| 4501 |
|
| 4502 |
Build |
| 4503 |
----- |
| 4504 |
|
| 4505 |
- bpo-17547: In configure, explicitly pass -Wformat for the benefit for GCC |
| 4506 |
4.8. |
| 4507 |
|
| 4508 |
- bpo-17682: Add the _io module to Modules/Setup.dist (commented out). |
| 4509 |
|
| 4510 |
- bpo-17086: Search the include and library directories provided by the |
| 4511 |
compiler. |
| 4512 |
|
| 4513 |
Tests |
| 4514 |
----- |
| 4515 |
|
| 4516 |
- bpo-17928: Fix test_structmembers on 64-bit big-endian machines. |
| 4517 |
|
| 4518 |
- bpo-17883: Fix buildbot testing of Tkinter on Windows. Patch by Zachary |
| 4519 |
Ware. |
| 4520 |
|
| 4521 |
- bpo-7855: Add tests for ctypes/winreg for issues found in IronPython. |
| 4522 |
Initial patch by Dino Viehland. |
| 4523 |
|
| 4524 |
- bpo-17712: Fix test_gdb failures on Ubuntu 13.04. |
| 4525 |
|
| 4526 |
- bpo-17065: Use process-unique key for winreg tests to avoid failures if |
| 4527 |
test is run multiple times in parallel (eg: on a buildbot host). |
| 4528 |
|
| 4529 |
IDLE |
| 4530 |
---- |
| 4531 |
|
| 4532 |
- bpo-17838: Allow sys.stdin to be reassigned. |
| 4533 |
|
| 4534 |
- bpo-14735: Update IDLE docs to omit "Control-z on Windows". |
| 4535 |
|
| 4536 |
- bpo-17585: Fixed IDLE regression. Now closes when using exit() or quit(). |
| 4537 |
|
| 4538 |
- bpo-17657: Show full Tk version in IDLE's about dialog. Patch by Todd |
| 4539 |
Rovito. |
| 4540 |
|
| 4541 |
- bpo-17613: Prevent traceback when removing syntax colorizer in IDLE. |
| 4542 |
|
| 4543 |
- bpo-1207589: Backwards-compatibility patch for right-click menu in IDLE. |
| 4544 |
|
| 4545 |
- bpo-16887: IDLE now accepts Cancel in tabify/untabify dialog box. |
| 4546 |
|
| 4547 |
- bpo-14254: IDLE now handles readline correctly across shell restarts. |
| 4548 |
|
| 4549 |
- bpo-17614: IDLE no longer raises exception when quickly closing a file. |
| 4550 |
|
| 4551 |
- bpo-6698: IDLE now opens just an editor window when configured to do so. |
| 4552 |
|
| 4553 |
- bpo-8900: Using keyboard shortcuts in IDLE to open a file no longer raises |
| 4554 |
an exception. |
| 4555 |
|
| 4556 |
- bpo-6649: Fixed missing exit status in IDLE. Patch by Guilherme Polo. |
| 4557 |
|
| 4558 |
- bpo-17390: Display Python version on Idle title bar. Initial patch by |
| 4559 |
Edmond Burnett. |
| 4560 |
|
| 4561 |
Documentation |
| 4562 |
------------- |
| 4563 |
|
| 4564 |
- bpo-15940: Specify effect of locale on time functions. |
| 4565 |
|
| 4566 |
- bpo-6696: add documentation for the Profile objects, and improve |
| 4567 |
profile/cProfile docs. Patch by Tom Pinckney. |
| 4568 |
|
| 4569 |
|
| 4570 |
What's New in Python 2.7.4 final? |
| 4571 |
================================= |
| 4572 |
|
| 4573 |
*Release date: 2013-04-06* |
| 4574 |
|
| 4575 |
Build |
| 4576 |
----- |
| 4577 |
|
| 4578 |
- bpo-17550: Fix the --enable-profiling configure switch. |
| 4579 |
|
| 4580 |
Core and Builtins |
| 4581 |
----------------- |
| 4582 |
|
| 4583 |
- bpo-15801: With string % formatting, relax the type check for a mapping |
| 4584 |
such that any type with a __getitem__ can be used on the right hand side. |
| 4585 |
|
| 4586 |
IDLE |
| 4587 |
---- |
| 4588 |
|
| 4589 |
- bpo-17625: In IDLE, close the replace dialog after it is used. |
| 4590 |
|
| 4591 |
Tests |
| 4592 |
----- |
| 4593 |
|
| 4594 |
- bpo-17835: Fix test_io when the default OS pipe buffer size is larger than |
| 4595 |
one million bytes. |
| 4596 |
|
| 4597 |
- bpo-17531: Fix tests that thought group and user ids were always the int |
| 4598 |
type. Also, always allow -1 as a valid group and user id. |
| 4599 |
|
| 4600 |
- bpo-17533: Fix test_xpickle with older versions of Python 2.5. |
| 4601 |
|
| 4602 |
Documentation |
| 4603 |
------------- |
| 4604 |
|
| 4605 |
- bpo-17538: Document XML vulnerabilties |
| 4606 |
|
| 4607 |
|
| 4608 |
What's New in Python 2.7.4 release candidate 1? |
| 4609 |
=============================================== |
| 4610 |
|
| 4611 |
*Release date: 2013-03-23* |
| 4612 |
|
| 4613 |
Core and Builtins |
| 4614 |
----------------- |
| 4615 |
|
| 4616 |
- bpo-10211: Buffer objects expose the new buffer interface internally |
| 4617 |
|
| 4618 |
- bpo-16445: Fixed potential segmentation fault when deleting an exception |
| 4619 |
message. |
| 4620 |
|
| 4621 |
- bpo-17275: Corrected class name in init error messages of the C version of |
| 4622 |
BufferedWriter and BufferedRandom. |
| 4623 |
|
| 4624 |
- bpo-7963: Fixed misleading error message that issued when object is called |
| 4625 |
without arguments. |
| 4626 |
|
| 4627 |
- bpo-5308: Raise ValueError when marshalling too large object (a sequence |
| 4628 |
with size >= 2**31), instead of producing illegal marshal data. |
| 4629 |
|
| 4630 |
- bpo-17043: The unicode-internal decoder no longer read past the end of |
| 4631 |
input buffer. |
| 4632 |
|
| 4633 |
- bpo-16979: Fix error handling bugs in the unicode-escape-decode decoder. |
| 4634 |
|
| 4635 |
- bpo-10156: In the interpreter's initialization phase, unicode globals are |
| 4636 |
now initialized dynamically as needed. |
| 4637 |
|
| 4638 |
- bpo-16975: Fix error handling bug in the escape-decode decoder. |
| 4639 |
|
| 4640 |
- bpo-14850: Now a charmap decoder treats U+FFFE as "undefined mapping" in |
| 4641 |
any mapping, not only in a Unicode string. |
| 4642 |
|
| 4643 |
- bpo-11461: Fix the incremental UTF-16 decoder. Original patch by Amaury |
| 4644 |
Forgeot d'Arc. |
| 4645 |
|
| 4646 |
- bpo-16367: Fix FileIO.readall() on Windows for files larger than 2 GB. |
| 4647 |
|
| 4648 |
- bpo-15516: Fix a bug in PyString_FromFormat where it failed to properly |
| 4649 |
ignore errors from a __int__() method. |
| 4650 |
|
| 4651 |
- bpo-16839: Fix a segfault when calling unicode() on a classic class early |
| 4652 |
in interpreter initialization. |
| 4653 |
|
| 4654 |
- bpo-16761: Calling ``int()`` and ``long()`` with *base* argument only now |
| 4655 |
raises TypeError. |
| 4656 |
|
| 4657 |
- bpo-16759: Support the full DWORD (unsigned long) range in Reg2Py when |
| 4658 |
retrieving a REG_DWORD value. This corrects functions like |
| 4659 |
winreg.QueryValueEx that may have been returning truncated values. |
| 4660 |
|
| 4661 |
- bpo-14420: Support the full DWORD (unsigned long) range in Py2Reg when |
| 4662 |
passed a REG_DWORD value. Fixes ValueError in winreg.SetValueEx when given |
| 4663 |
a long. |
| 4664 |
|
| 4665 |
- bpo-13863: Work around buggy 'fstat' implementation on Windows / NTFS that |
| 4666 |
lead to incorrect timestamps (off by one hour) being stored in .pyc files |
| 4667 |
on some systems. |
| 4668 |
|
| 4669 |
- bpo-16602: When a weakref's target was part of a long deallocation chain, |
| 4670 |
the object could remain reachable through its weakref even though its |
| 4671 |
refcount had dropped to zero. |
| 4672 |
|
| 4673 |
- bpo-9011: Fix hacky AST code that modified the CST when compiling a |
| 4674 |
negated numeric literal. |
| 4675 |
|
| 4676 |
- bpo-16306: Fix multiple error messages when unknown command line |
| 4677 |
parameters where passed to the interpreter. Patch by Hieu Nguyen. |
| 4678 |
|
| 4679 |
- bpo-15379: Fix passing of non-BMP characters as integers for the charmap |
| 4680 |
decoder (already working as unicode strings). Patch by Serhiy Storchaka. |
| 4681 |
|
| 4682 |
- bpo-16453: Fix equality testing of dead weakref objects. |
| 4683 |
|
| 4684 |
- bpo-9535: Fix pending signals that have been received but not yet handled |
| 4685 |
by Python to not persist after os.fork() in the child process. |
| 4686 |
|
| 4687 |
- bpo-15001: fix segfault on "del sys.modules['__main__']". Patch by Victor |
| 4688 |
Stinner. |
| 4689 |
|
| 4690 |
- bpo-5057: the peepholer no longer optimizes subscription on unicode |
| 4691 |
literals (e.g. u'foo'[0]) in order to produce compatible pyc files between |
| 4692 |
narrow and wide builds. |
| 4693 |
|
| 4694 |
- bpo-8401: assigning an int to a bytearray slice (e.g. b[3:4] = 5) now |
| 4695 |
raises an error. |
| 4696 |
|
| 4697 |
- bpo-14700: Fix buggy overflow checks for large width and precision in |
| 4698 |
string formatting operations. |
| 4699 |
|
| 4700 |
- bpo-16345: Fix an infinite loop when ``fromkeys`` on a dict subclass |
| 4701 |
received a nonempty dict from the constructor. |
| 4702 |
|
| 4703 |
- bpo-6074: Ensure cached bytecode files can always be updated by the user |
| 4704 |
that created them, even when the source file is read-only. |
| 4705 |
|
| 4706 |
- bpo-14783: Improve int() and long() docstrings and switch docstrings for |
| 4707 |
unicode(), slice(), range(), and xrange() to use multi-line signatures. |
| 4708 |
|
| 4709 |
- bpo-16030: Fix overflow bug in computing the `repr` of an xrange object |
| 4710 |
with large start, step or length. |
| 4711 |
|
| 4712 |
- bpo-16029: Fix overflow bug occurring when pickling xranges with large |
| 4713 |
start, step or length. |
| 4714 |
|
| 4715 |
- bpo-16037: Limit httplib's _read_status() function to work around broken |
| 4716 |
HTTP servers and reduce memory usage. It's actually a backport of a Python |
| 4717 |
3.2 fix. Thanks to Adrien Kunysz. |
| 4718 |
|
| 4719 |
- bpo-16588: Silence unused-but-set warnings in Python/thread_pthread |
| 4720 |
|
| 4721 |
- bpo-13992: The trashcan mechanism is now thread-safe. This eliminates |
| 4722 |
sporadic crashes in multi-thread programs when several long deallocator |
| 4723 |
chains ran concurrently and involved subclasses of built-in container |
| 4724 |
types. |
| 4725 |
|
| 4726 |
- bpo-15801: Make sure mappings passed to '%' formatting are actually |
| 4727 |
subscriptable. |
| 4728 |
|
| 4729 |
- bpo-15604: Update uses of PyObject_IsTrue() to check for and handle errors |
| 4730 |
correctly. Patch by Serhiy Storchaka. |
| 4731 |
|
| 4732 |
- bpo-14579: Fix error handling bug in the utf-16 decoder. Patch by Serhiy |
| 4733 |
Storchaka. |
| 4734 |
|
| 4735 |
- bpo-15368: An issue that caused bytecode generation to be |
| 4736 |
non-deterministic when using randomized hashing (-R) has been fixed. |
| 4737 |
|
| 4738 |
- bpo-15897: zipimport.c doesn't check return value of fseek(). Patch by |
| 4739 |
Felipe Cruz. |
| 4740 |
|
| 4741 |
- bpo-16369: Global PyTypeObjects not initialized with PyType_Ready(...). |
| 4742 |
|
| 4743 |
- bpo-15033: Fix the exit status bug when modules invoked using -m switch, |
| 4744 |
return the proper failure return value (1). Patch contributed by Jeff |
| 4745 |
Knupp. |
| 4746 |
|
| 4747 |
- bpo-12268: File readline, readlines and read() methods no longer lose data |
| 4748 |
when an underlying read system call is interrupted. IOError is no longer |
| 4749 |
raised due to a read system call returning EINTR from within these |
| 4750 |
methods. |
| 4751 |
|
| 4752 |
- bpo-13512: Create ~/.pypirc securely (CVE-2011-4944). Initial patch by |
| 4753 |
Philip Jenvey, tested by Mageia and Debian. |
| 4754 |
|
| 4755 |
- bpo-7719: Make distutils ignore ``.nfs*`` files instead of choking later |
| 4756 |
on. Initial patch by SilentGhost and Jeff Ramnani. |
| 4757 |
|
| 4758 |
- bpo-10053: Don't close FDs when FileIO.__init__ fails. Loosely based on |
| 4759 |
the work by Hirokazu Yamamoto. |
| 4760 |
|
| 4761 |
- bpo-14775: Fix a potential quadratic dict build-up due to the garbage |
| 4762 |
collector repeatedly trying to untrack dicts. |
| 4763 |
|
| 4764 |
- bpo-14494: Fix __future__.py and its documentation to note that absolute |
| 4765 |
imports are the default behavior in 3.0 instead of 2.7. Patch by Sven |
| 4766 |
Marnach. |
| 4767 |
|
| 4768 |
- bpo-14761: Fix potential leak on an error case in the import machinery. |
| 4769 |
|
| 4770 |
- bpo-14699: Fix calling the classmethod descriptor directly. |
| 4771 |
|
| 4772 |
- bpo-11603: Setting __repr__ to __str__ now raises a RuntimeError when |
| 4773 |
repr() or str() is called on such an object. |
| 4774 |
|
| 4775 |
- bpo-14658: Fix binding a special method to a builtin implementation of a |
| 4776 |
special method with a different name. |
| 4777 |
|
| 4778 |
- bpo-14612: Fix jumping around with blocks by setting f_lineno. |
| 4779 |
|
| 4780 |
- bpo-13889: Check and (if necessary) set FPU control word before calling |
| 4781 |
any of the dtoa.c string <-> float conversion functions, on MSVC builds of |
| 4782 |
Python. This fixes issues when embedding Python in a Delphi app. |
| 4783 |
|
| 4784 |
- bpo-14505: Fix file descriptor leak when deallocating file objects created |
| 4785 |
with PyFile_FromString(). |
| 4786 |
|
| 4787 |
- bpo-14474: Save and restore exception state in thread.start_new_thread() |
| 4788 |
while writing error message if the thread leaves an unhandled exception. |
| 4789 |
|
| 4790 |
- bpo-13019: Fix potential reference leaks in bytearray.extend(). Patch by |
| 4791 |
Suman Saha. |
| 4792 |
|
| 4793 |
- bpo-14378: Fix compiling ast.ImportFrom nodes with a "__future__" string |
| 4794 |
as the module name that was not interned. |
| 4795 |
|
| 4796 |
- bpo-14331: Use significantly less stack space when importing modules by |
| 4797 |
allocating path buffers on the heap instead of the stack. |
| 4798 |
|
| 4799 |
- bpo-14334: Prevent in a segfault in type.__getattribute__ when it was not |
| 4800 |
passed strings. Also fix segfaults in the __getattribute__ and __setattr__ |
| 4801 |
methods of old-style classes. |
| 4802 |
|
| 4803 |
- bpo-14161: fix the __repr__ of file objects to escape the file name. |
| 4804 |
|
| 4805 |
- bpo-1469629: Allow cycles through an object's __dict__ slot to be |
| 4806 |
collected. (For example if ``x.__dict__ is x``). |
| 4807 |
|
| 4808 |
- bpo-13521: dict.setdefault() now does only one lookup for the given key, |
| 4809 |
making it "atomic" for many purposes. Patch by Filip Gruszczyński. |
| 4810 |
|
| 4811 |
- bpo-1602133: on Mac OS X a shared library build (``--enable-shared``) now |
| 4812 |
fills the ``os.environ`` variable correctly. |
| 4813 |
|
| 4814 |
- bpo-10538: When using the "s*" code with PyArg_ParseTuple() to fill a |
| 4815 |
Py_buffer structure with data from an object supporting only the old |
| 4816 |
PyBuffer interface, a reference to the source objects is now properly |
| 4817 |
added to the Py_buffer.obj member. |
| 4818 |
|
| 4819 |
Library |
| 4820 |
------- |
| 4821 |
|
| 4822 |
- bpo-12718: Fix interaction with winpdb overriding __import__ by setting |
| 4823 |
importer attribute on BaseConfigurator instance. |
| 4824 |
|
| 4825 |
- bpo-17521: Corrected non-enabling of logger following two calls to |
| 4826 |
fileConfig(). |
| 4827 |
|
| 4828 |
- bpo-17508: Corrected MemoryHandler configuration in dictConfig() where the |
| 4829 |
target handler wasn't configured first. |
| 4830 |
|
| 4831 |
- bpo-10212: cStringIO and struct.unpack support new buffer objects. |
| 4832 |
|
| 4833 |
- bpo-12098: multiprocessing on Windows now starts child processes using the |
| 4834 |
same sys.flags as the current process. Initial patch by Sergey Mezentsev. |
| 4835 |
|
| 4836 |
- bpo-8862: Fixed curses cleanup when getkey is interrupted by a signal. |
| 4837 |
|
| 4838 |
- bpo-9090: When a socket with a timeout fails with EWOULDBLOCK or EAGAIN, |
| 4839 |
retry the select() loop instead of bailing out. This is because select() |
| 4840 |
can incorrectly report a socket as ready for reading (for example, if it |
| 4841 |
received some data with an invalid checksum). |
| 4842 |
|
| 4843 |
- bpo-1285086: Get rid of the refcounting hack and speed up |
| 4844 |
urllib.unquote(). |
| 4845 |
|
| 4846 |
- bpo-17368: Fix an off-by-one error in the Python JSON decoder that caused |
| 4847 |
a failure while decoding empty object literals when object_pairs_hook was |
| 4848 |
specified. |
| 4849 |
|
| 4850 |
- bpo-17278: Fix a crash in heapq.heappush() and heapq.heappop() when the |
| 4851 |
list is being resized concurrently. |
| 4852 |
|
| 4853 |
- bpo-17018: Make Process.join() retry if os.waitpid() fails with EINTR. |
| 4854 |
|
| 4855 |
- bpo-14720: sqlite3: Convert datetime microseconds correctly. Patch by Lowe |
| 4856 |
Thiderman. |
| 4857 |
|
| 4858 |
- bpo-17225: JSON decoder now counts columns in the first line starting with |
| 4859 |
1, as in other lines. |
| 4860 |
|
| 4861 |
- bpo-7842: backported fix for py_compile.compile() syntax error handling. |
| 4862 |
|
| 4863 |
- bpo-13153: Tkinter functions now raise TclError instead of ValueError when |
| 4864 |
a unicode argument contains non-BMP character. |
| 4865 |
|
| 4866 |
- bpo-9669: Protect re against infinite loops on zero-width matching in |
| 4867 |
non-greedy repeat. Patch by Matthew Barnett. |
| 4868 |
|
| 4869 |
- bpo-13169: The maximal repetition number in a regular expression has been |
| 4870 |
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on |
| 4871 |
64-bit). |
| 4872 |
|
| 4873 |
- bpo-16743: Fix mmap overflow check on 32 bit Windows. |
| 4874 |
|
| 4875 |
- bpo-11311: StringIO.readline(0) now returns an empty string as all other |
| 4876 |
file-like objects. |
| 4877 |
|
| 4878 |
- bpo-16800: tempfile.gettempdir() no longer left temporary files when the |
| 4879 |
disk is full. Original patch by Amir Szekely. |
| 4880 |
|
| 4881 |
- bpo-13555: cPickle now supports files larger than 2 GiB. |
| 4882 |
|
| 4883 |
- bpo-17052: unittest discovery should use self.testLoader. |
| 4884 |
|
| 4885 |
- bpo-4591: Uid and gid values larger than 2**31 are supported now. |
| 4886 |
|
| 4887 |
- bpo-17141: random.vonmisesvariate() no more hangs for large kappas. |
| 4888 |
|
| 4889 |
- bpo-17149: Fix random.vonmisesvariate to always return results in the |
| 4890 |
range [0, 2*math.pi]. |
| 4891 |
|
| 4892 |
- bpo-1470548: XMLGenerator now works with UTF-16 and UTF-32 encodings. |
| 4893 |
|
| 4894 |
- bpo-6975: os.path.realpath() now correctly resolves multiple nested |
| 4895 |
symlinks on POSIX platforms. |
| 4896 |
|
| 4897 |
- bpo-7358: cStringIO.StringIO now supports writing to and reading from a |
| 4898 |
stream larger than 2 GiB on 64-bit systems. |
| 4899 |
|
| 4900 |
- bpo-10355: In SpooledTemporaryFile class mode and name properties and |
| 4901 |
xreadlines method now work for unrolled files. encoding and newlines |
| 4902 |
properties now removed as they have no sense and always produced |
| 4903 |
AttributeError. |
| 4904 |
|
| 4905 |
- bpo-16686: Fixed a lot of bugs in audioop module. Fixed crashes in |
| 4906 |
avgpp(), maxpp() and ratecv(). Fixed an integer overflow in add(), |
| 4907 |
bias(), and ratecv(). reverse(), lin2lin() and ratecv() no more lose |
| 4908 |
precision for 32-bit samples. max() and rms() no more returns a negative |
| 4909 |
result and various other functions now work correctly with 32-bit sample |
| 4910 |
-0x80000000. |
| 4911 |
|
| 4912 |
- bpo-17073: Fix some integer overflows in sqlite3 module. |
| 4913 |
|
| 4914 |
- bpo-6083: Fix multiple segmentation faults occurred when PyArg_ParseTuple |
| 4915 |
parses nested mutating sequence. |
| 4916 |
|
| 4917 |
- bpo-5289: Fix ctypes.util.find_library on Solaris. |
| 4918 |
|
| 4919 |
- bpo-17106: Fix a segmentation fault in io.TextIOWrapper when an underlying |
| 4920 |
stream or a decoder produces data of an unexpected type (i.e. when |
| 4921 |
io.TextIOWrapper initialized with text stream or use bytes-to-bytes |
| 4922 |
codec). |
| 4923 |
|
| 4924 |
- bpo-13994: Add compatibility alias in distutils.ccompiler for |
| 4925 |
distutils.sysconfig.customize_compiler. |
| 4926 |
|
| 4927 |
- bpo-15633: httplib.HTTPResponse is now mark closed when the server sends |
| 4928 |
less than the advertised Content-Length. |
| 4929 |
|
| 4930 |
- bpo-15881: Fixed atexit hook in multiprocessing. |
| 4931 |
|
| 4932 |
- bpo-14340: Upgrade the embedded expat library to version 2.1.0. |
| 4933 |
|
| 4934 |
- bpo-11159: SAX parser now supports unicode file names. |
| 4935 |
|
| 4936 |
- bpo-6972: The zipfile module no longer overwrites files outside of its |
| 4937 |
destination path when extracting malicious zip files. |
| 4938 |
|
| 4939 |
- bpo-17049: Localized calendar methods now return unicode if a locale |
| 4940 |
includes an encoding and the result string contains month or weekday (was |
| 4941 |
regression from Python 2.6). |
| 4942 |
|
| 4943 |
- bpo-4844: ZipFile now raises BadZipfile when opens a ZIP file with an |
| 4944 |
incomplete "End of Central Directory" record. Original patch by Guilherme |
| 4945 |
Polo and Alan McIntyre. |
| 4946 |
|
| 4947 |
- bpo-15505: `unittest.installHandler` no longer assumes SIGINT handler is |
| 4948 |
set to a callable object. |
| 4949 |
|
| 4950 |
- bpo-17051: Fix a memory leak in os.path.isdir() on Windows. Patch by |
| 4951 |
Robert Xiao. |
| 4952 |
|
| 4953 |
- bpo-13454: Fix a crash when deleting an iterator created by |
| 4954 |
itertools.tee() if all other iterators were very advanced before. |
| 4955 |
|
| 4956 |
- bpo-16992: On Windows in signal.set_wakeup_fd, validate the file |
| 4957 |
descriptor argument. |
| 4958 |
|
| 4959 |
- bpo-15861: tkinter now correctly works with lists and tuples containing |
| 4960 |
strings with whitespaces, backslashes or unbalanced braces. |
| 4961 |
|
| 4962 |
- bpo-10527: Use poll() instead of select() for multiprocessing pipes. |
| 4963 |
|
| 4964 |
- bpo-9720: zipfile now writes correct local headers for files larger than 4 |
| 4965 |
GiB. |
| 4966 |
|
| 4967 |
- bpo-13899: \A, \Z, and \B now correctly match the A, Z, and B literals |
| 4968 |
when used inside character classes (e.g. '[\A]'). Patch by Matthew |
| 4969 |
Barnett. |
| 4970 |
|
| 4971 |
- bpo-16398: Optimize deque.rotate() so that it only moves pointers and |
| 4972 |
doesn't touch the underlying data with increfs and decrefs. |
| 4973 |
|
| 4974 |
- bpo-15109: Fix regression in sqlite3's iterdump method where it would die |
| 4975 |
with an encoding error if the database contained string values containing |
| 4976 |
non-ASCII. (Regression was introduced by fix for 9750). |
| 4977 |
|
| 4978 |
- bpo-15545: Fix regression in sqlite3's iterdump method where it was |
| 4979 |
failing if the connection used a row factory (such as sqlite3.Row) that |
| 4980 |
produced unsortable objects. (Regression was introduced by fix for 9750). |
| 4981 |
|
| 4982 |
- bpo-16828: Fix error incorrectly raised by bz2.compress(''). Patch by |
| 4983 |
Martin Packman. |
| 4984 |
|
| 4985 |
- bpo-9586: Redefine SEM_FAILED on MacOSX to keep compiler happy. |
| 4986 |
|
| 4987 |
- bpo-10527: make multiprocessing use poll() instead of select() if |
| 4988 |
available. |
| 4989 |
|
| 4990 |
- bpo-16485: Now file descriptors are closed if file header patching failed |
| 4991 |
on closing an aifc file. |
| 4992 |
|
| 4993 |
- bpo-12065: connect_ex() on an SSL socket now returns the original errno |
| 4994 |
when the socket's timeout expires (it used to return None). |
| 4995 |
|
| 4996 |
- bpo-16713: Fix the parsing of tel url with params using urlparse module. |
| 4997 |
|
| 4998 |
- bpo-16443: Add docstrings to regular expression match objects. Patch by |
| 4999 |
Anton Kasyanov. |
| 5000 |
|
| 5001 |
- bpo-8853: Allow port to be of type long for socket.getaddrinfo(). |
| 5002 |
|
| 5003 |
- bpo-16597: In buffered and text IO, call close() on the underlying stream |
| 5004 |
if invoking flush() fails. |
| 5005 |
|
| 5006 |
- bpo-15701: Fix HTTPError info method call to return the headers |
| 5007 |
information. |
| 5008 |
|
| 5009 |
- bpo-16646: ftplib.FTP.makeport() might lose socket error details. (patch |
| 5010 |
by Serhiy Storchaka) |
| 5011 |
|
| 5012 |
- bpo-16626: Fix infinite recursion in glob.glob() on Windows when the |
| 5013 |
pattern contains a wildcard in the drive or UNC path. Patch by Serhiy |
| 5014 |
Storchaka. |
| 5015 |
|
| 5016 |
- bpo-16298: In HTTPResponse.read(), close the socket when there is no |
| 5017 |
Content-Length and the incoming stream is finished. Patch by Eran |
| 5018 |
Rundstein. |
| 5019 |
|
| 5020 |
- bpo-16248: Disable code execution from the user's home directory by |
| 5021 |
tkinter when the -E flag is passed to Python. Patch by Zachary Ware. |
| 5022 |
|
| 5023 |
- bpo-16628: Fix a memory leak in ctypes.resize(). |
| 5024 |
|
| 5025 |
- bpo-13614: Fix setup.py register failure with invalid rst in description. |
| 5026 |
Patch by Julien Courteau and Pierre Paul Lefebvre. |
| 5027 |
|
| 5028 |
- bpo-10182: The re module doesn't truncate indices to 32 bits anymore. |
| 5029 |
Patch by Serhiy Storchaka. |
| 5030 |
|
| 5031 |
- bpo-16573: In 2to3, treat enumerate() like a consuming call, so |
| 5032 |
superfluous list() calls aren't added to filter(), map(), and zip() which |
| 5033 |
are directly passed enumerate(). |
| 5034 |
|
| 5035 |
- bpo-1160: Fix compiling large regular expressions on UCS2 builds. Patch by |
| 5036 |
Serhiy Storchaka. |
| 5037 |
|
| 5038 |
- bpo-14313: zipfile now raises NotImplementedError when the compression |
| 5039 |
type is unknown. |
| 5040 |
|
| 5041 |
- bpo-16408: Fix file descriptors not being closed in error conditions in |
| 5042 |
the zipfile module. Patch by Serhiy Storchaka. |
| 5043 |
|
| 5044 |
- bpo-16327: The subprocess module no longer leaks file descriptors used for |
| 5045 |
stdin/stdout/stderr pipes to the child when fork() fails. |
| 5046 |
|
| 5047 |
- bpo-14396: Handle the odd rare case of waitpid returning 0 when not |
| 5048 |
expected in subprocess.Popen.wait(). |
| 5049 |
|
| 5050 |
- bpo-16411: Fix a bug where zlib.decompressobj().flush() might try to |
| 5051 |
access previously-freed memory. Patch by Serhiy Storchaka. |
| 5052 |
|
| 5053 |
- bpo-16350: zlib.decompressobj().decompress() now accumulates data from |
| 5054 |
successive calls after EOF in unused_data, instead of only saving the |
| 5055 |
argument to the last call. decompressobj().flush() now correctly sets |
| 5056 |
unused_data and unconsumed_tail. A bug in the handling of MemoryError when |
| 5057 |
setting the unconsumed_tail attribute has also been fixed. Patch by Serhiy |
| 5058 |
Storchaka. |
| 5059 |
|
| 5060 |
- bpo-12759: sre_parse now raises a proper error when the name of the group |
| 5061 |
is missing. Initial patch by Serhiy Storchaka. |
| 5062 |
|
| 5063 |
- bpo-16152: fix tokenize to ignore whitespace at the end of the code when |
| 5064 |
no newline is found. Patch by Ned Batchelder. |
| 5065 |
|
| 5066 |
- bpo-16230: Fix a crash in select.select() when one of the lists changes |
| 5067 |
size while iterated on. Patch by Serhiy Storchaka. |
| 5068 |
|
| 5069 |
- bpo-16228: Fix a crash in the json module where a list changes size while |
| 5070 |
it is being encoded. Patch by Serhiy Storchaka. |
| 5071 |
|
| 5072 |
- bpo-14897: Enhance error messages of struct.pack and struct.pack_into. |
| 5073 |
Patch by Matti Mäki. |
| 5074 |
|
| 5075 |
- bpo-12890: cgitb no longer prints spurious <p> tags in text mode when the |
| 5076 |
logdir option is specified. |
| 5077 |
|
| 5078 |
- bpo-14398: Fix size truncation and overflow bugs in the bz2 module. |
| 5079 |
|
| 5080 |
- bpo-5148: Ignore 'U' in mode given to gzip.open() and gzip.GzipFile(). |
| 5081 |
|
| 5082 |
- bpo-16220: wsgiref now always calls close() on an iterable response. Patch |
| 5083 |
by Brent Tubbs. |
| 5084 |
|
| 5085 |
- bpo-16461: Wave library should be able to deal with 4GB wav files, and |
| 5086 |
sample rate of 44100 Hz. |
| 5087 |
|
| 5088 |
- bpo-16176: Properly identify Windows 8 via platform.platform() |
| 5089 |
|
| 5090 |
- bpo-15756: subprocess.poll() now properly handles errno.ECHILD to return a |
| 5091 |
returncode of 0 when the child has already exited or cannot be waited on. |
| 5092 |
|
| 5093 |
- bpo-12376: Pass on parameters in TextTestResult.__init__ super call |
| 5094 |
|
| 5095 |
- bpo-15222: Insert blank line after each message in mbox mailboxes |
| 5096 |
|
| 5097 |
- bpo-16013: Fix CSV Reader parsing issue with ending quote characters. |
| 5098 |
Patch by Serhiy Storchaka. |
| 5099 |
|
| 5100 |
- bpo-15421: fix an OverflowError in Calendar.itermonthdates() after |
| 5101 |
datetime.MAXYEAR. Patch by Cédric Krier. |
| 5102 |
|
| 5103 |
- bpo-15970: xml.etree.ElementTree now serializes correctly the empty HTML |
| 5104 |
elements 'meta' and 'param'. |
| 5105 |
|
| 5106 |
- bpo-15676: Now "mmap" check for empty files before doing the offset check. |
| 5107 |
Patch by Steven Willis. |
| 5108 |
|
| 5109 |
- bpo-15340: Fix importing the random module when /dev/urandom cannot be |
| 5110 |
opened. This was a regression caused by the hash randomization patch. |
| 5111 |
|
| 5112 |
- bpo-15841: The readable(), writable() and seekable() methods of io.BytesIO |
| 5113 |
and io.StringIO objects now raise ValueError when the object has been |
| 5114 |
closed. Patch by Alessandro Moura. |
| 5115 |
|
| 5116 |
- bpo-16112: platform.architecture does not correctly escape argument to |
| 5117 |
/usr/bin/file. Patch by David Benjamin. |
| 5118 |
|
| 5119 |
- bpo-12776: call argparse type function (specified by add_argument) only |
| 5120 |
once. Before, the type function was called twice in the case where the |
| 5121 |
default was specified and the argument was given as well. This was |
| 5122 |
especially problematic for the FileType type, as a default file would |
| 5123 |
always be opened, even if a file argument was specified on the command |
| 5124 |
line. (See also: bpo-11839) |
| 5125 |
|
| 5126 |
- bpo-15906: Fix a regression in argparse caused by the preceding change, |
| 5127 |
when action='append', type='str' and default=[]. |
| 5128 |
|
| 5129 |
- bpo-13370: Ensure that ctypes works on Mac OS X when Python is compiled |
| 5130 |
using the clang compiler |
| 5131 |
|
| 5132 |
- bpo-15544: Fix Decimal.__float__ to work with payload-carrying NaNs. |
| 5133 |
|
| 5134 |
- bpo-15199: Fix JavaScript's default MIME type to application/javascript. |
| 5135 |
Patch by Bohuslav Kabrda. |
| 5136 |
|
| 5137 |
- bpo-15477: In cmath and math modules, add workaround for platforms whose |
| 5138 |
system-supplied log1p function doesn't respect signs of zeros. |
| 5139 |
|
| 5140 |
- bpo-11062: Fix adding a message from file to Babyl mailbox. |
| 5141 |
|
| 5142 |
- bpo-15646: Prevent equivalent of a fork bomb when using multiprocessing on |
| 5143 |
Windows without the "if __name__ == '__main__'" idiom. |
| 5144 |
|
| 5145 |
- bpo-15567: Fix NameError when running threading._test |
| 5146 |
|
| 5147 |
- bpo-15424: Add a __sizeof__ implementation for array objects. Patch by |
| 5148 |
Ludwig Hähne. |
| 5149 |
|
| 5150 |
- bpo-15538: Fix compilation of the getnameinfo() / getaddrinfo() emulation |
| 5151 |
code. Patch by Philipp Hagemeister. |
| 5152 |
|
| 5153 |
- bpo-12288: Consider '0' and '0.0' as valid initialvalue for tkinter |
| 5154 |
SimpleDialog. |
| 5155 |
|
| 5156 |
- bpo-15489: Add a __sizeof__ implementation for BytesIO objects. Patch by |
| 5157 |
Serhiy Storchaka. |
| 5158 |
|
| 5159 |
- bpo-15469: Add a __sizeof__ implementation for deque objects. Patch by |
| 5160 |
Serhiy Storchaka. |
| 5161 |
|
| 5162 |
- bpo-15487: Add a __sizeof__ implementation for buffered I/O objects. Patch |
| 5163 |
by Serhiy Storchaka. |
| 5164 |
|
| 5165 |
- bpo-15512: Add a __sizeof__ implementation for parser. Patch by Serhiy |
| 5166 |
Storchaka. |
| 5167 |
|
| 5168 |
- bpo-15402: An issue in the struct module that caused sys.getsizeof to |
| 5169 |
return incorrect results for struct.Struct instances has been fixed. |
| 5170 |
Initial patch by Serhiy Storchaka. |
| 5171 |
|
| 5172 |
- bpo-15232: when mangle_from is True, email.Generator now correctly mangles |
| 5173 |
lines that start with 'From ' that occur in a MIME preamble or epilog. |
| 5174 |
|
| 5175 |
- bpo-13922: argparse no longer incorrectly strips '--'s that appear after |
| 5176 |
the first one. |
| 5177 |
|
| 5178 |
- bpo-12353: argparse now correctly handles null argument values. |
| 5179 |
|
| 5180 |
- bpo-6493: An issue in ctypes on Windows that caused structure bitfields of |
| 5181 |
type ctypes.c_uint32 and width 32 to incorrectly be set has been fixed. |
| 5182 |
|
| 5183 |
- bpo-14635: telnetlib will use poll() rather than select() when possible to |
| 5184 |
avoid failing due to the select() file descriptor limit. |
| 5185 |
|
| 5186 |
- bpo-15247: FileIO now raises an error when given a file descriptor |
| 5187 |
pointing to a directory. |
| 5188 |
|
| 5189 |
- bpo-14591: Fix bug in Random.jumpahead that could produce an invalid |
| 5190 |
Mersenne Twister state on 64-bit machines. |
| 5191 |
|
| 5192 |
- bpo-5346: Preserve permissions of mbox, MMDF and Babyl mailbox files on |
| 5193 |
flush(). |
| 5194 |
|
| 5195 |
- bpo-15219: Fix a reference leak when hashlib.new() is called with invalid |
| 5196 |
parameters. |
| 5197 |
|
| 5198 |
- bpo-9559: If messages were only added, a new file is no longer created and |
| 5199 |
renamed over the old file when flush() is called on an mbox, MMDF or Babyl |
| 5200 |
mailbox. |
| 5201 |
|
| 5202 |
- bpo-14653: email.utils.mktime_tz() no longer relies on system mktime() |
| 5203 |
when timezone offest is supplied. |
| 5204 |
|
| 5205 |
- bpo-6056: Make multiprocessing use setblocking(True) on the sockets it |
| 5206 |
uses. Original patch by J Derek Wilson. |
| 5207 |
|
| 5208 |
- bpo-15101: Make pool finalizer avoid joining current thread. |
| 5209 |
|
| 5210 |
- bpo-15054: A bug in tokenize.tokenize that caused string literals with 'b' |
| 5211 |
and 'br' prefixes to be incorrectly tokenized has been fixed. Patch by |
| 5212 |
Serhiy Storchaka. |
| 5213 |
|
| 5214 |
- bpo-15036: Mailbox no longer throws an error if a flush is done between |
| 5215 |
operations when removing or changing multiple items in mbox, MMDF, or |
| 5216 |
Babyl mailboxes. |
| 5217 |
|
| 5218 |
- bpo-10133: Make multiprocessing deallocate buffer if socket read fails. |
| 5219 |
Patch by Hallvard B Furuseth. |
| 5220 |
|
| 5221 |
- bpo-13854: Make multiprocessing properly handle non-integer non-string |
| 5222 |
argument to SystemExit. |
| 5223 |
|
| 5224 |
- bpo-12157: Make pool.map() empty iterables correctly. Initial patch by |
| 5225 |
mouad. |
| 5226 |
|
| 5227 |
- bpo-14036: Add an additional check to validate that port in urlparse does |
| 5228 |
not go in illegal range and returns None. |
| 5229 |
|
| 5230 |
- bpo-14888: Fix misbehaviour of the _md5 module when called on data larger |
| 5231 |
than 2**32 bytes. |
| 5232 |
|
| 5233 |
- bpo-15908: Fix misbehaviour of the sha1 module when called on data larger |
| 5234 |
than 2**32 bytes. |
| 5235 |
|
| 5236 |
- bpo-15910: Fix misbehaviour of _md5 and sha1 modules when "updating" on |
| 5237 |
data larger than 2**32 bytes. |
| 5238 |
|
| 5239 |
- bpo-14875: Use float('inf') instead of float('1e66666') in the json |
| 5240 |
module. |
| 5241 |
|
| 5242 |
- bpo-14572: Prevent build failures with pre-3.5.0 versions of sqlite3, such |
| 5243 |
as was shipped with Centos 5 and Mac OS X 10.4. |
| 5244 |
|
| 5245 |
- bpo-14426: Correct the Date format in Expires attribute of Set-Cookie |
| 5246 |
Header in Cookie.py. |
| 5247 |
|
| 5248 |
- bpo-14721: Send proper header, Content-length: 0 when the body is an empty |
| 5249 |
string ''. Initial Patch contributed by Arve Knudsen. |
| 5250 |
|
| 5251 |
- bpo-14072: Fix parsing of 'tel' URIs in urlparse by making the check for |
| 5252 |
ports stricter. |
| 5253 |
|
| 5254 |
- bpo-9374: Generic parsing of query and fragment portions of url for any |
| 5255 |
scheme. Supported both by RFC3986 and RFC2396. |
| 5256 |
|
| 5257 |
- bpo-14798: Fix the functions in pyclbr to raise an ImportError when the |
| 5258 |
first part of a dotted name is not a package. Patch by Xavier de Gaye. |
| 5259 |
|
| 5260 |
- bpo-14832: fixed the order of the argument references in the error message |
| 5261 |
produced by unittest's assertItemsEqual. |
| 5262 |
|
| 5263 |
- bpo-14829: Fix bisect issues under 64-bit Windows. |
| 5264 |
|
| 5265 |
- bpo-14777: tkinter may return undecoded UTF-8 bytes as a string when |
| 5266 |
accessing the Tk clipboard. Modify clipboard_get() to first request type |
| 5267 |
UTF8_STRING when no specific type is requested in an X11 windowing |
| 5268 |
environment, falling back to the current default type STRING if that |
| 5269 |
fails. Original patch by Thomas Kluyver. |
| 5270 |
|
| 5271 |
- bpo-12541: Be lenient with quotes around Realm field with HTTP Basic |
| 5272 |
Authentation in urllib2. |
| 5273 |
|
| 5274 |
- bpo-14662: Prevent shutil failures on OS X when destination does not |
| 5275 |
support chflag operations. Patch by Hynek Schlawack. |
| 5276 |
|
| 5277 |
- bpo-14157: Fix time.strptime failing without a year on February 29th. |
| 5278 |
Patch by Hynek Schlawack. |
| 5279 |
|
| 5280 |
- bpo-14768: os.path.expanduser('~/a') doesn't work correctly when HOME is |
| 5281 |
'/'. |
| 5282 |
|
| 5283 |
- bpo-13183: Fix pdb skipping frames after hitting a breakpoint and running |
| 5284 |
step. Patch by Xavier de Gaye. |
| 5285 |
|
| 5286 |
- bpo-14664: It is now possible to use @unittest.skip{If,Unless} on a test |
| 5287 |
class that doesn't inherit from TestCase (i.e. a mixin). |
| 5288 |
|
| 5289 |
- bpo-14160: TarFile.extractfile() failed to resolve symbolic links when the |
| 5290 |
links were not located in an archive subdirectory. |
| 5291 |
|
| 5292 |
- bpo-14638: pydoc now treats non-string __name__ values as if they were |
| 5293 |
missing, instead of raising an error. |
| 5294 |
|
| 5295 |
- bpo-13684: Fix httplib tunnel issue of infinite loops for certain sites |
| 5296 |
which send EOF without trailing \r\n. |
| 5297 |
|
| 5298 |
- bpo-14308: Fix an exception when a "dummy" thread is in the threading |
| 5299 |
module's active list after a fork(). |
| 5300 |
|
| 5301 |
- bpo-14538: HTMLParser can now parse correctly start tags that contain a |
| 5302 |
bare '/'. |
| 5303 |
|
| 5304 |
- bpo-14452: SysLogHandler no longer inserts a UTF-8 BOM into the message. |
| 5305 |
|
| 5306 |
- bpo-13496: Fix potential overflow in bisect.bisect algorithm when applied |
| 5307 |
to a collection of size > sys.maxsize / 2. |
| 5308 |
|
| 5309 |
- bpo-14399: zipfile now recognizes that the archive has been modified even |
| 5310 |
if only the comment is changed. As a consequence of this fix, ZipFile is |
| 5311 |
now a new style class. |
| 5312 |
|
| 5313 |
- bpo-7978: SocketServer now restarts the select() call when EINTR is |
| 5314 |
returned. This avoids crashing the server loop when a signal is received. |
| 5315 |
Patch by Jerzy Kozera. |
| 5316 |
|
| 5317 |
- bpo-10340: asyncore - properly handle EINVAL in dispatcher constructor on |
| 5318 |
OSX; avoid to call handle_connect in case of a disconnected socket which |
| 5319 |
was not meant to connect. |
| 5320 |
|
| 5321 |
- bpo-12757: Fix the skipping of doctests when python is run with -OO so |
| 5322 |
that it works in unittest's verbose mode as well as non-verbose mode. |
| 5323 |
|
| 5324 |
- bpo-13694: asynchronous connect in asyncore.dispatcher does not set addr |
| 5325 |
attribute. |
| 5326 |
|
| 5327 |
- bpo-10484: Fix the CGIHTTPServer's PATH_INFO handling problem. |
| 5328 |
|
| 5329 |
- bpo-11199: Fix the with urllib which hangs on particular ftp urls. |
| 5330 |
|
| 5331 |
- bpo-14252: Fix subprocess.Popen.terminate() to not raise an error under |
| 5332 |
Windows when the child process has already exited. |
| 5333 |
|
| 5334 |
- bpo-14195: An issue that caused weakref.WeakSet instances to incorrectly |
| 5335 |
return True for a WeakSet instance 'a' in both 'a < a' and 'a > a' has |
| 5336 |
been fixed. |
| 5337 |
|
| 5338 |
- bpo-14159: Fix the len() of weak sets to return a better approximation |
| 5339 |
when some objects are dead or dying. Moreover, the implementation is now |
| 5340 |
O(1) rather than O(n). |
| 5341 |
|
| 5342 |
- bpo-2945: Make the distutils upload command aware of bdist_rpm products. |
| 5343 |
|
| 5344 |
- bpo-6884: Fix long-standing bugs with MANIFEST.in parsing in distutils on |
| 5345 |
Windows. |
| 5346 |
|
| 5347 |
- bpo-16441: Avoid excessive memory usage working with large gzip files |
| 5348 |
using the gzip module. |
| 5349 |
|
| 5350 |
- bpo-15782: Prevent compile errors of OS X Carbon modules _Fm, _Qd, and |
| 5351 |
_Qdoffs when compiling with an SDK of 10.7 or later. The OS X APIs they |
| 5352 |
wrap have long been deprecated and have now been removed with 10.7. These |
| 5353 |
modules were already empty for 64-bit builds and have been removed in |
| 5354 |
Python 3. |
| 5355 |
|
| 5356 |
- bpo-17477: Update the bsddb module to pybsddb 5.3.0, supporting db-5.x, |
| 5357 |
and dropping support for db-4.1 and db-4.2. |
| 5358 |
|
| 5359 |
- bpo-17192: Update the ctypes module's libffi to v3.0.13. This |
| 5360 |
specifically addresses a stack misalignment issue on x86 and issues on |
| 5361 |
some more recent platforms. |
| 5362 |
|
| 5363 |
- bpo-12268: The io module file object write methods no longer abort early |
| 5364 |
when a write system calls is interrupted (EINTR). |
| 5365 |
|
| 5366 |
- Fix the leak of a dict in the time module when used in an embedded |
| 5367 |
interpreter that is repeatedly initialized and shutdown and reinitialized. |
| 5368 |
|
| 5369 |
- bpo-12268: File readline, readlines and read or readall methods no longer |
| 5370 |
lose data when an underlying read system call is interrupted within an io |
| 5371 |
module object. IOError is no longer raised due to a read system call |
| 5372 |
returning EINTR from within these methods. |
| 5373 |
|
| 5374 |
- bpo-16012: Fix a regression in pyexpat. The parser's UseForeignDTD() |
| 5375 |
method doesn't require an argument again. |
| 5376 |
|
| 5377 |
- bpo-13590: OS X Xcode 4 - improve support for universal extension modules |
| 5378 |
In particular, fix extension module build failures when trying to use |
| 5379 |
32-bit-only installer Pythons on systems with Xcode 4 (currently OS X |
| 5380 |
10.8, 10.7, and optionally 10.6). * Backport 3.3.0 fixes to 2.7 branch |
| 5381 |
(for release in 2.7.4) * Since Xcode 4 removes ppc support, extension |
| 5382 |
module builds now check for ppc compiler support and by default remove ppc |
| 5383 |
and ppc64 archs when they are not available. * Extension module builds now |
| 5384 |
revert to using system installed headers and libs (/usr and |
| 5385 |
/System/Library) if the SDK used to build the interpreter is not |
| 5386 |
installed or has moved. * Try to avoid building extension modules with |
| 5387 |
deprecated and problematic Apple llvm-gcc compiler. If original compiler |
| 5388 |
is not available, use clang instead by default. |
| 5389 |
|
| 5390 |
IDLE |
| 5391 |
---- |
| 5392 |
|
| 5393 |
- IDLE was displaying spurious SystemExit tracebacks when running scripts |
| 5394 |
that terminated by raising SystemExit (i.e. unittest and turtledemo). |
| 5395 |
|
| 5396 |
- bpo-9290: In IDLE the sys.std* streams now implement io.TextIOBase |
| 5397 |
interface and support all mandatory methods and properties. |
| 5398 |
|
| 5399 |
- bpo-16829: IDLE printing no longer fails if there are spaces or other |
| 5400 |
special characters in the file path. |
| 5401 |
|
| 5402 |
- bpo-16819: IDLE method completion now correctly works for unicode |
| 5403 |
literals. |
| 5404 |
|
| 5405 |
- bpo-16504: IDLE now catches SyntaxErrors raised by tokenizer. Patch by |
| 5406 |
Roger Serwy. |
| 5407 |
|
| 5408 |
- bpo-1207589: Add Cut/Copy/Paste items to IDLE right click Context Menu. |
| 5409 |
Patch by Todd Rovito. |
| 5410 |
|
| 5411 |
- bpo-13052: Fix IDLE crashing when replace string in Search/Replace dialog |
| 5412 |
ended with '\'. Patch by Roger Serwy. |
| 5413 |
|
| 5414 |
- bpo-9803: Don't close IDLE on saving if breakpoint is open. Patch by Roger |
| 5415 |
Serwy. |
| 5416 |
|
| 5417 |
- bpo-14958: Change IDLE systax highlighting to recognize all string and |
| 5418 |
byte literals currently supported in Python 2.7. |
| 5419 |
|
| 5420 |
- bpo-14962: Update text coloring in IDLE shell window after changing |
| 5421 |
options. Patch by Roger Serwy. |
| 5422 |
|
| 5423 |
- bpo-10997: Prevent a duplicate entry in IDLE's "Recent Files" menu. |
| 5424 |
|
| 5425 |
- bpo-12510: Attempting to get invalid tooltip no longer closes IDLE. |
| 5426 |
Original patch by Roger Serwy. |
| 5427 |
|
| 5428 |
- bpo-10365: File open dialog now works instead of crashing even when parent |
| 5429 |
window is closed. Patch by Roger Serwy. |
| 5430 |
|
| 5431 |
- bpo-14876: Use user-selected font for highlight configuration. Patch by |
| 5432 |
Roger Serwy. |
| 5433 |
|
| 5434 |
- bpo-14409: IDLE now properly executes commands in the Shell window when it |
| 5435 |
cannot read the normal config files on startup and has to use the built-in |
| 5436 |
default key bindings. There was previously a bug in one of the defaults. |
| 5437 |
|
| 5438 |
- bpo-3573: IDLE hangs when passing invalid command line args |
| 5439 |
(directory(ies) instead of file(s)) (Patch by Guilherme Polo) |
| 5440 |
|
| 5441 |
- bpo-5219: Prevent event handler cascade in IDLE. |
| 5442 |
|
| 5443 |
- bpo-15318: Prevent writing to sys.stdin. |
| 5444 |
|
| 5445 |
- bpo-13532: Check that arguments to sys.stdout.write are strings. (See |
| 5446 |
also: bpo-15319) |
| 5447 |
|
| 5448 |
- bpo-10365: File open dialog now works instead of crashing even when parent |
| 5449 |
window is closed while dialog is open. |
| 5450 |
|
| 5451 |
- bpo-14018: Update checks for unstable system Tcl/Tk versions on OS X to |
| 5452 |
include versions shipped with OS X 10.7 and 10.8 in addition to 10.6. |
| 5453 |
|
| 5454 |
- bpo-15853: Prevent IDLE crash on OS X when opening Preferences menu with |
| 5455 |
certain versions of Tk 8.5. Initial patch by Kevin Walzer. |
| 5456 |
|
| 5457 |
Tests |
| 5458 |
----- |
| 5459 |
|
| 5460 |
- bpo-16702: test_urllib2_localnet tests now correctly ignores proxies for |
| 5461 |
localhost tests. |
| 5462 |
|
| 5463 |
- bpo-13447: Add a test file to host regression tests for bugs in the |
| 5464 |
scripts found in the Tools directory. |
| 5465 |
|
| 5466 |
- bpo-11420: make test suite pass with -B/DONTWRITEBYTECODE set. Initial |
| 5467 |
patch by Thomas Wouters. |
| 5468 |
|
| 5469 |
- bpo-17299: Add test coverage for cPickle with file objects and general IO |
| 5470 |
objects. Original patch by Aman Shah. |
| 5471 |
|
| 5472 |
- bpo-11963: remove human verification from test_parser and test_subprocess. |
| 5473 |
|
| 5474 |
- bpo-17249: convert a test in test_capi to use unittest and reap threads. |
| 5475 |
|
| 5476 |
- We now run both test_email.py and test_email_renamed.py when running the |
| 5477 |
test_email regression test. test_email_renamed contains some tests that |
| 5478 |
test_email does not. |
| 5479 |
|
| 5480 |
- bpo-17041: Fix testing when Python is configured with the |
| 5481 |
--without-doc-strings option. |
| 5482 |
|
| 5483 |
- bpo-15539: Added regression tests for Tools/scripts/pindent.py. |
| 5484 |
|
| 5485 |
- bpo-15324: Fix regrtest parsing of --fromfile and --randomize options. |
| 5486 |
|
| 5487 |
- bpo-16618: Add more regression tests for glob. Patch by Serhiy Storchaka. |
| 5488 |
|
| 5489 |
- bpo-16664: Add regression tests for glob's behaviour concerning entries |
| 5490 |
starting with a ".". Patch by Sebastian Kreft. |
| 5491 |
|
| 5492 |
- bpo-15747: ZFS always returns EOPNOTSUPP when attempting to set the |
| 5493 |
UF_IMMUTABLE flag (via either chflags or lchflags); refactor affected |
| 5494 |
tests in test_posix.py to account for this. |
| 5495 |
|
| 5496 |
- bpo-16549: Add tests for json.tools. Initial patch by Berker Peksag and |
| 5497 |
Serhiy Storchaka. |
| 5498 |
|
| 5499 |
- bpo-16559: Add more tests for the json module, including some from the |
| 5500 |
official test suite at json.org. Patch by Serhiy Storchaka. |
| 5501 |
|
| 5502 |
- bpo-16274: Fix test_asyncore on Solaris. Patch by Giampaolo Rodola'. |
| 5503 |
|
| 5504 |
- bpo-15040: Close files in mailbox tests for PyPy compatibility. Original |
| 5505 |
patch by Matti Picus. |
| 5506 |
|
| 5507 |
- bpo-15802: Fix test logic in TestMaildir.test_create_tmp. Patch by Serhiy |
| 5508 |
Storchaka. |
| 5509 |
|
| 5510 |
- bpo-15765: Extend a previous fix to Solaris and OpenBSD for quirky |
| 5511 |
getcwd() behaviour (issue #9185) to NetBSD as well. |
| 5512 |
|
| 5513 |
- bpo-15615: Add some tests for the json module's handling of invalid input |
| 5514 |
data. Patch by Kushal Das. |
| 5515 |
|
| 5516 |
- bpo-15496: Add directory removal helpers for tests on Windows. Patch by |
| 5517 |
Jeremy Kloth. |
| 5518 |
|
| 5519 |
- bpo-15043: test_gdb is now skipped entirely if gdb security settings block |
| 5520 |
loading of the gdb hooks |
| 5521 |
|
| 5522 |
- bpo-14589: Update certificate chain for sha256.tbs-internet.com, fixing a |
| 5523 |
test failure in test_ssl. |
| 5524 |
|
| 5525 |
- bpo-16698: Skip posix test_getgroups when built with OS X deployment |
| 5526 |
target prior to 10.6. |
| 5527 |
|
| 5528 |
- bpo-17111: Prevent test_surrogates (test_fileio) failure on OS X 10.4. |
| 5529 |
|
| 5530 |
Build |
| 5531 |
----- |
| 5532 |
|
| 5533 |
- bpo-17425: Build against openssl 0.9.8y on Windows. |
| 5534 |
|
| 5535 |
- bpo-16004: Add `make touch`. |
| 5536 |
|
| 5537 |
- bpo-5033: Fix building of the sqlite3 extension module when the SQLite |
| 5538 |
library version has "beta" in it. Patch by Andreas Pelme. |
| 5539 |
|
| 5540 |
- bpo-17228: Fix building without pymalloc. |
| 5541 |
|
| 5542 |
- bpo-17086: Backport the patches from the 3.3 branch to cross-build the |
| 5543 |
package. |
| 5544 |
|
| 5545 |
- bpo-3754: fix typo in pthread AC_CACHE_VAL. |
| 5546 |
|
| 5547 |
- bpo-17029: Let h2py search the multiarch system include directory. |
| 5548 |
|
| 5549 |
- bpo-16953: Fix socket module compilation on platforms with |
| 5550 |
HAVE_BROKEN_POLL. Patch by Jeffrey Armstrong. |
| 5551 |
|
| 5552 |
- bpo-16836: Enable IPv6 support even if IPv6 is disabled on the build host. |
| 5553 |
|
| 5554 |
- bpo-15923: fix a mistake in asdl_c.py that resulted in a TypeError after |
| 5555 |
2801bf875a24 (see #15801). |
| 5556 |
|
| 5557 |
- bpo-11715: Fix multiarch detection without having Debian development tools |
| 5558 |
(dpkg-dev) installed. |
| 5559 |
|
| 5560 |
- bpo-15819: Make sure we can build Python out-of-tree from a readonly |
| 5561 |
source directory. (Somewhat related to Issue #9860.) |
| 5562 |
|
| 5563 |
- bpo-15822: Ensure 2to3 grammar pickles are properly installed. |
| 5564 |
|
| 5565 |
- bpo-15560: Fix building _sqlite3 extension on OS X with an SDK. |
| 5566 |
|
| 5567 |
- bpo-8847: Disable COMDAT folding in Windows PGO builds. |
| 5568 |
|
| 5569 |
- bpo-14018: Fix OS X Tcl/Tk framework checking when using OS X SDKs. |
| 5570 |
|
| 5571 |
- bpo-16256: OS X installer now sets correct permissions for doc directory. |
| 5572 |
|
| 5573 |
- bpo-8767: Restore building with --disable-unicode. Patch by Stefano |
| 5574 |
Taschini. |
| 5575 |
|
| 5576 |
- Build against bzip2 1.0.6 and openssl 0.9.8x on Windows. |
| 5577 |
|
| 5578 |
- bpo-14557: Fix extensions build on HP-UX. Patch by Adi Roiban. |
| 5579 |
|
| 5580 |
- bpo-14437: Fix building the _io module under Cygwin. |
| 5581 |
|
| 5582 |
- bpo-15587: Enable Tk high-resolution text rendering on Macs with Retina |
| 5583 |
displays. Applies to Tkinter apps, such as IDLE, on OS X framework builds |
| 5584 |
linked with Cocoa Tk 8.5. |
| 5585 |
|
| 5586 |
- bpo-17161: make install now also installs a python2 and python man page. |
| 5587 |
|
| 5588 |
- bpo-16848: python-config now returns proper --ldflags values for OS X |
| 5589 |
framework builds. |
| 5590 |
|
| 5591 |
Tools/Demos |
| 5592 |
----------- |
| 5593 |
|
| 5594 |
- bpo-17156: pygettext.py now correctly escapes non-ascii characters. |
| 5595 |
|
| 5596 |
- bpo-15539: Fix a number of bugs in Tools/scripts/pindent.py. Now |
| 5597 |
pindent.py works with a "with" statement. pindent.py no longer produces |
| 5598 |
improper indentation. pindent.py now works with continued lines broken |
| 5599 |
after "class" or "def" keywords and with continuations at the start of |
| 5600 |
line. |
| 5601 |
|
| 5602 |
- bpo-16476: Fix json.tool to avoid including trailing whitespace. |
| 5603 |
|
| 5604 |
- bpo-13301: use ast.literal_eval() instead of eval() in |
| 5605 |
Tools/i18n/msgfmt.py. Patch by Serhiy Storchaka. |
| 5606 |
|
| 5607 |
Documentation |
| 5608 |
------------- |
| 5609 |
|
| 5610 |
- bpo-15041: Update "see also" list in tkinter documentation. |
| 5611 |
|
| 5612 |
- bpo-17412: update 2.7 Doc/make.bat to also use sphinx-1.0.7. |
| 5613 |
|
| 5614 |
- bpo-17047: remove doubled words in docs and docstrings reported by Serhiy |
| 5615 |
Storchaka and Matthew Barnett. |
| 5616 |
|
| 5617 |
- bpo-16406: combine the pages for uploading and registering to PyPI. |
| 5618 |
|
| 5619 |
- bpo-16403: Document how distutils uses the maintainer field in PKG-INFO. |
| 5620 |
Patch by Jyrki Pulliainen. |
| 5621 |
|
| 5622 |
- bpo-16695: Document how glob handles filenames starting with a dot. |
| 5623 |
Initial patch by Jyrki Pulliainen. |
| 5624 |
|
| 5625 |
- bpo-8890: Stop advertising an insecure practice by replacing uses of the |
| 5626 |
/tmp directory with better alternatives in the documentation. Patch by |
| 5627 |
Geoff Wilson. |
| 5628 |
|
| 5629 |
- bpo-17203: add long option names to unittest discovery docs. |
| 5630 |
|
| 5631 |
- bpo-13094: add "Why do lambdas defined in a loop with different values all |
| 5632 |
return the same result?" programming FAQ. |
| 5633 |
|
| 5634 |
- bpo-14901: Update portions of the Windows FAQ. Patch by Ashish Nitin |
| 5635 |
Patil. |
| 5636 |
|
| 5637 |
- bpo-15990: Improve argument/parameter documentation. |
| 5638 |
|
| 5639 |
- bpo-16400: Update the description of which versions of a given package |
| 5640 |
PyPI displays. |
| 5641 |
|
| 5642 |
- bpo-15677: Document that zlib and gzip accept a compression level of 0 to |
| 5643 |
mean 'no compression'. Patch by Brian Brazil. |
| 5644 |
|
| 5645 |
- bpo-8040: added a version switcher to the documentation. Patch by Yury |
| 5646 |
Selivanov. |
| 5647 |
|
| 5648 |
- bpo-16115: Improve subprocess.Popen() documentation around args, shell, |
| 5649 |
and executable arguments. |
| 5650 |
|
| 5651 |
- bpo-15979: Improve timeit documentation. |
| 5652 |
|
| 5653 |
- bpo-16036: Improve documentation of built-in int()'s signature and |
| 5654 |
arguments. |
| 5655 |
|
| 5656 |
- bpo-15935: Clarification of argparse docs, re: add_argument() type and |
| 5657 |
default arguments. Patch contributed by Chris Jerdonek. |
| 5658 |
|
| 5659 |
- bpo-13769: Document the effect of ensure_ascii to the return type of JSON |
| 5660 |
decoding functions. |
| 5661 |
|
| 5662 |
- bpo-14880: Fix kwargs notation in csv.reader, .writer & .register_dialect. |
| 5663 |
Patch by Chris Rebert. |
| 5664 |
|
| 5665 |
- bpo-14674: Add a discussion of the json module's standard compliance. |
| 5666 |
Patch by Chris Rebert. |
| 5667 |
|
| 5668 |
- bpo-15630: Add an example for "continue" stmt in the tutorial. Patch by |
| 5669 |
Daniel Ellis. |
| 5670 |
|
| 5671 |
- bpo-13557: Clarify effect of giving two different namespaces to exec or |
| 5672 |
execfile(). |
| 5673 |
|
| 5674 |
- bpo-14034: added the argparse tutorial. |
| 5675 |
|
| 5676 |
- bpo-15250: Document that filecmp.dircmp compares files shallowly. Patch |
| 5677 |
contributed by Chris Jerdonek. |
| 5678 |
|
| 5679 |
- bpo-15116: Remove references to appscript as it is no longer being |
| 5680 |
supported. |
| 5681 |
|
| 5682 |
|
| 5683 |
What's New in Python 2.7.3 release candidate 2? |
| 5684 |
=============================================== |
| 5685 |
|
| 5686 |
*Release date: 2012-03-17* |
| 5687 |
|
| 5688 |
Library |
| 5689 |
------- |
| 5690 |
|
| 5691 |
- bpo-14234: CVE-2012-0876: Randomize hashes of xml attributes in the hash |
| 5692 |
table internal to the pyexpat module's copy of the expat library to avoid |
| 5693 |
a denial of service due to hash collisions. Patch by David Malcolm with |
| 5694 |
some modifications by the expat project. |
| 5695 |
|
| 5696 |
|
| 5697 |
What's New in Python 2.7.3 release candidate 1? |
| 5698 |
=============================================== |
| 5699 |
|
| 5700 |
*Release date: 2012-02-23* |
| 5701 |
|
| 5702 |
Core and Builtins |
| 5703 |
----------------- |
| 5704 |
|
| 5705 |
- bpo-13020: Fix a reference leak when allocating a structsequence object |
| 5706 |
fails. Patch by Suman Saha. |
| 5707 |
|
| 5708 |
- bpo-13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED |
| 5709 |
environment variable, to provide an opt-in way to protect against denial |
| 5710 |
of service attacks due to hash collisions within the dict and set types. |
| 5711 |
Patch by David Malcolm, based on work by Victor Stinner. |
| 5712 |
|
| 5713 |
- bpo-11235: Fix OverflowError when trying to import a source file whose |
| 5714 |
modification time doesn't fit in a 32-bit timestamp. |
| 5715 |
|
| 5716 |
- bpo-11638: Unicode strings in 'name' and 'version' no longer cause |
| 5717 |
UnicodeDecodeErrors. |
| 5718 |
|
| 5719 |
- Fix the fix for issue #12149: it was incorrect, although it had the side |
| 5720 |
effect of appearing to resolve the issue. Thanks to Mark Shannon for |
| 5721 |
noticing. |
| 5722 |
|
| 5723 |
- bpo-13546: Fixed an overflow issue that could crash the intepreter when |
| 5724 |
calling sys.setrecursionlimit((1<<31)-1). |
| 5725 |
|
| 5726 |
- bpo-13333: The UTF-7 decoder now accepts lone surrogates (the encoder |
| 5727 |
already accepts them). |
| 5728 |
|
| 5729 |
- bpo-10519: Avoid unnecessary recursive function calls in setobject.c. |
| 5730 |
|
| 5731 |
- bpo-13268: Fix the assert statement when a tuple is passed as the message. |
| 5732 |
|
| 5733 |
- bpo-13018: Fix reference leaks in error paths in dictobject.c. Patch by |
| 5734 |
Suman Saha. |
| 5735 |
|
| 5736 |
- bpo-12604: VTRACE macro expanded to no-op in _sre.c to avoid compiler |
| 5737 |
warnings. Patch by Josh Triplett and Petri Lehtinen. |
| 5738 |
|
| 5739 |
- bpo-7833: Extension modules built using distutils on Windows will no |
| 5740 |
longer include a "manifest" to prevent them failing at import time in some |
| 5741 |
embedded situations. |
| 5742 |
|
| 5743 |
- bpo-13186: Fix __delitem__ on old-style instances when invoked through |
| 5744 |
PySequence_DelItem. |
| 5745 |
|
| 5746 |
- bpo-13156: Revert the patch for issue #10517 (reset TLS upon fork()), |
| 5747 |
which was only relevant for the native pthread TLS implementation. |
| 5748 |
|
| 5749 |
- bpo-7732: Fix a crash on importing a module if a directory has the same |
| 5750 |
name than a Python module (e.g. "__init__.py"): don't close the file |
| 5751 |
twice. |
| 5752 |
|
| 5753 |
- bpo-12973: Fix overflow checks that invoked undefined behaviour in |
| 5754 |
int.__pow__. These overflow checks were causing int.__pow__ to produce |
| 5755 |
incorrect results with recent versions of Clang, as a result of the |
| 5756 |
compiler optimizing the check away. Also fix similar overflow checks in |
| 5757 |
list_repeat (listobject.c) and islice_next (itertoolsmodule.c). These |
| 5758 |
bugs caused test failures with recent versions of Clang. |
| 5759 |
|
| 5760 |
- bpo-12266: Fix str.capitalize() to correctly uppercase/lowercase |
| 5761 |
titlecased and cased non-letter characters. |
| 5762 |
|
| 5763 |
- bpo-12610: Verify that user generated AST has correct string and |
| 5764 |
identifier types before compiling. (See also: bpo-12609) |
| 5765 |
|
| 5766 |
- bpo-11627: Fix segfault when __new__ on an exception returns a |
| 5767 |
non-exception class. |
| 5768 |
|
| 5769 |
- bpo-12149: Update the method cache after a type's dictionnary gets cleared |
| 5770 |
by the garbage collector. This fixes a segfault when an instance and its |
| 5771 |
type get caught in a reference cycle, and the instance's deallocator calls |
| 5772 |
one of the methods on the type (e.g. when subclassing IOBase). Diagnosis |
| 5773 |
and patch by Davide Rizzo. |
| 5774 |
|
| 5775 |
- bpo-12501: Remove Py3k warning for callable. callable() is supported again |
| 5776 |
in Python 3.2. |
| 5777 |
|
| 5778 |
- bpo-9611: FileIO.read(), FileIO.readinto(), FileIO.write() and os.write() |
| 5779 |
clamp the length to INT_MAX on Windows. (See also: bpo-9015) |
| 5780 |
|
| 5781 |
- bpo-1195: my_fgets() now always clears errors before calling fgets(). Fix |
| 5782 |
the following case: sys.stdin.read() stopped with CTRL+d (end of file), |
| 5783 |
raw_input() interrupted by CTRL+c. |
| 5784 |
|
| 5785 |
- bpo-10860: httplib now correctly handles an empty port after port |
| 5786 |
delimiter in URLs. |
| 5787 |
|
| 5788 |
- dict_proxy objects now display their contents rather than just the class |
| 5789 |
name. |
| 5790 |
|
| 5791 |
Library |
| 5792 |
------- |
| 5793 |
|
| 5794 |
- bpo-8033: sqlite3: Fix 64-bit integer handling in user functions on 32-bit |
| 5795 |
architectures. Initial patch by Philippe Devalkeneer. |
| 5796 |
|
| 5797 |
- HTMLParser is now able to handle slashes in the start tag. |
| 5798 |
|
| 5799 |
- bpo-14001: CVE-2012-0845: xmlrpc: Fix an endless loop in |
| 5800 |
SimpleXMLRPCServer upon malformed POST request. |
| 5801 |
|
| 5802 |
- bpo-2489: pty.spawn could consume 100% cpu when it encountered an EOF. |
| 5803 |
|
| 5804 |
- bpo-13014: Fix a possible reference leak in SSLSocket.getpeercert(). |
| 5805 |
|
| 5806 |
- bpo-13987: HTMLParser is now able to handle EOFs in the middle of a |
| 5807 |
construct and malformed start tags. |
| 5808 |
|
| 5809 |
- bpo-13015: Fix a possible reference leak in defaultdict.__repr__. Patch by |
| 5810 |
Suman Saha. |
| 5811 |
|
| 5812 |
- bpo-13979: A bug in ctypes.util.find_library that caused the wrong library |
| 5813 |
name to be returned has been fixed. |
| 5814 |
|
| 5815 |
- bpo-1326113: distutils' build_ext command --libraries option now correctly |
| 5816 |
parses multiple values separated by whitespace or commas. |
| 5817 |
|
| 5818 |
- bpo-13993: HTMLParser is now able to handle broken end tags. |
| 5819 |
|
| 5820 |
- bpo-13960: HTMLParser is now able to handle broken comments. |
| 5821 |
|
| 5822 |
- bpo-9750: Fix sqlite3.Connection.iterdump on tables and fields with a name |
| 5823 |
that is a keyword or contains quotes. Patch by Marko Kohtala. |
| 5824 |
|
| 5825 |
- bpo-13994: Earlier partial revert of Distutils enhancements in 2.7 has |
| 5826 |
left two versions of customize_compiler, the original in |
| 5827 |
distutils.sysconfig and another copy in distutils.ccompiler, with some |
| 5828 |
parts of distutils calling one and others using the other. Complete the |
| 5829 |
revert back to only having one in distutils.sysconfig as is the case in |
| 5830 |
3.x. |
| 5831 |
|
| 5832 |
- bpo-13590: On OS X 10.7 and 10.6 with Xcode 4.2, building Distutils-based |
| 5833 |
packages with C extension modules may fail because Apple has removed |
| 5834 |
gcc-4.2, the version used to build python.org 64-bit/32-bit Pythons. If |
| 5835 |
the user does not explicitly override the default C compiler by setting |
| 5836 |
the CC environment variable, Distutils will now attempt to compile |
| 5837 |
extension modules with clang if gcc-4.2 is required but not found. Also as |
| 5838 |
a convenience, if the user does explicitly set CC, substitute its value as |
| 5839 |
the default compiler in the Distutils LDSHARED configuration variable for |
| 5840 |
OS X. (Note, the python.org 32-bit-only Pythons use gcc-4.0 and the 10.4u |
| 5841 |
SDK, neither of which are available in Xcode 4. This change does not |
| 5842 |
attempt to override settings to support their use with Xcode 4.) |
| 5843 |
|
| 5844 |
- bpo-9021: Add an introduction to the copy module documentation. |
| 5845 |
|
| 5846 |
- bpo-6005: Examples in the socket library documentation use sendall, where |
| 5847 |
relevant, instead send method. |
| 5848 |
|
| 5849 |
- bpo-10811: Fix recursive usage of cursors. Instead of crashing, raise a |
| 5850 |
ProgrammingError now. |
| 5851 |
|
| 5852 |
- bpo-13676: Handle strings with embedded zeros correctly in sqlite3. |
| 5853 |
|
| 5854 |
- bpo-13806: The size check in audioop decompression functions was too |
| 5855 |
strict and could reject valid compressed data. Patch by Oleg Plakhotnyuk. |
| 5856 |
|
| 5857 |
- bpo-13885: CVE-2011-3389: the _ssl module would always disable the CBC IV |
| 5858 |
attack countermeasure. |
| 5859 |
|
| 5860 |
- bpo-6631: Disallow relative file paths in urllib urlopen methods. |
| 5861 |
|
| 5862 |
- bpo-13781: Prevent gzip.GzipFile from using the dummy filename provided by |
| 5863 |
file objects opened with os.fdopen(). |
| 5864 |
|
| 5865 |
- bpo-13589: Fix some serialization primitives in the aifc module. Patch by |
| 5866 |
Oleg Plakhotnyuk. |
| 5867 |
|
| 5868 |
- bpo-13803: Under Solaris, distutils doesn't include bitness in the |
| 5869 |
directory name. |
| 5870 |
|
| 5871 |
- bpo-13642: Unquote before b64encoding user:password during Basic |
| 5872 |
Authentication. Patch contributed by Joonas Kuorilehto and Michele Orrù. |
| 5873 |
|
| 5874 |
- bpo-13636: Weak ciphers are now disabled by default in the ssl module |
| 5875 |
(except when SSLv2 is explicitly asked for). |
| 5876 |
|
| 5877 |
- bpo-12798: Updated the mimetypes documentation. |
| 5878 |
|
| 5879 |
- bpo-13639: Accept unicode filenames in tarfile.open(mode="w|gz"). |
| 5880 |
|
| 5881 |
- bpo-1785: Fix inspect and pydoc with misbehaving descriptors. |
| 5882 |
|
| 5883 |
- bpo-7502: Fix equality comparison for DocTestCase instances. Patch by |
| 5884 |
Cédric Krier. |
| 5885 |
|
| 5886 |
- bpo-11870: threading: Properly reinitialize threads internal locks and |
| 5887 |
condition variables to avoid deadlocks in child processes. |
| 5888 |
|
| 5889 |
- bpo-8035: urllib: Fix a bug where the client could remain stuck after a |
| 5890 |
redirection or an error. |
| 5891 |
|
| 5892 |
- tarfile.py: Correctly detect bzip2 compressed streams with blocksizes |
| 5893 |
other than 900k. |
| 5894 |
|
| 5895 |
- bpo-13573: The csv.writer now uses the repr() for floats rather than |
| 5896 |
str(). This allows floats to round-trip without loss of precision. |
| 5897 |
|
| 5898 |
- bpo-13439: Fix many errors in turtle docstrings. |
| 5899 |
|
| 5900 |
- bpo-12856: Ensure child processes do not inherit the parent's random seed |
| 5901 |
for filename generation in the tempfile module. Patch by Brian Harring. |
| 5902 |
|
| 5903 |
- bpo-13458: Fix a memory leak in the ssl module when decoding a certificate |
| 5904 |
with a subjectAltName. Patch by Robert Xiao. |
| 5905 |
|
| 5906 |
- bpo-13415: os.unsetenv() doesn't ignore errors anymore. |
| 5907 |
|
| 5908 |
- bpo-13322: Fix BufferedWriter.write() to ensure that BlockingIOError is |
| 5909 |
raised when the wrapped raw file is non-blocking and the write would |
| 5910 |
block. Previous code assumed that the raw write() would raise |
| 5911 |
BlockingIOError, but RawIOBase.write() is defined to returned None when |
| 5912 |
the call would block. Patch by sbt. |
| 5913 |
|
| 5914 |
- bpo-13358: HTMLParser now calls handle_data only once for each CDATA. |
| 5915 |
|
| 5916 |
- bpo-4147: minidom's toprettyxml no longer adds whitespace around a text |
| 5917 |
node when it is the only child of an element. Initial patch by Dan |
| 5918 |
Kenigsberg. |
| 5919 |
|
| 5920 |
- bpo-1745761: HTMLParser now correctly handles non-valid attributes, |
| 5921 |
including adjacent and unquoted attributes. (See also: bpo-755670, |
| 5922 |
bpo-13357, bpo-12629, bpo-1200313) |
| 5923 |
|
| 5924 |
- bpo-13373: multiprocessing.Queue.get() could sometimes block indefinitely |
| 5925 |
when called with a timeout. Patch by Arnaud Ysmal. |
| 5926 |
|
| 5927 |
- bpo-3067: Enhance the documentation and docstring of locale.setlocale(). |
| 5928 |
|
| 5929 |
- bpo-13254: Fix Maildir initialization so that maildir contents are read |
| 5930 |
correctly. |
| 5931 |
|
| 5932 |
- bpo-13140: Fix the daemon_threads attribute of ThreadingMixIn. |
| 5933 |
|
| 5934 |
- bpo-2892: preserve iterparse events in case of SyntaxError. |
| 5935 |
|
| 5936 |
- bpo-670664: Fix HTMLParser to correctly handle the content of |
| 5937 |
``<script>...</script>`` and ``<style>...</style>``. |
| 5938 |
|
| 5939 |
- bpo-10817: Fix urlretrieve function to raise ContentTooShortError even |
| 5940 |
when reporthook is None. Patch by Jyrki Pulliainen. |
| 5941 |
|
| 5942 |
- bpo-7334: close source files on ElementTree.parse and iterparse. |
| 5943 |
|
| 5944 |
- bpo-13232: logging: Improved logging of exceptions in the presence of |
| 5945 |
multiple encodings. |
| 5946 |
|
| 5947 |
- bpo-10332: multiprocessing: fix a race condition when a Pool is closed |
| 5948 |
before all tasks have completed. |
| 5949 |
|
| 5950 |
- bpo-1548891: The cStringIO.StringIO() constructor now encodes unicode |
| 5951 |
arguments with the system default encoding just like the write() method |
| 5952 |
does, instead of converting it to a raw buffer. This also fixes handling |
| 5953 |
of unicode input in the shlex module (#6988, #1170). |
| 5954 |
|
| 5955 |
- bpo-9168: now smtpd is able to bind privileged port. |
| 5956 |
|
| 5957 |
- bpo-12529: fix cgi.parse_header issue on strings with double-quotes and |
| 5958 |
semicolons together. Patch by Ben Darnell and Petri Lehtinen. |
| 5959 |
|
| 5960 |
- bpo-6090: zipfile raises a ValueError when a document with a timestamp |
| 5961 |
earlier than 1980 is provided. Patch contributed by Petri Lehtinen. |
| 5962 |
|
| 5963 |
- bpo-13194: zlib.compressobj().copy() and zlib.decompressobj().copy() are |
| 5964 |
now available on Windows. |
| 5965 |
|
| 5966 |
- bpo-13114: Fix the distutils commands check and register when the long |
| 5967 |
description is a Unicode string with non-ASCII characters. |
| 5968 |
|
| 5969 |
- bpo-7367: Fix pkgutil.walk_paths to skip directories whose contents cannot |
| 5970 |
be read. |
| 5971 |
|
| 5972 |
- bpo-7425: Prevent pydoc -k failures due to module import errors. (Backport |
| 5973 |
to 2.7 of existing 3.x fix) |
| 5974 |
|
| 5975 |
- bpo-13099: Fix sqlite3.Cursor.lastrowid under a Turkish locale. Reported |
| 5976 |
and diagnosed by Thomas Kluyver. |
| 5977 |
|
| 5978 |
- bpo-7689: Allow pickling of dynamically created classes when their |
| 5979 |
metaclass is registered with copy_reg. Patch by Nicolas M. Thiéry and |
| 5980 |
Craig Citro. |
| 5981 |
|
| 5982 |
- bpo-13058: ossaudiodev: fix a file descriptor leak on error. Patch by |
| 5983 |
Thomas Jarosch. |
| 5984 |
|
| 5985 |
- bpo-12931: xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of |
| 5986 |
failing with a UnicodeDecodeError. |
| 5987 |
|
| 5988 |
- bpo-8933: distutils' PKG-INFO files will now correctly report |
| 5989 |
Metadata-Version: 1.1 instead of 1.0 if a Classifier or Download-URL field |
| 5990 |
is present. |
| 5991 |
|
| 5992 |
- bpo-8286: The distutils command sdist will print a warning message instead |
| 5993 |
of crashing when an invalid path is given in the manifest template. |
| 5994 |
|
| 5995 |
- bpo-12841: tarfile unnecessarily checked the existence of numerical user |
| 5996 |
and group ids on extraction. If one of them did not exist the respective |
| 5997 |
id of the current user (i.e. root) was used for the file and ownership |
| 5998 |
information was lost. |
| 5999 |
|
| 6000 |
- bpo-10946: The distutils commands bdist_dumb, bdist_wininst and bdist_msi |
| 6001 |
now respect a --skip-build option given to bdist. |
| 6002 |
|
| 6003 |
- bpo-12287: Fix a stack corruption in ossaudiodev module when the FD is |
| 6004 |
greater than FD_SETSIZE. |
| 6005 |
|
| 6006 |
- bpo-12839: Fix crash in zlib module due to version mismatch. Fix by |
| 6007 |
Richard M. Tew. |
| 6008 |
|
| 6009 |
- bpo-12786: Set communication pipes used by subprocess.Popen CLOEXEC to |
| 6010 |
avoid them being inherited by other subprocesses. |
| 6011 |
|
| 6012 |
- bpo-4106: Fix occasional exceptions printed out by multiprocessing on |
| 6013 |
interpreter shutdown. |
| 6014 |
|
| 6015 |
- bpo-11657: Fix sending file descriptors over 255 over a multiprocessing |
| 6016 |
Pipe. |
| 6017 |
|
| 6018 |
- bpo-12213: Fix a buffering bug with interleaved reads and writes that |
| 6019 |
could appear on io.BufferedRandom streams. |
| 6020 |
|
| 6021 |
- bpo-12326: sys.platform is now always 'linux2' on Linux, even if Python is |
| 6022 |
compiled on Linux 3. |
| 6023 |
|
| 6024 |
- bpo-13007: whichdb should recognize gdbm 1.9 magic numbers. |
| 6025 |
|
| 6026 |
- bpo-9173: Let shutil._make_archive work if the logger argument is None. |
| 6027 |
|
| 6028 |
- bpo-12650: Fix a race condition where a subprocess.Popen could leak |
| 6029 |
resources (FD/zombie) when killed at the wrong time. |
| 6030 |
|
| 6031 |
- bpo-12752: Fix regression which prevented locale.normalize() from |
| 6032 |
accepting unicode strings. |
| 6033 |
|
| 6034 |
- bpo-12683: urlparse updated to include svn as schemes that uses relative |
| 6035 |
paths. (svn from 1.5 onwards support relative path). |
| 6036 |
|
| 6037 |
- bpo-11933: Fix incorrect mtime comparison in distutils. |
| 6038 |
|
| 6039 |
- bpo-11104: Fix the behavior of distutils' sdist command with |
| 6040 |
manually-maintained MANIFEST files. (See also: bpo-8688) |
| 6041 |
|
| 6042 |
- bpo-8887: "pydoc somebuiltin.somemethod" (or |
| 6043 |
help('somebuiltin.somemethod') in Python code) now finds the doc of the |
| 6044 |
method. |
| 6045 |
|
| 6046 |
- bpo-12603: Fix pydoc.synopsis() on files with non-negative st_mtime. |
| 6047 |
|
| 6048 |
- bpo-12514: Use try/finally to assure the timeit module restores garbage |
| 6049 |
collections when it is done. |
| 6050 |
|
| 6051 |
- bpo-12607: In subprocess, fix issue where if stdin, stdout or stderr is |
| 6052 |
given as a low fd, it gets overwritten. |
| 6053 |
|
| 6054 |
- bpo-12102: Document that buffered files must be flushed before being used |
| 6055 |
with mmap. Patch by Steffen Daode Nurpmeso. |
| 6056 |
|
| 6057 |
- bpo-12560: Build libpython.so on OpenBSD. Patch by Stefan Sperling. |
| 6058 |
|
| 6059 |
- bpo-1813: Fix codec lookup and setting/getting locales under Turkish |
| 6060 |
locales. |
| 6061 |
|
| 6062 |
- bpo-10883: Fix socket leaks in urllib when using FTP. |
| 6063 |
|
| 6064 |
- bpo-12592: Make Python build on OpenBSD 5 (and future major releases). |
| 6065 |
|
| 6066 |
- bpo-12372: POSIX semaphores are broken on AIX: don't use them. |
| 6067 |
|
| 6068 |
- bpo-12571: Add a plat-linux3 directory mirroring the plat-linux2 |
| 6069 |
directory, so that "import DLFCN" and other similar imports work on Linux |
| 6070 |
3.0. |
| 6071 |
|
| 6072 |
- bpo-7484: smtplib no longer puts <> around addresses in VRFY and EXPN |
| 6073 |
commands; they aren't required and in fact postfix doesn't support that |
| 6074 |
form. |
| 6075 |
|
| 6076 |
- bpo-11603: Fix a crash when __str__ is rebound as __repr__. Patch by |
| 6077 |
Andreas Stührk. |
| 6078 |
|
| 6079 |
- bpo-12502: asyncore: fix polling loop with AF_UNIX sockets. |
| 6080 |
|
| 6081 |
- bpo-4376: ctypes now supports nested structures in an endian different |
| 6082 |
than the parent structure. Patch by Vlad Riscutia. |
| 6083 |
|
| 6084 |
- bpo-12493: subprocess: Popen.communicate() now also handles EINTR errors |
| 6085 |
if the process has only one pipe. |
| 6086 |
|
| 6087 |
- bpo-12467: warnings: fix a race condition if a warning is emitted at |
| 6088 |
shutdown, if globals()['__file__'] is None. |
| 6089 |
|
| 6090 |
- bpo-12352: Fix a deadlock in multiprocessing.Heap when a block is freed by |
| 6091 |
the garbage collector while the Heap lock is held. |
| 6092 |
|
| 6093 |
- bpo-9516: On Mac OS X, change Distutils to no longer globally attempt to |
| 6094 |
check or set the MACOSX_DEPLOYMENT_TARGET environment variable for the |
| 6095 |
interpreter process. This could cause failures in non-Distutils |
| 6096 |
subprocesses and was unreliable since tests or user programs could modify |
| 6097 |
the interpreter environment after Distutils set it. Instead, have |
| 6098 |
Distutils set the deployment target only in the environment of each build |
| 6099 |
subprocess. It is still possible to globally override the default by |
| 6100 |
setting MACOSX_DEPLOYMENT_TARGET before launching the interpreter; its |
| 6101 |
value must be greater or equal to the default value, the value with which |
| 6102 |
the interpreter was built. |
| 6103 |
|
| 6104 |
- bpo-11802: The cache in filecmp now has a maximum size of 100 so that it |
| 6105 |
won't grow without bound. |
| 6106 |
|
| 6107 |
- bpo-12404: Remove C89 incompatible code from mmap module. Patch by Akira |
| 6108 |
Kitada. |
| 6109 |
|
| 6110 |
- bpo-11700: mailbox proxy object close methods can now be called multiple |
| 6111 |
times without error, and _ProxyFile now closes the wrapped file. |
| 6112 |
|
| 6113 |
- bpo-12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP |
| 6114 |
connection if its getresponse() method fails with a socket error. Patch |
| 6115 |
written by Ezio Melotti. |
| 6116 |
|
| 6117 |
- bpo-9284: Allow inspect.findsource() to find the source of doctest |
| 6118 |
functions. |
| 6119 |
|
| 6120 |
- bpo-10694: zipfile now ignores garbage at the end of a zipfile. |
| 6121 |
|
| 6122 |
- bpo-11583: Speed up os.path.isdir on Windows by using GetFileAttributes |
| 6123 |
instead of os.stat. |
| 6124 |
|
| 6125 |
- bpo-12080: Fix a performance issue in Decimal._power_exact that caused |
| 6126 |
some corner-case Decimal.__pow__ calls to take an unreasonably long time. |
| 6127 |
|
| 6128 |
- Named tuples now work correctly with vars(). |
| 6129 |
|
| 6130 |
- sys.setcheckinterval() now updates the current ticker count as well as |
| 6131 |
updating the check interval, so if the user decreases the check interval, |
| 6132 |
the ticker doesn't have to wind down to zero from the old starting point |
| 6133 |
before the new interval takes effect. And if the user increases the |
| 6134 |
interval, it makes sure the new limit takes effect right away rather have |
| 6135 |
an early task switch before recognizing the new interval. |
| 6136 |
|
| 6137 |
- bpo-12085: Fix an attribute error in subprocess.Popen destructor if the |
| 6138 |
constructor has failed, e.g. because of an undeclared keyword argument. |
| 6139 |
Patch written by Oleg Oshmyan. |
| 6140 |
|
| 6141 |
- bpo-9041: An issue in ctypes.c_longdouble, ctypes.c_double, and |
| 6142 |
ctypes.c_float that caused an incorrect exception to be returned in the |
| 6143 |
case of overflow has been fixed. |
| 6144 |
|
| 6145 |
- bsddb module: Erratic behaviour of "DBEnv->rep_elect()" because a typo. |
| 6146 |
Possible crash. |
| 6147 |
|
| 6148 |
- bpo-13774: json: Fix a SystemError when a bogus encoding is passed to |
| 6149 |
json.loads(). |
| 6150 |
|
| 6151 |
- bpo-9975: socket: Fix incorrect use of flowinfo and scope_id. Patch by |
| 6152 |
Vilmos Nebehaj. |
| 6153 |
|
| 6154 |
- bpo-13159: FileIO, BZ2File, and the built-in file class now use a |
| 6155 |
linear-time buffer growth strategy instead of a quadratic one. |
| 6156 |
|
| 6157 |
- bpo-13070: Fix a crash when a TextIOWrapper caught in a reference cycle |
| 6158 |
would be finalized after the reference to its underlying BufferedRWPair's |
| 6159 |
writer got cleared by the GC. |
| 6160 |
|
| 6161 |
- bpo-12881: ctypes: Fix segfault with large structure field names. |
| 6162 |
|
| 6163 |
- bpo-13013: ctypes: Fix a reference leak in PyCArrayType_from_ctype. Thanks |
| 6164 |
to Suman Saha for finding the bug and providing a patch. |
| 6165 |
|
| 6166 |
- bpo-13022: Fix: _multiprocessing.recvfd() doesn't check that file |
| 6167 |
descriptor was actually received. |
| 6168 |
|
| 6169 |
- bpo-12483: ctypes: Fix a crash when the destruction of a callback object |
| 6170 |
triggers the garbage collector. |
| 6171 |
|
| 6172 |
- bpo-12950: Fix passing file descriptors in multiprocessing, under |
| 6173 |
OpenIndiana/Illumos. |
| 6174 |
|
| 6175 |
- bpo-12764: Fix a crash in ctypes when the name of a Structure field is not |
| 6176 |
a string. |
| 6177 |
|
| 6178 |
- bpo-9651: Fix a crash when ctypes.create_string_buffer(0) was passed to |
| 6179 |
some functions like file.write(). |
| 6180 |
|
| 6181 |
- bpo-10309: Define _GNU_SOURCE so that mremap() gets the proper signature. |
| 6182 |
Without this, architectures where sizeof void* != sizeof int are broken. |
| 6183 |
Patch given by Hallvard B Furuseth. |
| 6184 |
|
| 6185 |
IDLE |
| 6186 |
---- |
| 6187 |
|
| 6188 |
- bpo-964437: Make IDLE help window non-modal. Patch by Guilherme Polo and |
| 6189 |
Roger Serwy. |
| 6190 |
|
| 6191 |
- bpo-13933: IDLE auto-complete did not work with some imported module, like |
| 6192 |
hashlib. (Patch by Roger Serwy) |
| 6193 |
|
| 6194 |
- bpo-13506: Add '' to path for IDLE Shell when started and restarted with |
| 6195 |
Restart Shell. Original patches by Marco Scataglini and Roger Serwy. |
| 6196 |
|
| 6197 |
- bpo-4625: If IDLE cannot write to its recent file or breakpoint files, |
| 6198 |
display a message popup and continue rather than crash. (original patch by |
| 6199 |
Roger Serwy) |
| 6200 |
|
| 6201 |
- bpo-8793: Prevent IDLE crash when given strings with invalid hex escape |
| 6202 |
sequences. |
| 6203 |
|
| 6204 |
- bpo-13296: Fix IDLE to clear compile __future__ flags on shell restart. |
| 6205 |
(Patch by Roger Serwy) |
| 6206 |
|
| 6207 |
- bpo-14409: IDLE now properly executes commands in the Shell window when it |
| 6208 |
cannot read the normal config files on startup and has to use the built-in |
| 6209 |
default key bindings. There was previously a bug in one of the defaults. |
| 6210 |
|
| 6211 |
- bpo-3573: IDLE hangs when passing invalid command line args |
| 6212 |
(directory(ies) instead of file(s)). |
| 6213 |
|
| 6214 |
Build |
| 6215 |
----- |
| 6216 |
|
| 6217 |
- bpo-6807: Run msisupport.mak earlier. |
| 6218 |
|
| 6219 |
- bpo-10580: Minor grammar change in Windows installer. |
| 6220 |
|
| 6221 |
- bpo-12627: Implement PEP 394 for Python 2.7 ("python2"). |
| 6222 |
|
| 6223 |
- bpo-8746: Correct faulty configure checks so that os.chflags() and |
| 6224 |
os.lchflags() are once again built on systems that support these functions |
| 6225 |
(*BSD and OS X). Also add new stat file flags for OS X (UF_HIDDEN and |
| 6226 |
UF_COMPRESSED). |
| 6227 |
|
| 6228 |
Tools/Demos |
| 6229 |
----------- |
| 6230 |
|
| 6231 |
- bpo-14053: patchcheck.py ("make patchcheck") now works with MQ patches. |
| 6232 |
Patch by Francisco Martín Brugué. |
| 6233 |
|
| 6234 |
- bpo-13930: 2to3 is now able to write its converted output files to another |
| 6235 |
directory tree as well as copying unchanged files and altering the file |
| 6236 |
suffix. See its new -o, -W and --add-suffix options. This makes it more |
| 6237 |
useful in many automated code translation workflows. |
| 6238 |
|
| 6239 |
- bpo-10639: reindent.py no longer converts newlines and will raise an error |
| 6240 |
if attempting to convert a file with mixed newlines. |
| 6241 |
|
| 6242 |
- bpo-13628: python-gdb.py is now able to retrieve more frames in the Python |
| 6243 |
traceback if Python is optimized. |
| 6244 |
|
| 6245 |
Tests |
| 6246 |
----- |
| 6247 |
|
| 6248 |
- bpo-15467: Move helpers for __sizeof__ tests into test_support. Patch by |
| 6249 |
Serhiy Storchaka. |
| 6250 |
|
| 6251 |
- bpo-11689: Fix a variable scoping error in an sqlite3 test. Initial patch |
| 6252 |
by Torsten Landschoff. |
| 6253 |
|
| 6254 |
- bpo-10881: Fix test_site failures with OS X framework builds. |
| 6255 |
|
| 6256 |
- bpo-13901: Prevent test_distutils failures on OS X with --enable-shared. |
| 6257 |
|
| 6258 |
- bpo-13304: Skip test case if user site-packages disabled (-s or |
| 6259 |
PYTHONNOUSERSITE). (Patch by Carl Meyer) |
| 6260 |
|
| 6261 |
- bpo-13218: Fix test_ssl failures on Debian/Ubuntu. |
| 6262 |
|
| 6263 |
- bpo-12821: Fix test_fcntl failures on OpenBSD 5. |
| 6264 |
|
| 6265 |
- bpo-12331: The test suite for lib2to3 can now run from an installed |
| 6266 |
Python. |
| 6267 |
|
| 6268 |
- bpo-12549: Correct test_platform to not fail when OS X returns 'x86_64' as |
| 6269 |
the processor type on some Mac systems. |
| 6270 |
|
| 6271 |
- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a |
| 6272 |
temporary failure in name resolution. |
| 6273 |
|
| 6274 |
- bpo-11812: Solve transient socket failure to connect to 'localhost' in |
| 6275 |
test_telnetlib.py. |
| 6276 |
|
| 6277 |
- Solved a potential deadlock in test_telnetlib.py. Related to issue #11812. |
| 6278 |
|
| 6279 |
- Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and an |
| 6280 |
overzealous DNS service (e.g. OpenDNS) redirects to a placeholder Web |
| 6281 |
site. |
| 6282 |
|
| 6283 |
- Avoid failing in test_urllibnet.test_bad_address when some overzealous DNS |
| 6284 |
service (e.g. OpenDNS) resolves a non-existent domain name. The test is |
| 6285 |
now skipped instead. |
| 6286 |
|
| 6287 |
- bpo-8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run |
| 6288 |
test_tk or test_ttk_guionly under a username that is not currently logged |
| 6289 |
in to the console windowserver (as may be the case under buildbot or ssh). |
| 6290 |
|
| 6291 |
- bpo-12141: Install a copy of template C module file so that test_build_ext |
| 6292 |
of test_distutils is no longer silently skipped when run outside of a |
| 6293 |
build directory. |
| 6294 |
|
| 6295 |
- bpo-8746: Add additional tests for os.chflags() and os.lchflags(). Patch |
| 6296 |
by Garrett Cooper. |
| 6297 |
|
| 6298 |
- bpo-10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9 on Mac |
| 6299 |
OS X. (Patch by Ronald Oussoren) |
| 6300 |
|
| 6301 |
- bpo-12057: Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2, |
| 6302 |
iso2022_kr). |
| 6303 |
|
| 6304 |
Documentation |
| 6305 |
------------- |
| 6306 |
|
| 6307 |
- bpo-13491: Fix many errors in sqlite3 documentation. Initial patch for |
| 6308 |
#13491 by Johannes Vogel. (See also: bpo-13995) |
| 6309 |
|
| 6310 |
- bpo-13402: Document absoluteness of sys.executable. |
| 6311 |
|
| 6312 |
- bpo-13883: PYTHONCASEOK also works on OS X, OS/2, and RiscOS. |
| 6313 |
|
| 6314 |
- bpo-2134: The tokenize documentation has been clarified to explain why all |
| 6315 |
operator and delimiter tokens are treated as token.OP tokens. |
| 6316 |
|
| 6317 |
- bpo-13513: Fix io.IOBase documentation to correctly link to the |
| 6318 |
io.IOBase.readline method instead of the readline module. |
| 6319 |
|
| 6320 |
- bpo-13237: Reorganise subprocess documentation to emphasise convenience |
| 6321 |
functions and the most commonly needed arguments to Popen. |
| 6322 |
|
| 6323 |
- bpo-13141: Demonstrate recommended style for SocketServer examples. |
| 6324 |
|
| 6325 |
|
| 6326 |
What's New in Python 2.7.2 final? |
| 6327 |
================================= |
| 6328 |
|
| 6329 |
*Release date: 2011-06-11* |
| 6330 |
|
| 6331 |
Library |
| 6332 |
------- |
| 6333 |
|
| 6334 |
- bpo-12009: Fixed regression in netrc file comment handling. |
| 6335 |
|
| 6336 |
- bpo-1221: Make pyexpat.__version__ equal to the Python version. |
| 6337 |
|
| 6338 |
|
| 6339 |
What's New in Python 2.7.2 release candidate 1? |
| 6340 |
=============================================== |
| 6341 |
|
| 6342 |
*Release date: 2011-05-29* |
| 6343 |
|
| 6344 |
Core and Builtins |
| 6345 |
----------------- |
| 6346 |
|
| 6347 |
- bpo-9670: Increase the default stack size for secondary threads on Mac OS |
| 6348 |
X and FreeBSD to reduce the chances of a crash instead of a "maximum |
| 6349 |
recursion depth" RuntimeError exception. (patch by Ronald Oussoren) |
| 6350 |
|
| 6351 |
- Correct lookup of __dir__ on objects. This allows old-style classes to |
| 6352 |
have __dir__. It also causes errors besides AttributeError found on lookup |
| 6353 |
to be propagated. |
| 6354 |
|
| 6355 |
- bpo-1195: Fix input() if it is interrupted by CTRL+d and then CTRL+c, |
| 6356 |
clear the end-of-file indicator after CTRL+d. |
| 6357 |
|
| 6358 |
- bpo-8651: PyArg_Parse*() functions raise an OverflowError if the file |
| 6359 |
doesn't have PY_SSIZE_T_CLEAN define and the size doesn't fit in an int |
| 6360 |
(length bigger than 2^31-1 bytes). |
| 6361 |
|
| 6362 |
- bpo-8651: Fix "z#" format of PyArg_Parse*() function: the size was not |
| 6363 |
written if PY_SSIZE_T_CLEAN is defined. |
| 6364 |
|
| 6365 |
- bpo-9756: When calling a method descriptor or a slot wrapper descriptor, |
| 6366 |
the check of the object type doesn't read the __class__ attribute anymore. |
| 6367 |
Fix a crash if a class override its __class__ attribute (e.g. a proxy of |
| 6368 |
the str type). Patch written by Andreas Stührk. |
| 6369 |
|
| 6370 |
- bpo-10517: After fork(), reinitialize the TLS used by the PyGILState_* |
| 6371 |
APIs, to avoid a crash with the pthread implementation in RHEL 5. Patch |
| 6372 |
by Charles-François Natali. |
| 6373 |
|
| 6374 |
- bpo-6780: fix starts/endswith error message to mention that tuples are |
| 6375 |
accepted too. |
| 6376 |
|
| 6377 |
- bpo-5057: fix a bug in the peepholer that led to non-portable pyc files |
| 6378 |
between narrow and wide builds while optimizing BINARY_SUBSCR on non-BMP |
| 6379 |
chars (e.g. u"\U00012345"[0]). |
| 6380 |
|
| 6381 |
- bpo-11650: PyOS_StdioReadline() retries fgets() if it was interrupted |
| 6382 |
(EINTR), for example if the program is stopped with CTRL+z on Mac OS X. |
| 6383 |
Patch written by Charles-Francois Natali. |
| 6384 |
|
| 6385 |
- bpo-11144: Ensure that int(a_float) returns an int whenever possible. |
| 6386 |
Previously, there were some corner cases where a long was returned even |
| 6387 |
though the result was within the range of an int. |
| 6388 |
|
| 6389 |
- bpo-11450: Don't truncate hg version info in Py_GetBuildInfo() when there |
| 6390 |
are many tags (e.g. when using mq). Patch by Nadeem Vawda. |
| 6391 |
|
| 6392 |
- bpo-10451: memoryview objects could allow mutating a readable buffer. |
| 6393 |
Initial patch by Ross Lagerwall. |
| 6394 |
|
| 6395 |
- bpo-10892: Don't segfault when trying to delete __abstractmethods__ from a |
| 6396 |
class. |
| 6397 |
|
| 6398 |
- bpo-8020: Avoid a crash where the small objects allocator would read |
| 6399 |
non-Python managed memory while it is being modified by another thread. |
| 6400 |
Patch by Matt Bandy. |
| 6401 |
|
| 6402 |
- bpo-11004: Repaired edge case in deque.count(). |
| 6403 |
|
| 6404 |
- bpo-8278: On Windows and with a NTFS filesystem, os.stat() and os.utime() |
| 6405 |
can now handle dates after 2038. |
| 6406 |
|
| 6407 |
- bpo-4236: Py_InitModule4 now checks the import machinery directly rather |
| 6408 |
than the Py_IsInitialized flag, avoiding a Fatal Python error in certain |
| 6409 |
circumstances when an import is done in __del__. |
| 6410 |
|
| 6411 |
- bpo-11828: startswith and endswith don't accept None as slice index. Patch |
| 6412 |
by Torsten Becker. |
| 6413 |
|
| 6414 |
- bpo-10674: Remove unused 'dictmaker' rule from grammar. |
| 6415 |
|
| 6416 |
- bpo-10596: Fix float.__mod__ to have the same behaviour as |
| 6417 |
float.__divmod__ with respect to signed zeros. -4.0 % 4.0 should be 0.0, |
| 6418 |
not -0.0. |
| 6419 |
|
| 6420 |
- bpo-11386: bytearray.pop() now throws IndexError when the bytearray is |
| 6421 |
empty, instead of OverflowError. |
| 6422 |
|
| 6423 |
Library |
| 6424 |
------- |
| 6425 |
|
| 6426 |
- bpo-12161: Cause StringIO.getvalue() to raise a ValueError when used on a |
| 6427 |
closed StringIO instance. |
| 6428 |
|
| 6429 |
- bpo-12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true) |
| 6430 |
division (python -Qnew). Patch written by Ralf W. Grosse-Kunstleve. |
| 6431 |
|
| 6432 |
- bpo-12175: RawIOBase.readall() now returns None if read() returns None. |
| 6433 |
|
| 6434 |
- bpo-12175: FileIO.readall() now raises a ValueError instead of an IOError |
| 6435 |
if the file is closed. |
| 6436 |
|
| 6437 |
- bpo-1441530: In imaplib, use makefile() to wrap the SSL socket to avoid |
| 6438 |
heap fragmentation and MemoryError with some malloc implementations. |
| 6439 |
|
| 6440 |
- bpo-12100: Don't reset incremental encoders of CJK codecs at each call to |
| 6441 |
their encode() method anymore, but continue to call the reset() method if |
| 6442 |
the final argument is True. |
| 6443 |
|
| 6444 |
- bpo-12124: zipimport doesn't keep a reference to zlib.decompress() anymore |
| 6445 |
to be able to unload the module. |
| 6446 |
|
| 6447 |
- bpo-10154: change the normalization of UTF-8 to "UTF-8" instead of "UTF8" |
| 6448 |
in the locale module as the latter is not supported MacOSX and OpenBSD. |
| 6449 |
(See also: bpo-10090) |
| 6450 |
|
| 6451 |
- bpo-9516: avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set |
| 6452 |
in shell. |
| 6453 |
|
| 6454 |
- bpo-12050: zlib.decompressobj().decompress() now clears the |
| 6455 |
unconsumed_tail attribute when called without a max_length argument. |
| 6456 |
|
| 6457 |
- bpo-12062: In the `io` module, fix a flushing bug when doing a certain |
| 6458 |
type of I/O sequence on a file opened in read+write mode (namely: reading, |
| 6459 |
seeking a bit forward, writing, then seeking before the previous write but |
| 6460 |
still within buffered data, and writing again). |
| 6461 |
|
| 6462 |
- bpo-8498: In socket.accept(), allow specifying 0 as a backlog value in |
| 6463 |
order to accept exactly one connection. Patch by Daniel Evers. |
| 6464 |
|
| 6465 |
- bpo-12012: ssl.PROTOCOL_SSLv2 becomes optional. |
| 6466 |
|
| 6467 |
- bpo-11927: SMTP_SSL now uses port 465 by default as documented. Patch by |
| 6468 |
Kasun Herath. |
| 6469 |
|
| 6470 |
- bpo-11999: fixed sporadic sync failure mailbox.Maildir due to its trying |
| 6471 |
to detect mtime changes by comparing to the system clock instead of to the |
| 6472 |
previous value of the mtime. |
| 6473 |
|
| 6474 |
- bpo-10684: shutil.move used to delete a folder on case insensitive |
| 6475 |
filesystems when the source and destination name where the same except for |
| 6476 |
the case. |
| 6477 |
|
| 6478 |
- bpo-11982: fix json.loads('""') to return u'' rather than ''. |
| 6479 |
|
| 6480 |
- bpo-11277: mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get |
| 6481 |
around a mmap bug with sparse files. Patch written by Steffen Daode |
| 6482 |
Nurpmeso. |
| 6483 |
|
| 6484 |
- bpo-10761: Fix tarfile.extractall failure when symlinked files are |
| 6485 |
present. Initial patch by Scott Leerssen. |
| 6486 |
|
| 6487 |
- bpo-11763: don't use difflib in TestCase.assertMultiLineEqual if the |
| 6488 |
strings are too long. |
| 6489 |
|
| 6490 |
- bpo-11236: getpass.getpass responds to ctrl-c or ctrl-z on terminal. |
| 6491 |
|
| 6492 |
- bpo-11768: The signal handler of the signal module only calls |
| 6493 |
Py_AddPendingCall() for the first signal to fix a deadlock on reentrant or |
| 6494 |
parallel calls. PyErr_SetInterrupt() writes also into the wake up file. |
| 6495 |
|
| 6496 |
- bpo-11875: collections.OrderedDict's __reduce__ was temporarily mutating |
| 6497 |
the object instead of just working on a copy. |
| 6498 |
|
| 6499 |
- bpo-11442: Add a charset parameter to the Content-type in SimpleHTTPServer |
| 6500 |
to avoid XSS attacks. |
| 6501 |
|
| 6502 |
- bpo-11467: Fix urlparse behavior when handling urls which contains scheme |
| 6503 |
specific part only digits. Patch by Santoso Wijaya. |
| 6504 |
|
| 6505 |
- collections.Counter().copy() now works correctly for subclasses. |
| 6506 |
|
| 6507 |
- bpo-11474: Fix the bug with url2pathname() handling of '/C|/' on Windows. |
| 6508 |
Patch by Santoso Wijaya. |
| 6509 |
|
| 6510 |
- bpo-9233: Fix json.loads('{}') to return a dict (instead of a list), when |
| 6511 |
_json is not available. |
| 6512 |
|
| 6513 |
- bpo-11703: urllib2.geturl() does not return correct url when the original |
| 6514 |
url contains #fragment. |
| 6515 |
|
| 6516 |
- bpo-10019: Fixed regression in json module where an indent of 0 stopped |
| 6517 |
adding newlines and acted instead like 'None'. |
| 6518 |
|
| 6519 |
- bpo-5162: Treat services like frozen executables to allow child spawning |
| 6520 |
from multiprocessing.forking on Windows. |
| 6521 |
|
| 6522 |
- bpo-4877: Fix a segfault in xml.parsers.expat while attempting to parse a |
| 6523 |
closed file. |
| 6524 |
|
| 6525 |
- bpo-11830: Remove unnecessary introspection code in the decimal module. It |
| 6526 |
was causing a failed import in the Turkish locale where the locale |
| 6527 |
sensitive str.upper() method caused a name mismatch. |
| 6528 |
|
| 6529 |
- bpo-8428: Fix a race condition in multiprocessing.Pool when terminating |
| 6530 |
worker processes: new processes would be spawned while the pool is being |
| 6531 |
shut down. Patch by Charles-François Natali. |
| 6532 |
|
| 6533 |
- bpo-7311: Fix HTMLParser to accept non-ASCII attribute values. |
| 6534 |
|
| 6535 |
- bpo-10963: Ensure that subprocess.communicate() never raises EPIPE. |
| 6536 |
|
| 6537 |
- bpo-11662: Make urllib and urllib2 ignore redirections if the scheme is |
| 6538 |
not HTTP, HTTPS or FTP (CVE-2011-1521). |
| 6539 |
|
| 6540 |
- bpo-11256: Fix inspect.getcallargs on functions that take only keyword |
| 6541 |
arguments. |
| 6542 |
|
| 6543 |
- bpo-11696: Fix ID generation in msilib. |
| 6544 |
|
| 6545 |
- bpo-9696: Fix exception incorrectly raised by xdrlib.Packer.pack_int when |
| 6546 |
trying to pack a negative (in-range) integer. |
| 6547 |
|
| 6548 |
- bpo-11675: multiprocessing.[Raw]Array objects created from an integer size |
| 6549 |
are now zeroed on creation. This matches the behaviour specified by the |
| 6550 |
documentation. |
| 6551 |
|
| 6552 |
- bpo-7639: Fix short file name generation in bdist_msi. |
| 6553 |
|
| 6554 |
- bpo-11666: let help() display named tuple attributes and methods that |
| 6555 |
start with a leading underscore. |
| 6556 |
|
| 6557 |
- bpo-11673: Fix multiprocessing Array and RawArray constructors to accept a |
| 6558 |
size of type 'long', rather than only accepting 'int'. |
| 6559 |
|
| 6560 |
- bpo-10042: Fixed the total_ordering decorator to handle cross-type |
| 6561 |
comparisons that could lead to infinite recursion. |
| 6562 |
|
| 6563 |
- bpo-10979: unittest stdout buffering now works with class and module setup |
| 6564 |
and teardown. |
| 6565 |
|
| 6566 |
- bpo-11569: use absolute path to the sysctl command in multiprocessing to |
| 6567 |
ensure that it will be found regardless of the shell PATH. This ensures |
| 6568 |
that multiprocessing.cpu_count works on default installs of MacOSX. |
| 6569 |
|
| 6570 |
- bpo-11500: Fixed a bug in the os x proxy bypass code for fully qualified |
| 6571 |
IP addresses in the proxy exception list. |
| 6572 |
|
| 6573 |
- bpo-11131: Fix sign of zero in plus and minus operations when the context |
| 6574 |
rounding mode is ROUND_FLOOR. |
| 6575 |
|
| 6576 |
- bpo-5622: Fix curses.wrapper to raise correct exception if curses |
| 6577 |
initialization fails. |
| 6578 |
|
| 6579 |
- bpo-11391: Writing to a mmap object created with |
| 6580 |
``mmap.PROT_READ|mmap.PROT_EXEC`` would segfault instead of raising a |
| 6581 |
TypeError. Patch by Charles-François Natali. |
| 6582 |
|
| 6583 |
- bpo-11306: mailbox in certain cases adapts to an inability to open certain |
| 6584 |
files in read-write mode. Previously it detected this by checking for |
| 6585 |
EACCES, now it also checks for EROFS. |
| 6586 |
|
| 6587 |
- bpo-11265: asyncore now correctly handles EPIPE, EBADF and EAGAIN errors |
| 6588 |
on accept(), send() and recv(). |
| 6589 |
|
| 6590 |
- bpo-11326: Add the missing connect_ex() implementation for SSL sockets, |
| 6591 |
and make it work for non-blocking connects. |
| 6592 |
|
| 6593 |
- bpo-10956: Buffered I/O classes retry reading or writing after a signal |
| 6594 |
has arrived and the handler returned successfully. |
| 6595 |
|
| 6596 |
- bpo-10680: Fix mutually exclusive arguments for argument groups in |
| 6597 |
argparse. |
| 6598 |
|
| 6599 |
- bpo-4681: Allow mmap() to work on file sizes and offsets larger than 4GB, |
| 6600 |
even on 32-bit builds. Initial patch by Ross Lagerwall, adapted for |
| 6601 |
32-bit Windows. |
| 6602 |
|
| 6603 |
- bpo-10360: In WeakSet, do not raise TypeErrors when testing for membership |
| 6604 |
of non-weakrefable objects. |
| 6605 |
|
| 6606 |
- bpo-10549: Fix pydoc traceback when text-documenting certain classes. |
| 6607 |
|
| 6608 |
- bpo-940286: pydoc.Helper.help() ignores input/output init parameters. |
| 6609 |
|
| 6610 |
- bpo-11171: Fix detection of config/Makefile when --prefix != |
| 6611 |
--exec-prefix, which caused Python to not start. |
| 6612 |
|
| 6613 |
- bpo-11116: any error during addition of a message to a mailbox now causes |
| 6614 |
a rollback, instead of leaving the mailbox partially modified. |
| 6615 |
|
| 6616 |
- bpo-8275: Fix passing of callback arguments with ctypes under Win64. Patch |
| 6617 |
by Stan Mihai. |
| 6618 |
|
| 6619 |
- bpo-10949: Improved robustness of rotating file handlers. |
| 6620 |
|
| 6621 |
- bpo-10955: Fix a potential crash when trying to mmap() a file past its |
| 6622 |
length. Initial patch by Ross Lagerwall. |
| 6623 |
|
| 6624 |
- bpo-10898: Allow compiling the posix module when the C library defines a |
| 6625 |
symbol named FSTAT. |
| 6626 |
|
| 6627 |
- bpo-10916: mmap should not segfault when a file is mapped using 0 as |
| 6628 |
length and a non-zero offset, and an attempt to read past the end of file |
| 6629 |
is made (IndexError is raised instead). Patch by Ross Lagerwall. |
| 6630 |
|
| 6631 |
- bpo-10875: Update Regular Expression HOWTO; patch by 'SilentGhost'. |
| 6632 |
|
| 6633 |
- bpo-10827: Changed the rules for 2-digit years. The time.asctime function |
| 6634 |
will now format any year when ``time.accept2dyear`` is false and will |
| 6635 |
accept years >= 1000 otherwise. The year range accepted by |
| 6636 |
``time.mktime`` and ``time.strftime`` is still system dependent, but |
| 6637 |
``time.mktime`` will now accept full range supported by the OS. |
| 6638 |
Conversion of 2-digit years to 4-digit is deprecated. |
| 6639 |
|
| 6640 |
- bpo-10869: Fixed bug where ast.increment_lineno modified the root node |
| 6641 |
twice. |
| 6642 |
|
| 6643 |
- bpo-7858: Raise an error properly when os.utime() fails under Windows on |
| 6644 |
an existing file. |
| 6645 |
|
| 6646 |
- bpo-3839: wsgiref should not override a Content-Length header set by the |
| 6647 |
application. Initial patch by Clovis Fabricio. |
| 6648 |
|
| 6649 |
- bpo-10806: Fix subprocess pipes when some of the standard file descriptors |
| 6650 |
(0, 1, 2) are closed in the parent process. Initial patch by Ross |
| 6651 |
Lagerwall. (See also: bpo-9905) |
| 6652 |
|
| 6653 |
- bpo-4662: os.tempnam(), os.tmpfile() and os.tmpnam() now raise a py3k |
| 6654 |
DeprecationWarning. |
| 6655 |
|
| 6656 |
- Subclasses of collections.OrderedDict now work correctly with __missing__. |
| 6657 |
|
| 6658 |
- bpo-10753: Characters ';', '=' and ',' in the PATH_INFO environment |
| 6659 |
variable won't be quoted when the URI is constructed by the wsgiref.util |
| 6660 |
's request_uri method. According to RFC 3986, these characters can be a |
| 6661 |
part of params in PATH component of URI and need not be quoted. |
| 6662 |
|
| 6663 |
- bpo-10738: Fix webbrowser.Opera.raise_opts |
| 6664 |
|
| 6665 |
- bpo-9824: SimpleCookie now encodes , and ; in values to cater to how |
| 6666 |
browsers actually parse cookies. |
| 6667 |
|
| 6668 |
- bpo-1379416: eliminated a source of accidental unicode promotion in |
| 6669 |
email.header.Header.encode. |
| 6670 |
|
| 6671 |
- bpo-5258: if site.py encounters a .pth file that generates an error, it |
| 6672 |
now prints the filename, line number, and traceback to stderr and skips |
| 6673 |
the rest of that individual file, instead of stopping processing entirely. |
| 6674 |
(See also: bpo-10642) |
| 6675 |
|
| 6676 |
- bpo-10750: The ``raw`` attribute of buffered IO objects is now read-only. |
| 6677 |
|
| 6678 |
- bpo-10242: unittest.TestCase.assertItemsEqual makes too many assumptions |
| 6679 |
about input. |
| 6680 |
|
| 6681 |
- bpo-10611: SystemExit should not cause a unittest test run to exit. |
| 6682 |
|
| 6683 |
- bpo-6791: Limit header line length (to 65535 bytes) in http.client, to |
| 6684 |
avoid denial of services from the other party. |
| 6685 |
|
| 6686 |
- bpo-9907: Fix tab handling on OSX when using editline by calling |
| 6687 |
rl_initialize first, then setting our custom defaults, then reading |
| 6688 |
.editrc. |
| 6689 |
|
| 6690 |
- bpo-4188: Avoid creating dummy thread objects when logging operations from |
| 6691 |
the threading module (with the internal verbose flag activated). |
| 6692 |
|
| 6693 |
- bpo-9721: Fix the behavior of urljoin when the relative url starts with a |
| 6694 |
';' character. Patch by Wes Chow. |
| 6695 |
|
| 6696 |
- bpo-10714: Limit length of incoming request in http.server to 65536 bytes |
| 6697 |
for security reasons. Initial patch by Ross Lagerwall. |
| 6698 |
|
| 6699 |
- bpo-9558: Fix distutils.command.build_ext with VS 8.0. |
| 6700 |
|
| 6701 |
- bpo-10695: passing the port as a string value to telnetlib no longer |
| 6702 |
causes debug mode to fail. |
| 6703 |
|
| 6704 |
- bpo-10478: Reentrant calls inside buffered IO objects (for example by way |
| 6705 |
of a signal handler) now raise a RuntimeError instead of freezing the |
| 6706 |
current process. |
| 6707 |
|
| 6708 |
- bpo-10497: Fix incorrect use of gettext in argparse. |
| 6709 |
|
| 6710 |
- bpo-10464: netrc now correctly handles lines with embedded '#' characters. |
| 6711 |
|
| 6712 |
- bpo-1731717: Fixed the problem where subprocess.wait() could cause an |
| 6713 |
OSError exception when The OS had been told to ignore SIGCLD in our |
| 6714 |
process or otherwise not wait for exiting child processes. |
| 6715 |
|
| 6716 |
- bpo-9509: argparse now properly handles IOErrors raised by |
| 6717 |
argparse.FileType. |
| 6718 |
|
| 6719 |
- bpo-9348: Raise an early error if argparse nargs and metavar don't match. |
| 6720 |
|
| 6721 |
- bpo-8982: Improve the documentation for the argparse Namespace object. |
| 6722 |
|
| 6723 |
- bpo-9343: Document that argparse parent parsers must be configured before |
| 6724 |
their children. |
| 6725 |
|
| 6726 |
- bpo-9026: Fix order of argparse sub-commands in help messages. |
| 6727 |
|
| 6728 |
- bpo-9347: Fix formatting for tuples in argparse type= error messages. |
| 6729 |
|
| 6730 |
- Stop using the old interface for providing methods and attributes in the |
| 6731 |
_sre module. Among other things, this gives these classes ``__class__`` |
| 6732 |
attributes. (See #12099) |
| 6733 |
|
| 6734 |
- bpo-10169: Fix argument parsing in socket.sendto() to avoid error masking. |
| 6735 |
|
| 6736 |
- bpo-12051: Fix segfault in json.dumps() while encoding highly-nested |
| 6737 |
objects using the C accelerations. |
| 6738 |
|
| 6739 |
- bpo-12017: Fix segfault in json.loads() while decoding highly-nested |
| 6740 |
objects using the C accelerations. |
| 6741 |
|
| 6742 |
- bpo-1838: Prevent segfault in ctypes, when _as_parameter_ on a class is |
| 6743 |
set to an instance of the class. |
| 6744 |
|
| 6745 |
- bpo-678250: Make mmap flush a noop on ACCESS_READ and ACCESS_COPY. |
| 6746 |
|
| 6747 |
IDLE |
| 6748 |
---- |
| 6749 |
|
| 6750 |
- bpo-11718: IDLE's open module dialog couldn't find the __init__.py file in |
| 6751 |
a package. |
| 6752 |
|
| 6753 |
- bpo-12590: IDLE editor window now always displays the first line when |
| 6754 |
opening a long file. With Tk 8.5, the first line was hidden. |
| 6755 |
|
| 6756 |
- bpo-11088: don't crash when using F5 to run a script in IDLE on MacOSX |
| 6757 |
with Tk 8.5. |
| 6758 |
|
| 6759 |
- bpo-10940: Workaround an IDLE hang on Mac OS X 10.6 when using the menu |
| 6760 |
accelerators for Open Module, Go to Line, and New Indent Width. The |
| 6761 |
accelerators still work but no longer appear in the menu items. |
| 6762 |
|
| 6763 |
- bpo-10907: Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5, rather |
| 6764 |
than the currently problematic Apple-supplied one, when running with the |
| 6765 |
64-/32-bit installer variant. |
| 6766 |
|
| 6767 |
- bpo-11052: Correct IDLE menu accelerators on Mac OS X for Save commands. |
| 6768 |
|
| 6769 |
- bpo-6075: IDLE on Mac OS X now works with both Carbon AquaTk and Cocoa |
| 6770 |
AquaTk. |
| 6771 |
|
| 6772 |
- bpo-10404: Use ctl-button-1 on OSX for the context menu in Idle. |
| 6773 |
|
| 6774 |
- bpo-10107: Warn about unsaved files in IDLE on OSX. |
| 6775 |
|
| 6776 |
- bpo-10406: Enable Rstrip IDLE extension on OSX (just like on other |
| 6777 |
platforms). |
| 6778 |
|
| 6779 |
- bpo-6378: Further adjust idle.bat to start associated Python |
| 6780 |
|
| 6781 |
- bpo-11896: Save on Close failed despite selecting "Yes" in dialog. |
| 6782 |
|
| 6783 |
- bpo-4676: <Home> toggle failing on Tk 8.5, causing IDLE exits and strange |
| 6784 |
selection behavior. Improve selection extension behaviour. |
| 6785 |
|
| 6786 |
- bpo-3851: <Home> toggle non-functional when NumLock set on Windows. |
| 6787 |
|
| 6788 |
Build |
| 6789 |
----- |
| 6790 |
|
| 6791 |
- bpo-11217: For 64-bit/32-bit Mac OS X universal framework builds, ensure |
| 6792 |
"make install" creates symlinks in --prefix bin for the "-32" files in the |
| 6793 |
framework bin directory like the installer does. |
| 6794 |
|
| 6795 |
- bpo-11411: Fix 'make DESTDIR=' with a relative destination. |
| 6796 |
|
| 6797 |
- bpo-10709: Add updated AIX notes in Misc/README.AIX. |
| 6798 |
|
| 6799 |
- bpo-11184: Fix large-file support on AIX. |
| 6800 |
|
| 6801 |
- bpo-941346: Fix broken shared library build on AIX. |
| 6802 |
|
| 6803 |
- bpo-11268: Prevent Mac OS X Installer failure if Documentation package had |
| 6804 |
previously been installed. |
| 6805 |
|
| 6806 |
- bpo-11079: The /Applications/Python x.x folder created by the Mac OS X |
| 6807 |
installers now includes a link to the installed documentation. |
| 6808 |
|
| 6809 |
- bpo-11054: Allow Mac OS X installer builds to again work on 10.5 with the |
| 6810 |
system-provided Python. |
| 6811 |
|
| 6812 |
- bpo-10843: Update third-party library versions used in OS X 32-bit |
| 6813 |
installer builds: bzip2 1.0.6, readline 6.1.2, SQLite 3.7.4 (with |
| 6814 |
FTS3/FTS4 and RTREE enabled), and ncursesw 5.5 (wide-char support |
| 6815 |
enabled). |
| 6816 |
|
| 6817 |
- Don't run pgen twice when using make -j. |
| 6818 |
|
| 6819 |
- bpo-7716: Under Solaris, don't assume existence of /usr/xpg4/bin/grep in |
| 6820 |
the configure script but use $GREP instead. Patch by Fabian Groffen. |
| 6821 |
|
| 6822 |
- bpo-10475: Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD and |
| 6823 |
DragonFly BSD. Patch by Nicolas Joly. |
| 6824 |
|
| 6825 |
- bpo-10655: Fix the build on PowerPC on Linux with GCC when building with |
| 6826 |
timestamp profiling (--with-tsc): the preprocessor test for the PowerPC |
| 6827 |
support now looks for "__powerpc__" as well as "__ppc__": the latter seems |
| 6828 |
to only be present on OS X; the former is the correct one for Linux with |
| 6829 |
GCC. |
| 6830 |
|
| 6831 |
- bpo-1099: Fix the build on MacOSX when building a framework with pydebug |
| 6832 |
using GCC 4.0. |
| 6833 |
|
| 6834 |
Tests |
| 6835 |
----- |
| 6836 |
|
| 6837 |
- bpo-11164: Remove obsolete allnodes test from minidom test. |
| 6838 |
|
| 6839 |
- bpo-12205: Fix test_subprocess failure due to uninstalled test data. |
| 6840 |
|
| 6841 |
- bpo-5723: Improve json tests to be executed with and without |
| 6842 |
accelerations. |
| 6843 |
|
| 6844 |
- bpo-11910: Fix test_heapq to skip the C tests when _heapq is missing. |
| 6845 |
|
| 6846 |
- Fix test_startfile to wait for child process to terminate before |
| 6847 |
finishing. |
| 6848 |
|
| 6849 |
- bpo-11719: Fix message about unexpected test_msilib skip on non-Windows |
| 6850 |
platforms. Patch by Nadeem Vawda. |
| 6851 |
|
| 6852 |
- bpo-7108: Fix test_commands to not fail when special attributes ('@' or |
| 6853 |
'.') appear in 'ls -l' output. |
| 6854 |
|
| 6855 |
- bpo-11490: test_subprocess:test_leaking_fds_on_error no longer gives a |
| 6856 |
false positive if the last directory in the path is inaccessible. |
| 6857 |
|
| 6858 |
- bpo-10822: Fix test_posix:test_getgroups failure under Solaris. Patch by |
| 6859 |
Ross Lagerwall. |
| 6860 |
|
| 6861 |
- bpo-6293: Have regrtest.py echo back sys.flags. This is done by default |
| 6862 |
in whole runs and enabled selectively using ``--header`` when running an |
| 6863 |
explicit list of tests. Original patch by Collin Winter. |
| 6864 |
|
| 6865 |
- bpo-775964: test_grp now skips YP/NIS entries instead of failing when |
| 6866 |
encountering them. |
| 6867 |
|
| 6868 |
- bpo-7110: regrtest now sends test failure reports and single-failure |
| 6869 |
tracebacks to stderr rather than stdout. |
| 6870 |
|
| 6871 |
|
| 6872 |
What's New in Python 2.7.1 final? |
| 6873 |
================================= |
| 6874 |
|
| 6875 |
*Release date: 2010-11-27* |
| 6876 |
|
| 6877 |
Library |
| 6878 |
------- |
| 6879 |
|
| 6880 |
- bpo-2236: distutils' mkpath ignored the mode parameter. |
| 6881 |
|
| 6882 |
- Fix typo in one sdist option (medata-check). |
| 6883 |
|
| 6884 |
- bpo-10323: itertools.islice() now consumes the minimum number of inputs |
| 6885 |
before stopping. Formerly, the final state of the underlying iterator was |
| 6886 |
undefined. |
| 6887 |
|
| 6888 |
- bpo-10565: The collections.Iterator ABC now checks for both ``__iter__`` |
| 6889 |
and ``next``. |
| 6890 |
|
| 6891 |
- bpo-10092: Properly reset locale in calendar.Locale*Calendar classes. |
| 6892 |
|
| 6893 |
- bpo-10459: Update CJK character names to Unicode 5.2. |
| 6894 |
|
| 6895 |
- bpo-6098: Don't claim DOM level 3 conformance in minidom. |
| 6896 |
|
| 6897 |
- bpo-10561: In pdb, clear the breakpoints by the breakpoint number. |
| 6898 |
|
| 6899 |
- bpo-5762: Fix AttributeError raised by ``xml.dom.minidom`` when an empty |
| 6900 |
XML namespace attribute is encountered. |
| 6901 |
|
| 6902 |
- bpo-1710703: Write structures for an empty ZIP archive when a ZipFile is |
| 6903 |
created in modes 'a' or 'w' and then closed without adding any files. |
| 6904 |
Raise BadZipfile (rather than IOError) when opening small non-ZIP files. |
| 6905 |
|
| 6906 |
- bpo-4493: urllib2 adds '/' in front of path components which does not |
| 6907 |
start with '/. Common behavior exhibited by browsers and other clients. |
| 6908 |
|
| 6909 |
- bpo-10407: Fix one NameError in distutils. |
| 6910 |
|
| 6911 |
- bpo-10198: fix duplicate header written to wave files when writeframes() |
| 6912 |
is called without data. |
| 6913 |
|
| 6914 |
- bpo-10467: Fix BytesIO.readinto() after seeking into a position after the |
| 6915 |
end of the file. |
| 6916 |
|
| 6917 |
- bpo-5111: IPv6 Host in the Header is wrapped inside [ ]. Patch by Chandru. |
| 6918 |
|
| 6919 |
IDLE |
| 6920 |
---- |
| 6921 |
|
| 6922 |
- bpo-6378: idle.bat now runs with the appropriate Python version rather |
| 6923 |
than the system default. Patch by Sridhar Ratnakumar. |
| 6924 |
|
| 6925 |
Build |
| 6926 |
----- |
| 6927 |
|
| 6928 |
- Backport r83399 to allow test_distutils to pass on installed versions. |
| 6929 |
|
| 6930 |
- bpo-1303434: Generate ZIP file containing all PDBs. |
| 6931 |
|
| 6932 |
Tests |
| 6933 |
----- |
| 6934 |
|
| 6935 |
- bpo-9424: Replace deprecated assert* methods in the Python test suite. |
| 6936 |
|
| 6937 |
Documentation |
| 6938 |
------------- |
| 6939 |
|
| 6940 |
- bpo-10299: List the built-in functions in a table in functions.rst. |
| 6941 |
|
| 6942 |
|
| 6943 |
What's New in Python 2.7.1 release candidate 1? |
| 6944 |
=============================================== |
| 6945 |
|
| 6946 |
*Release date: 2010-11-13* |
| 6947 |
|
| 6948 |
Core and Builtins |
| 6949 |
----------------- |
| 6950 |
|
| 6951 |
- bpo-10221: dict.pop(k) now has a key error message that includes the |
| 6952 |
missing key (same message d[k] returns for missing keys). |
| 6953 |
|
| 6954 |
- bpo-10125: Don't segfault when the iterator passed to |
| 6955 |
``file.writelines()`` closes the file. |
| 6956 |
|
| 6957 |
- bpo-10186: Fix the SyntaxError caret when the offset is equal to the |
| 6958 |
length of the offending line. |
| 6959 |
|
| 6960 |
- bpo-9997: Don't let the name "top" have special significance in scope |
| 6961 |
resolution. |
| 6962 |
|
| 6963 |
- bpo-9862: Compensate for broken PIPE_BUF in AIX by hard coding its value |
| 6964 |
as the default 512 when compiling on AIX. |
| 6965 |
|
| 6966 |
- bpo-9675: CObject use is marked as a Py3k warning, not a deprecation |
| 6967 |
warning. |
| 6968 |
|
| 6969 |
- bpo-10068: Global objects which have reference cycles with their module's |
| 6970 |
dict are now cleared again. This causes issue #7140 to appear again. |
| 6971 |
|
| 6972 |
- bpo-9869: Make long() and PyNumber_Long return something of type long for |
| 6973 |
a class whose __long__ method returns a plain int. This fixes an |
| 6974 |
interpreter crash when initializing an instance of a long subclass from an |
| 6975 |
object whose __long__ method returns a plain int. |
| 6976 |
|
| 6977 |
- bpo-10006: type.__abstractmethods__ now raises an AttributeError. |
| 6978 |
|
| 6979 |
- bpo-9797: pystate.c wrongly assumed that zero couldn't be a valid |
| 6980 |
thread-local storage key. |
| 6981 |
|
| 6982 |
- bpo-4947: The write() method of sys.stdout and sys.stderr uses their |
| 6983 |
encoding and errors attributes instead of using utf-8 in strict mode, to |
| 6984 |
get the same behaviour than the print statement. |
| 6985 |
|
| 6986 |
- bpo-9737: Fix a crash when trying to delete a slice or an item from a |
| 6987 |
memoryview object. |
| 6988 |
|
| 6989 |
- Restore GIL in nis_cat in case of error. |
| 6990 |
|
| 6991 |
- bpo-9688: __basicsize__ and __itemsize__ must be accessed as Py_ssize_t. |
| 6992 |
|
| 6993 |
- bpo-8530: Prevent stringlib fastsearch from reading beyond the front of an |
| 6994 |
array. |
| 6995 |
|
| 6996 |
- bpo-83755: Implicit set-to-frozenset conversion was not thread-safe. |
| 6997 |
|
| 6998 |
- bpo-9416: Fix some issues with complex formatting where the output with no |
| 6999 |
type specifier failed to match the str output: |
| 7000 |
|
| 7001 |
- format(complex(-0.0, 2.0), '-') omitted the real part from the output, |
| 7002 |
- format(complex(0.0, 2.0), '-') included a sign and parentheses. |
| 7003 |
|
| 7004 |
- bpo-7616: Fix copying of overlapping memoryview slices with the Intel |
| 7005 |
compiler. |
| 7006 |
|
| 7007 |
Library |
| 7008 |
------- |
| 7009 |
|
| 7010 |
- bpo-9926: Wrapped TestSuite subclass does not get __call__ executed |
| 7011 |
|
| 7012 |
- bpo-4471: Properly shutdown socket in IMAP.shutdown(). Patch by Lorenzo |
| 7013 |
M. Catucci. |
| 7014 |
|
| 7015 |
- bpo-10126: Fix distutils' test_build when Python was built with |
| 7016 |
--enable-shared. |
| 7017 |
|
| 7018 |
- Fix typo in one sdist option (medata-check). |
| 7019 |
|
| 7020 |
- bpo-9199: Fix incorrect use of distutils.cmd.Command.announce. |
| 7021 |
|
| 7022 |
- bpo-1718574: Fix options that were supposed to accept arguments but did |
| 7023 |
not in build_clib. |
| 7024 |
|
| 7025 |
- bpo-9281: Prevent race condition with mkdir in distutils. Patch by |
| 7026 |
Arfrever. |
| 7027 |
|
| 7028 |
- bpo-10229: Fix caching error in gettext. |
| 7029 |
|
| 7030 |
- bpo-10252: Close file objects in a timely manner in distutils code and |
| 7031 |
tests. Patch by Brian Brazil, completed by Éric Araujo. |
| 7032 |
|
| 7033 |
- bpo-10311: The signal module now restores errno before returning from its |
| 7034 |
low-level signal handler. Patch by Hallvard B Furuseth. |
| 7035 |
|
| 7036 |
- bpo-10038: json.loads() on str should always return unicode (regression |
| 7037 |
from Python 2.6). Patch by Walter Dörwald. |
| 7038 |
|
| 7039 |
- bpo-120176: Wrapped TestSuite subclass does not get __call__ executed. |
| 7040 |
|
| 7041 |
- bpo-6706: asyncore accept() method no longer raises |
| 7042 |
EWOULDBLOCK/ECONNABORTED on incomplete connection attempt but returns None |
| 7043 |
instead. |
| 7044 |
|
| 7045 |
- bpo-10266: uu.decode didn't close in_file explicitly when it was given as |
| 7046 |
a filename. Patch by Brian Brazil. |
| 7047 |
|
| 7048 |
- bpo-10246: uu.encode didn't close file objects explicitly when filenames |
| 7049 |
were given to it. Patch by Brian Brazil. |
| 7050 |
|
| 7051 |
- bpo-10253: FileIO leaks a file descriptor when trying to open a file for |
| 7052 |
append that isn't seekable. Patch by Brian Brazil. |
| 7053 |
|
| 7054 |
- bpo-6105: json.dumps now respects OrderedDict's iteration order. |
| 7055 |
|
| 7056 |
- bpo-9295: Fix a crash under Windows when calling close() on a file object |
| 7057 |
with custom buffering from two threads at once. |
| 7058 |
|
| 7059 |
- bpo-5027: The standard ``xml`` namespace is now understood by |
| 7060 |
xml.sax.saxutils.XMLGenerator as being bound to |
| 7061 |
http://www.w3.org/XML/1998/namespace. Patch by Troy J. Farrell. |
| 7062 |
|
| 7063 |
- bpo-10163: Skip unreadable registry keys during mimetypes initialization. |
| 7064 |
|
| 7065 |
- bpo-5117: Fixed root directory related issue on posixpath.relpath() and |
| 7066 |
ntpath.relpath(). |
| 7067 |
|
| 7068 |
- bpo-9409: Fix the regex to match all kind of filenames, for interactive |
| 7069 |
debugging in doctests. |
| 7070 |
|
| 7071 |
- bpo-6612: Fix site and sysconfig to catch os.getcwd() error, eg. if the |
| 7072 |
current directory was deleted. Patch written by W. Trevor King. |
| 7073 |
|
| 7074 |
- bpo-10045: Improved performance when writing after seeking past the end of |
| 7075 |
the "file" in cStringIO. |
| 7076 |
|
| 7077 |
- bpo-9948: Fixed problem of losing filename case information. |
| 7078 |
|
| 7079 |
- bpo-9437: Fix building C extensions with non-default LDFLAGS. |
| 7080 |
|
| 7081 |
- bpo-9759: GzipFile now raises ValueError when an operation is attempted |
| 7082 |
after the file is closed. Patch by Jeffrey Finkelstein. |
| 7083 |
|
| 7084 |
- bpo-9042: Fix interaction of custom translation classes and caching in |
| 7085 |
gettext. |
| 7086 |
|
| 7087 |
- bpo-9065: tarfile no longer uses "root" as the default for the uname and |
| 7088 |
gname field. |
| 7089 |
|
| 7090 |
- bpo-1050268: parseaddr now correctly quotes double quote and backslash |
| 7091 |
characters that appear inside quoted strings in email addresses. |
| 7092 |
|
| 7093 |
- bpo-10004: quoprimime no longer generates a traceback when confronted with |
| 7094 |
invalid characters after '=' in a Q-encoded word. |
| 7095 |
|
| 7096 |
- bpo-9950: Fix socket.sendall() crash or misbehaviour when a signal is |
| 7097 |
received. Now sendall() properly calls signal handlers if necessary, and |
| 7098 |
retries sending if these returned successfully, including on sockets with |
| 7099 |
a timeout. |
| 7100 |
|
| 7101 |
- bpo-9947: logging: Fixed locking bug in stopListening. |
| 7102 |
|
| 7103 |
- bpo-9945: logging: Fixed locking bugs in addHandler/removeHandler. |
| 7104 |
|
| 7105 |
- bpo-9936: Fixed executable lines' search in the trace module. |
| 7106 |
|
| 7107 |
- bpo-9928: Properly initialize the types exported by the bz2 module. |
| 7108 |
|
| 7109 |
- bpo-9854: The default read() implementation in io.RawIOBase now handles |
| 7110 |
non-blocking readinto() returning None correctly. |
| 7111 |
|
| 7112 |
- bpo-9729: Fix the signature of SSLSocket.recvfrom() and SSLSocket.sendto() |
| 7113 |
to match the corresponding socket methods. Also, fix various SSLSocket |
| 7114 |
methods to raise socket.error rather than an unhelpful TypeError when |
| 7115 |
called on an unconnected socket. Original patch by Andrew Bennetts. |
| 7116 |
|
| 7117 |
- bpo-9826: OrderedDict.__repr__ can now handle self-referential values: |
| 7118 |
d['x'] = d. |
| 7119 |
|
| 7120 |
- bpo-767645: Set os.path.supports_unicode_filenames to True on Mac OS X. |
| 7121 |
|
| 7122 |
- bpo-9837: The read() method of ZipExtFile objects (as returned by |
| 7123 |
ZipFile.open()) could return more bytes than requested. |
| 7124 |
|
| 7125 |
- bpo-9825: removed __del__ from the definition of collections.OrderedDict. |
| 7126 |
This prevents user-created self-referencing ordered dictionaries from |
| 7127 |
becoming permanently uncollectable GC garbage. The downside is that |
| 7128 |
removing __del__ means that the internal doubly-linked list has to wait |
| 7129 |
for GC collection rather than freeing memory immediately when the refcnt |
| 7130 |
drops to zero. |
| 7131 |
|
| 7132 |
- bpo-9816: random.Random.jumpahead(n) did not produce a sufficiently |
| 7133 |
different internal state for small values of n. Fixed by salting the |
| 7134 |
value. |
| 7135 |
|
| 7136 |
- bpo-9792: In case of connection failure, socket.create_connection() would |
| 7137 |
swallow the exception and raise a new one, making it impossible to fetch |
| 7138 |
the original errno, or to filter timeout errors. Now the original error |
| 7139 |
is re-raised. |
| 7140 |
|
| 7141 |
- bpo-9758: When fcntl.ioctl() was called with mutable_flag set to True, and |
| 7142 |
the passed buffer was exactly 1024 bytes long, the buffer wouldn't be |
| 7143 |
updated back after the system call. Original patch by Brian Brazil. |
| 7144 |
|
| 7145 |
- bpo-1100562: Fix deep-copying of objects derived from the list and dict |
| 7146 |
types. Patch by Michele Orrù and Björn Lindqvist. |
| 7147 |
|
| 7148 |
- bpo-7005: Fixed output of None values for RawConfigParser.write and |
| 7149 |
ConfigParser.write. |
| 7150 |
|
| 7151 |
- bpo-808164: Fixed socket.close to avoid references to globals, to avoid |
| 7152 |
issues when socket.close is called from a __del__ method. |
| 7153 |
|
| 7154 |
- bpo-2986: difflib.SequenceMatcher gets a new parameter, autojunk, which |
| 7155 |
can be set to False to turn off the previously undocumented 'popularity' |
| 7156 |
heuristic. Patch by Terry Reedy and Eli Bendersky |
| 7157 |
|
| 7158 |
- bpo-8797: urllib2 does a retry for Basic Authentication failure instead of |
| 7159 |
falling into recursion. |
| 7160 |
|
| 7161 |
- bpo-1194222: email.utils.parsedate now returns RFC2822 compliant four |
| 7162 |
character years even if the message contains RFC822 two character years. |
| 7163 |
|
| 7164 |
- bpo-8750: Fixed MutableSet's methods to correctly handle reflexive |
| 7165 |
operations, namely x -= x and x ^= x. |
| 7166 |
|
| 7167 |
- bpo-9129: smtpd.py is vulnerable to DoS attacks deriving from missing |
| 7168 |
error handling when accepting a new connection. |
| 7169 |
|
| 7170 |
- bpo-658749: asyncore's connect() method now correctly interprets winsock |
| 7171 |
errors. |
| 7172 |
|
| 7173 |
- bpo-9501: Fixed logging regressions in cleanup code. |
| 7174 |
|
| 7175 |
- bpo-9214: Set operations on KeysView or ItemsView in the collections |
| 7176 |
module now correctly return a set. (Patch by Eli Bendersky.) |
| 7177 |
|
| 7178 |
- bpo-9617: Signals received during a low-level write operation aren't |
| 7179 |
ignored by the buffered IO layer anymore. |
| 7180 |
|
| 7181 |
- bpo-2521: Use weakrefs on for caching in the abc module, so that classes |
| 7182 |
are not held onto after they are deleted elsewhere. |
| 7183 |
|
| 7184 |
- bpo-9626: the view methods for collections.OrderedDict() were returning |
| 7185 |
the unordered versions inherited from dict. Those methods are now |
| 7186 |
overridden to provide ordered views. |
| 7187 |
|
| 7188 |
- bpo-8688: MANIFEST files created by distutils now include a magic comment |
| 7189 |
indicating they are generated. Manually maintained MANIFESTs without this |
| 7190 |
marker will not be overwritten or removed. |
| 7191 |
|
| 7192 |
- bpo-7467: when reading a file from a ZIP archive, its CRC is checked and a |
| 7193 |
BadZipfile error is raised if it doesn't match (as used to be the case in |
| 7194 |
Python 2.5 and earlier). |
| 7195 |
|
| 7196 |
- bpo-9550: a BufferedReader could issue an additional read when the |
| 7197 |
original read request had been satisfied, which could block indefinitely |
| 7198 |
when the underlying raw IO channel was e.g. a socket. Report and original |
| 7199 |
patch by Jason V. Miller. |
| 7200 |
|
| 7201 |
- bpo-9551: Don't raise TypeError when setting the value to None for |
| 7202 |
SafeConfigParser instances constructed with allow_no_value == True. |
| 7203 |
|
| 7204 |
- bpo-6915: Under Windows, os.listdir() didn't release the Global |
| 7205 |
Interpreter Lock around all system calls. Original patch by Ryan Kelly. |
| 7206 |
|
| 7207 |
- bpo-3757: thread-local objects now support cyclic garbage collection. |
| 7208 |
Thread-local objects involved in reference cycles will be deallocated |
| 7209 |
timely by the cyclic GC, even if the underlying thread is still running. |
| 7210 |
|
| 7211 |
- bpo-6231: Fix xml.etree.ElementInclude to include the tail of the current |
| 7212 |
node. |
| 7213 |
|
| 7214 |
- bpo-6869: Fix a refcount problem in the _ctypes extension. |
| 7215 |
|
| 7216 |
- bpo-5504: ctypes should now work with systems where mmap can't be |
| 7217 |
PROT_WRITE and PROT_EXEC. |
| 7218 |
|
| 7219 |
- bpo-8280: urllib2's Request method will remove fragements in the url. This |
| 7220 |
is how it is supposed to work, wget and curl do the same. Previous |
| 7221 |
behavior was wrong. |
| 7222 |
|
| 7223 |
- bpo-2944: asyncore doesn't handle connection refused correctly. |
| 7224 |
|
| 7225 |
- bpo-3196: email header decoding is now forgiving if an RFC2047 encoded |
| 7226 |
word encoded in base64 is lacking padding. |
| 7227 |
|
| 7228 |
- bpo-9444: Argparse now uses the first element of prefix_chars as the |
| 7229 |
option character for the added 'h/help' option if prefix_chars does not |
| 7230 |
contain a '-', instead of raising an error. |
| 7231 |
|
| 7232 |
- bpo-9354: Provide getsockopt() in asyncore's file_wrapper. |
| 7233 |
|
| 7234 |
- bpo-9428: Fix running scripts with the profile/cProfile modules from the |
| 7235 |
command line. |
| 7236 |
|
| 7237 |
- bpo-7781: Fix restricting stats by entry counts in the pstats interactive |
| 7238 |
browser. |
| 7239 |
|
| 7240 |
- bpo-9209: Do not crash in the pstats interactive browser on invalid |
| 7241 |
regular expressions. |
| 7242 |
|
| 7243 |
- bpo-7372: Fix pstats regression when stripping paths from profile data |
| 7244 |
generated with the profile module. |
| 7245 |
|
| 7246 |
- bpo-4108: In urllib.robotparser, if there are multiple 'User-agent: *' |
| 7247 |
entries, consider the first one. |
| 7248 |
|
| 7249 |
- bpo-8397: Raise an error when attempting to mix iteration and regular |
| 7250 |
reads on a BZ2File object, rather than returning incorrect results. |
| 7251 |
|
| 7252 |
- bpo-5294: Fix the behavior of pdb's "continue" command when called in the |
| 7253 |
top-level debugged frame. |
| 7254 |
|
| 7255 |
- bpo-5727: Restore the ability to use readline when calling into pdb in |
| 7256 |
doctests. |
| 7257 |
|
| 7258 |
- bpo-6719: In pdb, do not stop somewhere in the encodings machinery if the |
| 7259 |
source file to be debugged is in a non-builtin encoding. |
| 7260 |
|
| 7261 |
- bpo-8048: Prevent doctests from failing when sys.displayhook has been |
| 7262 |
reassigned. |
| 7263 |
|
| 7264 |
- bpo-8015: In pdb, do not crash when an empty line is entered as a |
| 7265 |
breakpoint command. |
| 7266 |
|
| 7267 |
- bpo-9448: Fix a leak of OS resources (mutexes or semaphores) when |
| 7268 |
re-initializing a buffered IO object by calling its ``__init__`` method. |
| 7269 |
|
| 7270 |
- bpo-7909: Do not touch paths with the special prefixes ``\\.\`` or |
| 7271 |
``\\?\`` in ntpath.normpath(). |
| 7272 |
|
| 7273 |
- bpo-5146: Handle UID THREAD command correctly in imaplib. |
| 7274 |
|
| 7275 |
- bpo-5147: Fix the header generated for cookie files written by |
| 7276 |
http.cookiejar.MozillaCookieJar. |
| 7277 |
|
| 7278 |
- bpo-8198: In pydoc, output all help text to the correct stream when |
| 7279 |
sys.stdout is reassigned. |
| 7280 |
|
| 7281 |
- bpo-7395: Fix tracebacks in pstats interactive browser. |
| 7282 |
|
| 7283 |
- bpo-8230: Fix Lib/test/sortperf.py. |
| 7284 |
|
| 7285 |
- bpo-1713: Fix os.path.ismount(), which returned true for symbolic links |
| 7286 |
across devices. |
| 7287 |
|
| 7288 |
- bpo-8826: Properly load old-style "expires" attribute in http.cookies. |
| 7289 |
|
| 7290 |
- bpo-1690103: Fix initial namespace for code run with trace.main(). |
| 7291 |
|
| 7292 |
- bpo-8471: In doctest, properly reset the output stream to an empty string |
| 7293 |
when Unicode was previously output. |
| 7294 |
|
| 7295 |
- bpo-8620: when a Cmd is fed input that reaches EOF without a final |
| 7296 |
newline, it no longer truncates the last character of the last command |
| 7297 |
line. |
| 7298 |
|
| 7299 |
- bpo-6213: Implement getstate() and setstate() methods of utf-8-sig and |
| 7300 |
utf-16 incremental encoders. |
| 7301 |
|
| 7302 |
- bpo-7113: Speed up loading in ConfigParser. Patch by Łukasz Langa. |
| 7303 |
|
| 7304 |
- bpo-3704: cookielib was not properly handling URLs with a / in the |
| 7305 |
parameters. |
| 7306 |
|
| 7307 |
- bpo-9032: XML-RPC client retries the request on EPIPE error. The EPIPE |
| 7308 |
error occurs when the server closes the socket and the client sends a big |
| 7309 |
XML-RPC request. |
| 7310 |
|
| 7311 |
- bpo-5542: Remove special logic that closes HTTPConnection socket on EPIPE. |
| 7312 |
|
| 7313 |
- bpo-4629: getopt raises an error if an argument ends with = whereas getopt |
| 7314 |
doesn't except a value (eg. --help= is rejected if getopt uses ['help='] |
| 7315 |
long options). |
| 7316 |
|
| 7317 |
- bpo-7895: platform.mac_ver() no longer crashes after calling os.fork() |
| 7318 |
|
| 7319 |
- bpo-5395: array.fromfile() would raise a spurious EOFError when an I/O |
| 7320 |
error occurred. Now an IOError is raised instead. Patch by chuck (Jan |
| 7321 |
Hosang). |
| 7322 |
|
| 7323 |
- bpo-7646: The fnmatch pattern cache no longer grows without bound. |
| 7324 |
|
| 7325 |
- bpo-9136: Fix 'dictionary changed size during iteration' RuntimeError |
| 7326 |
produced when profiling the decimal module. This was due to a dangerous |
| 7327 |
iteration over 'locals()' in Context.__init__. |
| 7328 |
|
| 7329 |
- Fix extreme speed issue in Decimal.pow when the base is an exact power of |
| 7330 |
10 and the exponent is tiny (for example, Decimal(10) ** |
| 7331 |
Decimal('1e-999999999')). |
| 7332 |
|
| 7333 |
- bpo-9161: Fix regression in optparse's acceptance of unicode strings in |
| 7334 |
add_option calls. |
| 7335 |
|
| 7336 |
- bpo-9130: Fix validation of relative imports in parser module. |
| 7337 |
|
| 7338 |
- bpo-9128: Fix validation of class decorators in parser module. |
| 7339 |
|
| 7340 |
- bpo-9164: Ensure sysconfig handles dupblice archs while building on OSX |
| 7341 |
|
| 7342 |
- bpo-9315: Fix for the trace module to record correct class name for |
| 7343 |
tracing methods. |
| 7344 |
|
| 7345 |
- bpo-9054: Fix a crash occurring when using the pyexpat module with expat |
| 7346 |
version 2.0.1. |
| 7347 |
|
| 7348 |
- bpo-10003: Allow handling of SIGBREAK on Windows. Fixes a regression |
| 7349 |
introduced by issue #9324. |
| 7350 |
|
| 7351 |
- bpo-8734: Avoid crash in msvcrt.get_osfhandle() when an invalid file |
| 7352 |
descriptor is provided. Patch by Pascal Chambon. |
| 7353 |
|
| 7354 |
- bpo-7736: Release the GIL around calls to opendir() and closedir() in the |
| 7355 |
posix module. Patch by Marcin Bachry. |
| 7356 |
|
| 7357 |
- As a result of issue #2521, the _weakref module is now compiled into the |
| 7358 |
interpreter by default. |
| 7359 |
|
| 7360 |
- bpo-9324: Add parameter validation to signal.signal on Windows in order to |
| 7361 |
prevent crashes. |
| 7362 |
|
| 7363 |
- bpo-9526: Remove some outdated (int) casts that were preventing the array |
| 7364 |
module from working correctly with arrays of more than 2**31 elements. |
| 7365 |
|
| 7366 |
- Fix memory leak in ssl._ssl._test_decode_cert. |
| 7367 |
|
| 7368 |
- bpo-8065: Fix memory leak in readline module (from failure to free the |
| 7369 |
result of history_get_history_state()). |
| 7370 |
|
| 7371 |
- bpo-9450: Fix memory leak in readline.replace_history_item and |
| 7372 |
readline.remove_history_item for readline version >= 5.0. |
| 7373 |
|
| 7374 |
- bpo-8105: Validate file descriptor passed to mmap.mmap on Windows. |
| 7375 |
|
| 7376 |
- bpo-1019882: Fix IndexError when loading certain hotshot stats. |
| 7377 |
|
| 7378 |
- bpo-9422: Fix memory leak when re-initializing a struct.Struct object. |
| 7379 |
|
| 7380 |
- bpo-7900: The getgroups(2) system call on MacOSX behaves rather oddly |
| 7381 |
compared to other unix systems. In particular, os.getgroups() does not |
| 7382 |
reflect any changes made using os.setgroups() but basically always returns |
| 7383 |
the same information as the id command. |
| 7384 |
|
| 7385 |
os.getgroups() can now return more than 16 groups on MacOSX. |
| 7386 |
|
| 7387 |
- bpo-9277: Fix bug in struct.pack for bools in standard mode (e.g., |
| 7388 |
struct.pack('>?')): if conversion to bool raised an exception then that |
| 7389 |
exception wasn't properly propagated on machines where char is unsigned. |
| 7390 |
|
| 7391 |
- bpo-7567: Don't call `setupterm' twice. |
| 7392 |
|
| 7393 |
Tools/Demos |
| 7394 |
----------- |
| 7395 |
|
| 7396 |
- bpo-7287: Demo/imputil/knee.py was removed. |
| 7397 |
|
| 7398 |
- bpo-9188: The gdb extension now handles correctly narrow (UCS2) as well as |
| 7399 |
wide (UCS4) unicode builds for both the host interpreter (embedded inside |
| 7400 |
gdb) and the interpreter under test. |
| 7401 |
|
| 7402 |
Build |
| 7403 |
----- |
| 7404 |
|
| 7405 |
- bpo-8852: Allow the socket module to build on OpenSolaris. |
| 7406 |
|
| 7407 |
- bpo-10054: Some platforms provide uintptr_t in inttypes.h. Patch by Akira |
| 7408 |
Kitada. |
| 7409 |
|
| 7410 |
- bpo-10055: Make json C89-compliant in UCS4 mode. |
| 7411 |
|
| 7412 |
- bpo-1633863: Don't ignore $CC under AIX. |
| 7413 |
|
| 7414 |
- bpo-9810: Compile bzip2 source files in python's project file directly. It |
| 7415 |
used to be built with bzip2's makefile. |
| 7416 |
|
| 7417 |
- bpo-941346: Improve the build process under AIX and allow Python to be |
| 7418 |
built as a shared library. Patch by Sébastien Sablé. |
| 7419 |
|
| 7420 |
- bpo-4026: Make the fcntl extension build under AIX. Patch by Sébastien |
| 7421 |
Sablé. |
| 7422 |
|
| 7423 |
- bpo-3101: Helper functions _add_one_to_index_C() and _add_one_to_index_F() |
| 7424 |
become _Py_add_one_to_index_C() and _Py_add_one_to_index_F(), |
| 7425 |
respectively. |
| 7426 |
|
| 7427 |
- bpo-9700: define HAVE_BROKEN_POSIX_SEMAPHORES under AIX 6.x. Patch by |
| 7428 |
Sébastien Sablé. |
| 7429 |
|
| 7430 |
- bpo-9280: Make sharedinstall depend on sharedmods. |
| 7431 |
|
| 7432 |
- bpo-9275: The OSX installer once again installs links to binaries in |
| 7433 |
``/usr/local/bin``. |
| 7434 |
|
| 7435 |
- bpo-9392: A framework build on OSX will once again use a versioned name of |
| 7436 |
the ``2to3`` tool, that is you can use ``2to3-2.7`` to select the Python |
| 7437 |
2.7 edition of 2to3. |
| 7438 |
|
| 7439 |
- bpo-9701: The MacOSX installer can patch the shell profile to ensure that |
| 7440 |
the "bin" directory inside the framework is on the shell's search path. |
| 7441 |
This feature now also supports the ZSH shell. |
| 7442 |
|
| 7443 |
- bpo-7473: avoid link errors when building a framework with a different set |
| 7444 |
of architectures than the one that is currently installed. |
| 7445 |
|
| 7446 |
Tests |
| 7447 |
----- |
| 7448 |
|
| 7449 |
- bpo-9978: Wait until subprocess completes initialization. (Win32KillTests |
| 7450 |
in test_os) |
| 7451 |
|
| 7452 |
- bpo-9894: Do not hardcode ENOENT in test_subprocess. |
| 7453 |
|
| 7454 |
- bpo-9323: Make test.regrtest.__file__ absolute, this was not always the |
| 7455 |
case when running profile or trace, for example. |
| 7456 |
|
| 7457 |
- bpo-9315: Added tests for the trace module. Patch by Eli Bendersky. |
| 7458 |
|
| 7459 |
- Strengthen test_unicode with explicit type checking for assertEqual tests. |
| 7460 |
|
| 7461 |
- bpo-8857: Provide a test case for socket.getaddrinfo. |
| 7462 |
|
| 7463 |
- bpo-7564: Skip test_ioctl if another process is attached to /dev/tty. |
| 7464 |
|
| 7465 |
- bpo-8433: Fix test_curses failure with newer versions of ncurses. |
| 7466 |
|
| 7467 |
- bpo-9496: Provide a test suite for the rlcompleter module. Patch by |
| 7468 |
Michele Orrù. |
| 7469 |
|
| 7470 |
- bpo-8605: Skip test_gdb if Python is compiled with optimizations. |
| 7471 |
|
| 7472 |
- bpo-9568: Fix test_urllib2_localnet on OS X 10.3. |
| 7473 |
|
| 7474 |
Documentation |
| 7475 |
------------- |
| 7476 |
|
| 7477 |
- bpo-9817: Add expat COPYING file; add expat, libffi and expat licenses to |
| 7478 |
Doc/license.rst. |
| 7479 |
|
| 7480 |
- bpo-9524: Document that two CTRL* signals are meant for use only with |
| 7481 |
os.kill. |
| 7482 |
|
| 7483 |
- bpo-9255: Document that the 'test' package is for internal Python use |
| 7484 |
only. |
| 7485 |
|
| 7486 |
- bpo-7829: Document in dis that bytecode is an implementation detail. |
| 7487 |
|
| 7488 |
|
| 7489 |
What's New in Python 2.7 final? |
| 7490 |
=============================== |
| 7491 |
|
| 7492 |
*Release date: 2010-07-03* |
| 7493 |
|
| 7494 |
Core and Builtins |
| 7495 |
----------------- |
| 7496 |
|
| 7497 |
- Prevent assignment to set literals. |
| 7498 |
|
| 7499 |
Library |
| 7500 |
------- |
| 7501 |
|
| 7502 |
- bpo-1868: Eliminate subtle timing issues in thread-local objects by |
| 7503 |
getting rid of the cached copy of thread-local attribute dictionary. |
| 7504 |
|
| 7505 |
- bpo-9125: Add recognition of 'except ... as ...' syntax to parser module. |
| 7506 |
|
| 7507 |
- bpo-7673: Fix security vulnerability (CVE-2010-2089) in the audioop |
| 7508 |
module, ensure that the input string length is a multiple of the frame |
| 7509 |
size. |
| 7510 |
|
| 7511 |
- bpo-9075: In the ssl module, remove the setting of a ``debug`` flag on an |
| 7512 |
OpenSSL structure. |
| 7513 |
|
| 7514 |
|
| 7515 |
What's New in Python 2.7 release candidate 2? |
| 7516 |
============================================= |
| 7517 |
|
| 7518 |
*Release date: 2010-06-20* |
| 7519 |
|
| 7520 |
Core and Builtins |
| 7521 |
----------------- |
| 7522 |
|
| 7523 |
- bpo-9058: Remove assertions about INT_MAX in UnicodeDecodeError. |
| 7524 |
|
| 7525 |
- bpo-8202: Previous change to ``sys.argv[0]`` handling for -m command line |
| 7526 |
option reverted due to unintended side effects on handling of |
| 7527 |
``sys.path``. See tracker issue for details. |
| 7528 |
|
| 7529 |
- bpo-8941: decoding big endian UTF-32 data in UCS-2 builds could crash the |
| 7530 |
interpreter with characters outside the Basic Multilingual Plane (higher |
| 7531 |
than 0x10000). |
| 7532 |
|
| 7533 |
- In the unicode/str.format(), raise a ValueError when indexes to arguments |
| 7534 |
are too large. |
| 7535 |
|
| 7536 |
Build |
| 7537 |
----- |
| 7538 |
|
| 7539 |
- bpo-8854: Fix finding Visual Studio 2008 on Windows x64. |
| 7540 |
|
| 7541 |
Library |
| 7542 |
------- |
| 7543 |
|
| 7544 |
- bpo-6589: cleanup asyncore.socket_map in case smtpd.SMTPServer constructor |
| 7545 |
raises an exception. |
| 7546 |
|
| 7547 |
- bpo-8959: fix regression caused by using unmodified libffi library on |
| 7548 |
Windows. ctypes does now again check the stack before and after calling |
| 7549 |
foreign functions. |
| 7550 |
|
| 7551 |
- bpo-8720: fix regression caused by fix for #4050 by making getsourcefile |
| 7552 |
smart enough to find source files in the linecache. |
| 7553 |
|
| 7554 |
- bpo-8986: math.erfc was incorrectly raising OverflowError for values |
| 7555 |
between -27.3 and -30.0 on some platforms. |
| 7556 |
|
| 7557 |
- bpo-8924: logging: Improved error handling for Unicode in exception text. |
| 7558 |
|
| 7559 |
- bpo-8948: cleanup functions and class / module setups and teardowns are |
| 7560 |
now honored in unittest debug methods. |
| 7561 |
|
| 7562 |
Documentation |
| 7563 |
------------- |
| 7564 |
|
| 7565 |
- bpo-8909: Added the size of the bitmap used in the installer created by |
| 7566 |
distutils' bdist_wininst. Patch by Anatoly Techtonik. |
| 7567 |
|
| 7568 |
Windows |
| 7569 |
------- |
| 7570 |
|
| 7571 |
- bpo-8362: Add maintainers.rst: list of module maintainers |
| 7572 |
|
| 7573 |
|
| 7574 |
What's New in Python 2.7 release candidate 1? |
| 7575 |
============================================= |
| 7576 |
|
| 7577 |
*Release date: 2010-06-05* |
| 7578 |
|
| 7579 |
Core and Builtins |
| 7580 |
----------------- |
| 7581 |
|
| 7582 |
- bpo-8271: during the decoding of an invalid UTF-8 byte sequence, only the |
| 7583 |
start byte and the continuation byte(s) are now considered invalid, |
| 7584 |
instead of the number of bytes specified by the start byte. E.g.: |
| 7585 |
'\xf1\x80AB'.decode('utf-8', 'replace') now returns u'\ufffdAB' and |
| 7586 |
replaces with U+FFFD only the start byte ('\xf1') and the continuation |
| 7587 |
byte ('\x80') even if '\xf1' is the start byte of a 4-bytes sequence. |
| 7588 |
Previous versions returned a single u'\ufffd'. |
| 7589 |
|
| 7590 |
- bpo-8627: Remove bogus "Overriding __cmp__ blocks inheritance of __hash__ |
| 7591 |
in 3.x" warning. Also fix "XXX undetected error" that arises from the |
| 7592 |
"Overriding __eq__ blocks inheritance ..." warning when turned into an |
| 7593 |
exception: in this case the exception simply gets ignored. |
| 7594 |
|
| 7595 |
- bpo-8748: Fix two issues with comparisons between complex and integer |
| 7596 |
objects. (1) The comparison could incorrectly return True in some cases |
| 7597 |
(2**53+1 == complex(2**53) == 2**53), breaking transivity of equality. (2) |
| 7598 |
The comparison raised an OverflowError for large integers, leading to |
| 7599 |
unpredictable exceptions when combining integers and complex objects in |
| 7600 |
sets or dicts. |
| 7601 |
|
| 7602 |
- bpo-5211: Implicit coercion for the complex type is now completely |
| 7603 |
removed. (Coercion for arithmetic operations was already removed in 2.7 |
| 7604 |
alpha 4, but coercion for rich comparisons was accidentally left in.) |
| 7605 |
|
| 7606 |
- bpo-3798: Write sys.exit() message to sys.stderr to use stderr encoding |
| 7607 |
and error handler, instead of writing to the C stderr file in utf-8 |
| 7608 |
|
| 7609 |
- bpo-7902: When using explicit relative import syntax, don't try implicit |
| 7610 |
relative import semantics. |
| 7611 |
|
| 7612 |
- bpo-7079: Fix a possible crash when closing a file object while using it |
| 7613 |
from another thread. Patch by Daniel Stutzbach. |
| 7614 |
|
| 7615 |
- bpo-8868: Fix that ensures that python scripts have access to the Window |
| 7616 |
Server again in a framework build on MacOSX 10.5 or earlier. |
| 7617 |
|
| 7618 |
C API |
| 7619 |
----- |
| 7620 |
|
| 7621 |
- bpo-5753: A new C API function, :cfunc:`PySys_SetArgvEx`, allows embedders |
| 7622 |
of the interpreter to set sys.argv without also modifying sys.path. This |
| 7623 |
helps fix `CVE-2008-5983 |
| 7624 |
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_. |
| 7625 |
|
| 7626 |
Library |
| 7627 |
------- |
| 7628 |
|
| 7629 |
- bpo-8302: SkipTest in unittest.TestCase.setUpClass or setUpModule is now |
| 7630 |
reported as a skip rather than an error. |
| 7631 |
|
| 7632 |
- bpo-8351: Excessively large diffs due to |
| 7633 |
unittest.TestCase.assertSequenceEqual are no longer included in failure |
| 7634 |
reports. |
| 7635 |
|
| 7636 |
- bpo-8899: time.struct_time now has class and attribute docstrings. |
| 7637 |
|
| 7638 |
- bpo-4487: email now accepts as charset aliases all codec aliases accepted |
| 7639 |
by the codecs module. |
| 7640 |
|
| 7641 |
- bpo-6470: Drop UNC prefix in FixTk. |
| 7642 |
|
| 7643 |
- bpo-5610: feedparser no longer eats extra characters at the end of a body |
| 7644 |
part if the body part ends with a \r\n. |
| 7645 |
|
| 7646 |
- bpo-8833: tarfile created hard link entries with a size field != 0 by |
| 7647 |
mistake. |
| 7648 |
|
| 7649 |
- bpo-1368247: set_charset (and therefore MIMEText) now automatically |
| 7650 |
encodes a unicode _payload to the output_charset. |
| 7651 |
|
| 7652 |
- bpo-7150: Raise OverflowError if the result of adding or subtracting |
| 7653 |
timedelta from date or datetime falls outside of the MINYEAR:MAXYEAR |
| 7654 |
range. |
| 7655 |
|
| 7656 |
- bpo-6662: Fix parsing of malformatted charref (&#bad;), patch written by |
| 7657 |
Fredrik Håård |
| 7658 |
|
| 7659 |
- bpo-8016: Add the CP858 codec. |
| 7660 |
|
| 7661 |
- bpo-3924: Ignore cookies with invalid "version" field in cookielib. |
| 7662 |
|
| 7663 |
- bpo-6268: Fix seek() method of codecs.open(), don't read or write the BOM |
| 7664 |
twice after seek(0). Fix also reset() method of codecs, UTF-16, UTF-32 and |
| 7665 |
StreamWriter classes. |
| 7666 |
|
| 7667 |
- bpo-5640: Fix Shift-JIS incremental encoder for error handlers different |
| 7668 |
than 'strict'. |
| 7669 |
|
| 7670 |
- bpo-8782: Add a trailing newline in linecache.updatecache to the last line |
| 7671 |
of files without one. |
| 7672 |
|
| 7673 |
- bpo-8729: Return NotImplemented from ``collections.Mapping.__eq__()`` when |
| 7674 |
comparing to a non-mapping. |
| 7675 |
|
| 7676 |
- bpo-8759: Fix user paths in sysconfig for posix and os2 schemes. |
| 7677 |
|
| 7678 |
- bpo-1285086: Speed up ``urllib.quote()`` and urllib.unquote for simple |
| 7679 |
cases. |
| 7680 |
|
| 7681 |
- bpo-8688: Distutils now recalculates MANIFEST every time. |
| 7682 |
|
| 7683 |
- bpo-5099: The ``__del__()`` method of ``subprocess.Popen`` (and the |
| 7684 |
methods it calls) referenced global objects, causing errors to pop up |
| 7685 |
during interpreter shutdown. |
| 7686 |
|
| 7687 |
- bpo-7384: If the system readline library is linked against ncurses, the |
| 7688 |
curses module must be linked against ncurses as well. Otherwise it is not |
| 7689 |
safe to load both the readline and curses modules in an application. |
| 7690 |
|
| 7691 |
- bpo-2810: Fix cases where the Windows registry API returns |
| 7692 |
ERROR_MORE_DATA, requiring a re-try in order to get the complete result. |
| 7693 |
|
| 7694 |
- bpo-8674: Fixed a number of incorrect or undefined-behaviour-inducing |
| 7695 |
overflow checks in the ``audioop`` module. |
| 7696 |
|
| 7697 |
Tests |
| 7698 |
----- |
| 7699 |
|
| 7700 |
- bpo-8889: test_support.transient_internet rewritten so that the new checks |
| 7701 |
also work on FreeBSD, which lacks EAI_NODATA. |
| 7702 |
|
| 7703 |
- bpo-8835: test_support.transient_internet() catches gaierror(EAI_NONAME) |
| 7704 |
and gaierror(EAI_NODATA) |
| 7705 |
|
| 7706 |
- bpo-7449: Skip test_socketserver if threading support is disabled |
| 7707 |
|
| 7708 |
- On darwin, ``test_site`` assumed that a framework build was being used, |
| 7709 |
leading to a failure where four directories were expected for |
| 7710 |
site-packages instead of two in a non-framework build. |
| 7711 |
|
| 7712 |
Build |
| 7713 |
----- |
| 7714 |
|
| 7715 |
- Display installer warning that Windows 2000 won't be supported in future |
| 7716 |
releases. |
| 7717 |
|
| 7718 |
- bpo-1759169: Drop _XOPEN_SOURCE on Solaris, define it for multiprocessing |
| 7719 |
only. (See also: bpo-8864) |
| 7720 |
|
| 7721 |
Tools/Demos |
| 7722 |
----------- |
| 7723 |
|
| 7724 |
- bpo-5464: Implement plural forms in msgfmt.py. |
| 7725 |
|
| 7726 |
|
| 7727 |
What's New in Python 2.7 beta 2? |
| 7728 |
================================ |
| 7729 |
|
| 7730 |
*Release date: 2010-05-08* |
| 7731 |
|
| 7732 |
Core and Builtins |
| 7733 |
----------------- |
| 7734 |
|
| 7735 |
- Run Clang 2.7's static analyzer for ``Objects/`` and ``Python/``. |
| 7736 |
|
| 7737 |
- bpo-1533: Fix inconsistency in range function argument processing: any |
| 7738 |
non-float non-integer argument is now converted to an integer (if |
| 7739 |
possible) using its __int__ method. Previously, only small arguments were |
| 7740 |
treated this way; larger arguments (those whose __int__ was outside the |
| 7741 |
range of a C long) would produce a TypeError. |
| 7742 |
|
| 7743 |
- bpo-8202: ``sys.argv[0]`` is now set to '-m' instead of '-c' when |
| 7744 |
searching for the module file to be executed with the -m command line |
| 7745 |
option. |
| 7746 |
|
| 7747 |
- bpo-7319: When -Q is used, do not silence DeprecationWarning. |
| 7748 |
|
| 7749 |
- bpo-7332: Remove the 16KB stack-based buffer in |
| 7750 |
``PyMarshal_ReadLastObjectFromFile``, which doesn't bring any noticeable |
| 7751 |
benefit compared to the dynamic memory allocation fallback. Patch by |
| 7752 |
Charles-François Natali. |
| 7753 |
|
| 7754 |
- bpo-8417: Raise an OverflowError when an integer larger than sys.maxsize |
| 7755 |
is passed to bytearray. |
| 7756 |
|
| 7757 |
- bpo-7072: ``isspace(0xa0)`` is true on Mac OS X. |
| 7758 |
|
| 7759 |
- bpo-8404: Fix set operations on dictionary views. |
| 7760 |
|
| 7761 |
- bpo-8084: PEP 370 now conforms to system conventions for framework builds |
| 7762 |
on MacOS X. That is, ``python setup.py install --user`` will install into |
| 7763 |
``~/Library/Python/2.7`` instead of ``~/.local``. |
| 7764 |
|
| 7765 |
Library |
| 7766 |
------- |
| 7767 |
|
| 7768 |
- bpo-8681: Make the zlib module's error messages more informative when the |
| 7769 |
zlib itself doesn't give any detailed explanation. |
| 7770 |
|
| 7771 |
- bpo-8571: Fix an internal error when compressing or decompressing a chunk |
| 7772 |
larger than 1GB with the zlib module's compressor and decompressor |
| 7773 |
objects. |
| 7774 |
|
| 7775 |
- bpo-8573: asyncore ``_strerror()`` function might throw ValueError. |
| 7776 |
|
| 7777 |
- bpo-8483: asyncore.dispatcher's __getattr__ method produced confusing |
| 7778 |
error messages when accessing undefined class attributes because of the |
| 7779 |
cheap inheritance with the underlying socket object. The cheap |
| 7780 |
inheritance has been deprecated. |
| 7781 |
|
| 7782 |
- bpo-4265: ``shutil.copyfile()`` was leaking file descriptors when disk |
| 7783 |
fills. Patch by Tres Seaver. |
| 7784 |
|
| 7785 |
- bpo-7755: Use an unencumbered audio file for tests. |
| 7786 |
|
| 7787 |
- bpo-8621: ``uuid.uuid4()`` returned the same sequence of values in the |
| 7788 |
parent and any children created using ``os.fork`` on Mac OS X 10.6. |
| 7789 |
|
| 7790 |
- bpo-8313: ``traceback.format_exception_only()`` encodes unicode message to |
| 7791 |
ASCII with backslashreplace error handler if ``str(value)`` failed. |
| 7792 |
|
| 7793 |
- bpo-8567: Fix precedence of signals in Decimal module: when a Decimal |
| 7794 |
operation raises multiple signals and more than one of those signals is |
| 7795 |
trapped, the specification determines the order in which the signals |
| 7796 |
should be handled. In many cases this order wasn't being followed, leading |
| 7797 |
to the wrong Python exception being raised. |
| 7798 |
|
| 7799 |
- bpo-7865: The close() method of :mod:`io` objects should not swallow |
| 7800 |
exceptions raised by the implicit flush(). Also ensure that calling |
| 7801 |
close() several times is supported. Patch by Pascal Chambon. |
| 7802 |
|
| 7803 |
- bpo-8576: logging updated to remove usage of find_unused_port(). |
| 7804 |
|
| 7805 |
- bpo-4687: Fix accuracy of garbage collection runtimes displayed with |
| 7806 |
gc.DEBUG_STATS. |
| 7807 |
|
| 7808 |
- bpo-8354: The siginterrupt setting is now preserved for all signals, not |
| 7809 |
just SIGCHLD. |
| 7810 |
|
| 7811 |
- bpo-7192: ``webbrowser.get("firefox")`` now works on Mac OS X, as does |
| 7812 |
``webbrowser.get("safari")``. |
| 7813 |
|
| 7814 |
- bpo-8577: ``distutils.sysconfig.get_python_inc()`` now makes a difference |
| 7815 |
between the build dir and the source dir when looking for "python.h" or |
| 7816 |
"Include". |
| 7817 |
|
| 7818 |
- bpo-8464: tarfile no longer creates files with execute permissions set |
| 7819 |
when mode="w|" is used. |
| 7820 |
|
| 7821 |
- bpo-7834: Fix connect() of Bluetooth L2CAP sockets with recent versions of |
| 7822 |
the Linux kernel. Patch by Yaniv Aknin. |
| 7823 |
|
| 7824 |
- bpo-6312: Fix http HEAD request when the transfer encoding is chunked. It |
| 7825 |
should correctly return an empty response now. |
| 7826 |
|
| 7827 |
- bpo-7490: To facilitate sharing of doctests between 2.x and 3.x test |
| 7828 |
suites, the ``IGNORE_EXCEPTION_DETAIL`` directive now also ignores the |
| 7829 |
module location of the raised exception. Based on initial patch by |
| 7830 |
Lennart Regebro. |
| 7831 |
|
| 7832 |
- bpo-8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline |
| 7833 |
before the certificate footer. Patch by Kyle VanderBeek. |
| 7834 |
|
| 7835 |
- bpo-8546: Reject None given as the buffering argument to ``_pyio.open()``. |
| 7836 |
|
| 7837 |
- bpo-8549: Fix compiling the _ssl extension under AIX. Patch by Sridhar |
| 7838 |
Ratnakumar. |
| 7839 |
|
| 7840 |
- bpo-6656: Fix locale.format_string to handle escaped percents and |
| 7841 |
mappings. |
| 7842 |
|
| 7843 |
- bpo-2302: Fix a race condition in SocketServer.BaseServer.shutdown, where |
| 7844 |
the method could block indefinitely if called just before the event loop |
| 7845 |
started running. This also fixes the occasional freezes witnessed in |
| 7846 |
test_httpservers. |
| 7847 |
|
| 7848 |
- bpo-5103: SSL handshake would ignore the socket timeout and block |
| 7849 |
indefinitely if the other end didn't respond. |
| 7850 |
|
| 7851 |
- The do_handshake() method of SSL objects now adjusts the blocking mode of |
| 7852 |
the SSL structure if necessary (as other methods already do). |
| 7853 |
|
| 7854 |
- bpo-7507: Quote "!" in pipes.quote(); it is special to some shells. |
| 7855 |
|
| 7856 |
- bpo-5238: Calling makefile() on an SSL object would prevent the underlying |
| 7857 |
socket from being closed until all objects get truely destroyed. |
| 7858 |
|
| 7859 |
- bpo-7943: Fix circular reference created when instantiating an SSL socket. |
| 7860 |
Initial patch by Péter Szabó. |
| 7861 |
|
| 7862 |
- bpo-8451: Syslog module now uses basename(sys.argv[0]) instead of the |
| 7863 |
string "python" as the *ident*. openlog() arguments are all optional and |
| 7864 |
keywords. |
| 7865 |
|
| 7866 |
- bpo-8108: Fix the unwrap() method of SSL objects when the socket has a |
| 7867 |
non-infinite timeout. Also make that method friendlier with applications |
| 7868 |
wanting to continue using the socket in clear-text mode, by disabling |
| 7869 |
OpenSSL's internal readahead. Thanks to Darryl Miles for guidance. |
| 7870 |
|
| 7871 |
- bpo-8484: Load all ciphers and digest algorithms when initializing the |
| 7872 |
_ssl extension, such that verification of some SSL certificates doesn't |
| 7873 |
fail because of an "unknown algorithm". |
| 7874 |
|
| 7875 |
- bpo-8437: Fix test_gdb failures, patch written by Dave Malcolm |
| 7876 |
|
| 7877 |
- bpo-4814: The timeout parameter is now applied also for connections |
| 7878 |
resulting from PORT/EPRT commands. |
| 7879 |
|
| 7880 |
- bpo-8463: Add missing reference to bztar in shutil's documentation. |
| 7881 |
|
| 7882 |
- bpo-8438: Remove reference to the missing "surrogateescape" encoding error |
| 7883 |
handler from the new IO library. |
| 7884 |
|
| 7885 |
- bpo-3817: ftplib.FTP.abort() method now considers 225 a valid response |
| 7886 |
code as stated in RFC-959 at chapter 5.4. |
| 7887 |
|
| 7888 |
- bpo-8279: Fix test_gdb failures. |
| 7889 |
|
| 7890 |
- bpo-8322: Add a *ciphers* argument to SSL sockets, so as to change the |
| 7891 |
available cipher list. Helps fix test_ssl with OpenSSL 1.0.0. |
| 7892 |
|
| 7893 |
- bpo-2987: RFC 2732 support for urlparse (IPv6 addresses). Patch by Tony |
| 7894 |
Locke and Hans Ulrich Niedermann. |
| 7895 |
|
| 7896 |
- bpo-7585: difflib context and unified diffs now place a tab between |
| 7897 |
filename and date, conforming to the 'standards' they were originally |
| 7898 |
designed to follow. This improves compatibility with patch tools. |
| 7899 |
|
| 7900 |
- bpo-7472: Fixed typo in email.encoders module; messages using ISO-2022 |
| 7901 |
character sets will now consistently use a Content-Transfer-Encoding of |
| 7902 |
7bit rather than sometimes being marked as 8bit. |
| 7903 |
|
| 7904 |
- bpo-8330: Fix expected output in test_gdb. |
| 7905 |
|
| 7906 |
- bpo-8374: Update the internal alias table in the :mod:`locale` module to |
| 7907 |
cover recent locale changes and additions. |
| 7908 |
|
| 7909 |
- bpo-8644: Improved accuracy of ``timedelta.total_seconds()``. |
| 7910 |
|
| 7911 |
- Use Clang 2.7's static analyzer to find places to clean up some code. |
| 7912 |
|
| 7913 |
- Build the ossaudio extension on GNU/kFreeBSD. |
| 7914 |
|
| 7915 |
- On Windows, ctypes no longer checks the stack before and after calling a |
| 7916 |
foreign function. This allows using the unmodified libffi library. |
| 7917 |
|
| 7918 |
Tests |
| 7919 |
----- |
| 7920 |
|
| 7921 |
- bpo-8672: Add a zlib test ensuring that an incomplete stream can be |
| 7922 |
handled by a decompressor object without errors (it returns incomplete |
| 7923 |
uncompressed data). |
| 7924 |
|
| 7925 |
- bpo-8490: asyncore now has a more solid test suite which actually tests |
| 7926 |
its API. |
| 7927 |
|
| 7928 |
- bpo-8576: Remove use of find_unused_port() in test_smtplib and |
| 7929 |
test_multiprocessing. Patch by Paul Moore. |
| 7930 |
|
| 7931 |
- bpo-7449: Fix many tests to support Python compiled without thread |
| 7932 |
support. Patches written by Jerry Seutter. |
| 7933 |
|
| 7934 |
- bpo-8108: test_ftplib's non-blocking SSL server now has proper handling of |
| 7935 |
SSL shutdowns. |
| 7936 |
|
| 7937 |
Build |
| 7938 |
----- |
| 7939 |
|
| 7940 |
- bpo-8625: Turn off optimization in ``--with-pydebug`` builds with gcc. |
| 7941 |
(Optimization was unintentionally turned on in gcc --with-pydebug builds |
| 7942 |
in 2.7 beta1 as a result of the issue #1628484 fix, combined with |
| 7943 |
autoconf's strange choice of default CFLAGS produced by AC_PROG_CC for |
| 7944 |
gcc.) |
| 7945 |
|
| 7946 |
- bpo-8509: Fix quoting in help strings and code snippets in configure.in. |
| 7947 |
|
| 7948 |
- bpo-3646: It is now easily possible to install a Python framework into |
| 7949 |
your home directory on Mac OS X, see Mac/README for more information. |
| 7950 |
|
| 7951 |
- bpo-8510: Update to autoconf 2.65. |
| 7952 |
|
| 7953 |
Windows |
| 7954 |
------- |
| 7955 |
|
| 7956 |
- Update the Vim syntax highlight file. |
| 7957 |
|
| 7958 |
|
| 7959 |
What's New in Python 2.7 beta 1? |
| 7960 |
================================ |
| 7961 |
|
| 7962 |
*Release date: 2010-04-10* |
| 7963 |
|
| 7964 |
Core and Builtins |
| 7965 |
----------------- |
| 7966 |
|
| 7967 |
- bpo-7301: Add environment variable $PYTHONWARNINGS. |
| 7968 |
|
| 7969 |
- bpo-8329: Don't return the same lists from select.select when no fds are |
| 7970 |
changed. |
| 7971 |
|
| 7972 |
- bpo-8259: ``1L << (2**31)`` no longer produces an 'outrageous shift error' |
| 7973 |
on 64-bit machines. The shift count for either left or right shift is |
| 7974 |
permitted to be up to sys.maxsize. |
| 7975 |
|
| 7976 |
- Ensure that tokenization of identifiers is not affected by locale. |
| 7977 |
|
| 7978 |
- bpo-1222585: Added LDCXXSHARED for C++ support. Patch by Arfrever. |
| 7979 |
|
| 7980 |
- Raise a TypeError when trying to delete a T_STRING_INPLACE struct member. |
| 7981 |
|
| 7982 |
- bpo-7994: Issue a PendingDeprecationWarning if object.__format__ is called |
| 7983 |
with a non-empty format string. This is an effort to future-proof user |
| 7984 |
code. If a derived class does not currently implement __format__ but later |
| 7985 |
adds its own __format__, it would most likely break user code that had |
| 7986 |
supplied a format string. This will be changed to a DeprecationWarning in |
| 7987 |
Python 3.3 and it will be an error in Python 3.4. |
| 7988 |
|
| 7989 |
- bpo-8268: Old-style classes (not just instances) now support weak |
| 7990 |
references. |
| 7991 |
|
| 7992 |
- bpo-8211: Save/restore CFLAGS around AC_PROG_CC in configure.in, in case |
| 7993 |
it is set. |
| 7994 |
|
| 7995 |
- bpo-1583863: A unicode subclass can now override the __unicode__ method |
| 7996 |
|
| 7997 |
- bpo-6474: Make error message from passing an inadequate number of keyword |
| 7998 |
arguments to a function correct. |
| 7999 |
|
| 8000 |
- bpo-8164: Don't allow lambda functions to have a docstring. |
| 8001 |
|
| 8002 |
- bpo-3137: Don't ignore errors at startup, especially a keyboard interrupt |
| 8003 |
(SIGINT). If an error occurs while importing the site module, the error is |
| 8004 |
printed and Python exits. Initialize the GIL before importing the site |
| 8005 |
module. |
| 8006 |
|
| 8007 |
- Code objects now support weak references. |
| 8008 |
|
| 8009 |
Library |
| 8010 |
------- |
| 8011 |
|
| 8012 |
- bpo-5277: Fix quote counting when parsing RFC 2231 encoded parameters. |
| 8013 |
|
| 8014 |
- bpo-8321: Give access to OpenSSL version numbers from the `ssl` module, |
| 8015 |
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO` |
| 8016 |
and `ssl.OPENSSL_VERSION_NUMBER`. |
| 8017 |
|
| 8018 |
- bpo-8310: Allow dis to examine new style classes. |
| 8019 |
|
| 8020 |
- bpo-8257: The Decimal construct now accepts a float instance directly, |
| 8021 |
converting that float to a Decimal of equal value: |
| 8022 |
|
| 8023 |
>>> Decimal(1.1) |
| 8024 |
Decimal('1.100000000000000088817841970012523233890533447265625') |
| 8025 |
|
| 8026 |
- collections.Counter() now supports a subtract() method. |
| 8027 |
|
| 8028 |
- The functools module now has a total_ordering() class decorator to |
| 8029 |
simplify the specification of rich comparisons. |
| 8030 |
|
| 8031 |
- The functools module also adds cmp_to_key() as a tool to transition |
| 8032 |
old-style comparison functions to new-style key-functions. |
| 8033 |
|
| 8034 |
- bpo-8294: The Fraction constructor now accepts Decimal and float instances |
| 8035 |
directly. |
| 8036 |
|
| 8037 |
- bpo-7279: Comparisons involving a Decimal signaling NaN now signal |
| 8038 |
InvalidOperation instead of returning False. (Comparisons involving a |
| 8039 |
quiet NaN are unchanged.) Also, Decimal quiet NaNs are now hashable; |
| 8040 |
Decimal signaling NaNs remain unhashable. |
| 8041 |
|
| 8042 |
- bpo-2531: Comparison operations between floats and Decimal instances now |
| 8043 |
return a result based on the numeric values of the operands; previously |
| 8044 |
they returned an arbitrary result based on the relative ordering of |
| 8045 |
id(float) and id(Decimal). |
| 8046 |
|
| 8047 |
- bpo-8233: When run as a script, py_compile.py optionally takes a single |
| 8048 |
argument `-` which tells it to read files to compile from stdin. Each |
| 8049 |
line is read on demand and the named file is compiled immediately. |
| 8050 |
(Original patch by Piotr Ożarowski). |
| 8051 |
|
| 8052 |
- bpo-3135: Add ``inspect.getcallargs()``, which binds arguments to a |
| 8053 |
function like a normal call. |
| 8054 |
|
| 8055 |
- Backwards incompatible change: Unicode codepoints line tabulation (0x0B) |
| 8056 |
and form feed (0x0C) are now considered linebreaks, as specified in |
| 8057 |
Unicode Standard Annex #14. See issue #7643. |
| 8058 |
http://www.unicode.org/reports/tr14/ |
| 8059 |
|
| 8060 |
- Comparisons using one of <, <=, >, >= between a complex instance and a |
| 8061 |
Fractions instance now raise TypeError instead of returning True/False. |
| 8062 |
This makes Fraction <=> complex comparisons consistent with int <=> |
| 8063 |
complex, float <=> complex, and complex <=> complex comparisons. |
| 8064 |
|
| 8065 |
- Addition of ``WeakSet`` to the ``weakref`` module. |
| 8066 |
|
| 8067 |
- logging: Added LOG_FTP to SysLogHandler and updated documentation. |
| 8068 |
|
| 8069 |
- bpo-8205: Remove the "Modules" directory from sys.path when Python is |
| 8070 |
running from the build directory (POSIX only). |
| 8071 |
|
| 8072 |
- bpo-7667: Fix doctest failures with non-ASCII paths. |
| 8073 |
|
| 8074 |
- bpo-7512: shutil.copystat() could raise an OSError when the filesystem |
| 8075 |
didn't support chflags() (for example ZFS under FreeBSD). The error is |
| 8076 |
now silenced. |
| 8077 |
|
| 8078 |
- bpo-7703: ctypes supports both buffer() and memoryview(). The former is |
| 8079 |
deprecated. |
| 8080 |
|
| 8081 |
- bpo-7860: platform.uname now reports the correct 'machine' type when |
| 8082 |
Python is running in WOW64 mode on 64 bit Windows. |
| 8083 |
|
| 8084 |
- logging: Added getChild utility method to Logger and added isEnabledFor |
| 8085 |
method to LoggerAdapter. |
| 8086 |
|
| 8087 |
- bpo-8201: logging: Handle situation of non-ASCII and Unicode logger names |
| 8088 |
existing at the same time, causing a Unicode error when configuration code |
| 8089 |
attempted to sort the existing loggers. |
| 8090 |
|
| 8091 |
- bpo-8200: logging: Handle errors when multiprocessing is not fully loaded |
| 8092 |
when logging occurs. |
| 8093 |
|
| 8094 |
- bpo-3890: Fix recv() and recv_into() on non-blocking SSL sockets. Also, |
| 8095 |
enable the SSL_MODE_AUTO_RETRY flag on SSL sockets, so that blocking reads |
| 8096 |
and writes are always retried by OpenSSL itself. (See also: bpo-8222) |
| 8097 |
|
| 8098 |
- bpo-8179: Fix macpath.realpath() on a non-existing path. |
| 8099 |
|
| 8100 |
- bpo-8024: Update the Unicode database to 5.2. |
| 8101 |
|
| 8102 |
- bpo-8104: socket.recv_into() and socket.recvfrom_into() now support |
| 8103 |
writing into objects supporting the new buffer API, for example bytearrays |
| 8104 |
or memoryviews. |
| 8105 |
|
| 8106 |
- bpo-4961: Inconsistent/wrong result of askyesno function in tkMessageBox |
| 8107 |
with Tcl/Tk-8.5. |
| 8108 |
|
| 8109 |
- bpo-8140: Extend compileall to compile single files. Add -i option. |
| 8110 |
|
| 8111 |
- bpo-7774: Set sys.executable to an empty string if ``argv[0]`` has been |
| 8112 |
set to a non existent program name and Python is unable to retrieve the |
| 8113 |
real program name. |
| 8114 |
|
| 8115 |
- bpo-8117: logging: Improved algorithm for computing initial rollover time |
| 8116 |
for ``TimedRotatingFileHandler`` by using the modification time of an |
| 8117 |
existing log file to compute the next rollover time. If the log file does |
| 8118 |
not exist, the current time is used as the basis for the computation. |
| 8119 |
|
| 8120 |
- bpo-6472: The ``xml.etree`` package is updated to ElementTree 1.3. The |
| 8121 |
cElementTree module is updated too. |
| 8122 |
|
| 8123 |
- bpo-7880: Fix sysconfig when the python executable is a symbolic link. |
| 8124 |
|
| 8125 |
- bpo-7624: Fix ``isinstance(foo(), collections.Callable)`` for old-style |
| 8126 |
classes. |
| 8127 |
|
| 8128 |
- bpo-7143: email: ``get_payload()`` used to strip any trailing newline from |
| 8129 |
a base64 transfer-encoded payload *after* decoding it; it no longer does. |
| 8130 |
This is a behavior change, so email's minor version number is now bumped, |
| 8131 |
to version 4.0.2, for the 2.7 release. |
| 8132 |
|
| 8133 |
- bpo-8235: _socket: Add the constant ``SO_SETFIB``. SO_SETFIB is a socket |
| 8134 |
option available on FreeBSD 7.1 and newer. |
| 8135 |
|
| 8136 |
- bpo-8038: unittest.TestCase.assertNotRegexpMatches |
| 8137 |
|
| 8138 |
- Addition of -b command line option to unittest for buffering stdout / |
| 8139 |
stderr during test runs. |
| 8140 |
|
| 8141 |
- bpo-1220212: Added os.kill support for Windows, including support for |
| 8142 |
sending CTRL+C and CTRL+BREAK events to console subprocesses. |
| 8143 |
|
| 8144 |
- bpo-8314: Fix unsigned long long bug in libffi on Sparc v8. |
| 8145 |
|
| 8146 |
- bpo-1039: Fix os.execlp() crash with missing 2nd argument. (See also: |
| 8147 |
bpo-8154) |
| 8148 |
|
| 8149 |
- bpo-8156: bsddb module updated to version 4.8.4. |
| 8150 |
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.8.4. This update |
| 8151 |
drops support for Berkeley DB 4.0, and adds support for 4.8. |
| 8152 |
|
| 8153 |
- bpo-3928: os.mknod() now available in Solaris, also. |
| 8154 |
|
| 8155 |
- bpo-8142: Update libffi to the 3.0.9 release. |
| 8156 |
|
| 8157 |
- bpo-8300: When passing a non-integer argument to struct.pack with any |
| 8158 |
integer format code, struct.pack first attempts to convert the non-integer |
| 8159 |
using its __index__ method. If that method is non-existent or raises |
| 8160 |
TypeError it goes on to try the __int__ method, as described below. |
| 8161 |
|
| 8162 |
- bpo-1530559: When passing a non-integer argument to struct.pack with *any* |
| 8163 |
integer format code (one of 'bBhHiIlLqQ'), struct.pack attempts to use the |
| 8164 |
argument's __int__ method to convert to an integer before packing. It |
| 8165 |
also produces a DeprecationWarning in this case. (In Python 2.6, the |
| 8166 |
behaviour was inconsistent: __int__ was used for some integer codes but |
| 8167 |
not for others, and the set of integer codes for which it was used |
| 8168 |
differed between native packing and standard packing.) |
| 8169 |
|
| 8170 |
- bpo-7347: _winreg: Add CreateKeyEx and DeleteKeyEx, as well as fix a bug |
| 8171 |
in the return value of QueryReflectionKey. |
| 8172 |
|
| 8173 |
Tools/Demos |
| 8174 |
----------- |
| 8175 |
|
| 8176 |
- bpo-7993: Add a test of IO packet processing bandwidth to ccbench. It |
| 8177 |
measures the number of UDP packets processed per second depending on the |
| 8178 |
number of background CPU-bound Python threads. |
| 8179 |
|
| 8180 |
- python-config now supports multiple options on the same command line. |
| 8181 |
|
| 8182 |
Build |
| 8183 |
----- |
| 8184 |
|
| 8185 |
- bpo-8032: For gdb7, a python-gdb.py file is added to the build, allowing |
| 8186 |
to use advanced gdb features when debugging Python. |
| 8187 |
|
| 8188 |
- bpo-1628484: The Makefile doesn't ignore the CFLAGS environment variable |
| 8189 |
anymore. It also forwards the LDFLAGS settings to the linker when |
| 8190 |
building a shared library. |
| 8191 |
|
| 8192 |
- bpo-6716: Quote -x arguments of compileall in MSI installer. |
| 8193 |
|
| 8194 |
- bpo-7705: Fix linking on FreeBSD. |
| 8195 |
|
| 8196 |
- Make sure that the FreeBSD build of the included libffi uses the proper |
| 8197 |
assembly file. |
| 8198 |
|
| 8199 |
C API |
| 8200 |
----- |
| 8201 |
|
| 8202 |
- bpo-8276: PyEval_CallObject() is now only available in macro form. The |
| 8203 |
function declaration, which was kept for backwards compatibility reasons, |
| 8204 |
is now removed (the macro was introduced in 1997!). |
| 8205 |
|
| 8206 |
- bpo-7992: A replacement PyCObject API, PyCapsule, has been backported from |
| 8207 |
Python 3.1. All existing Python CObjects in the main distribution have |
| 8208 |
been converted to capsules. To address backwards-compatibility concerns, |
| 8209 |
PyCObject_AsVoidPtr() was changed to understand capsules. |
| 8210 |
|
| 8211 |
Tests |
| 8212 |
----- |
| 8213 |
|
| 8214 |
- bpo-3864: Skip three test_signal tests on freebsd6 because they fail if |
| 8215 |
any thread was previously started, most likely due to a platform bug. |
| 8216 |
|
| 8217 |
- bpo-8348: Fix test ftp url in test_urllib2net. |
| 8218 |
|
| 8219 |
- bpo-8204: Fix test_ttk notebook test by forcing focus. |
| 8220 |
|
| 8221 |
- bpo-8344: Fix test_ttk bug on FreeBSD. |
| 8222 |
|
| 8223 |
- bpo-8193: Fix test_zlib failure with zlib 1.2.4. |
| 8224 |
|
| 8225 |
- bpo-8248: Add some tests for the bool type. Patch by Gregory Nofi. |
| 8226 |
|
| 8227 |
- bpo-8263: Now regrtest.py will report a failure if it receives a |
| 8228 |
KeyboardInterrupt (SIGINT). |
| 8229 |
|
| 8230 |
- bpo-8180: Fix test_pep277 on OS X and add more tests for special Unicode |
| 8231 |
normalization cases. (See also: bpo-8207) |
| 8232 |
|
| 8233 |
- bpo-7783: test.test_support.open_urlresource invalidates the outdated |
| 8234 |
files from the local cache. |
| 8235 |
|
| 8236 |
|
| 8237 |
What's New in Python 2.7 alpha 4? |
| 8238 |
================================= |
| 8239 |
|
| 8240 |
*Release date: 2010-03-06* |
| 8241 |
|
| 8242 |
Core and Builtins |
| 8243 |
----------------- |
| 8244 |
|
| 8245 |
- bpo-7544: Preallocate thread memory before creating the thread to avoid a |
| 8246 |
fatal error in low memory condition. |
| 8247 |
|
| 8248 |
- bpo-7820: The parser tokenizer restores all bytes in the right if the BOM |
| 8249 |
check fails. |
| 8250 |
|
| 8251 |
- bpo-7309: Fix unchecked attribute access when converting |
| 8252 |
UnicodeEncodeError, UnicodeDecodeError, and UnicodeTranslateError to |
| 8253 |
strings. |
| 8254 |
|
| 8255 |
- bpo-7649: "u'%c' % char" now behaves like "u'%s' % char" and raises a |
| 8256 |
UnicodeDecodeError if 'char' is a byte string that can't be decoded using |
| 8257 |
the default encoding. |
| 8258 |
|
| 8259 |
- bpo-6902: Fix problem with built-in types format incorrectly with 0 |
| 8260 |
padding. |
| 8261 |
|
| 8262 |
- bpo-2560: Remove an unnecessary 'for' loop from ``my_fgets()`` in |
| 8263 |
Parser/myreadline.c. |
| 8264 |
|
| 8265 |
- bpo-7988: Fix default alignment to be right aligned for |
| 8266 |
``complex.__format__``. Now it matches other numeric types. |
| 8267 |
|
| 8268 |
- bpo-5211: The complex type no longer uses implicit coercion in mixed-type |
| 8269 |
binary arithmetic operations. |
| 8270 |
|
| 8271 |
Library |
| 8272 |
------- |
| 8273 |
|
| 8274 |
- bpo-7904: Changes to urllib.parse.urlsplit to handle schemes as defined by |
| 8275 |
RFC3986. Anything before :// is considered a scheme and is followed by an |
| 8276 |
authority (or netloc) and by '/' led path, which is optional. |
| 8277 |
|
| 8278 |
- bpo-1555570: email no longer inserts extra blank lines when a \r\n combo |
| 8279 |
crosses an 8192 byte boundary. |
| 8280 |
|
| 8281 |
- bpo-6906: Tk should not set Unicode environment variables on Windows. |
| 8282 |
|
| 8283 |
- bpo-1054943: Fix ``unicodedata.normalize('NFC', text)`` for the Public |
| 8284 |
Review Issue #29 (http://unicode.org/review/pr-29.html). |
| 8285 |
|
| 8286 |
- bpo-7494: Fix a crash in ``_lsprof`` (cProfile) after clearing the |
| 8287 |
profiler, reset also the pointer to the current pointer context. |
| 8288 |
|
| 8289 |
- bpo-7232: Add support for the context management protocol to the |
| 8290 |
``tarfile.TarFile`` class. |
| 8291 |
|
| 8292 |
- bpo-7250: Fix info leak of os.environ across multi-run uses of |
| 8293 |
``wsgiref.handlers.CGIHandler``. |
| 8294 |
|
| 8295 |
- bpo-1729305: Fix doctest to handle encode error with "backslashreplace". |
| 8296 |
|
| 8297 |
- bpo-691291: ``codecs.open()`` should not convert end of lines on reading |
| 8298 |
and writing. |
| 8299 |
|
| 8300 |
- bpo-7975: Correct regression in dict methods supported by bsddb.dbshelve. |
| 8301 |
|
| 8302 |
- bpo-7959: ctypes callback functions are now registered correctly with the |
| 8303 |
cycle garbage collector. |
| 8304 |
|
| 8305 |
- bpo-7970: ``email.Generator.flatten`` now correctly flattens |
| 8306 |
message/rfc822 messages parsed by ``email.Parser.HeaderParser``. |
| 8307 |
|
| 8308 |
- bpo-3426: ``os.path.abspath`` now returns unicode when its arg is unicode. |
| 8309 |
|
| 8310 |
- bpo-7633: In the decimal module, ``Context`` class methods (with the |
| 8311 |
exception of canonical and is_canonical) now accept instances of int and |
| 8312 |
long wherever a Decimal instance is accepted, and implicitly convert that |
| 8313 |
argument to Decimal. Previously only some arguments were converted. |
| 8314 |
|
| 8315 |
- bpo-6003: Add an argument to ``zipfile.Zipfile.writestr`` to specify the |
| 8316 |
compression type. |
| 8317 |
|
| 8318 |
- bpo-7893: ``unittest.TextTestResult`` is made public and a ``resultclass`` |
| 8319 |
argument added to the TextTestRunner constructor allowing a different |
| 8320 |
result class to be used without having to subclass. |
| 8321 |
|
| 8322 |
- bpo-7588: ``unittest.TextTestResult.getDescription`` now includes the test |
| 8323 |
name in failure reports even if the test has a docstring. |
| 8324 |
|
| 8325 |
- bpo-5801: Remove spurious empty lines in wsgiref. |
| 8326 |
|
| 8327 |
- bpo-1537721: Add a ``writeheader()`` method to ``csv.DictWriter``. |
| 8328 |
|
| 8329 |
- bpo-7427: Improve the representation of httplib.BadStatusLine exceptions. |
| 8330 |
|
| 8331 |
- bpo-7481: When a ``threading.Thread`` failed to start it would leave the |
| 8332 |
instance stuck in initial state and present in ``threading.enumerate()``. |
| 8333 |
|
| 8334 |
- bpo-1068268: The subprocess module now handles EINTR in internal |
| 8335 |
``os.waitpid()`` and ``os.read()`` system calls where appropriate. |
| 8336 |
|
| 8337 |
- bpo-6729: Add ``ctypes.c_ssize_t`` to represent ssize_t. |
| 8338 |
|
| 8339 |
- bpo-6247: The argparse module has been added to the standard library. |
| 8340 |
|
| 8341 |
- The sqlite3 module was updated to pysqlite 2.6.0. This fixes several |
| 8342 |
obscure bugs and allows loading SQLite extensions from shared libraries. |
| 8343 |
|
| 8344 |
- bpo-7808: Fix reference leaks in _bsddb and related tests. |
| 8345 |
|
| 8346 |
- bpo-6544: Fix a reference leak in the kqueue implementation's error |
| 8347 |
handling. |
| 8348 |
|
| 8349 |
- Stop providing crtassem.h symbols when compiling with Visual Studio 2010, |
| 8350 |
as msvcr100.dll is not a platform assembly anymore. |
| 8351 |
|
| 8352 |
- bpo-7242: On Solaris 9 and earlier calling ``os.fork()`` from within a |
| 8353 |
thread could raise an incorrect RuntimeError about not holding the import |
| 8354 |
lock. The import lock is now reinitialized after fork. |
| 8355 |
|
| 8356 |
- bpo-7999: ``os.setreuid()`` and ``os.setregid()`` would refuse to accept a |
| 8357 |
-1 parameter on some platforms such as OS X. |
| 8358 |
|
| 8359 |
Tests |
| 8360 |
----- |
| 8361 |
|
| 8362 |
- bpo-7849: The utility ``test.test_support.check_warnings()`` verifies if |
| 8363 |
warnings are effectively raised. A new utility ``check_py3k_warnings()`` |
| 8364 |
is available. |
| 8365 |
|
| 8366 |
- The four path modules (genericpath, macpath, ntpath, posixpath) share a |
| 8367 |
common TestCase for some tests: test_genericpath.CommonTest. |
| 8368 |
|
| 8369 |
- Print platform information when running the whole test suite, or using the |
| 8370 |
``--verbose`` flag. |
| 8371 |
|
| 8372 |
- bpo-767675: Enable test_pep277 on POSIX platforms with Unicode-friendly |
| 8373 |
filesystem encoding. |
| 8374 |
|
| 8375 |
- bpo-6292: For the moment at least, the test suite runs cleanly if python |
| 8376 |
is run with the -OO flag. Tests requiring docstrings are skipped. |
| 8377 |
|
| 8378 |
- bpo-7712: test_support gained a new ``temp_cwd`` context manager which is |
| 8379 |
now also used by regrtest to run all the tests in a temporary directory. |
| 8380 |
The original CWD is saved in ``test.test_support.SAVEDCWD``. Thanks to |
| 8381 |
Florent Xicluna who helped with the patch. |
| 8382 |
|
| 8383 |
Build |
| 8384 |
----- |
| 8385 |
|
| 8386 |
- bpo-3920: Define _BSD_SOURCE on OpenBSD 4.4 through 4.9. (See also: |
| 8387 |
bpo-7903) |
| 8388 |
|
| 8389 |
|
| 8390 |
What's New in Python 2.7 alpha 3? |
| 8391 |
================================= |
| 8392 |
|
| 8393 |
*Release date: 2010-02-06* |
| 8394 |
|
| 8395 |
Core and Builtins |
| 8396 |
----------------- |
| 8397 |
|
| 8398 |
- bpo-5677: Explicitly forbid write operations on read-only file objects, |
| 8399 |
and read operations on write-only file objects. On Windows, the system C |
| 8400 |
library would return a bogus result; on Solaris, it was possible to crash |
| 8401 |
the interpreter. Patch by Stefan Krah. |
| 8402 |
|
| 8403 |
- bpo-7853: Normalize exceptions before they are passed to a context |
| 8404 |
manager's ``__exit__()`` method. |
| 8405 |
|
| 8406 |
- bpo-7385: Fix a crash in ``PyMemoryView_FromObject()`` when |
| 8407 |
``PyObject_GetBuffer()`` fails. Patch by Florent Xicluna. |
| 8408 |
|
| 8409 |
- bpo-7819: Check ``sys.call_tracing()`` arguments types. |
| 8410 |
|
| 8411 |
- bpo-7788: Fix an interpreter crash produced by deleting a list slice with |
| 8412 |
very large step value. |
| 8413 |
|
| 8414 |
- bpo-7766: Change ``sys.getwindowsversion()`` return value to a named tuple |
| 8415 |
and add the additional members returned in an OSVERSIONINFOEX structure. |
| 8416 |
The new members are service_pack_major, service_pack_minor, suite_mask, |
| 8417 |
and product_type. |
| 8418 |
|
| 8419 |
- bpo-7561: Operations on empty bytearrays (such as ``int(bytearray())``) |
| 8420 |
could crash in many places because of the ``PyByteArray_AS_STRING()`` |
| 8421 |
macro returning NULL. The macro now returns a statically allocated empty |
| 8422 |
string instead. |
| 8423 |
|
| 8424 |
- bpo-7622: Improve the split(), rsplit(), splitlines() and replace() |
| 8425 |
methods of bytes, bytearray and unicode objects by using a common |
| 8426 |
implementation based on stringlib's fast search. Patch by Florent |
| 8427 |
Xicluna. |
| 8428 |
|
| 8429 |
- bpo-7632: Fix various str -> float conversion bugs present in 2.7 alpha 2, |
| 8430 |
including: |
| 8431 |
|
| 8432 |
(1) a serious 'wrong output' bug that could occur for long (> 40 digit) |
| 8433 |
input strings, (2) a crash in dtoa.c that occurred in debug builds |
| 8434 |
when parsing certain long numeric strings corresponding to subnormal |
| 8435 |
values, (3) a memory leak for some values large enough to cause overflow, |
| 8436 |
and (4) a number of flaws that could lead to incorrectly rounded results. |
| 8437 |
|
| 8438 |
- bpo-7319: Silence ``DeprecationWarning`` by default when the -3 option is |
| 8439 |
not used. (See also: bpo-7770) |
| 8440 |
|
| 8441 |
- bpo-2335: Backport set literals syntax from Python 3.x. |
| 8442 |
|
| 8443 |
- bpo-2333: Backport set and dict comprehensions syntax from Python 3.x. |
| 8444 |
|
| 8445 |
- bpo-1967: Backport dictionary views from Python 3.x. |
| 8446 |
|
| 8447 |
Library |
| 8448 |
------- |
| 8449 |
|
| 8450 |
- bpo-9137: Fix issue in MutableMapping.update, which incorrectly treated |
| 8451 |
keyword arguments called 'self' or 'other' specially. |
| 8452 |
|
| 8453 |
- bpo-7835: shelve should no longer produce mysterious warnings during |
| 8454 |
interpreter shutdown. |
| 8455 |
|
| 8456 |
- bpo-2746: Don't escape ampersands and angle brackets ("&", "<", ">") in |
| 8457 |
XML processing instructions and comments. These raw characters are |
| 8458 |
allowed by the XML specification, and are necessary when outputting e.g. |
| 8459 |
PHP code in a processing instruction. Patch by Neil Muller. |
| 8460 |
|
| 8461 |
- bpo-7869: logging: Improved diagnostic for format-time errors. |
| 8462 |
|
| 8463 |
- bpo-7868: logging: Added loggerClass attribute to Manager. |
| 8464 |
|
| 8465 |
- bpo-7851: logging: Clarification on logging configuration files. |
| 8466 |
|
| 8467 |
- bpo-4772: Raise a ValueError when an unknown Bluetooth protocol is |
| 8468 |
specified, rather than fall through to AF_PACKET (in the ``socket`` |
| 8469 |
module). Also, raise ValueError rather than TypeError when an unknown TIPC |
| 8470 |
address type is specified. Patch by Brian Curtin. |
| 8471 |
|
| 8472 |
- logging: Implemented PEP 391. |
| 8473 |
|
| 8474 |
- bpo-6939: Fix file I/O objects in the `io` module to keep the original |
| 8475 |
file position when calling `truncate()`. It would previously change the |
| 8476 |
file position to the given argument, which goes against the tradition of |
| 8477 |
ftruncate() and other truncation APIs. Patch by Pascal Chambon. |
| 8478 |
|
| 8479 |
- bpo-7610: Reworked implementation of the internal ``zipfile.ZipExtFile`` |
| 8480 |
class used to represent files stored inside an archive. The new |
| 8481 |
implementation is significantly faster and can be wrapped in an |
| 8482 |
``io.BufferedReader`` object for more speedups. It also solves an issue |
| 8483 |
where interleaved calls to ``read()`` and ``readline()`` give wrong |
| 8484 |
results. Patch by Nir Aides. |
| 8485 |
|
| 8486 |
- bpo-7792: Registering non-classes to ABCs raised an obscure error. |
| 8487 |
|
| 8488 |
- Removed the deprecated functions ``verify()`` and ``vereq()`` from |
| 8489 |
Lib/test/test_support.py. |
| 8490 |
|
| 8491 |
- bpo-7773: Fix an UnboundLocalError in ``platform.linux_distribution()`` |
| 8492 |
when the release file is empty. |
| 8493 |
|
| 8494 |
- bpo-7748: Since unicode values are supported for some metadata options in |
| 8495 |
Distutils, the DistributionMetadata get_* methods will now return a utf-8 |
| 8496 |
encoded string for them. This ensures that the upload and register |
| 8497 |
commands send the correct values to PyPI without any error. |
| 8498 |
|
| 8499 |
- bpo-1670765: Prevent ``email.generator.Generator`` from re-wrapping |
| 8500 |
headers in multipart/signed MIME parts, which fixes one of the sources of |
| 8501 |
invalid modifications to such parts by Generator. |
| 8502 |
|
| 8503 |
- bpo-7701: Fix crash in ``binascii.b2a_uu()`` in debug mode when given a |
| 8504 |
1-byte argument. Patch by Victor Stinner. |
| 8505 |
|
| 8506 |
- bpo-3299: Fix possible crash in the _sre module when given bad argument |
| 8507 |
values in debug mode. Patch by Victor Stinner. |
| 8508 |
|
| 8509 |
- bpo-7703: Add support for the new buffer API to functions of the binascii |
| 8510 |
module. Backported from py3k by Florent Xicluna, with some additional |
| 8511 |
tests. |
| 8512 |
|
| 8513 |
- bpo-2846: Add support for gzip.GzipFile reading zero-padded files. Patch |
| 8514 |
by Brian Curtin. |
| 8515 |
|
| 8516 |
- bpo-5827: Make sure that normpath preserves unicode. Initial patch by |
| 8517 |
Matt Giuca. |
| 8518 |
|
| 8519 |
- bpo-5372: Drop the reuse of .o files in Distutils' ccompiler (since |
| 8520 |
Extension extra options may change the output without changing the .c |
| 8521 |
file). Initial patch by Collin Winter. |
| 8522 |
|
| 8523 |
- Expat: Fix DoS via XML document with malformed UTF-8 sequences |
| 8524 |
(CVE_2009_3560). |
| 8525 |
|
| 8526 |
Build |
| 8527 |
----- |
| 8528 |
|
| 8529 |
- bpo-7632: When Py_USING_MEMORY_DEBUGGER is defined, disable the private |
| 8530 |
memory allocation scheme in dtoa.c and use PyMem_Malloc and PyMem_Free |
| 8531 |
instead. Also disable caching of powers of 5. |
| 8532 |
|
| 8533 |
- bpo-7658: Ensure that the new pythonw executable works on OSX 10.4 |
| 8534 |
|
| 8535 |
- bpo-7714: Use ``gcc -dumpversion`` to detect the version of GCC on MacOSX. |
| 8536 |
|
| 8537 |
- bpo-7661: Allow ctypes to be built from a non-ASCII directory path. Patch |
| 8538 |
by Florent Xicluna. |
| 8539 |
|
| 8540 |
Tools/Demos |
| 8541 |
----------- |
| 8542 |
|
| 8543 |
- iobench (a file I/O benchmark) and ccbench (a concurrency benchmark) were |
| 8544 |
added to the ``Tools`` directory. They were previously living in the |
| 8545 |
sandbox. |
| 8546 |
|
| 8547 |
Tests |
| 8548 |
----- |
| 8549 |
|
| 8550 |
- bpo-7728: test_timeout was changed to use ``test_support.bind_port()`` |
| 8551 |
instead of a hard coded port. |
| 8552 |
|
| 8553 |
Documentation |
| 8554 |
------------- |
| 8555 |
|
| 8556 |
- Updated "Using Python" documentation to include description of CPython's |
| 8557 |
-J, -U and -X options. |
| 8558 |
|
| 8559 |
- Updated Python manual page (options -B, -O0, -s, environment variables |
| 8560 |
PYTHONDONTWRITEBYTECODE, PYTHONNOUSERSITE). |
| 8561 |
|
| 8562 |
|
| 8563 |
What's New in Python 2.7 alpha 2? |
| 8564 |
================================= |
| 8565 |
|
| 8566 |
*Release date: 2010-01-09* |
| 8567 |
|
| 8568 |
Core and Builtins |
| 8569 |
----------------- |
| 8570 |
|
| 8571 |
- The ``__complex__()`` method is now looked up on the class of instances to |
| 8572 |
make it consistent with other special methods. |
| 8573 |
|
| 8574 |
- bpo-7462: Implement the stringlib fast search algorithm for the `rfind`, |
| 8575 |
`rindex`, `rsplit` and `rpartition` methods. Patch by Florent Xicluna. |
| 8576 |
|
| 8577 |
- bpo-5080: A number of functions and methods previously produced a |
| 8578 |
DeprecationWarning when passed a float argument where an integer was |
| 8579 |
expected. These functions and methods now raise TypeError instead. The |
| 8580 |
majority of the effects of this change are in the extension modules, but |
| 8581 |
some core functions and methods are affected: notably the 'chr', 'range' |
| 8582 |
and 'xrange' builtins, and many unicode/str methods. |
| 8583 |
|
| 8584 |
- bpo-7604: Deleting an unset slotted attribute did not raise an |
| 8585 |
AttributeError. |
| 8586 |
|
| 8587 |
- bpo-7534: Fix handling of IEEE specials (infinities, nans, negative zero) |
| 8588 |
in ** operator. The behaviour now conforms to that described in C99 Annex |
| 8589 |
F. |
| 8590 |
|
| 8591 |
- bpo-7579: The msvcrt module now has docstrings for all its functions. |
| 8592 |
|
| 8593 |
- bpo-7413: Passing '\0' as the separator to datetime.datetime.isoformat() |
| 8594 |
used to drop the time part of the result. |
| 8595 |
|
| 8596 |
- bpo-1811: Improve accuracy and cross-platform consistency for true |
| 8597 |
division of integers: the result of a/b is now correctly rounded for ints |
| 8598 |
a and b (at least on IEEE 754 platforms), and in particular does not |
| 8599 |
depend on the internal representation of a long. |
| 8600 |
|
| 8601 |
- bpo-6108: ``unicode(exception)`` and ``str(exception)`` should return the |
| 8602 |
same message when only ``__str__()`` (and not ``__unicode__()``) is |
| 8603 |
overridden in the subclass. |
| 8604 |
|
| 8605 |
- bpo-6834: Replace the implementation for the 'python' and 'pythonw' |
| 8606 |
executables on OSX. |
| 8607 |
|
| 8608 |
These executables now work properly with the arch(1) command: ``arch -ppc |
| 8609 |
python`` will start a universal binary version of python in PPC mode |
| 8610 |
(unlike previous releases). |
| 8611 |
|
| 8612 |
- bpo-1680159: Unicode coercion during an 'in' operation no longer masks the |
| 8613 |
underlying error when the coercion fails for the left hand operand. |
| 8614 |
|
| 8615 |
- bpo-7491: Metaclass's __cmp__ method was ignored. |
| 8616 |
|
| 8617 |
- bpo-7466: Segmentation fault when the garbage collector is called in the |
| 8618 |
middle of populating a tuple. Patch by Florent Xicluna. |
| 8619 |
|
| 8620 |
Library |
| 8621 |
------- |
| 8622 |
|
| 8623 |
- bpo-6963: Added "maxtasksperchild" argument to ``multiprocessing.Pool``, |
| 8624 |
allowing for a maximum number of tasks within the pool to be completed by |
| 8625 |
the worker before that worker is terminated, and a new one created to |
| 8626 |
replace it. |
| 8627 |
|
| 8628 |
- bpo-7617: Make sure distutils.unixccompiler.UnixCCompiler recognizes gcc |
| 8629 |
when it has a fully qualified configuration prefix. Initial patch by |
| 8630 |
Arfrever. |
| 8631 |
|
| 8632 |
- bpo-7092: Remove py3k warning when importing cPickle. 2to3 handles |
| 8633 |
renaming of `cPickle` to `pickle`. The warning was annoying since there's |
| 8634 |
no alternative to cPickle if you care about performance. Patch by Florent |
| 8635 |
Xicluna. |
| 8636 |
|
| 8637 |
- bpo-7455: Fix possible crash in cPickle on invalid input. Patch by Victor |
| 8638 |
Stinner. |
| 8639 |
|
| 8640 |
- bpo-7092: Fix the DeprecationWarnings emitted by the standard library when |
| 8641 |
using the -3 flag. Patch by Florent Xicluna. |
| 8642 |
|
| 8643 |
- bpo-7471: Improve the performance of GzipFile's buffering mechanism, and |
| 8644 |
make it implement the ``io.BufferedIOBase`` ABC to allow for further |
| 8645 |
speedups by wrapping it in an ``io.BufferedReader``. Patch by Nir Aides. |
| 8646 |
|
| 8647 |
- bpo-3972: ``httplib.HTTPConnection`` now accepts an optional |
| 8648 |
source_address parameter to allow specifying where your connections come |
| 8649 |
from. |
| 8650 |
|
| 8651 |
- ``socket.create_connection()`` now accepts an optional source_address |
| 8652 |
parameter. |
| 8653 |
|
| 8654 |
- bpo-5511: ``zipfile.ZipFile`` can now be used as a context manager. |
| 8655 |
Initial patch by Brian Curtin. |
| 8656 |
|
| 8657 |
- Distutils now correctly identifies the build architecture as "x86_64" when |
| 8658 |
building on OSX 10.6 without "-arch" flags. |
| 8659 |
|
| 8660 |
- bpo-7556: Distutils' msvc9compiler now opens the MSVC Manifest file in |
| 8661 |
text mode. |
| 8662 |
|
| 8663 |
- bpo-7552: Removed line feed in the base64 Authorization header in the |
| 8664 |
Distutils upload command to avoid an error when PyPI reads it. This |
| 8665 |
occurs on long passwords. Initial patch by JP St. Pierre. |
| 8666 |
|
| 8667 |
- bpo-7231: urllib2 cannot handle https with proxy requiring auth. Patch by |
| 8668 |
Tatsuhiro Tsujikawa. |
| 8669 |
|
| 8670 |
- bpo-7349: Make methods of file objects in the io module accept None as an |
| 8671 |
argument where file-like objects (ie StringIO and BytesIO) accept them to |
| 8672 |
mean the same as passing no argument. |
| 8673 |
|
| 8674 |
- bpo-7348: ``StringIO.StringIO.readline(-1)`` now acts as if it got no |
| 8675 |
argument like other file objects. |
| 8676 |
|
| 8677 |
- bpo-7357: tarfile no longer suppresses fatal extraction errors by default. |
| 8678 |
|
| 8679 |
- bpo-7470: logging: Fix bug in Unicode encoding fallback. |
| 8680 |
|
| 8681 |
- bpo-5949: Fixed IMAP4_SSL hang when the IMAP server response is missing |
| 8682 |
proper end-of-line termination. |
| 8683 |
|
| 8684 |
- bpo-7457: Added a read_pkg_file method to |
| 8685 |
``distutils.dist.DistributionMetadata``. |
| 8686 |
|
| 8687 |
- bpo-3745: Undo the 2.7a1 change to have hashlib to reject unicode and non |
| 8688 |
buffer API supporting objects as input. That behavior is for 3.x only. |
| 8689 |
|
| 8690 |
C API |
| 8691 |
----- |
| 8692 |
|
| 8693 |
- bpo-7767: New function ``PyLong_AsLongLongAndOverflow()`` added, analogous |
| 8694 |
to ``PyLong_AsLongAndOverflow()``. |
| 8695 |
|
| 8696 |
- bpo-5080: The argument parsing functions ``PyArg_ParseTuple()``, |
| 8697 |
``PyArg_ParseTupleAndKeywords()``, ``PyArg_VaParse()``, |
| 8698 |
``PyArg_VaParseTupleAndKeywords()`` and ``PyArg_Parse()`` no longer accept |
| 8699 |
float arguments for integer format codes (other than 'L'): previously an |
| 8700 |
attempt to pass a float resulted in a DeprecationWarning; now it gives a |
| 8701 |
TypeError. For the 'L' format code (which previously had no warning) |
| 8702 |
there is now a DeprecationWarning. |
| 8703 |
|
| 8704 |
- bpo-7033: Function ``PyErr_NewExceptionWithDoc()`` added. |
| 8705 |
|
| 8706 |
Build |
| 8707 |
----- |
| 8708 |
|
| 8709 |
- bpo-6491: Allow --with-dbmliborder to specify that no dbms will be built. |
| 8710 |
|
| 8711 |
- bpo-6943: Use pkg-config to find the libffi headers when the |
| 8712 |
``--with-system-ffi`` flag is used. |
| 8713 |
|
| 8714 |
- bpo-7609: Add a ``--with-system-expat`` option that causes the system's |
| 8715 |
expat library to be used for the pyexpat module instead of the one |
| 8716 |
included with Python. |
| 8717 |
|
| 8718 |
- bpo-7589: Only build the nis module when the correct header files are |
| 8719 |
found. |
| 8720 |
|
| 8721 |
- Switch to OpenSSL 0.9.8l and sqlite 3.6.21 on Windows. |
| 8722 |
|
| 8723 |
- bpo-7541: when using ``python-config`` with a framework install the |
| 8724 |
compiler might use the wrong library. |
| 8725 |
|
| 8726 |
Tests |
| 8727 |
----- |
| 8728 |
|
| 8729 |
- bpo-7376: Instead of running a self-test (which was failing) when called |
| 8730 |
with no arguments, doctest.py now gives a usage message. |
| 8731 |
|
| 8732 |
- bpo-7396: Fix regrtest -s, which was broken by the -j enhancement. |
| 8733 |
|
| 8734 |
- bpo-7498: test_multiprocessing now uses test_support.find_unused_port |
| 8735 |
instead of a hardcoded port number in test_rapid_restart. |
| 8736 |
|
| 8737 |
|
| 8738 |
What's New in Python 2.7 alpha 1? |
| 8739 |
================================= |
| 8740 |
|
| 8741 |
*Release date: 2009-12-05* |
| 8742 |
|
| 8743 |
Core and Builtins |
| 8744 |
----------------- |
| 8745 |
|
| 8746 |
- bpo-7419: ``locale.setlocale()`` could crash the interpreter on Windows |
| 8747 |
when called with invalid values. |
| 8748 |
|
| 8749 |
- bpo-3382: 'F' formatting for float and complex now convert the result to |
| 8750 |
upper case. This only affects 'inf' and 'nan', since 'f' no longer |
| 8751 |
converts to 'g' for large values. |
| 8752 |
|
| 8753 |
- Remove switch from "%f" formatting to "%g" formatting for floats larger |
| 8754 |
than 1e50 in absolute value. |
| 8755 |
|
| 8756 |
- Remove restrictions on precision when formatting floats. E.g., "%.120g" % |
| 8757 |
1e-100 used to raise OverflowError, but now gives the requested 120 |
| 8758 |
significant digits instead. |
| 8759 |
|
| 8760 |
- Add Py3k warnings for parameter names in parentheses. |
| 8761 |
|
| 8762 |
- bpo-7362: Give a proper error message for ``def f((x)=3): pass``. |
| 8763 |
|
| 8764 |
- bpo-7085: Fix crash when importing some extensions in a thread on MacOSX |
| 8765 |
10.6. |
| 8766 |
|
| 8767 |
- bpo-7117: ``repr(x)`` for a float x returns a result based on the shortest |
| 8768 |
decimal string that's guaranteed to round back to x under correct rounding |
| 8769 |
(with round-half-to-even rounding mode). Previously it gave a string |
| 8770 |
based on rounding x to 17 decimal digits. repr(x) for a complex number |
| 8771 |
behaves similarly. On platforms where the correctly-rounded strtod and |
| 8772 |
dtoa code is not supported (see below), repr is unchanged. |
| 8773 |
|
| 8774 |
- bpo-7117: On almost all platforms: float-to-string and string-to-float |
| 8775 |
conversions within Python are now correctly rounded. Places these |
| 8776 |
conversions occur include: str for floats and complex numbers; the float |
| 8777 |
and complex constructors; old-style and new-style numeric formatting; |
| 8778 |
serialization and deserialization of floats and complex numbers using |
| 8779 |
marshal, pickle and json; parsing of float and imaginary literals in |
| 8780 |
Python code; Decimal-to-float conversion. |
| 8781 |
|
| 8782 |
The conversions use a Python-adapted version of David Gay's well-known |
| 8783 |
dtoa.c, providing correctly-rounded strtod and dtoa C functions. This |
| 8784 |
code is supported on Windows, and on Unix-like platforms using gcc, icc or |
| 8785 |
suncc as the C compiler. There may be a small number of platforms on |
| 8786 |
which correct operation of this code cannot be guaranteed, so the code is |
| 8787 |
not used: notably, this applies to platforms where the C double format is |
| 8788 |
not IEEE 754 binary64, and to platforms on x86 hardware where the x87 FPU |
| 8789 |
is set to 64-bit precision and Python's configure script is unable to |
| 8790 |
determine how to change the FPU precision. On these platforms conversions |
| 8791 |
use the platform strtod and dtoa, as before. |
| 8792 |
|
| 8793 |
- bpo-7117: Backport round implementation from Python 3.x. ``round()`` now |
| 8794 |
uses the correctly-rounded string <-> float conversions described above |
| 8795 |
(when available), and so produces correctly rounded results that will |
| 8796 |
display nicely under the float repr. There are two related small changes: |
| 8797 |
(1) round now accepts any class with an ``__index__()`` method for its |
| 8798 |
second argument (but no longer accepts floats for the second argument), |
| 8799 |
and (2) an excessively large second integer argument (e.g., ``round(1.234, |
| 8800 |
10**100)``) no longer raises an exception. |
| 8801 |
|
| 8802 |
- bpo-1757126: Fix the cyrillic-asian alias for the ptcp154 encoding. |
| 8803 |
|
| 8804 |
- Fix several issues with ``compile()``. The input can now contain Windows |
| 8805 |
and Mac newlines and is no longer required to end in a newline. |
| 8806 |
|
| 8807 |
- Remove length limitation when constructing a complex number from a unicode |
| 8808 |
string. |
| 8809 |
|
| 8810 |
- bpo-7244: ``itertools.izip_longest()`` no longer ignores exceptions raised |
| 8811 |
during the formation of an output tuple. |
| 8812 |
|
| 8813 |
- bpo-1087418: Boost performance of bitwise operations for longs. |
| 8814 |
|
| 8815 |
- bpo-1722344: ``threading._shutdown()`` is now called in ``Py_Finalize()``, |
| 8816 |
which fixes the problem of some exceptions being thrown at shutdown when |
| 8817 |
the interpreter is killed. Patch by Adam Olsen. |
| 8818 |
|
| 8819 |
- bpo-7168: Document ``PyFloat_AsString()`` and ``PyFloat_AsReprString()``, |
| 8820 |
and note that they are unsafe and deprecated. |
| 8821 |
|
| 8822 |
- bpo-7120: logging: Remove import of multiprocessing which is causing crash |
| 8823 |
in GAE. |
| 8824 |
|
| 8825 |
- bpo-7140: The ``__dict__`` of a module should not be cleared unless the |
| 8826 |
module is the only object holding a reference to it. |
| 8827 |
|
| 8828 |
- bpo-1754094: Improve the stack depth calculation in the compiler. There |
| 8829 |
should be no other effect than a small decrease in memory use. Patch by |
| 8830 |
Christopher Tur Lesniewski-Laas. |
| 8831 |
|
| 8832 |
- bpo-7084: Fix a (very unlikely) crash when printing a list from one |
| 8833 |
thread, and mutating it from another one. Patch by Scott Dial. |
| 8834 |
|
| 8835 |
- bpo-1571184: The Unicode database contains properties for more characters. |
| 8836 |
The tables for code points representing numeric values, white spaces or |
| 8837 |
line breaks are now generated from the official Unicode Character Database |
| 8838 |
files, and include information from the Unihan.txt file. |
| 8839 |
|
| 8840 |
- bpo-7050: Fix a SystemError when trying to use unpacking and augmented |
| 8841 |
assignment. |
| 8842 |
|
| 8843 |
- bpo-5329: Fix ``os.popen*`` regression from 2.5 with commands as a |
| 8844 |
sequence running through the shell. Patch by Jean-Paul Calderone and Jani |
| 8845 |
Hakala. |
| 8846 |
|
| 8847 |
- bpo-7019: Raise ValueError when unmarshalling bad long data, instead of |
| 8848 |
producing internally inconsistent Python longs. |
| 8849 |
|
| 8850 |
- bpo-6990: Fix ``threading.local`` subclasses leaving old state around |
| 8851 |
after a reference cycle GC which could be recycled by new locals. |
| 8852 |
|
| 8853 |
- bpo-6300: unicode.encode, unicode.decode, str.decode, and str.encode now |
| 8854 |
take keyword arguments. |
| 8855 |
|
| 8856 |
- bpo-6922: Fix an infinite loop when trying to decode an invalid UTF-32 |
| 8857 |
stream with a non-raising error handler like "replace" or "ignore". |
| 8858 |
|
| 8859 |
- bpo-6713: Improve performance of base 10 int -> string and long -> string |
| 8860 |
conversions. |
| 8861 |
|
| 8862 |
- bpo-1590864: Fix potential deadlock when mixing threads and fork(). |
| 8863 |
|
| 8864 |
- bpo-6844: Do not emit DeprecationWarnings when accessing a "message" |
| 8865 |
attribute on exceptions that was set explicitly. |
| 8866 |
|
| 8867 |
- bpo-6846: Fix bug where bytearray.pop() returns negative integers. |
| 8868 |
|
| 8869 |
- ``classmethod()`` no longer checks if its argument is callable. |
| 8870 |
|
| 8871 |
- bpo-6750: A text file opened with ``io.open()`` could duplicate its output |
| 8872 |
when writing from multiple threads at the same time. |
| 8873 |
|
| 8874 |
- bpo-6704: Improve the col_offset in AST for "for" statements with a target |
| 8875 |
of tuple unpacking. |
| 8876 |
|
| 8877 |
- bpo-6707: ``dir()`` on an uninitialized module caused a crash. |
| 8878 |
|
| 8879 |
- bpo-6540: Fixed crash for ``bytearray.translate()`` with invalid |
| 8880 |
parameters. |
| 8881 |
|
| 8882 |
- bpo-6573: ``set.union()`` stopped processing inputs if an instance of self |
| 8883 |
occurred in the argument chain. |
| 8884 |
|
| 8885 |
- bpo-1616979: Added the cp720 (Arabic DOS) encoding. |
| 8886 |
|
| 8887 |
- bpo-6070: On posix platforms import no longer copies the execute bit from |
| 8888 |
the .py file to the .pyc file if it is set. Patch by Marco N. |
| 8889 |
|
| 8890 |
- bpo-4618: When unicode arguments are passed to ``print()``, the default |
| 8891 |
separator and end should be unicode also. |
| 8892 |
|
| 8893 |
- bpo-6119: Fixed an incorrect Py3k warning about order comparisons of |
| 8894 |
built-in functions and methods. |
| 8895 |
|
| 8896 |
- bpo-6347: Include inttypes.h as well as stdint.h in pyport.h. This fixes |
| 8897 |
a build failure on HP-UX: int32_t and uint32_t are defined in inttypes.h |
| 8898 |
instead of stdint.h on that platform. |
| 8899 |
|
| 8900 |
- bpo-4856: Remove checks for win NT. |
| 8901 |
|
| 8902 |
- bpo-2016: Fixed a crash in a corner case where the dictionary of keyword |
| 8903 |
arguments could be modified during the function call setup. |
| 8904 |
|
| 8905 |
- Removed the ipaddr module. |
| 8906 |
|
| 8907 |
- bpo-6329: Fixed iteration for memoryview objects (it was being blocked |
| 8908 |
because it wasn't recognized as a sequence). |
| 8909 |
|
| 8910 |
- bpo-6289: Encoding errors from ``compile()`` were being masked. |
| 8911 |
|
| 8912 |
- When no module is given in a relative import, the module field of the |
| 8913 |
ImportFrom AST node is now None instead of an empty string. |
| 8914 |
|
| 8915 |
- Assignment to None using import statements now raises a SyntaxError. |
| 8916 |
|
| 8917 |
- bpo-4547: When debugging a very large function, it was not always possible |
| 8918 |
to update the lineno attribute of the current frame. |
| 8919 |
|
| 8920 |
- bpo-5330: C functions called with keyword arguments were not reported by |
| 8921 |
the various profiling modules (profile, cProfile). Patch by Hagen |
| 8922 |
Fürstenau. |
| 8923 |
|
| 8924 |
- bpo-5982: staticmethod and classmethod now expose the wrapped function |
| 8925 |
with ``__func__``. |
| 8926 |
|
| 8927 |
- Added support for multiple context managers in the same with-statement. |
| 8928 |
Deprecated ``contextlib.nested()`` which is no longer needed. |
| 8929 |
|
| 8930 |
- bpo-6101: A new opcode, SETUP_WITH, has been added to speed up the with |
| 8931 |
statement and correctly lookup the __enter__ and __exit__ special methods. |
| 8932 |
|
| 8933 |
- bpo-5829: complex("1e500") no longer raises OverflowError. This makes it |
| 8934 |
consistent with float("1e500") and interpretation of real and imaginary |
| 8935 |
literals. |
| 8936 |
|
| 8937 |
- bpo-3527: Removed Py_WIN_WIDE_FILENAMES which is not used any more. |
| 8938 |
|
| 8939 |
- ``__instancecheck__()`` and ``__subclasscheck__()`` are now completely |
| 8940 |
ignored on classic classes and instances. |
| 8941 |
|
| 8942 |
- bpo-5994: The marshal module now has docstrings. |
| 8943 |
|
| 8944 |
- bpo-5981: Fix three minor inf/nan issues in float.fromhex: |
| 8945 |
|
| 8946 |
(1) inf and nan strings with trailing whitespace were incorrectly |
| 8947 |
rejected; (2) parsing of strings representing infinities and nans was |
| 8948 |
locale aware; and (3) the interpretation of fromhex('-nan') didn't match |
| 8949 |
that of float('-nan'). |
| 8950 |
|
| 8951 |
- bpo-5920: For ``float.__format__()``, change the behavior with the empty |
| 8952 |
presentation type (that is, not one of 'e', 'f', 'g', or 'n') to be like |
| 8953 |
'g' but with at least one decimal point and with a default precision of |
| 8954 |
12. Previously, the behavior the same but with a default precision of 6. |
| 8955 |
This more closely matches ``str()``, and reduces surprises when adding |
| 8956 |
alignment flags to the empty presentation type. This also affects the new |
| 8957 |
complex.__format__ in the same way. |
| 8958 |
|
| 8959 |
- bpo-5890: In subclasses of 'property' the __doc__ attribute was shadowed |
| 8960 |
by classtype's, even if it was None. property now inserts the __doc__ |
| 8961 |
into the subclass instance __dict__. |
| 8962 |
|
| 8963 |
- bpo-4426: The UTF-7 decoder was too strict and didn't accept some legal |
| 8964 |
sequences. Patch by Nick Barnes and Victor Stinner. |
| 8965 |
|
| 8966 |
- bpo-1588: Add complex.__format__. For example, ``format(complex(1, 2./3), |
| 8967 |
'.5')`` now produces a sensible result. |
| 8968 |
|
| 8969 |
- bpo-5864: Fix empty format code formatting for floats so that it never |
| 8970 |
gives more than the requested number of significant digits. |
| 8971 |
|
| 8972 |
- bpo-5793: Rationalize isdigit / isalpha / tolower, etc. Includes new |
| 8973 |
Py_ISDIGIT / Py_ISALPHA / Py_TOLOWER, etc. in pctypes.h. |
| 8974 |
|
| 8975 |
- bpo-4971: Fix titlecase for characters that are their own titlecase, but |
| 8976 |
not their own uppercase. |
| 8977 |
|
| 8978 |
- bpo-5835: Deprecate PyOS_ascii_formatd and replace it with |
| 8979 |
_PyOS_double_to_string or PyOS_double_to_string. |
| 8980 |
|
| 8981 |
- bpo-5283: Setting __class__ in __del__ caused a segfault. |
| 8982 |
|
| 8983 |
- bpo-5816: ``complex(repr(z))`` now recovers z exactly, even when z |
| 8984 |
involves nans, infs or negative zeros. |
| 8985 |
|
| 8986 |
- Implement PEP 378, Format Specifier for Thousands Separator, for floats, |
| 8987 |
ints, and longs. |
| 8988 |
|
| 8989 |
- bpo-5515: 'n' formatting for ints, longs, and floats handles leading zero |
| 8990 |
formatting poorly. |
| 8991 |
|
| 8992 |
- bpo-5772: For float.__format__, don't add a trailing ".0" if we're using |
| 8993 |
no type code and we have an exponent. |
| 8994 |
|
| 8995 |
- bpo-3166: Make long -> float (and int -> float) conversions correctly |
| 8996 |
rounded. |
| 8997 |
|
| 8998 |
- bpo-5787: ``object.__getattribute__(some_type, "__bases__")`` segfaulted |
| 8999 |
on some built-in types. |
| 9000 |
|
| 9001 |
- bpo-1869: Fix a couple of minor round() issues. ``round(5e15+1)`` was |
| 9002 |
giving 5e15+2; ``round(-0.0)`` was losing the sign of the zero. |
| 9003 |
|
| 9004 |
- bpo-5759: float() didn't call __float__ on str subclasses. |
| 9005 |
|
| 9006 |
- bpo-5704: The "-3" command-line option now implies "-t". |
| 9007 |
|
| 9008 |
- bpo-2170: Refactored ``xml.dom.minidom.normalize``, increasing both its |
| 9009 |
clarity and its speed. |
| 9010 |
|
| 9011 |
- bpo-2396: The memoryview object was backported from Python 3.1. |
| 9012 |
|
| 9013 |
- Fix a problem in PyErr_NormalizeException that leads to "undetected |
| 9014 |
errors" when hitting the recursion limit under certain circumstances. |
| 9015 |
|
| 9016 |
- bpo-1665206: Remove the last eager import in _warnings.c and make it lazy. |
| 9017 |
|
| 9018 |
- bpo-4865: On MacOSX /Library/Python/2.7/site-packages is added to the end |
| 9019 |
sys.path, for compatibility with the system install of Python. |
| 9020 |
|
| 9021 |
- bpo-4688: Add a heuristic so that tuples and dicts containing only |
| 9022 |
untrackable objects are not tracked by the garbage collector. This can |
| 9023 |
reduce the size of collections and therefore the garbage collection |
| 9024 |
overhead on long-running programs, depending on their particular use of |
| 9025 |
datatypes. |
| 9026 |
|
| 9027 |
- bpo-5512: Rewrite PyLong long division algorithm (x_divrem) to improve its |
| 9028 |
performance. Long divisions and remainder operations are now between 50% |
| 9029 |
and 150% faster. |
| 9030 |
|
| 9031 |
- bpo-4258: Make it possible to use base 2**30 instead of base 2**15 for the |
| 9032 |
internal representation of integers, for performance reasons. Base 2**30 |
| 9033 |
is enabled by default on 64-bit machines. Add --enable-big-digits option |
| 9034 |
to configure, which overrides the default. Add sys.long_info structseq to |
| 9035 |
provide information about the internal format. |
| 9036 |
|
| 9037 |
- bpo-4034: Fix weird attribute error messages of the traceback object. (As |
| 9038 |
a result traceback.__members__ no longer exists.) |
| 9039 |
|
| 9040 |
- bpo-4474: PyUnicode_FromWideChar now converts characters outside the BMP |
| 9041 |
to surrogate pairs, on systems with sizeof(wchar_t) == 4 and |
| 9042 |
sizeof(Py_UNICODE) == 2. |
| 9043 |
|
| 9044 |
- bpo-5237: Allow auto-numbered fields in str.format(). For example: ``'{} |
| 9045 |
{}'.format(1, 2) == '1 2'``. |
| 9046 |
|
| 9047 |
- bpo-3652: Make the 'line' argument for ``warnings.showwarning()`` a |
| 9048 |
requirement. Means the DeprecationWarning from Python 2.6 can go away. |
| 9049 |
|
| 9050 |
- bpo-5247: Improve error message when unknown format codes are used when |
| 9051 |
using ``str.format()`` with str, unicode, long, int, and float arguments. |
| 9052 |
|
| 9053 |
- Running Python with the -3 option now also warns about classic division |
| 9054 |
for ints and longs. |
| 9055 |
|
| 9056 |
- bpo-5260: Long integers now consume less memory: average saving is 2 bytes |
| 9057 |
per long on a 32-bit system and 6 bytes per long on a 64-bit system. |
| 9058 |
|
| 9059 |
- bpo-5186: Reduce hash collisions for objects with no __hash__ method by |
| 9060 |
rotating the object pointer by 4 bits to the right. |
| 9061 |
|
| 9062 |
- bpo-4575: Fix Py_IS_INFINITY macro to work correctly on x87 FPUs: it now |
| 9063 |
forces its argument to double before testing for infinity. |
| 9064 |
|
| 9065 |
- bpo-4978: Passing keyword arguments as unicode strings is now allowed. |
| 9066 |
|
| 9067 |
- bpo-1242657: the __len__() and __length_hint__() calls in several tools |
| 9068 |
were suppressing all exceptions. These include list(), filter(), map(), |
| 9069 |
zip(), and bytearray(). |
| 9070 |
|
| 9071 |
- os.ftruncate raises OSErrors instead of IOErrors for consistency with |
| 9072 |
other os functions. |
| 9073 |
|
| 9074 |
- bpo-4991: Passing invalid file descriptors to io.FileIO now raises an |
| 9075 |
OSError. |
| 9076 |
|
| 9077 |
- bpo-4807: Port the _winreg module to Windows CE. |
| 9078 |
|
| 9079 |
- bpo-4935: The overflow checking code in the expandtabs() method common to |
| 9080 |
str, bytes and bytearray could be optimized away by the compiler, letting |
| 9081 |
the interpreter segfault instead of raising an error. |
| 9082 |
|
| 9083 |
- bpo-3720: Fix a crash when an iterator modifies its class and removes its |
| 9084 |
__next__ method. |
| 9085 |
|
| 9086 |
- bpo-4893: Use NT threading on CE. |
| 9087 |
|
| 9088 |
- bpo-4915: Port sysmodule to Windows CE. |
| 9089 |
|
| 9090 |
- bpo-4074: Change the criteria for doing a full garbage collection (i.e. |
| 9091 |
collecting the oldest generation) so that allocating lots of objects |
| 9092 |
without destroying them does not show quadratic performance. Based on a |
| 9093 |
proposal by Martin von Löwis at |
| 9094 |
http://mail.python.org/pipermail/python-dev/2008-June/080579.html. |
| 9095 |
|
| 9096 |
- bpo-4850: Change COUNT_ALLOCS variables to Py_ssize_t. |
| 9097 |
|
| 9098 |
- bpo-1180193: When importing a module from a .pyc (or .pyo) file with an |
| 9099 |
existing .py counterpart, override the co_filename attributes of all code |
| 9100 |
objects if the original filename is obsolete (which can happen if the file |
| 9101 |
has been renamed, moved, or if it is accessed through different paths). |
| 9102 |
Patch by Ziga Seilnacht and Jean-Paul Calderone. |
| 9103 |
|
| 9104 |
- bpo-4075: Use ``OutputDebugStringW()`` in Py_FatalError. |
| 9105 |
|
| 9106 |
- bpo-4797: IOError.filename was not set when _fileio.FileIO failed to open |
| 9107 |
file with `str' filename on Windows. |
| 9108 |
|
| 9109 |
- bpo-3680: Reference cycles created through a dict, set or deque iterator |
| 9110 |
did not get collected. |
| 9111 |
|
| 9112 |
- bpo-4701: PyObject_Hash now implicitly calls PyType_Ready on types where |
| 9113 |
the tp_hash and tp_dict slots are both NULL. |
| 9114 |
|
| 9115 |
- bpo-4764: With io.open, IOError.filename is set when trying to open a |
| 9116 |
directory on POSIX systems. |
| 9117 |
|
| 9118 |
- bpo-4764: IOError.filename is set when trying to open a directory on POSIX |
| 9119 |
systems. |
| 9120 |
|
| 9121 |
- bpo-4759: None is now allowed as the first argument of |
| 9122 |
``bytearray.translate()``. It was always allowed for |
| 9123 |
``bytes.translate()``. |
| 9124 |
|
| 9125 |
- Added test case to ensure attempts to read from a file opened for writing |
| 9126 |
fail. |
| 9127 |
|
| 9128 |
- bpo-2467: gc.DEBUG_STATS reported invalid elapsed times. Also, always |
| 9129 |
print elapsed times, not only when some objects are |
| 9130 |
uncollectable/unreachable. Original patch by Neil Schemenauer. |
| 9131 |
|
| 9132 |
- bpo-3439: Add a bit_length method to int and long. |
| 9133 |
|
| 9134 |
- bpo-2183: Simplify and optimize bytecode for list comprehensions. |
| 9135 |
Original patch by Neal Norwitz. |
| 9136 |
|
| 9137 |
- bpo-4597: Fixed exception handling when the __exit__ function of a context |
| 9138 |
manager returns a value that cannot be converted to a bool. |
| 9139 |
|
| 9140 |
- bpo-4597: Fixed several opcodes that weren't always propagating |
| 9141 |
exceptions. |
| 9142 |
|
| 9143 |
- bpo-4445: Replace ``sizeof(PyStringObject)`` with |
| 9144 |
``offsetof(PyStringObject, ob_sval) + 1`` when allocating memory for str |
| 9145 |
instances. On a typical machine this saves 3 bytes of memory (on average) |
| 9146 |
per string allocation. |
| 9147 |
|
| 9148 |
- bpo-3996: On Windows, the PyOS_CheckStack function would cause the |
| 9149 |
interpreter to abort ("Fatal Python error: Could not reset the stack!") |
| 9150 |
instead of throwing a MemoryError. |
| 9151 |
|
| 9152 |
- bpo-3689: The list reversed iterator now supports __length_hint__ instead |
| 9153 |
of __len__. Behavior now matches other reversed iterators. |
| 9154 |
|
| 9155 |
- bpo-4367: Python would segfault during compiling when the unicodedata |
| 9156 |
module couldn't be imported and \N escapes were present. |
| 9157 |
|
| 9158 |
- bpo-4233: Changed semantic of ``_fileio.FileIO``'s ``close()`` method on |
| 9159 |
file objects with closefd=False. The file descriptor is still kept open |
| 9160 |
but the file object behaves like a closed file. The ``FileIO`` object also |
| 9161 |
got a new readonly attribute ``closefd``. |
| 9162 |
|
| 9163 |
- bpo-4348: Some bytearray methods returned that didn't cause any change to |
| 9164 |
the bytearray, returned the same bytearray instead of a copy. |
| 9165 |
|
| 9166 |
- bpo-4317: Fixed a crash in the ``imageop.rgb2rgb8()`` function. |
| 9167 |
|
| 9168 |
- bpo-4230: If ``__getattr__`` is a descriptor, it now functions correctly. |
| 9169 |
|
| 9170 |
- bpo-4048: The parser module now correctly validates relative imports. |
| 9171 |
|
| 9172 |
- bpo-4225: ``from __future__ import unicode_literals`` didn't work in an |
| 9173 |
exec statement. |
| 9174 |
|
| 9175 |
- bpo-4176: Fixed a crash when pickling an object which ``__reduce__`` |
| 9176 |
method does not return iterators for the 4th and 5th items. |
| 9177 |
|
| 9178 |
- bpo-4209: Enabling unicode_literals and the print_function in the same |
| 9179 |
__future__ import didn't work. |
| 9180 |
|
| 9181 |
- Using ``nonlocal`` as a variable name will now raise a Py3k SyntaxWarning |
| 9182 |
because it is a reserved word in 3.x. |
| 9183 |
|
| 9184 |
- On windows, ``os.chdir()`` given unicode was not working if |
| 9185 |
GetCurrentDirectoryW returned a path longer than MAX_PATH. (But It's |
| 9186 |
doubtful this code path is really executed because I cannot move to such |
| 9187 |
directory on win2k) |
| 9188 |
|
| 9189 |
- bpo-4069: When ``set.remove(element)`` is used with a set element, the |
| 9190 |
element is temporarily replaced with an equivalent frozenset. But the |
| 9191 |
eventual KeyError would always report the empty ``frozenset()`` as the |
| 9192 |
missing key. Now it correctly refers to the initial element. |
| 9193 |
|
| 9194 |
- bpo-4509: Various issues surrounding resize of bytearray objects to which |
| 9195 |
there are buffer exports. |
| 9196 |
|
| 9197 |
- bpo-4748: Lambda generators no longer return a value. |
| 9198 |
|
| 9199 |
- bpo-3582: Use native TLS functions on Windows |
| 9200 |
|
| 9201 |
- The re.sub(), re.subn() and re.split() functions now accept a flags |
| 9202 |
parameter. |
| 9203 |
|
| 9204 |
- bpo-3845: In PyRun_SimpleFileExFlags avoid invalid memory access with |
| 9205 |
short file names. |
| 9206 |
|
| 9207 |
- bpo-1113244: Py_XINCREF, Py_DECREF, Py_XDECREF: Add `do { ... } while (0)' |
| 9208 |
to avoid compiler warnings. |
| 9209 |
|
| 9210 |
- bpo-5705: os.setuid() would not accept values > 2**31-1 but pwd.getpwnam() |
| 9211 |
returned them on 64bit platforms. |
| 9212 |
|
| 9213 |
- bpo-5108: Handle %s like %S and %R in PyUnicode_FromFormatV(): Call |
| 9214 |
PyUnicode_DecodeUTF8() once, remember the result and output it in a second |
| 9215 |
step. This avoids problems with counting UTF-8 bytes that ignores the |
| 9216 |
effect of using the replace error handler in PyUnicode_DecodeUTF8(). |
| 9217 |
|
| 9218 |
- bpo-3739: The unicode-internal encoder now reports the number of |
| 9219 |
characters consumed like any other encoder (instead of the number of |
| 9220 |
bytes). |
| 9221 |
|
| 9222 |
- bpo-2422: When compiled with the ``--with-valgrind`` option, the pymalloc |
| 9223 |
allocator will be automatically disabled when running under Valgrind. |
| 9224 |
This gives improved memory leak detection when running under Valgrind, |
| 9225 |
while taking advantage of pymalloc at other times. |
| 9226 |
|
| 9227 |
Library |
| 9228 |
------- |
| 9229 |
|
| 9230 |
- Add count() and reverse() methods to collections.deque(). |
| 9231 |
|
| 9232 |
- Fix variations of extending deques: d.extend(d) d.extendleft(d) d+=d |
| 9233 |
|
| 9234 |
- bpo-6986: Fix crash in the JSON C accelerator when called with the wrong |
| 9235 |
parameter types. Patch by Victor Stinner. |
| 9236 |
|
| 9237 |
- logging: Added optional "secure" parameter to SMTPHandler, to enable use |
| 9238 |
of TLS with authentication credentials. |
| 9239 |
|
| 9240 |
- bpo-1923: Fixed the removal of meaningful spaces when PKG-INFO is |
| 9241 |
generated in Distutils. Patch by Stephen Emslie. |
| 9242 |
|
| 9243 |
- bpo-4120: Drop reference to CRT from manifest when building extensions |
| 9244 |
with msvc9compiler. |
| 9245 |
|
| 9246 |
- bpo-7333: The ``posix`` module gains an ``initgroups()`` function |
| 9247 |
providing access to the initgroups(3) C library call on Unix systems which |
| 9248 |
implement it. Patch by Jean-Paul Calderone. |
| 9249 |
|
| 9250 |
- bpo-7408: Fixed distutils.tests.sdist so it doesn't check for group |
| 9251 |
ownership when the group is not forced, because the group may be different |
| 9252 |
from the user's group and inherit from its container when the test is run. |
| 9253 |
|
| 9254 |
- bpo-1515: Enable use of deepcopy() with instance methods. Patch by Robert |
| 9255 |
Collins. |
| 9256 |
|
| 9257 |
- bpo-7403: logging: Fixed possible race condition in lock creation. |
| 9258 |
|
| 9259 |
- bpo-6845: Add restart support for binary upload in ftplib. The |
| 9260 |
``storbinary()`` method of FTP and FTP_TLS objects gains an optional |
| 9261 |
"rest" argument. Patch by Pablo Mouzo. |
| 9262 |
|
| 9263 |
- bpo-5788: ``datetime.timedelta`` objects get a new ``total_seconds()`` |
| 9264 |
method returning the total number of seconds in the duration. Patch by |
| 9265 |
Brian Quinlan. |
| 9266 |
|
| 9267 |
- bpo-6615: logging: Used weakrefs in internal handler list. |
| 9268 |
|
| 9269 |
- bpo-1488943: ``difflib.Differ`` doesn't always add hints for tab |
| 9270 |
characters. |
| 9271 |
|
| 9272 |
- bpo-6123: tarfile now opens empty archives correctly and consistently |
| 9273 |
raises ReadError on empty files. |
| 9274 |
|
| 9275 |
- bpo-7354: distutils.tests.test_msvc9compiler - dragfullwindows can be 2. |
| 9276 |
|
| 9277 |
- bpo-5037: Proxy the __unicode__ special method to __unicode__ instead of |
| 9278 |
__str__. |
| 9279 |
|
| 9280 |
- bpo-7341: Close the internal file object in the TarFile constructor in |
| 9281 |
case of an error. |
| 9282 |
|
| 9283 |
- bpo-7293: ``distutils.test_msvc9compiler`` is fixed to work on any fresh |
| 9284 |
Windows box. Help provided by David Bolen. |
| 9285 |
|
| 9286 |
- bpo-7328: pydoc no longer corrupts sys.path when run with the '-m' switch. |
| 9287 |
|
| 9288 |
- bpo-2054: ftplib now provides an FTP_TLS class to do secure FTP using TLS |
| 9289 |
or SSL. Patch by Giampaolo Rodola'. |
| 9290 |
|
| 9291 |
- bpo-4969: The mimetypes module now reads the MIME database from the |
| 9292 |
registry under Windows. Patch by Gabriel Genellina. |
| 9293 |
|
| 9294 |
- bpo-6816: runpy now provides a run_path function that allows Python code |
| 9295 |
to execute file paths that refer to source or compiled Python files as |
| 9296 |
well as zipfiles, directories and other valid sys.path entries that |
| 9297 |
contain a __main__.py file. This allows applications that run other Python |
| 9298 |
scripts to support the same flexibility as the CPython command line |
| 9299 |
itself. |
| 9300 |
|
| 9301 |
- bpo-7318: multiprocessing now uses a timeout when it fails to establish a |
| 9302 |
connection with another process, rather than looping endlessly. The |
| 9303 |
default timeout is 20 seconds, which should be amply sufficient for local |
| 9304 |
connections. |
| 9305 |
|
| 9306 |
- bpo-7197: Allow unittest.TextTestRunner objects to be pickled and |
| 9307 |
unpickled. This fixes crashes under Windows when trying to run |
| 9308 |
test_multiprocessing in verbose mode. |
| 9309 |
|
| 9310 |
- bpo-7282: Fix a memory leak when an RLock was used in a thread other than |
| 9311 |
those started through ``threading.Thread`` (for example, using |
| 9312 |
``thread.start_new_thread()``. |
| 9313 |
|
| 9314 |
- bpo-7264: Fix a possible deadlock when deallocating thread-local objects |
| 9315 |
which are part of a reference cycle. |
| 9316 |
|
| 9317 |
- bpo-7211: Allow 64-bit values for the ``ident`` and ``data`` fields of |
| 9318 |
kevent objects on 64-bit systems. Patch by Michael Broghton. |
| 9319 |
|
| 9320 |
- bpo-6896: ``mailbox.Maildir`` now invalidates its internal cache each time |
| 9321 |
a modification is done through it. This fixes inconsistencies and test |
| 9322 |
failures on systems with slightly bogus mtime behaviour. |
| 9323 |
|
| 9324 |
- bpo-7246: getpass now properly flushes input before reading from stdin so |
| 9325 |
that existing input does not confuse it and lead to incorrect entry or an |
| 9326 |
IOError. It also properly flushes it afterwards to avoid the terminal |
| 9327 |
echoing the input afterwards on OSes such as Solaris. (See also: bpo-7208) |
| 9328 |
|
| 9329 |
- bpo-7233: Fix a number of two-argument Decimal methods to make sure that |
| 9330 |
they accept an int or long as the second argument. Also fix buggy |
| 9331 |
handling of large arguments (those with coefficient longer than the |
| 9332 |
current precision) in shift and rotate. |
| 9333 |
|
| 9334 |
- bpo-4750: Store the basename of the original filename in the gzip FNAME |
| 9335 |
header as required by RFC 1952. |
| 9336 |
|
| 9337 |
- bpo-1180: Added a new global option to ignore ~/.pydistutils.cfg in |
| 9338 |
Distutils. |
| 9339 |
|
| 9340 |
- bpo-7218: Fix test_site for win32, the directory comparison was done with |
| 9341 |
an uppercase. |
| 9342 |
|
| 9343 |
- bpo-7205: Fix a possible deadlock when using a BZ2File object from several |
| 9344 |
threads at once. |
| 9345 |
|
| 9346 |
- bpo-7071: byte-compilation in Distutils is now done with respect to |
| 9347 |
sys.dont_write_bytecode. |
| 9348 |
|
| 9349 |
- bpo-7066: archive_util.make_archive now restores the cwd if an error is |
| 9350 |
raised. Initial patch by Ezio Melotti. |
| 9351 |
|
| 9352 |
- bpo-6218: io.StringIO and io.BytesIO instances are now picklable with |
| 9353 |
protocol 2. |
| 9354 |
|
| 9355 |
- bpo-7077: logging: SysLogHandler now treats Unicode as per RFC 5424. |
| 9356 |
|
| 9357 |
- bpo-7099: Decimal.is_normal now returns True for numbers with exponent |
| 9358 |
larger than emax. |
| 9359 |
|
| 9360 |
- bpo-5833: Fix extra space character in readline completion with the GNU |
| 9361 |
readline library version 6.0. |
| 9362 |
|
| 9363 |
- bpo-7133: SSL objects now support the new buffer API. |
| 9364 |
|
| 9365 |
- bpo-7149: urllib fails on OSX in the proxy detection code. |
| 9366 |
|
| 9367 |
- bpo-7069: Make inspect.isabstract() return a boolean. |
| 9368 |
|
| 9369 |
- Add support to the ``ihooks`` module for relative imports. |
| 9370 |
|
| 9371 |
- bpo-6894: Fixed the issue urllib2 doesn't respect "no_proxy" environment. |
| 9372 |
|
| 9373 |
- bpo-7086: Added TCP support to SysLogHandler, and tidied up some |
| 9374 |
anachronisms in the code which were a relic of 1.5.2 compatibility. |
| 9375 |
|
| 9376 |
- bpo-7082: When falling back to the MIME 'name' parameter, the correct |
| 9377 |
place to look for it is the Content-Type header. |
| 9378 |
|
| 9379 |
- bpo-7048: Force Decimal.logb to round its result when that result is too |
| 9380 |
large to fit in the current precision. |
| 9381 |
|
| 9382 |
- bpo-6516: Added owner/group support when creating tar archives in |
| 9383 |
Distutils. |
| 9384 |
|
| 9385 |
- bpo-7031: Add ``TestCase.assert(Not)IsInstance()`` methods. |
| 9386 |
|
| 9387 |
- bpo-6790: Make it possible again to pass an ``array.array`` to |
| 9388 |
``httplib.HTTPConnection.send``. Patch by Kirk McDonald. |
| 9389 |
|
| 9390 |
- bpo-6236: Fix various failures in the `io` module under AIX and other |
| 9391 |
platforms, when using a non-gcc compiler. Patch by egreen. (See also: |
| 9392 |
bpo-6348) |
| 9393 |
|
| 9394 |
- bpo-6954: Fixed crash when using DISTUTILS_DEBUG flag in Distutils. |
| 9395 |
|
| 9396 |
- bpo-6851: Fix urllib.urlopen crash on secondairy threads on OSX 10.6 |
| 9397 |
|
| 9398 |
- bpo-4606: Passing 'None' if ctypes argtype is set to POINTER(...) does now |
| 9399 |
always result in NULL. |
| 9400 |
|
| 9401 |
- bpo-5042: ctypes Structure sub-subclass does now initialize correctly with |
| 9402 |
base class positional arguments. |
| 9403 |
|
| 9404 |
- bpo-6938: Fix a TypeError in string formatting of a multiprocessing debug |
| 9405 |
message. |
| 9406 |
|
| 9407 |
- bpo-6635: Fix profiler printing usage message. |
| 9408 |
|
| 9409 |
- bpo-6856: Add a filter keyword argument to TarFile.add(). |
| 9410 |
|
| 9411 |
- bpo-6163: Fixed HP-UX runtime library dir options in |
| 9412 |
distutils.unixcompiler. Initial patch by Sridhar Ratnakumar and Michael |
| 9413 |
Haubenwallner. |
| 9414 |
|
| 9415 |
- bpo-6857: Default format() alignment should be '>' for Decimal instances. |
| 9416 |
|
| 9417 |
- bpo-6795: int(Decimal('nan')) now raises ValueError instead of returning |
| 9418 |
NaN or raising InvalidContext. Also, fix infinite recursion in |
| 9419 |
long(Decimal('nan')). |
| 9420 |
|
| 9421 |
- bpo-6850: Fix bug in Decimal._parse_format_specifier for formats with no |
| 9422 |
type specifier. |
| 9423 |
|
| 9424 |
- bpo-4937: plat-mac/bundlebuilder refers to non-existing version.plist. |
| 9425 |
|
| 9426 |
- bpo-6838: Use a list to accumulate the value instead of repeatedly |
| 9427 |
concatenating strings in httplib's HTTPResponse._read_chunked providing a |
| 9428 |
significant speed increase when downloading large files servend with a |
| 9429 |
Transfer-Encoding of 'chunked'. |
| 9430 |
|
| 9431 |
- bpo-5275: In Cookie's Cookie.load(), properly handle non-string arguments |
| 9432 |
as documented. |
| 9433 |
|
| 9434 |
- bpo-2666: Handle BROWSER environment variable properly for unknown browser |
| 9435 |
names in the webbrowser module. |
| 9436 |
|
| 9437 |
- bpo-6054: Do not normalize stored pathnames in tarfile. |
| 9438 |
|
| 9439 |
- bpo-6794: Fix Decimal.compare_total and Decimal.compare_total_mag: NaN |
| 9440 |
payloads are now ordered by integer value rather than lexicographically. |
| 9441 |
|
| 9442 |
- bpo-6693: New functions in site.py to get user/global site packages paths. |
| 9443 |
|
| 9444 |
- The thread.lock type now supports weak references. |
| 9445 |
|
| 9446 |
- bpo-1356969: Add missing info methods in Tix.HList. |
| 9447 |
|
| 9448 |
- bpo-1522587: New constants and methods for the Tix.Grid widget. |
| 9449 |
|
| 9450 |
- bpo-1250469: Fix the return value of Tix.PanedWindow.panes. |
| 9451 |
|
| 9452 |
- bpo-1119673: Do not override Tkinter.Text methods when creating a |
| 9453 |
ScrolledText. |
| 9454 |
|
| 9455 |
- bpo-6665: Fix fnmatch to properly match filenames with newlines in them. |
| 9456 |
|
| 9457 |
- bpo-1135: Add the XView and YView mix-ins to avoid duplicating the xview* |
| 9458 |
and yview* methods. |
| 9459 |
|
| 9460 |
- bpo-6629: Fix a data corruption issue in the new `io` package, which could |
| 9461 |
occur when writing to a BufferedRandom object (e.g. a file opened in "rb+" |
| 9462 |
or "wb+" mode) after having buffered a certain amount of data for reading. |
| 9463 |
This bug was not present in the pure Python implementation. |
| 9464 |
|
| 9465 |
- bpo-4660: If a multiprocessing.JoinableQueue.put() was preempted, it was |
| 9466 |
possible to get a spurious 'task_done() called too many times' error. |
| 9467 |
|
| 9468 |
- bpo-1628205: Socket file objects returned by socket.socket.makefile() now |
| 9469 |
properly handles EINTR within the read, readline, write & flush methods. |
| 9470 |
The socket.sendall() method now properly handles interrupted system calls. |
| 9471 |
|
| 9472 |
- bpo-6595: The Decimal constructor now allows arbitrary Unicode decimal |
| 9473 |
digits in input, as recommended by the standard. Previously it was |
| 9474 |
restricted to accepting [0-9]. |
| 9475 |
|
| 9476 |
- bpo-6511: ZipFile now raises BadZipfile (instead of an IOError) when |
| 9477 |
opening an empty or very small file. |
| 9478 |
|
| 9479 |
- bpo-6553: Fixed a crash in cPickle.load(), when given a file-like object |
| 9480 |
containing incomplete data. |
| 9481 |
|
| 9482 |
- bpo-6545: Removed assert statements in distutils.Extension, so the |
| 9483 |
behavior is similar when used with -O. |
| 9484 |
|
| 9485 |
- unittest has been split up into a package. All old names should still |
| 9486 |
work. |
| 9487 |
|
| 9488 |
- bpo-6431: Make Fraction type return NotImplemented when it doesn't know |
| 9489 |
how to handle a comparison without loss of precision. Also add correct |
| 9490 |
handling of infinities and nans for comparisons with float. |
| 9491 |
|
| 9492 |
- bpo-6415: Fixed warnings.warn segfault on bad formatted string. |
| 9493 |
|
| 9494 |
- bpo-6466: Now distutils.cygwinccompiler and distutils.emxccompiler uses |
| 9495 |
the same refactored function to get gcc/ld/dllwrap versions numbers. It's |
| 9496 |
``distutils.util.get_compiler_versions()``. Added deprecation warnings |
| 9497 |
for the obsolete get_versions() functions. |
| 9498 |
|
| 9499 |
- bpo-6433: Fixed issues with multiprocessing.pool.map hanging on empty |
| 9500 |
list. |
| 9501 |
|
| 9502 |
- bpo-6314: logging: Extra checks on the "level" argument in more places. |
| 9503 |
|
| 9504 |
- bpo-2622: Fixed an ImportError when importing email.messsage from a |
| 9505 |
standalone application built with py2exe or py2app. |
| 9506 |
|
| 9507 |
- bpo-6455: Fixed test_build_ext under win32. |
| 9508 |
|
| 9509 |
- bpo-6377: Enabled the compiler option, and deprecate its usage as an |
| 9510 |
attribute. |
| 9511 |
|
| 9512 |
- bpo-6413: Fixed the log level in distutils.dist for announce. |
| 9513 |
|
| 9514 |
- bpo-3392: The subprocess communicate() method no longer fails in select() |
| 9515 |
when file descriptors are large; communicate() now uses poll() when |
| 9516 |
possible. |
| 9517 |
|
| 9518 |
- bpo-6403: Fixed package path usage in build_ext. |
| 9519 |
|
| 9520 |
- bpo-5155: multiprocessing.Process._bootstrap was unconditionally calling |
| 9521 |
"os.close(sys.stdin.fileno())" resulting in file descriptor errors. (See |
| 9522 |
also: bpo-5313, bpo-5331) |
| 9523 |
|
| 9524 |
- bpo-6365: Distutils build_ext inplace mode was copying the compiled |
| 9525 |
extension in a subdirectory if the extension name had dots. |
| 9526 |
|
| 9527 |
- bpo-6344: Fixed a crash of mmap.read() when passed a negative argument. |
| 9528 |
|
| 9529 |
- bpo-5230: pydoc would report no documentation found if a module generated |
| 9530 |
a 'not found' import error when loaded; it now reports the import errors. |
| 9531 |
Thanks to Lucas Prado Melo for initial fix and collaboration on the tests. |
| 9532 |
|
| 9533 |
- bpo-6314: ``logging.basicConfig()`` performs extra checks on the "level" |
| 9534 |
argument. |
| 9535 |
|
| 9536 |
- bpo-6164: Added an AIX specific linker argument in Distutils unixcompiler. |
| 9537 |
Original patch by Sridhar Ratnakumar. |
| 9538 |
|
| 9539 |
- bpo-6274: Fixed possible file descriptors leak in subprocess.py. |
| 9540 |
|
| 9541 |
- bpo-6189: Restored compatibility of subprocess.py with Python 2.2. |
| 9542 |
|
| 9543 |
- bpo-6287: Added the license field in Distutils documentation. |
| 9544 |
|
| 9545 |
- bpo-6286: Now Distutils upload command is based on urllib2 instead of |
| 9546 |
httplib, allowing the usage of http_proxy. |
| 9547 |
|
| 9548 |
- bpo-6271: mmap tried to close invalid file handle (-1) for anonymous maps |
| 9549 |
on Unix. |
| 9550 |
|
| 9551 |
- bpo-6215: All bug fixes and enhancements from the Python 3.1 io library |
| 9552 |
(including the fast C implementation) have been backported to the standard |
| 9553 |
``io`` module. |
| 9554 |
|
| 9555 |
- bpo-6258: Support AMD64 in bdist_msi. |
| 9556 |
|
| 9557 |
- bpo-6252: Fixed bug in next rollover time computation in |
| 9558 |
TimedRotatingFileHandler. |
| 9559 |
|
| 9560 |
- bpo-6263: Fixed syntax error in distutils.cygwincompiler. |
| 9561 |
|
| 9562 |
- bpo-5201: distutils.sysconfig.parse_makefile() now understands ``$$`` in |
| 9563 |
Makefiles. This prevents compile errors when using syntax like: |
| 9564 |
``LDFLAGS='-rpath=\$$LIB:/some/other/path'``. Patch by Floris Bruynooghe. |
| 9565 |
|
| 9566 |
- bpo-5767: Removed sgmlop support from xmlrpclib. |
| 9567 |
|
| 9568 |
- bpo-6131: test_modulefinder leaked when run after test_distutils. Patch |
| 9569 |
by Hirokazu Yamamoto. |
| 9570 |
|
| 9571 |
- bpo-6048: Now Distutils uses the tarfile module in archive_util. |
| 9572 |
|
| 9573 |
- bpo-6121: pydoc now ignores leading and trailing spaces in the argument to |
| 9574 |
the 'help' function. |
| 9575 |
|
| 9576 |
- In unittest, using a skipping decorator on a class is now equivalent to |
| 9577 |
skipping every test on the class. The ClassTestSuite class has been |
| 9578 |
removed. |
| 9579 |
|
| 9580 |
- bpo-6050: Don't fail extracting a directory from a zipfile if the |
| 9581 |
directory already exists. |
| 9582 |
|
| 9583 |
- bpo-5311: bdist_msi can now build packages that do not depend on a |
| 9584 |
specific Python version. |
| 9585 |
|
| 9586 |
- bpo-1309352: fcntl now converts its third arguments to a C `long` rather |
| 9587 |
than an int, which makes some operations possible under 64-bit Linux (e.g. |
| 9588 |
DN_MULTISHOT with F_NOTIFY). |
| 9589 |
|
| 9590 |
- bpo-1424152: Fix for httplib, urllib2 to support SSL while working through |
| 9591 |
proxy. Original patch by Christopher Li, changes made by Senthil Kumaran. |
| 9592 |
|
| 9593 |
- bpo-1983: Fix functions taking or returning a process identifier to use |
| 9594 |
the dedicated C type ``pid_t`` instead of a C ``int``. Some platforms |
| 9595 |
have a process identifier type wider than the standard C integer type. |
| 9596 |
|
| 9597 |
- bpo-4066: smtplib.SMTP_SSL._get_socket now correctly returns the socket. |
| 9598 |
Patch by Farhan Ahmad, test by Marcin Bachry. |
| 9599 |
|
| 9600 |
- bpo-6062: In distutils, fixed the package option of build_ext. Feedback |
| 9601 |
and tests on pywin32 by Tim Golden. |
| 9602 |
|
| 9603 |
- bpo-6053: Fixed distutils tests on win32. Patch by Hirokazu Yamamoto. |
| 9604 |
|
| 9605 |
- bpo-6046: Fixed the library extension when distutils build_ext is used in |
| 9606 |
place. Initial patch by Roumen Petrov. |
| 9607 |
|
| 9608 |
- bpo-6041: Now distutils `sdist` and `register` commands use `check` as a |
| 9609 |
subcommand. |
| 9610 |
|
| 9611 |
- bpo-2116: Weak references and weak dictionaries now support copy()ing and |
| 9612 |
deepcopy()ing. |
| 9613 |
|
| 9614 |
- bpo-1655: Make imaplib IPv6-capable. Patch by Derek Morr. |
| 9615 |
|
| 9616 |
- bpo-5918: Fix a crash in the parser module. |
| 9617 |
|
| 9618 |
- bpo-1664: Make nntplib IPv6-capable. Patch by Derek Morr. |
| 9619 |
|
| 9620 |
- bpo-6022: A test file was created in the current working directory by |
| 9621 |
test_get_outputs in Distutils. |
| 9622 |
|
| 9623 |
- bpo-4050: inspect.findsource/getsource now raise an IOError if the |
| 9624 |
'source' file is a binary. Patch by Brodie Rao, tests by Daniel Diniz. |
| 9625 |
|
| 9626 |
- bpo-5977: distutils build_ext.get_outputs was not taking into account the |
| 9627 |
inplace option. Initial patch by kxroberto. |
| 9628 |
|
| 9629 |
- bpo-5984: distutils.command.build_ext.check_extensions_list checks were |
| 9630 |
broken for old-style extensions. |
| 9631 |
|
| 9632 |
- bpo-5971: StreamHandler.handleError now swallows IOErrors which occur when |
| 9633 |
trying to print a traceback. |
| 9634 |
|
| 9635 |
- bpo-5976: Fixed Distutils test_check_environ. |
| 9636 |
|
| 9637 |
- bpo-5900: Ensure RUNPATH is added to extension modules with RPATH if GNU |
| 9638 |
ld is used. Original patch by Floris Bruynooghe. |
| 9639 |
|
| 9640 |
- bpo-5941: Distutils build_clib command was not working anymore because of |
| 9641 |
an incomplete customization of the archiver command. Added ARFLAGS in the |
| 9642 |
Makefile besides AR and make Distutils use it. Original patch by David |
| 9643 |
Cournapeau. |
| 9644 |
|
| 9645 |
- bpo-5955: aifc's close method did not close the file it wrapped, now it |
| 9646 |
does. This also means getfp method now returns the real fp. |
| 9647 |
|
| 9648 |
- bpo-4875: On win32, ctypes.util.find_library does no longer return |
| 9649 |
directories. |
| 9650 |
|
| 9651 |
- bpo-5142: Add the ability to skip modules while stepping to pdb. |
| 9652 |
|
| 9653 |
- bpo-1309567: Fix linecache behavior of stripping subdirectories when |
| 9654 |
looking for files given by a relative filename. |
| 9655 |
|
| 9656 |
- bpo-5692: In ``zipfile.Zipfile``, fix wrong path calculation when |
| 9657 |
extracting a file to the root directory. |
| 9658 |
|
| 9659 |
- bpo-5913: ``os.listdir()`` should fail for empty path on windows. |
| 9660 |
|
| 9661 |
- bpo-5084: Unpickling now interns the attribute names of pickled objects, |
| 9662 |
saving memory and avoiding growth in size of subsequent pickles. Proposal |
| 9663 |
and original patch by Jake McGuire. |
| 9664 |
|
| 9665 |
- bpo-3002: ``shutil.copyfile()`` and ``shutil.copytree()`` now raise an |
| 9666 |
error when a named pipe is encountered, rather than blocking infinitely. |
| 9667 |
|
| 9668 |
- bpo-3959: The ipaddr module has been added to the standard library. |
| 9669 |
Contributed by Google. |
| 9670 |
|
| 9671 |
- bpo-2245: aifc now skips chunk types it doesn't recognize, per spec. |
| 9672 |
|
| 9673 |
- bpo-5874: distutils.tests.test_config_cmd is not locale-sensitive anymore. |
| 9674 |
|
| 9675 |
- bpo-4305: ctypes should now build again on mipsel-linux-gnu |
| 9676 |
|
| 9677 |
- bpo-1734234: Massively speedup ``unicodedata.normalize()`` when the string |
| 9678 |
is already in normalized form, by performing a quick check beforehand. |
| 9679 |
Original patch by Rauli Ruohonen. |
| 9680 |
|
| 9681 |
- bpo-5853: Calling a function of the mimetypes module from several threads |
| 9682 |
at once could hit the recursion limit if the mimetypes database hadn't |
| 9683 |
been initialized before. |
| 9684 |
|
| 9685 |
- bpo-5854: Updated __all__ to include some missing names and remove some |
| 9686 |
names which should not be exported. |
| 9687 |
|
| 9688 |
- bpo-5810: Fixed Distutils test_build_scripts so it uses |
| 9689 |
``sysconfig.get_config_vars()``. |
| 9690 |
|
| 9691 |
- bpo-4951: Fixed failure in test_httpservers. |
| 9692 |
|
| 9693 |
- bpo-3102: All global symbols that the _ctypes extension defines are now |
| 9694 |
prefixed with 'Py' or '_ctypes'. |
| 9695 |
|
| 9696 |
- bpo-5041: ctypes does now allow pickling wide character. |
| 9697 |
|
| 9698 |
- bpo-5812: For the two-argument form of the Fraction constructor, |
| 9699 |
``Fraction(m, n)``, m and n are permitted to be arbitrary Rational |
| 9700 |
instances. |
| 9701 |
|
| 9702 |
- bpo-5812: Fraction('1e6') is valid: more generally, any string that's |
| 9703 |
valid for float() is now valid for Fraction(), with the exception of |
| 9704 |
strings representing NaNs and infinities. |
| 9705 |
|
| 9706 |
- bpo-5795: Fixed test_distutils failure on Debian ppc. |
| 9707 |
|
| 9708 |
- bpo-5768: Fixed bug in Unicode output logic and test case for same. |
| 9709 |
|
| 9710 |
- bpo-1161031: Fix readwrite select flag handling: POLLPRI now results in a |
| 9711 |
handle_expt_event call, not handle_read_event, and POLLERR and POLLNVAL |
| 9712 |
now call handle_close, not handle_expt_event. Also, dispatcher now has an |
| 9713 |
'ignore_log_types' attribute for suppressing log messages, which is set to |
| 9714 |
'warning' by default. |
| 9715 |
|
| 9716 |
- bpo-5607: Fixed Distutils test_get_platform for Mac OS X fat binaries. |
| 9717 |
|
| 9718 |
- bpo-5741: Don't disallow "%%" (which is an escape for "%") when setting a |
| 9719 |
value in SafeConfigParser. |
| 9720 |
|
| 9721 |
- bpo-5732: Added a new command in Distutils: check. |
| 9722 |
|
| 9723 |
- bpo-5731: Distutils bdist_wininst no longer worked on non-Windows |
| 9724 |
platforms. Initial patch by Paul Moore. |
| 9725 |
|
| 9726 |
- bpo-2254: Fix CGIHTTPServer information disclosure. Relative paths are |
| 9727 |
now collapsed within the url properly before looking in cgi_directories. |
| 9728 |
|
| 9729 |
- bpo-5095: Added bdist_msi to the list of bdist supported formats. Initial |
| 9730 |
fix by Steven Bethard. |
| 9731 |
|
| 9732 |
- bpo-1491431: Fixed distutils.filelist.glob_to_re for edge cases. Initial |
| 9733 |
fix by Wayne Davison. |
| 9734 |
|
| 9735 |
- bpo-5693: TestSuite.__iter__ can now be consistently overridden in |
| 9736 |
subclasses. |
| 9737 |
|
| 9738 |
- bpo-5694: Removed spurious test output in Distutils (test_clean). |
| 9739 |
|
| 9740 |
- bpo-5471: Fix os.path.expanduser() for $HOME set to '/'. |
| 9741 |
|
| 9742 |
- bpo-1326077: Fix the formatting of SyntaxErrors by the traceback module. |
| 9743 |
|
| 9744 |
- bpo-1726172: Fix IndexError in the case of and empty response in ftplib. |
| 9745 |
|
| 9746 |
- bpo-2625: Added missing iteritems() call to the for loop in |
| 9747 |
mailbox.MH.get_message(). |
| 9748 |
|
| 9749 |
- bpo-5585: Add the ability to call an initializer to |
| 9750 |
multiprocessing.manager so that users can install custom handlers/etc. |
| 9751 |
|
| 9752 |
- bpo-3551: Patch multiprocessing to raise a proper exception if the size of |
| 9753 |
the object when writefile is called causes an ERROR_NO_SYSTEM_RESOURCES. |
| 9754 |
Added docs to note the limitation. |
| 9755 |
|
| 9756 |
- unittest.assertNotEqual() now uses the inequality operator (!=) instead of |
| 9757 |
the equality operator. |
| 9758 |
|
| 9759 |
- bpo-6001: Test discovery for unittest. Implemented in |
| 9760 |
unittest.TestLoader.discover and from the command line. |
| 9761 |
|
| 9762 |
- bpo-5679: The methods unittest.TestCase.addCleanup and doCleanups were |
| 9763 |
added. addCleanup allows you to add cleanup functions that will be called |
| 9764 |
unconditionally (after setUp if setUp fails, otherwise after tearDown). |
| 9765 |
This allows for much simpler resource allocation and deallocation during |
| 9766 |
tests. |
| 9767 |
|
| 9768 |
- bpo-3379: unittest.main now takes an optional exit argument. If False main |
| 9769 |
doesn't call sys.exit allowing it to be used from the interactive |
| 9770 |
interpreter. |
| 9771 |
|
| 9772 |
- bpo-5995: unittest.main now takes an optional verbosity argument allowing |
| 9773 |
test modules to be run with a higher than default verbosity. |
| 9774 |
|
| 9775 |
- bpo-5995: A fix to allow you to run "python -m unittest test_module" or |
| 9776 |
"python -m unittest test_module.TestClass" from the command line. |
| 9777 |
|
| 9778 |
- bpo-5728: unittest.TestResult has new startTestRun and stopTestRun |
| 9779 |
methods; called immediately before and after a test run. |
| 9780 |
|
| 9781 |
- bpo-5663: Better failure messages for unittest asserts. Default assertTrue |
| 9782 |
and assertFalse messages are now useful. TestCase has a longMessage |
| 9783 |
attribute. This defaults to False, but if set to True useful error |
| 9784 |
messages are shown in addition to explicit messages passed to assert |
| 9785 |
methods. |
| 9786 |
|
| 9787 |
- bpo-3110: Add additional protect around SEM_VALUE_MAX for multiprocessing. |
| 9788 |
|
| 9789 |
- In Pdb, prevent the reassignment of __builtin__._ by sys.displayhook on |
| 9790 |
printing out values. |
| 9791 |
|
| 9792 |
- bpo-4572: Added SEEK_* symbolic constants to io module. |
| 9793 |
|
| 9794 |
- bpo-1665206: Move imports in cgitb to the top of the module instead of |
| 9795 |
performing them in functions. Helps prevent import deadlocking in threads. |
| 9796 |
|
| 9797 |
- bpo-5647: MutableSet.__iand__() no longer mutates self during iteration. |
| 9798 |
|
| 9799 |
- Actually make the SimpleXMLRPCServer CGI handler work. |
| 9800 |
|
| 9801 |
- bpo-2522: locale.format() now checks its first argument to ensure it has |
| 9802 |
been passed only one pattern, avoiding mysterious errors where it appeared |
| 9803 |
that it was failing to do localization. |
| 9804 |
|
| 9805 |
- bpo-5583: Added optional extensions in Distutils. Initial patch by Georg |
| 9806 |
Brandl. |
| 9807 |
|
| 9808 |
- bpo-5619: Multiprocessing children disobey the debug flag and causes |
| 9809 |
popups on windows buildbots. Patch applied to work around this issue. |
| 9810 |
|
| 9811 |
- bpo-5632: Thread.ident was None for the main thread and threads not |
| 9812 |
created with the threading module. |
| 9813 |
|
| 9814 |
- bpo-5400: Added patch for multiprocessing on netbsd compilation/support. |
| 9815 |
|
| 9816 |
- bpo-5387: Fixed mmap.move crash by integer overflow. |
| 9817 |
|
| 9818 |
- bpo-5261: Patch multiprocessing's semaphore.c to support context manager |
| 9819 |
use: "with multiprocessing.Lock()" works now. |
| 9820 |
|
| 9821 |
- bpo-5177: Multiprocessing's SocketListener class now uses |
| 9822 |
socket.SO_REUSEADDR on all connections so that the user no longer needs to |
| 9823 |
wait 120 seconds for the socket to expire. |
| 9824 |
|
| 9825 |
- Adjusted _tkinter to compile without warnings when WITH_THREAD is not |
| 9826 |
defined (part of issue #5035). |
| 9827 |
|
| 9828 |
- bpo-5561: Removed the sys.version_info shortcuts from platform's |
| 9829 |
python_version() and python_version_tuple() since they produced different |
| 9830 |
output compared to previous Python versions. |
| 9831 |
|
| 9832 |
- bpo-1034053: unittest now supports skipping tests and expected failures. |
| 9833 |
|
| 9834 |
- The unittest.TestCase.assertRaises() method now returns a context manager |
| 9835 |
when not given a callable so that code to be tested can be written inline |
| 9836 |
using a with statement. |
| 9837 |
|
| 9838 |
- bpo-2578: The unittest.TestCase.assertEqual() now displays the differences |
| 9839 |
in lists, tuples, dicts and sets on failure. Many new handy type and |
| 9840 |
comparison specific assert* methods have been added that fail with error |
| 9841 |
messages actually useful for debugging. Contributed in part by Google. |
| 9842 |
|
| 9843 |
- bpo-5068: Fixed the tarfile._BZ2Proxy.read() method that would loop |
| 9844 |
forever on incomplete input. That caused tarfile.open() to hang when used |
| 9845 |
with mode 'r' or 'r:bz2' and a fileobj argument that contained no data or |
| 9846 |
partial bzip2 compressed data. |
| 9847 |
|
| 9848 |
- bpo-5536: urllib.urlretrieve makes sure to close the file it's writing to |
| 9849 |
even if an exception occurs. |
| 9850 |
|
| 9851 |
- bpo-5381: Added object_pairs_hook to the json module. This allows |
| 9852 |
OrderedDicts to be built by the decoder. |
| 9853 |
|
| 9854 |
- bpo-2110: Add support for thousands separator and 'n' type specifier to |
| 9855 |
``Decimal.__format__()``. |
| 9856 |
|
| 9857 |
- Fix Decimal.__format__ bug that swapped the meanings of the '<' and '>' |
| 9858 |
alignment characters. |
| 9859 |
|
| 9860 |
- bpo-1222: ``locale.format()`` bug when the thousands separator is a space |
| 9861 |
character. |
| 9862 |
|
| 9863 |
- bpo-5472: Fixed distutils.test_util tear down. Original patch by Tim |
| 9864 |
Golden. |
| 9865 |
|
| 9866 |
- collections.deque objects now have a read-only attribute called maxlen. |
| 9867 |
|
| 9868 |
- bpo-2638: Show a window constructed with tkSimpleDialog.Dialog only after |
| 9869 |
it is has been populated and properly configured in order to prevent |
| 9870 |
window flashing. |
| 9871 |
|
| 9872 |
- bpo-4792: Prevent a segfault in _tkinter by using the guaranteed to be |
| 9873 |
safe interp argument given to the PythonCmd in place of the Tcl |
| 9874 |
interpreter taken from a PythonCmd_ClientData. |
| 9875 |
|
| 9876 |
- bpo-5193: Guarantee that Tkinter.Text.search returns a string. |
| 9877 |
|
| 9878 |
- bpo-5394: Removed > 2.3 syntax from distutils.msvc9compiler. Original |
| 9879 |
patch by Akira Kitada. |
| 9880 |
|
| 9881 |
- bpo-5385: Fixed mmap crash after resize failure on windows. |
| 9882 |
|
| 9883 |
- bpo-5179: Fixed subprocess handle leak on failure on windows. |
| 9884 |
|
| 9885 |
- PEP 372: Added collections.OrderedDict(). |
| 9886 |
|
| 9887 |
- The _asdict() for method for namedtuples now returns an OrderedDict(). |
| 9888 |
|
| 9889 |
- The configparser module now defaults to using an ordered dictionary. |
| 9890 |
|
| 9891 |
- bpo-4308: httplib.IncompleteRead's repr doesn't include all of the data |
| 9892 |
all ready received. |
| 9893 |
|
| 9894 |
- bpo-5401: Fixed a performance problem in mimetypes when ``from mimetypes |
| 9895 |
import guess_extension`` was used. |
| 9896 |
|
| 9897 |
- bpo-1733986: Fixed mmap crash on Windows in accessing elements of second |
| 9898 |
map object with same tagname but larger size than first map. |
| 9899 |
|
| 9900 |
- bpo-5386: mmap.write_byte didn't check map size, so it could cause buffer |
| 9901 |
overrun. |
| 9902 |
|
| 9903 |
- bpo-1533164: Installed but not listed *.pyo was breaking Distutils |
| 9904 |
bdist_rpm command. |
| 9905 |
|
| 9906 |
- bpo-5378: Added --quiet option to Distutils bdist_rpm command. |
| 9907 |
|
| 9908 |
- bpo-5052: Make Distutils compatible with 2.3 again. |
| 9909 |
|
| 9910 |
- Deprecated methods of symtable.Symbol have been removed: is_keywordarg(), |
| 9911 |
is_vararg(), and is_in_tuple(). |
| 9912 |
|
| 9913 |
- bpo-5316: Fixed buildbot failures introduced by multiple inheritance in |
| 9914 |
Distutils tests. |
| 9915 |
|
| 9916 |
- bpo-5287: Add exception handling around findCaller() call to help out |
| 9917 |
IronPython. |
| 9918 |
|
| 9919 |
- bpo-5282: Fixed mmap resize on 32bit Windows and Unix. When ``offset > |
| 9920 |
0``, the file was resized to wrong size. |
| 9921 |
|
| 9922 |
- bpo-5292: Fixed mmap crash on its boundary access m[len(m)]. |
| 9923 |
|
| 9924 |
- bpo-2279: distutils.sdist.add_defaults now add files from the package_data |
| 9925 |
and the data_files metadata. |
| 9926 |
|
| 9927 |
- bpo-5257: Refactored all tests in distutils, so they use |
| 9928 |
support.TempdirManager, to avoid writing in the tests directory. |
| 9929 |
|
| 9930 |
- bpo-4524: distutils build_script command failed with --with-suffix=3. |
| 9931 |
Initial patch by Amaury Forgeot d'Arc. |
| 9932 |
|
| 9933 |
- bpo-2461: Added tests for distutils.util. |
| 9934 |
|
| 9935 |
- bpo-1008086: Fixed socket.inet_aton() to always return 4 bytes even on |
| 9936 |
LP64 platforms (most 64-bit Linux, bsd, unix systems). |
| 9937 |
|
| 9938 |
- bpo-5203: Fixed ctypes segfaults when passing a unicode string to a |
| 9939 |
function without argtypes (only occurs if HAVE_USABLE_WCHAR_T is false). |
| 9940 |
|
| 9941 |
- bpo-3386: distutils.sysconfig.get_python_lib prefix argument was ignored |
| 9942 |
under NT and OS2. Patch by Philip Jenvey. |
| 9943 |
|
| 9944 |
- bpo-5128: Make compileall properly inspect bytecode to determine if needs |
| 9945 |
to be recreated. This avoids a timing hole thanks to the old reliance on |
| 9946 |
the ctime of the files involved. |
| 9947 |
|
| 9948 |
- bpo-5122: Synchronize tk load failure check to prevent a potential |
| 9949 |
deadlock. |
| 9950 |
|
| 9951 |
- bpo-1818: collections.namedtuple() now supports a keyword argument |
| 9952 |
'rename' which lets invalid fieldnames be automatically converted to |
| 9953 |
positional names in the form, _1, _2, ... |
| 9954 |
|
| 9955 |
- bpo-4890: Handle empty text search pattern in Tkinter.Text.search. |
| 9956 |
|
| 9957 |
- bpo-5170: Fixed Unicode output bug in logging and added test case. This |
| 9958 |
is a regression which did not occur in 2.5. |
| 9959 |
|
| 9960 |
- bpo-4512: Promote ``ZipImporter._get_filename()`` to be a public |
| 9961 |
documented method ``ZipImporter.get_filename()``. |
| 9962 |
|
| 9963 |
- bpo-4195: The ``runpy`` module (and the ``-m`` switch) now support the |
| 9964 |
execution of packages by looking for and executing a ``__main__`` |
| 9965 |
submodule when a package name is supplied. Initial patch by Andi Vajda. |
| 9966 |
|
| 9967 |
- bpo-1731706: Call Tcl_ConditionFinalize for Tcl_Conditions that will not |
| 9968 |
be used again (this requires Tcl/Tk 8.3.1), also fix a memory leak in |
| 9969 |
Tkapp_Call when calling from a thread different than the one that created |
| 9970 |
the Tcl interpreter. Patch by Robert Hancock. |
| 9971 |
|
| 9972 |
- bpo-1520877: Now distutils.sysconfig reads $AR from the |
| 9973 |
environment/Makefile. Patch by Douglas Greiman. |
| 9974 |
|
| 9975 |
- bpo-4285: Change sys.version_info to be a named tuple. Patch by Ross |
| 9976 |
Light. |
| 9977 |
|
| 9978 |
- bpo-1276768: The verbose option was not used in the code of |
| 9979 |
distutils.file_util and distutils.dir_util. |
| 9980 |
|
| 9981 |
- bpo-5132: Fixed trouble building extensions under Solaris with |
| 9982 |
--enabled-shared activated. Initial patch by Dave Peterson. |
| 9983 |
|
| 9984 |
- bpo-1581476: Always use the Tcl global namespace when calling into Tcl. |
| 9985 |
|
| 9986 |
- bpo-2047: shutil.move() could believe that its destination path was inside |
| 9987 |
its source path if it began with the same letters (e.g. "src" vs. |
| 9988 |
"src.new"). |
| 9989 |
|
| 9990 |
- bpo-4920: Fixed .next() vs .__next__() issues in the ABCs for Iterator and |
| 9991 |
MutableSet. |
| 9992 |
|
| 9993 |
- Added the ttk module. See issue #2983: Ttk support for Tkinter. |
| 9994 |
|
| 9995 |
- bpo-5021: doctest.testfile() did not create __name__ and |
| 9996 |
collections.namedtuple() relied on __name__ being defined. |
| 9997 |
|
| 9998 |
- Backport importlib from Python 3.1. Only the import_module() function has |
| 9999 |
been backported to help facilitate transitions from 2.7 to 3.1. |
| 10000 |
|
| 10001 |
- bpo-1885: distutils: When running sdist with --formats=tar,gztar the tar |
| 10002 |
file was overridden by the gztar one. |
| 10003 |
|
| 10004 |
- bpo-4863: distutils.mwerkscompiler has been removed. |
| 10005 |
|
| 10006 |
- Added new itertools functions: combinations_with_replacement() and |
| 10007 |
compress(). |
| 10008 |
|
| 10009 |
- bpo-5032: Added a step argument to itertools.count() and allowed |
| 10010 |
non-integer arguments. |
| 10011 |
|
| 10012 |
- Fix and properly document the multiprocessing module's logging support, |
| 10013 |
expose the internal levels and provide proper usage examples. |
| 10014 |
|
| 10015 |
- bpo-1672332: Fix unpickling of subnormal floats, which was producing a |
| 10016 |
ValueError on some platforms. |
| 10017 |
|
| 10018 |
- bpo-3881: Help Tcl to load even when started through the unreadable local |
| 10019 |
symlink to "Program Files" on Vista. |
| 10020 |
|
| 10021 |
- bpo-4710: Extract directories properly in the zipfile module; allow adding |
| 10022 |
directories to a zipfile. |
| 10023 |
|
| 10024 |
- bpo-3807: _multiprocessing build fails when configure is passed |
| 10025 |
--without-threads argument. When this occurs, _multiprocessing will be |
| 10026 |
disabled, and not compiled. |
| 10027 |
|
| 10028 |
- bpo-5008: When a file is opened in append mode with the new IO library, do |
| 10029 |
an explicit seek to the end of file (so that e.g. tell() returns the file |
| 10030 |
size rather than 0). This is consistent with the behaviour of the |
| 10031 |
traditional 2.x file object. |
| 10032 |
|
| 10033 |
- bpo-5013: Fixed a bug in FileHandler which occurred when the delay |
| 10034 |
parameter was set. |
| 10035 |
|
| 10036 |
- bpo-4998: The memory saving effect of __slots__ had been lost on Fractions |
| 10037 |
which inherited from numbers.py which did not have __slots__ defined. The |
| 10038 |
numbers hierarchy now has its own __slots__ declarations. |
| 10039 |
|
| 10040 |
- bpo-3321: _multiprocessing.Connection() doesn't check handle; added checks |
| 10041 |
for *nix machines for negative handles and large int handles. Without |
| 10042 |
this check it is possible to segfault the interpreter. |
| 10043 |
|
| 10044 |
- bpo-4449: AssertionError in mp_benchmarks.py, caused by an underlying |
| 10045 |
issue in sharedctypes.py. |
| 10046 |
|
| 10047 |
- bpo-1225107: inspect.isclass() returned True for instances with a custom |
| 10048 |
__getattr__. |
| 10049 |
|
| 10050 |
- bpo-3997: Zipfiles generated with more than 65536 files could not be |
| 10051 |
opened with other applications. |
| 10052 |
|
| 10053 |
- bpo-1162154: ``inspect.getmembers()`` now skips attributes that raise |
| 10054 |
AttributeError, e.g. a __slots__ attribute which has not been set. |
| 10055 |
|
| 10056 |
- bpo-1696199: Add collections.Counter() for rapid and convenient counting. |
| 10057 |
|
| 10058 |
- bpo-3860: GzipFile and BZ2File now support the context management |
| 10059 |
protocol. |
| 10060 |
|
| 10061 |
- bpo-4272: Add an optional argument to the GzipFile constructor to override |
| 10062 |
the timestamp in the gzip stream. The default value remains the current |
| 10063 |
time. The information can be used by e.g. gunzip when decompressing. |
| 10064 |
Patch by Jacques Frechet. |
| 10065 |
|
| 10066 |
- Restore Python 2.3 compatibility for decimal.py. |
| 10067 |
|
| 10068 |
- bpo-1702551: distutils sdist was not excluding VCS directories under |
| 10069 |
Windows. Initial solution by Guy Dalberto. |
| 10070 |
|
| 10071 |
- The _tkinter module functions "createfilehandler", "deletefilehandler", |
| 10072 |
"createtimerhandler", "mainloop", "dooneevent" and "quit" have been |
| 10073 |
deprecated for removal in 3.x |
| 10074 |
|
| 10075 |
- bpo-4796: Added Decimal.from_float() and |
| 10076 |
Context.create_decimal_from_float() to the decimal module. |
| 10077 |
|
| 10078 |
- bpo-4812: Add missing underscore prefix to some internal-use-only |
| 10079 |
constants in the decimal module. (Dec_0 becomes _Dec_0, etc.) |
| 10080 |
|
| 10081 |
- bpo-4795: inspect.isgeneratorfunction() returns False instead of None when |
| 10082 |
the function is not a generator. |
| 10083 |
|
| 10084 |
- bpo-4702: Throwing a DistutilsPlatformError instead of IOError in case no |
| 10085 |
MSVC compiler is found under Windows. Original patch by Philip Jenvey. |
| 10086 |
|
| 10087 |
- bpo-4646: distutils was choking on empty options arg in the setup |
| 10088 |
function. Original patch by Thomas Heller. |
| 10089 |
|
| 10090 |
- Fractions.from_float() no longer loses precision for integers too big to |
| 10091 |
cast as floats. |
| 10092 |
|
| 10093 |
- bpo-4790: The nsmallest() and nlargest() functions in the heapq module did |
| 10094 |
unnecessary work in the common case where no key function was specified. |
| 10095 |
|
| 10096 |
- bpo-3767: Convert Tk object to string in tkColorChooser. |
| 10097 |
|
| 10098 |
- bpo-3248: Allow placing ScrolledText in a PanedWindow. |
| 10099 |
|
| 10100 |
- bpo-4444: Allow assertRaises() to be used as a context handler, so that |
| 10101 |
the code under test can be written inline if more practical. |
| 10102 |
|
| 10103 |
- bpo-4739: Add pydoc help topics for symbols, so that e.g. help('@') works |
| 10104 |
as expected in the interactive environment. |
| 10105 |
|
| 10106 |
- bpo-4756: zipfile.is_zipfile() now supports file-like objects. Patch by |
| 10107 |
Gabriel Genellina. |
| 10108 |
|
| 10109 |
- bpo-4400: .pypirc default generated file was broken in distutils. |
| 10110 |
|
| 10111 |
- bpo-4736: io.BufferedRWPair's closed property now functions properly. |
| 10112 |
|
| 10113 |
- bpo-3954: Fix a potential SystemError in _hotshot.logreader error |
| 10114 |
handling. |
| 10115 |
|
| 10116 |
- bpo-4574: Fix a crash in io.IncrementalNewlineDecoder when a carriage |
| 10117 |
return encodes to more than one byte in the source encoding (e.g. UTF-16) |
| 10118 |
and gets split on a chunk boundary. |
| 10119 |
|
| 10120 |
- bpo-4223: inspect.getsource() will now correctly display source code for |
| 10121 |
packages loaded via zipimport (or any other conformant PEP 302 loader). |
| 10122 |
Original patch by Alexander Belopolsky. |
| 10123 |
|
| 10124 |
- bpo-4201: pdb can now access and display source code loaded via zipimport |
| 10125 |
(or any other conformant PEP 302 loader). Original patch by Alexander |
| 10126 |
Belopolsky. |
| 10127 |
|
| 10128 |
- bpo-4197: Doctests in modules loaded via zipimport (or any other PEP 302 |
| 10129 |
conformant loader) will now work correctly in most cases (they are still |
| 10130 |
subject to the constraints that exist for all code running from inside a |
| 10131 |
module loaded via a PEP 302 loader and attempting to perform IO operations |
| 10132 |
based on __file__). Original patch by Alexander Belopolsky. |
| 10133 |
|
| 10134 |
- bpo-4082: Add runpy support to zipimport in a manner that allows |
| 10135 |
backporting to maintenance branches. Original patch by Alexander |
| 10136 |
Belopolsky. (See also: bpo-4512) |
| 10137 |
|
| 10138 |
- bpo-4163: Use unicode-friendly word splitting in the textwrap functions |
| 10139 |
when given a Unicode string. |
| 10140 |
|
| 10141 |
- bpo-4616: TarFile.utime(): Restore directory times on Windows. |
| 10142 |
|
| 10143 |
- bpo-4084: Fix max, min, max_mag and min_mag Decimal methods to give |
| 10144 |
correct results in the case where one argument is a quiet NaN and the |
| 10145 |
other is a finite number that requires rounding. |
| 10146 |
|
| 10147 |
- bpo-1030250: Distutils created directories even when run with the |
| 10148 |
--dry-run option. |
| 10149 |
|
| 10150 |
- bpo-4483: _dbm module now builds on systems with gdbm & gdbm_compat libs. |
| 10151 |
|
| 10152 |
- bpo-4529: Fix the parser module's validation of try-except-finally |
| 10153 |
statements. |
| 10154 |
|
| 10155 |
- bpo-4458: getopt.gnu_getopt() now recognizes a single "-" as an argument, |
| 10156 |
not a malformed option. |
| 10157 |
|
| 10158 |
- Added the subprocess.check_output() convenience function to get output |
| 10159 |
from a subprocess on success or raise an exception on error. |
| 10160 |
|
| 10161 |
- bpo-1055234: cgi.parse_header(): Fixed parsing of header parameters to |
| 10162 |
support unusual filenames (such as those containing semi-colons) in |
| 10163 |
Content-Disposition headers. |
| 10164 |
|
| 10165 |
- bpo-4384: Added logging integration with warnings module using |
| 10166 |
captureWarnings(). This change includes a NullHandler which does nothing; |
| 10167 |
it will be of use to library developers who want to avoid the "No handlers |
| 10168 |
could be found for logger XXX" message which can appear if the library |
| 10169 |
user doesn't configure logging. |
| 10170 |
|
| 10171 |
- bpo-3741: DISTUTILS_USE_SDK set causes msvc9compiler.py to raise an |
| 10172 |
exception. |
| 10173 |
|
| 10174 |
- bpo-4363: The uuid.uuid1() and uuid.uuid4() functions now work even if the |
| 10175 |
ctypes module is not present. |
| 10176 |
|
| 10177 |
- FileIO's mode attribute now always includes ``"b"``. |
| 10178 |
|
| 10179 |
- bpo-4116: Resolve member name conflict in ScrolledCanvas.__init__. |
| 10180 |
|
| 10181 |
- httplib.HTTPConnection.putheader() now accepts an arbitrary number of |
| 10182 |
values for any header, matching what the documentation has claimed for a |
| 10183 |
while. |
| 10184 |
|
| 10185 |
- bpo-3774: Fixed an error when create a Tkinter menu item without command |
| 10186 |
and then remove it. |
| 10187 |
|
| 10188 |
- Fixed a modulefinder crash on certain relative imports. |
| 10189 |
|
| 10190 |
- bpo-4150: Pdb's "up" command now works for generator frames in post-mortem |
| 10191 |
debugging. |
| 10192 |
|
| 10193 |
- bpo-4092: Return ArgInfo as promised in the documentation from |
| 10194 |
inspect.getargvalues. |
| 10195 |
|
| 10196 |
- bpo-3935: Properly support list subclasses in bisect's C implementation. |
| 10197 |
|
| 10198 |
- bpo-4014: Don't claim that Python has an Alpha release status, in addition |
| 10199 |
to claiming it is Mature. |
| 10200 |
|
| 10201 |
- bpo-4730: Fixed the cPickle module to handle correctly astral characters |
| 10202 |
when protocol 0 is used. |
| 10203 |
|
| 10204 |
- bpo-1594: MacOS.GetCreatorAndType now always returns a big-endian result, |
| 10205 |
to be consistent with Apple tools. |
| 10206 |
|
| 10207 |
- bpo-900949: plat-mac/videoreader.py no longer relies on a non-existing |
| 10208 |
module. |
| 10209 |
|
| 10210 |
- bpo-16278952: plat-mac/videoreader.py now correctly imports MediaDescr |
| 10211 |
|
| 10212 |
- bpo-1737832: plat-mac/EasyDialog.py no longer uses the broken aepack |
| 10213 |
module. |
| 10214 |
|
| 10215 |
- bpo-1149804: macostools.mkdirs now even works when another process creates |
| 10216 |
one of the needed subdirectories. |
| 10217 |
|
| 10218 |
- bpo-900506: added --no-zipimport flag to the bundlebuilder script. |
| 10219 |
|
| 10220 |
- bpo-841800: bundlebuilder now works with 'python -O'. |
| 10221 |
|
| 10222 |
- bpo-4861: ctypes.util.find_library(): Robustify. Fix library detection on |
| 10223 |
biarch systems. Try to rely on ldconfig only, without using objdump and |
| 10224 |
gcc. |
| 10225 |
|
| 10226 |
- bpo-5104: The socket module now raises OverflowError when 16-bit port and |
| 10227 |
protocol numbers are supplied outside the allowed 0-65536 range on bind() |
| 10228 |
and getservbyport(). |
| 10229 |
|
| 10230 |
- bpo-999042: The Python compiler now handles explict global statements |
| 10231 |
correctly (should be assigned using STORE_GLOBAL opcode). |
| 10232 |
|
| 10233 |
- bpo-2703: SimpleXMLRPCDispatcher.__init__: Provide default values for new |
| 10234 |
arguments introduced in 2.5. |
| 10235 |
|
| 10236 |
- bpo-5828: Fixed bogus logic in makeunicodedata.py and regenerated the |
| 10237 |
Unicode database (This fixes u'\u1d79'.lower() == '\x00'). |
| 10238 |
|
| 10239 |
- Windows locale mapping updated to Vista. |
| 10240 |
|
| 10241 |
IDLE |
| 10242 |
---- |
| 10243 |
|
| 10244 |
- bpo-5150: IDLE's format menu now has an option to strip trailing |
| 10245 |
whitespace. |
| 10246 |
|
| 10247 |
- bpo-5847: Remove -n switch on "Edit with IDLE" menu item. |
| 10248 |
|
| 10249 |
- idle.py modified and simplified to better support developing experimental |
| 10250 |
versions of IDLE which are not installed in the standard location. |
| 10251 |
|
| 10252 |
- bpo-5559: OutputWindow/PyShell right click menu "Go to file/line" wasn't |
| 10253 |
working with file paths containing spaces. |
| 10254 |
|
| 10255 |
- bpo-5783: Windows: Version string for the .chm help file changed, file not |
| 10256 |
being accessed. Patch by Guilherme Polo/ |
| 10257 |
|
| 10258 |
- bpo-1529142: Allow multiple IDLE GUI/subprocess pairs to exist |
| 10259 |
simultaneously. Thanks to David Scherer for suggesting the use of an |
| 10260 |
ephemeral port for the GUI. Patch by Weeble. |
| 10261 |
|
| 10262 |
- Remove port spec from run.py and fix bug where subprocess fails to extract |
| 10263 |
port from command line when warnings are present. |
| 10264 |
|
| 10265 |
- bpo-5129: Tk 8.5 Text widget requires 'wordprocessor' tabstyle attr to |
| 10266 |
handle mixed space/tab properly. Patch by Guilherme Polo. |
| 10267 |
|
| 10268 |
- bpo-3549: On MacOS the preferences menu was not present |
| 10269 |
|
| 10270 |
Tools/Demos |
| 10271 |
----------- |
| 10272 |
|
| 10273 |
- Ttk demos added in Demo/tkinter/ttk/. |
| 10274 |
|
| 10275 |
- bpo-4677: Add two list comprehension tests to pybench. |
| 10276 |
|
| 10277 |
Build |
| 10278 |
----- |
| 10279 |
|
| 10280 |
- bpo-6603: Change READ_TIMESTAMP macro in ceval.c so that it compiles |
| 10281 |
correctly under gcc on x86-64. This fixes a reported problem with the |
| 10282 |
--with-tsc build on x86-64. |
| 10283 |
|
| 10284 |
- Add 2 new options to ``--with-universal-archs`` on MacOSX: ``intel`` |
| 10285 |
builds a distribution with ``i386`` and ``x86_64`` architectures, while |
| 10286 |
``3-way`` builds a distribution with the ``ppc``, ``i386`` and ``x86_64`` |
| 10287 |
architectures. |
| 10288 |
|
| 10289 |
- bpo-6802: Fix build issues on MacOSX 10.6. |
| 10290 |
|
| 10291 |
- bpo-6244: Allow detect_tkinter to look for Tcl/Tk 8.6. |
| 10292 |
|
| 10293 |
- bpo-5390: Add uninstall icon independent of whether file extensions are |
| 10294 |
installed. |
| 10295 |
|
| 10296 |
- bpo-5809: Specifying both --enable-framework and --enable-shared is an |
| 10297 |
error. Configure now explicitly tells you about this. |
| 10298 |
|
| 10299 |
- bpo-3585: Add pkg-config support. It creates a python-2.7.pc file and a |
| 10300 |
python.pc symlink in the $(LIBDIR)/pkgconfig directory. Patch by Clinton |
| 10301 |
Roy. |
| 10302 |
|
| 10303 |
- bpo-6094: Build correctly with Subversion 1.7. |
| 10304 |
|
| 10305 |
- bpo-5726: Make Modules/ld_so_aix return the actual exit code of the |
| 10306 |
linker, rather than always exit successfully. Patch by Floris Bruynooghe. |
| 10307 |
|
| 10308 |
- bpo-4587: Add configure option --with-dbmliborder=db1:db2:... to specify |
| 10309 |
the order that backends for the dbm extension are checked. |
| 10310 |
|
| 10311 |
- Link the shared python library with $(MODLIBS). |
| 10312 |
|
| 10313 |
- bpo-5134: Silence compiler warnings when compiling sqlite with VC++. |
| 10314 |
|
| 10315 |
- bpo-4494: Fix build with Py_NO_ENABLE_SHARED on Windows. |
| 10316 |
|
| 10317 |
- bpo-4895: Use _strdup on Windows CE. |
| 10318 |
|
| 10319 |
- bpo-4472: ``configure --enable-shared`` now works on OSX. |
| 10320 |
|
| 10321 |
- bpo-4728: WORDS_BIGEDIAN is now correct in Universal builds. (See also: |
| 10322 |
bpo-4060) |
| 10323 |
|
| 10324 |
- bpo-4389: Add icon to the uninstall entry in "add-and-remove-programs". |
| 10325 |
|
| 10326 |
- bpo-4289: Remove Cancel button from AdvancedDlg. |
| 10327 |
|
| 10328 |
- bpo-1656675: Register a drop handler for .py* files on Windows. |
| 10329 |
|
| 10330 |
- bpo-4120: Exclude manifest from extension modules in VS2008. |
| 10331 |
|
| 10332 |
- bpo-4091: Install pythonxy.dll in system32 again. |
| 10333 |
|
| 10334 |
- bpo-4018: Disable "for me" installations on Vista. |
| 10335 |
|
| 10336 |
- bpo-3758: Add ``patchcheck`` build target to ``.PHONY``. |
| 10337 |
|
| 10338 |
- bpo-4204: Fixed module build errors on FreeBSD 4. |
| 10339 |
|
| 10340 |
Documentation |
| 10341 |
------------- |
| 10342 |
|
| 10343 |
- bpo-6556: Fixed the Distutils configuration files location explanation for |
| 10344 |
Windows. |
| 10345 |
|
| 10346 |
- bpo-6801: symmetric_difference_update also accepts ``|``. Thanks to Carl |
| 10347 |
Chenet. |
| 10348 |
|
| 10349 |
C API |
| 10350 |
----- |
| 10351 |
|
| 10352 |
- bpo-7528: Add PyLong_AsLongAndOverflow (backported from py3k). |
| 10353 |
|
| 10354 |
- bpo-7228: Add '%lld' and '%llu' support to PyString_FromFormat(V) and |
| 10355 |
PyErr_Format, on machines with HAVE_LONG_LONG defined. |
| 10356 |
|
| 10357 |
- Add new C-API function PyOS_string_to_double, and deprecated |
| 10358 |
PyOS_ascii_atof and PyOS_ascii_strtod. |
| 10359 |
|
| 10360 |
- Removed _PyOS_double_to_string. Use PyOS_double_to_string instead. This |
| 10361 |
is in preparation for (but not strictly related to) issue #7117, short |
| 10362 |
float repr. |
| 10363 |
|
| 10364 |
- bpo-6624: PyArg_ParseTuple with "s" format when parsing argument with |
| 10365 |
NULL: Bogus TypeError detail string. |
| 10366 |
|
| 10367 |
- bpo-5954: Add a PyFrame_GetLineNumber() function to replace most uses of |
| 10368 |
PyCode_Addr2Line(). |
| 10369 |
|
| 10370 |
- bpo-5959: Add a PyCode_NewEmpty() function to create a new empty code |
| 10371 |
object at a specified file, function, and line number. |
| 10372 |
|
| 10373 |
- bpo-1419652: Change the first argument to PyImport_AppendInittab() to |
| 10374 |
``const char *`` as the string is stored beyond the call. |
| 10375 |
|
| 10376 |
- Some PyBytes_* aliases have been removed because they don't exist in 3.x. |
| 10377 |
|
| 10378 |
- bpo-5175: PyLong_AsUnsignedLongLong now raises OverflowError for negative |
| 10379 |
arguments. Previously, it raised TypeError. |
| 10380 |
|
| 10381 |
- bpo-4720: The format for PyArg_ParseTupleAndKeywords can begin with '|'. |
| 10382 |
|
| 10383 |
- bpo-3632: From the gdb debugger, the 'pyo' macro can now be called when |
| 10384 |
the GIL is released, or owned by another thread. |
| 10385 |
|
| 10386 |
- bpo-4122: On Windows, fix a compilation error when using the |
| 10387 |
Py_UNICODE_ISSPACE macro in an extension module. |
| 10388 |
|
| 10389 |
- bpo-4293: Py_AddPendingCall() is now thread safe and can be used for |
| 10390 |
asynchronous notifications to python from any thread. Documentation |
| 10391 |
added. |
| 10392 |
|
| 10393 |
Library |
| 10394 |
------- |
| 10395 |
|
| 10396 |
- bpo-6508: Add posix.{getresuid,getresgid,setresuid,setresgid}. |
| 10397 |
|
| 10398 |
- bpo-7078: Set struct.__doc__ from _struct.__doc__. |
| 10399 |
|
| 10400 |
- bpo-3366: Add erf, erfc, expm1, gamma, lgamma functions to math module. |
| 10401 |
|
| 10402 |
- bpo-6823: Allow time.strftime() to accept a tuple with a isdst field |
| 10403 |
outside of the range of [-1, 1] by normalizing the value to within that |
| 10404 |
range. |
| 10405 |
|
| 10406 |
- bpo-6877: Make it possible to link the readline extension to libedit on |
| 10407 |
OSX. |
| 10408 |
|
| 10409 |
- bpo-6944: Fix a SystemError when socket.getnameinfo() was called with |
| 10410 |
something other than a tuple as first argument. |
| 10411 |
|
| 10412 |
- bpo-6865: Fix reference counting issue in the initialization of the pwd |
| 10413 |
module. |
| 10414 |
|
| 10415 |
- bpo-6848: Fix curses module build failure on OS X 10.6. |
| 10416 |
|
| 10417 |
- Fix a segfault in expat when given a specially crafted input lead to the |
| 10418 |
tokenizer not stopping. CVE-2009-3720. |
| 10419 |
|
| 10420 |
- bpo-6561: '\d' in a regex now matches only characters with Unicode |
| 10421 |
category 'Nd' (Number, Decimal Digit). Previously it also matched |
| 10422 |
characters with category 'No'. |
| 10423 |
|
| 10424 |
- bpo-1523: Remove deprecated overflow wrapping for struct.pack with an |
| 10425 |
integer format code ('bBhHiIlLqQ'). Packing an out-of-range integer now |
| 10426 |
consistently raises struct.error. |
| 10427 |
|
| 10428 |
- bpo-1530559: Fix various struct.pack inconsistencies for the integer |
| 10429 |
formats ('bBhHiIlLqQ'). In the following, '*' represents any of '=', '<', |
| 10430 |
'>'. |
| 10431 |
|
| 10432 |
- Packing a float now always gives a Deprecation Warning. Previously it |
| 10433 |
only warned for 'I', 'L', '*B', '*H', '*I', '*L'. |
| 10434 |
|
| 10435 |
- If x is not an int, long or float, then packing x will always result in |
| 10436 |
struct.error. Previously an x with an __int__ method could be packed by |
| 10437 |
'b', 'B', 'h', 'H', 'i', 'l', '*b', '*h' ,'*i', '*l', and an x with a |
| 10438 |
__long__ method could be packed by 'q', 'Q', '*q', '*Q'; for x with |
| 10439 |
neither __int__ nor __long__, TypeError used to be raised (with a |
| 10440 |
confusing error message) for 'I', 'L', '*B', '*H', '*I', '*L', and |
| 10441 |
struct.error in other cases. |
| 10442 |
|
| 10443 |
Note: as of Python 2.7 beta 1, the above is out of date. In 2.7 beta 1, |
| 10444 |
any argument with an __int__ method can be packed, but use of this feature |
| 10445 |
triggers a DeprecationWarning. (See also: bpo-1741130) |
| 10446 |
|
| 10447 |
- bpo-4873: Fix resource leaks in error cases of pwd and grp. |
| 10448 |
|
| 10449 |
- bpo-4751: For hashlib algorithms provided by OpenSSL, the Python GIL is |
| 10450 |
now released during computation on data lengths >= 2048 bytes. |
| 10451 |
|
| 10452 |
- bpo-3745: Fix hashlib to always reject unicode and non buffer-api |
| 10453 |
supporting objects as input no matter how it was compiled (built in |
| 10454 |
implementations or external openssl library). NOTE: Undone in 2.7a2. |
| 10455 |
|
| 10456 |
- bpo-4397: Fix occasional test_socket failure on OS X. |
| 10457 |
|
| 10458 |
- bpo-4279: Fix build of parsermodule under Cygwin. |
| 10459 |
|
| 10460 |
- bpo-4051: Prevent conflict of UNICODE macros in cPickle. |
| 10461 |
|
| 10462 |
- bpo-4228: Pack negative values the same way as 2.4 in struct's L format. |
| 10463 |
|
| 10464 |
- bpo-1040026: Fix os.times result on systems where HZ is incorrect. |
| 10465 |
|
| 10466 |
- bpo-3167: Fix test_math failures for log, log10 on Solaris, OpenBSD. (See |
| 10467 |
also: bpo-3682) |
| 10468 |
|
| 10469 |
- bpo-4365: Add crtassem.h constants to the msvcrt module. |
| 10470 |
|
| 10471 |
- bpo-4396: The parser module now correctly validates the with statement. |
| 10472 |
|
| 10473 |
- bpo-5228: Make functools.partial objects can now be pickled. |
| 10474 |
|
| 10475 |
Tests |
| 10476 |
----- |
| 10477 |
|
| 10478 |
- bpo-7431: Use TESTFN in test_linecache instead of trying to create a file |
| 10479 |
in the Lib/test directory, which might be read-only for the user running |
| 10480 |
the tests. |
| 10481 |
|
| 10482 |
- bpo-7324: Add a sanity check to regrtest argument parsing to catch the |
| 10483 |
case of an option with no handler. |
| 10484 |
|
| 10485 |
- bpo-7312: Add a -F flag to run the selected tests in a loop until a test |
| 10486 |
fails. Can be combined with -j. |
| 10487 |
|
| 10488 |
- bpo-7295: Do not use a hardcoded file name in test_tarfile. |
| 10489 |
|
| 10490 |
- bpo-7270: Add some dedicated unit tests for multi-thread synchronization |
| 10491 |
primitives such as Lock, RLock, Condition, Event and Semaphore. |
| 10492 |
|
| 10493 |
- bpo-7222: Make thread "reaping" more reliable so that reference |
| 10494 |
leak-chasing test runs give sensible results. The previous method of |
| 10495 |
reaping threads could return successfully while some Thread objects were |
| 10496 |
still referenced. This also introduces a new private function: |
| 10497 |
``thread._count()``. |
| 10498 |
|
| 10499 |
- bpo-7151: Fixed regrtest -j so that output to stderr from a test no longer |
| 10500 |
runs the risk of causing the worker thread to fail. |
| 10501 |
|
| 10502 |
- bpo-7055: test___all__ now greedily detects all modules which have an |
| 10503 |
__all__ attribute, rather than using a hardcoded and incomplete list. |
| 10504 |
|
| 10505 |
- bpo-7058: Added save/restore for things like sys.argv and cwd to |
| 10506 |
runtest_inner in regrtest, with warnings if the called test modifies them, |
| 10507 |
and a new section in the summary report at the end. |
| 10508 |
|
| 10509 |
- bpo-7042: Fix test_signal (test_itimer_virtual) failure on OS X 10.6. |
| 10510 |
|
| 10511 |
- bpo-6806: test_platform failed under OS X 10.6.0 because ``sw_ver`` leaves |
| 10512 |
off the trailing 0 in the version number. |
| 10513 |
|
| 10514 |
- bpo-5450: Moved tests involving loading tk from Lib/test/test_tcl to |
| 10515 |
Lib/lib-tk/test/test_tkinter/test_loadtk. With this, these tests |
| 10516 |
demonstrate the same behaviour as test_ttkguionly (and now also test_tk) |
| 10517 |
which is to skip the tests if DISPLAY is defined but can't be used. |
| 10518 |
|
| 10519 |
- bpo-6152: New option '-j'/'--multiprocess' for regrtest allows running |
| 10520 |
regression tests in parallel, shortening the total runtime. |
| 10521 |
|
| 10522 |
- bpo-5354: New test support function import_fresh_module() makes it easy to |
| 10523 |
import both normal and optimised versions of modules. test_heapq and |
| 10524 |
test_warnings have been adjusted to use it, tests for other modules with |
| 10525 |
both C and Python implementations in the stdlib can be adjusted to use it |
| 10526 |
over time. |
| 10527 |
|
| 10528 |
- Fix test_warnings to no longer reset the warnings filter. |
| 10529 |
|
| 10530 |
- Fix test_logging to no longer reset the warnings filter. |
| 10531 |
|
| 10532 |
- bpo-5635: Fix running test_sys with tracing enabled. |
| 10533 |
|
| 10534 |
- regrtest no longer treats ImportError as equivalent to SkipTest. Imports |
| 10535 |
that should cause a test to be skipped are now done using import_module |
| 10536 |
from test support, which does the conversion. |
| 10537 |
|
| 10538 |
- bpo-5083: New 'gui' resource for regrtest. |
| 10539 |
|
| 10540 |
- bpo-5837: Certain sequences of calls to set() and unset() for |
| 10541 |
support.EnvironmentVarGuard objects restored the environment variables |
| 10542 |
incorrectly on __exit__. |
| 10543 |
|
| 10544 |
- bpo-2389: Array objects are now pickled in a portable manner. |
| 10545 |
|
| 10546 |
Windows |
| 10547 |
------- |
| 10548 |
|
| 10549 |
- bpo-5611: Auto-detect whether a C file uses tabs or spaces in Vim. |
| 10550 |
|
| 10551 |
|
| 10552 |
What's New in Python 2.6 final? |
| 10553 |
=============================== |
| 10554 |
|
| 10555 |
*Release date: 01-Oct-2008* |
| 10556 |
|
| 10557 |
Core and Builtins |
| 10558 |
----------------- |
| 10559 |
|
| 10560 |
- bpo-3967: Fixed a crash in the count() and find() methods of string-like |
| 10561 |
objects, when the "start" parameter is a huge value. |
| 10562 |
|
| 10563 |
- bpo-3965: Fixed a crash on Windows when open() is given an invalid |
| 10564 |
filename or mode, and the filename is a unicode string. |
| 10565 |
|
| 10566 |
- bpo-3951: Py_USING_MEMORY_DEBUGGER should not be enabled by default. |
| 10567 |
|
| 10568 |
Library |
| 10569 |
------- |
| 10570 |
|
| 10571 |
- bpo-3965: Allow repeated calls to turtle.Screen, by making it a true |
| 10572 |
singleton object. |
| 10573 |
|
| 10574 |
- bpo-3895: It was possible to crash the interpreter when an external timer |
| 10575 |
was used with cProfile that returned an object that could not be converted |
| 10576 |
into a float. |
| 10577 |
|
| 10578 |
- bpo-3950: Made turtle respect scale factors. |
| 10579 |
|
| 10580 |
- bpo-3547: Fixed ctypes structures bitfields of varying integer sizes. |
| 10581 |
|
| 10582 |
- bpo-3879: A regression in urllib.getproxies_environment was fixed. |
| 10583 |
|
| 10584 |
- bpo-3863: Disabled a unit test of fork being called from a thread when |
| 10585 |
running on platforms known to exhibit OS bugs when attempting that. |
| 10586 |
|
| 10587 |
Build |
| 10588 |
----- |
| 10589 |
|
| 10590 |
- bpo-3989: Package the 2to3 script (as 2to3.py) in the Windows installer. |
| 10591 |
|
| 10592 |
- bpo-3887: Package x64 version of CRT for AMD64 Windows binaries. |
| 10593 |
|
| 10594 |
|
| 10595 |
What's New in Python 2.6 release candidate 2? |
| 10596 |
============================================= |
| 10597 |
|
| 10598 |
*Release date: 17-Sep-2008* |
| 10599 |
|
| 10600 |
Library |
| 10601 |
------- |
| 10602 |
|
| 10603 |
- Security Issue #2: imageop did not validate arguments correctly and could |
| 10604 |
segfault as a result. |
| 10605 |
|
| 10606 |
- bpo-3886: Possible integer overflows in the _hashopenssl module were |
| 10607 |
closed. |
| 10608 |
|
| 10609 |
Tools/Demos |
| 10610 |
----------- |
| 10611 |
|
| 10612 |
- bpo-3850: recursion tests in Tools/scripts/find_recursion_limit.py can |
| 10613 |
raise AttributeError instead of RuntimeError, depending in which C API |
| 10614 |
call exactly the recursion limit is exceeded. Consequently, both exception |
| 10615 |
types are caught and silenced. |
| 10616 |
|
| 10617 |
Build |
| 10618 |
----- |
| 10619 |
|
| 10620 |
- bpo-3617: Include a licensing statement regarding the Microsoft C runtime |
| 10621 |
in the Windows installer. |
| 10622 |
|
| 10623 |
|
| 10624 |
What's New in Python 2.6 release candidate 1? |
| 10625 |
============================================= |
| 10626 |
|
| 10627 |
*Release date: 12-Sep-2008* |
| 10628 |
|
| 10629 |
Core and Builtins |
| 10630 |
----------------- |
| 10631 |
|
| 10632 |
- bpo-3642: Suppress warning in obmalloc when size_t is larger than uint. |
| 10633 |
|
| 10634 |
- bpo-3743: In a few places, PY_FORMAT_SIZE_T was incorrectly used with |
| 10635 |
PyString_FromFormat or PyErr_Format to display size_t values. The macro |
| 10636 |
PY_FORMAT_SIZE_T is designed to select the correct format for the OS |
| 10637 |
``printf`` function, whereas PyString_FromFormat has an independent |
| 10638 |
implementation and uses "%zd" on all platforms for size_t values. This |
| 10639 |
makes a difference on win64, where ``printf`` needs "%Id" to display 64bit |
| 10640 |
values. |
| 10641 |
|
| 10642 |
- bpo-3634: _weakref.ref(Exception).__init__() gave invalid return value on |
| 10643 |
error. |
| 10644 |
|
| 10645 |
- bpo-3777: long() applied to a float object now always return a long |
| 10646 |
object; previously an int would be returned for small values. the __long__ |
| 10647 |
method is allowed to return either an int or a long, but the behaviour of |
| 10648 |
float objects should not change to respect backward compatibility. |
| 10649 |
|
| 10650 |
- bpo-3751: str.rpartition would perform a left-partition when called with a |
| 10651 |
unicode argument. |
| 10652 |
|
| 10653 |
- bpo-3683: Fix compilation when --without-threads is given. |
| 10654 |
|
| 10655 |
- bpo-3668: Fix a memory leak with the "s*" argument parser in |
| 10656 |
PyArg_ParseTuple and friends, which occurred when the argument for "s*" |
| 10657 |
was correctly parsed but parsing of subsequent arguments failed. |
| 10658 |
|
| 10659 |
- bpo-2534: speed up isinstance() and issubclass() by 50-70%, so as to match |
| 10660 |
Python 2.5 speed despite the __instancecheck__ / __subclasscheck__ |
| 10661 |
mechanism. In the process, fix a bug where isinstance() and issubclass(), |
| 10662 |
when given a tuple of classes as second argument, were looking up |
| 10663 |
__instancecheck__ / __subclasscheck__ on the tuple rather than on each |
| 10664 |
type object. |
| 10665 |
|
| 10666 |
- Fix crashes on memory allocation failure found with failmalloc. |
| 10667 |
|
| 10668 |
- Fix memory leaks found with valgrind and update suppressions file. |
| 10669 |
|
| 10670 |
- Fix compiler warnings in opt mode which would lead to invalid memory |
| 10671 |
reads. |
| 10672 |
|
| 10673 |
- Fix problem using wrong name in decimal module reported by pychecker. |
| 10674 |
|
| 10675 |
- Silenced another compiler warning about a used but not defined function |
| 10676 |
'stringlib_contains_obj'. |
| 10677 |
|
| 10678 |
- Added warnings on the use of ``__getslice__``, ``__setslice__``, or |
| 10679 |
``__delslice__``. |
| 10680 |
|
| 10681 |
- bpo-3678: Correctly pass LDFLAGS and LDLAST to the linker on shared |
| 10682 |
library targets in the Makefile. |
| 10683 |
|
| 10684 |
- bpo-1204: The configure script now tests for additional libraries that may |
| 10685 |
be required when linking against readline. This fixes issues with x86_64 |
| 10686 |
builds on some platforms (a few Linux flavors and OpenBSD). |
| 10687 |
|
| 10688 |
C API |
| 10689 |
----- |
| 10690 |
|
| 10691 |
- Aliased PyObject_Bytes to PyObject_Str. |
| 10692 |
|
| 10693 |
Library |
| 10694 |
------- |
| 10695 |
|
| 10696 |
- bpo-3640: Pickling a list or a dict uses less local variables, to reduce |
| 10697 |
stack usage in the case of deeply nested objects. |
| 10698 |
|
| 10699 |
- bpo-3629: Fix sre "bytecode" validator for an end case. |
| 10700 |
|
| 10701 |
- bpo-3811: The Unicode database was updated to 5.1. |
| 10702 |
|
| 10703 |
- bpo-3781: Further warnings.catch_warnings() cleanup to prevent silent |
| 10704 |
misbehaviour when a single instance is nested in multiple with statements, |
| 10705 |
or when the methods are invoked in the wrong order. |
| 10706 |
|
| 10707 |
- bpo-3809: Fixed spurious 'test.blah' file left behind by test_logging. |
| 10708 |
|
| 10709 |
- bpo-3781: Clean up the API for warnings.catch_warnings() by having it |
| 10710 |
return a list or None rather than a custom object. |
| 10711 |
|
| 10712 |
- bpo-1638033: Cookie.Morsel gained the httponly attribute. |
| 10713 |
|
| 10714 |
- bpo-3535: zipfile couldn't read some zip files larger than 2GB. |
| 10715 |
|
| 10716 |
- bpo-3776: Deprecate the bsddb package for removal in 3.0. |
| 10717 |
|
| 10718 |
- bpo-3762: platform.architecture() fails if python is lanched via its |
| 10719 |
symbolic link. |
| 10720 |
|
| 10721 |
- bpo-3772: Fixed regression problem in StreamHandler.emit(). |
| 10722 |
|
| 10723 |
- bpo-600362: Relocated parse_qs() and parse_qsl(), from the cgi module to |
| 10724 |
the urlparse one. Added a PendingDeprecationWarning in the old module, it |
| 10725 |
will be deprecated in the future. |
| 10726 |
|
| 10727 |
- bpo-2562: Fix distutils PKG-INFO writing logic to allow having non-ascii |
| 10728 |
characters and Unicode in setup.py meta-data. |
| 10729 |
|
| 10730 |
- bpo-3726: Allow spaces in separators in logging configuration files. |
| 10731 |
|
| 10732 |
- bpo-3719: platform.architecture() fails if there are spaces in the path to |
| 10733 |
the Python binary. |
| 10734 |
|
| 10735 |
- bpo-3602: Moved test.test_support.catch_warning() to |
| 10736 |
warnings.catch_warnings() along with some API cleanup. Expanding the tests |
| 10737 |
for catch_warnings() also led to an improvement in the raising of a |
| 10738 |
DeprecationWarning related to warnings.warn_explicit(). |
| 10739 |
|
| 10740 |
- The deprecation warnings for the old camelCase threading API were removed. |
| 10741 |
|
| 10742 |
- logging: fixed lack of use of encoding attribute specified on a stream. |
| 10743 |
|
| 10744 |
- Silenced a trivial compiler warning in the sqlite module. |
| 10745 |
|
| 10746 |
- Fixed two format strings in the _collections module. |
| 10747 |
|
| 10748 |
- bpo-3703: _fileio.FileIO gave unhelpful error message when trying to open |
| 10749 |
a directory. |
| 10750 |
|
| 10751 |
- bpo-3708: os.urandom no longer goes into an infinite loop when passed a |
| 10752 |
non-integer floating point number. |
| 10753 |
|
| 10754 |
- bpo-3110: multiprocessing fails to compiel on solaris 10 due to missing |
| 10755 |
SEM_VALUE_MAX. |
| 10756 |
|
| 10757 |
- bpo-4301: Patch the logging module to add processName support, remove |
| 10758 |
_check_logger_class from multiprocessing. |
| 10759 |
|
| 10760 |
- bpo-2975: When compiling several extension modules with Visual Studio 2008 |
| 10761 |
from the same python interpreter, some environment variables would grow |
| 10762 |
without limit. |
| 10763 |
|
| 10764 |
- bpo-3643: Added a few more checks to _testcapi to prevent segfaults by |
| 10765 |
exploitation of poor argument checking. |
| 10766 |
|
| 10767 |
- sqlite3: Changed docstring of iterdump() to mark method as "Non-standard". |
| 10768 |
|
| 10769 |
- bpo-3103: Reduced globals symbols used by sqlite3 module and made sure all |
| 10770 |
remaining ones have "pysqlite_" prefix. |
| 10771 |
|
| 10772 |
- bpo-3846: Release the GIL during sqlite3_prepare calls. This improves |
| 10773 |
concurrent access to the same SQLite database from multiple |
| 10774 |
threads/processes. |
| 10775 |
|
| 10776 |
Tests |
| 10777 |
----- |
| 10778 |
|
| 10779 |
- bpo-3781: Add test.test_support.check_warnings() as a convenience wrapper |
| 10780 |
for warnings.catch_warnings() that makes it easier to check that expected |
| 10781 |
warning messages are being reported. |
| 10782 |
|
| 10783 |
- bpo-3796: Some tests functions were not enabled in test_float. |
| 10784 |
|
| 10785 |
- bpo-3768: Move test_py3kwarn over to the new API for catch_warnings(). |
| 10786 |
|
| 10787 |
Build |
| 10788 |
----- |
| 10789 |
|
| 10790 |
- bpo-3833: Use a different upgrade code for Win64 installers. |
| 10791 |
|
| 10792 |
- bpo-2271: Set SecureCustomProperties so that installation will properly |
| 10793 |
use the TARGETDIR even for unprivileged users. |
| 10794 |
|
| 10795 |
- Allow passing the MSI file name to merge.py. |
| 10796 |
|
| 10797 |
- bpo-3758: Rename the 'check' target to 'patchcheck' so as to not clash |
| 10798 |
with GNU build target guidelines. |
| 10799 |
|
| 10800 |
|
| 10801 |
What's New in Python 2.6 beta 3? |
| 10802 |
================================ |
| 10803 |
|
| 10804 |
*Release date: 20-Aug-2008* |
| 10805 |
|
| 10806 |
Core and Builtins |
| 10807 |
----------------- |
| 10808 |
|
| 10809 |
- bpo-1878: Remove Py_TPFLAGS_HAVE_VERSION_TAG from Py_TPFLAGS_DEFAULT when |
| 10810 |
not building the core. This means 3rd party extensions do not |
| 10811 |
automatically benefit from the class attribute cache; they will have to |
| 10812 |
explicitly add Py_TPFLAGS_HAVE_VERSION_TAG to their tp_flags field if they |
| 10813 |
care. This is a backwards compatibility feature; in 3.0, all types will |
| 10814 |
use the cache by default. |
| 10815 |
|
| 10816 |
- Keyword arguments can now follow starred arguments. (``f(a, *args, |
| 10817 |
keyword=23)`` is now valid syntax.) |
| 10818 |
|
| 10819 |
- ctypes function pointers that are COM methods have a boolean True value |
| 10820 |
again. |
| 10821 |
|
| 10822 |
- bpo-3139: Make buffer-interface thread-safe wrt. PyArg_ParseTuple, by |
| 10823 |
denying s# to parse objects that have a releasebuffer procedure, and |
| 10824 |
introducing s*. |
| 10825 |
|
| 10826 |
- bpo-3537: Fix an assertion failure when an empty but presized dict object |
| 10827 |
was stored in the freelist. |
| 10828 |
|
| 10829 |
- bpo-1481296: Make long(float('nan')) and int(float('nan')) raise |
| 10830 |
ValueError consistently across platforms. |
| 10831 |
|
| 10832 |
- bpo-3479: On platforms where sizeof(int) is smaller than sizeof(long) |
| 10833 |
(64bit Unix, for example), unichr() would truncate its argument and return |
| 10834 |
u'\x00' for unichr(2**32). Now it properly raises an OverflowError. |
| 10835 |
|
| 10836 |
- Apply security patches from Apple. |
| 10837 |
|
| 10838 |
- bpo-2542: Now that issubclass() may call arbitrary code, ensure that |
| 10839 |
PyErr_ExceptionMatches returns 0 when an exception occurs there. |
| 10840 |
|
| 10841 |
- bpo-1819: function calls with several named parameters are now on average |
| 10842 |
35% faster (as measured by pybench). |
| 10843 |
|
| 10844 |
- bpo-2378: An unexpected UnboundLocalError or NameError could appear when |
| 10845 |
the python debugger steps into a class statement: the free variables |
| 10846 |
(local variables defined in an outer scope) would be deleted from the |
| 10847 |
outer scope. |
| 10848 |
|
| 10849 |
- bpo-2620: Overflow checking when allocating or reallocating memory was not |
| 10850 |
always being done properly in some python types and extension modules. |
| 10851 |
PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been |
| 10852 |
updated to perform better checks and places in the code that would |
| 10853 |
previously leak memory on the error path when such an allocation failed |
| 10854 |
have been fixed. |
| 10855 |
|
| 10856 |
Library |
| 10857 |
------- |
| 10858 |
|
| 10859 |
- bpo-3612: Added some missing basic types in ctypes.wintypes. |
| 10860 |
|
| 10861 |
- The methods ``is_in_tuple()``, ``is_vararg()``, and ``is_keywordarg()`` of |
| 10862 |
symtable.Symbol have been deprecated for removal in 3.0 and the next |
| 10863 |
release. |
| 10864 |
|
| 10865 |
- bpo-2234: distutils failed for some versions of the cygwin compiler. The |
| 10866 |
version reported by these tools does not necessarily follow the python |
| 10867 |
version numbering scheme, so the module is less strict when parsing it. |
| 10868 |
|
| 10869 |
- bpo-2235: Added Py3k warnings for types which will become unhashable under |
| 10870 |
the stricter __hash__ inheritance rules in 3.0. Several types which did |
| 10871 |
not meet the rules for hash invariants and were already unhashable in 3.0 |
| 10872 |
have now been explicitly flagged as unhashable in 2.6 as well |
| 10873 |
(collections.Mapping, collections.Set, unittest.TestSuite, |
| 10874 |
xml.dom.minidom.NamedNodeMap, numbers.Number, UserList.UserList) |
| 10875 |
|
| 10876 |
- Update __all__ for cookielib, csv, os, urllib2, and weakref to include |
| 10877 |
things imported into the module but exposed as part of the module's API. |
| 10878 |
|
| 10879 |
- Remove an unneeded import of abc.ABCMeta from 'inspect'. |
| 10880 |
|
| 10881 |
- Remove unneeded imports of 'sys' and 'warnings' from 'io'. |
| 10882 |
|
| 10883 |
- Remove unneeded imports of 'warnings' from shelve, filecmp, and |
| 10884 |
dummy_thread. |
| 10885 |
|
| 10886 |
- bpo-3575: Incremental decoder's decode function now takes bytearray by |
| 10887 |
using 's*' instead of 't#'. |
| 10888 |
|
| 10889 |
- bpo-2222: Fixed reference leak when occurred os.rename() fails unicode |
| 10890 |
conversion on 2nd parameter. (windows only) |
| 10891 |
|
| 10892 |
- bpo-2464: urllib2 now supports a malformation in the URL received in a |
| 10893 |
redirect. |
| 10894 |
|
| 10895 |
- Silence the DeprecationWarning raised when importing mimetools in |
| 10896 |
BaseHTTPServer, cgi (and rfc822), httplib. |
| 10897 |
|
| 10898 |
- bpo-2776: fixed small issue when handling a URL with double slash after a |
| 10899 |
302 response in the case of not going through a proxy. |
| 10900 |
|
| 10901 |
- bpo-2676: in the email package, content-type parsing was hanging on |
| 10902 |
pathological input because of quadratic or exponential behaviour of a |
| 10903 |
regular expression. |
| 10904 |
|
| 10905 |
- bpo-3476: binary buffered reading through the new "io" library is now |
| 10906 |
thread-safe. |
| 10907 |
|
| 10908 |
- Silence the DeprecationWarning of rfc822 when it is imported by mimetools |
| 10909 |
since mimetools itself is deprecated. Because modules are cached, all |
| 10910 |
subsequent imports of rfc822 will not raise a visible DeprecationWarning. |
| 10911 |
|
| 10912 |
- bpo-3134: shutil referenced undefined WindowsError symbol. |
| 10913 |
|
| 10914 |
- bpo-1342811: Fix leak in Tkinter.Menu.delete. Commands associated to menu |
| 10915 |
entries were not deleted. |
| 10916 |
|
| 10917 |
- Copied the implementation of reduce() to _functools.reduce() to have a |
| 10918 |
version that did not raise a DeprecationWarning under -3. |
| 10919 |
|
| 10920 |
- bpo-3205: When iterating over a BZ2File fails allocating memory, raise a |
| 10921 |
MemoryError rather than silently stop the iteration. |
| 10922 |
|
| 10923 |
- bpo-3487: sre "bytecode" validator. Passing invalid "re-bytecode" to |
| 10924 |
_sre.compile() will now be rejected. This should not affect anybody since |
| 10925 |
the re.compile() function never generates invalid re-bytecode. |
| 10926 |
|
| 10927 |
- bpo-3436: Make csv.DictReader's fieldnames attribute a property so that |
| 10928 |
upon first access it can be automatically initialized from the csv file if |
| 10929 |
it wasn't initialized during instantiation. |
| 10930 |
|
| 10931 |
- bpo-2338: Create imp.reload() to help with transitioning to Python 3.0 as |
| 10932 |
the reload() built-in has been removed. |
| 10933 |
|
| 10934 |
- Changed code in the following modules/packages to remove warnings raised |
| 10935 |
while running under the ``-3`` flag: aifc, asynchat, asyncore, bdb, bsddb, |
| 10936 |
ConfigParser, cookielib, csv, difflib, distutils, DocXMLRPCServer, email, |
| 10937 |
filecmp, fileinput, inspect, logging, modulefinder, pdb, pickle, profile, |
| 10938 |
pstats, pydoc, re, rlcompleter, SimpleXMLRPCServer, shelve, socket, |
| 10939 |
subprocess, sqlite3, tarfile, Tkinter, test.test_support, textwrap, |
| 10940 |
threading, tokenize, traceback, urlparse, wsgiref, xml, xmlrpclib. |
| 10941 |
|
| 10942 |
- bpo-3039: Fix tarfile.TarFileCompat.writestr() which always raised an |
| 10943 |
AttributeError. |
| 10944 |
|
| 10945 |
- bpo-2523: Fix quadratic behaviour when read()ing a binary file without |
| 10946 |
asking for a specific length. This problem only affected files opened |
| 10947 |
using the new "io" module, not the built-in open() function. |
| 10948 |
|
| 10949 |
- bpo-3449: Update decimal module to use most recent specification (v. 1.68) |
| 10950 |
and tests (v. 2.58) from IBM. |
| 10951 |
|
| 10952 |
- bpo-3437: Bug fix in robotparser parsing of Allow: lines. |
| 10953 |
|
| 10954 |
- bpo-1592: Improve error reporting when operations are attempted on a |
| 10955 |
closed shelf. |
| 10956 |
|
| 10957 |
- Deprecate the "ast" parser function aliases. |
| 10958 |
|
| 10959 |
- bpo-3120: On 64-bit Windows the subprocess module was truncating handles. |
| 10960 |
|
| 10961 |
- bpo-3303: Fix a crash in locale.strcoll() when calling it with invalid |
| 10962 |
arguments. |
| 10963 |
|
| 10964 |
- bpo-3302: Fix several crashes when calling locale's gettext functions with |
| 10965 |
None arguments. |
| 10966 |
|
| 10967 |
- bpo-3389: Allow resolving dotted names for handlers in logging |
| 10968 |
configuration files. |
| 10969 |
|
| 10970 |
- Deprecate the sunaudio module for removal in Python 3.0. |
| 10971 |
|
| 10972 |
- bpo-3394: zipfile.writestr sets external attributes when passed a file |
| 10973 |
name rather than a ZipInfo instance, so files are extracted with mode 0600 |
| 10974 |
rather than 000 under Unix. |
| 10975 |
|
| 10976 |
- bpo-1857: subprocess.Popen.poll gained an additional _deadstate keyword |
| 10977 |
argument in python 2.5, this broke code that subclassed Popen to include |
| 10978 |
its own poll method. Fixed my moving _deadstate to an _internal_poll |
| 10979 |
method. |
| 10980 |
|
| 10981 |
Build |
| 10982 |
----- |
| 10983 |
|
| 10984 |
- Generate the PatternGrammar pickle during "make install". |
| 10985 |
|
| 10986 |
Documentation |
| 10987 |
------------- |
| 10988 |
|
| 10989 |
- bpo-2235: the C API function PyObject_HashNotImplemented and its |
| 10990 |
interaction with the tp_hash slot (added in 2.6b2) are now documented |
| 10991 |
|
| 10992 |
- bpo-643841: The language reference now provides more detailed coverage of |
| 10993 |
the lookup process for special methods. The disclaimers regarding lack of |
| 10994 |
coverage of new-style classes have also been removed, since the coverage |
| 10995 |
is now fairly reasonable. |
| 10996 |
|
| 10997 |
|
| 10998 |
What's New in Python 2.6 beta 2? |
| 10999 |
================================ |
| 11000 |
|
| 11001 |
*Release date: 17-Jul-2008* |
| 11002 |
|
| 11003 |
Core and Builtins |
| 11004 |
----------------- |
| 11005 |
|
| 11006 |
- bpo-3156: Fix inconsistent behavior of the bytearray type: all its methods |
| 11007 |
now allow for items objects that can be converted to an integer using |
| 11008 |
operator.index(). |
| 11009 |
|
| 11010 |
- bpo-3360: Fix incorrect parsing of '020000000000.0', which produced a |
| 11011 |
ValueError instead of giving the correct float. |
| 11012 |
|
| 11013 |
- bpo-3083: Add alternate (#) formatting for bin, oct, hex output for |
| 11014 |
str.format(). This adds the prefix 0b, 0o, or 0x, respectively. |
| 11015 |
|
| 11016 |
- bpo-3008: the float type has a new instance method 'float.hex' and a new |
| 11017 |
class method 'float.fromhex' to convert floating-point numbers to and from |
| 11018 |
hexadecimal strings, respectively. |
| 11019 |
|
| 11020 |
- bpo-2235: __hash__ is once again inherited by default. To allow |
| 11021 |
collections.Hashable to remain meaningful in the presence of the default |
| 11022 |
hash implementation (object.__hash__), it is now possible to explicit |
| 11023 |
block inheritance of hash by setting __hash__=None at the Python level, or |
| 11024 |
tp_hash=PyObject_HashNotImplemented at the C level. |
| 11025 |
|
| 11026 |
- bpo-3221: Issue a RuntimeWarning instead of raising SystemError if the |
| 11027 |
parent module cannot be found while performing an absolute import. This |
| 11028 |
means that an incorrectly defined __package__ attribute will now only |
| 11029 |
prevent relative imports in that module rather than causing all imports |
| 11030 |
from that module to fail. |
| 11031 |
|
| 11032 |
- bpo-2517: Allow unicode messages in Exceptions again by correctly |
| 11033 |
bypassing the instance dictionary when looking up __unicode__ on new-style |
| 11034 |
classes. |
| 11035 |
|
| 11036 |
- bpo-3242: Fix a crash inside the print statement, if sys.stdout is set to |
| 11037 |
a custom object whose write() method happens to install another file in |
| 11038 |
sys.stdout. |
| 11039 |
|
| 11040 |
- bpo-3088: Corrected a race condition in classes derived from |
| 11041 |
threading.local: the first member set by a thread could be saved in |
| 11042 |
another thread's dictionary. |
| 11043 |
|
| 11044 |
- bpo-3004: Minor change to slice.indices(): the start and stop arguments |
| 11045 |
are now treated identically, making the behaviour easier to describe and |
| 11046 |
understand. For example, slice(None, -10, 1).indices(9) now returns (0, 0, |
| 11047 |
1) instead of (0, -1, 1), and slice(None, 10, -1).indices(10) returns (9, |
| 11048 |
9, -1) instead of (9, 10, -1). |
| 11049 |
|
| 11050 |
- bpo-3219: Calling a function with repeated keyword arguments, f(a=2, |
| 11051 |
a=23), would not cause a syntax error. This was a regression from 2.4 |
| 11052 |
caused by the switch to the new compiler. |
| 11053 |
|
| 11054 |
- bpo-2862: Make int and float freelist management consistent with other |
| 11055 |
freelists. Changes their CompactFreeList apis into ClearFreeList apis and |
| 11056 |
calls them via gc.collect(). |
| 11057 |
|
| 11058 |
Library |
| 11059 |
------- |
| 11060 |
|
| 11061 |
- bpo-3554: ctypes.string_at and ctypes.wstring_at did call Python api |
| 11062 |
functions without holding the GIL, which could lead to a fatal error when |
| 11063 |
they failed. |
| 11064 |
|
| 11065 |
- bpo-799428: Fix Tkinter.Misc._nametowidget to unwrap Tcl command objects. |
| 11066 |
|
| 11067 |
- bpo-3395: fix reference in test_multiprocessing to old debugInfo method |
| 11068 |
|
| 11069 |
- bpo-3312: Fix two crashes in sqlite3. |
| 11070 |
|
| 11071 |
- bpo-1608818: Fix misbehavior in os.listdir() if readdir() fails. |
| 11072 |
|
| 11073 |
- bpo-3125: Remove copy_reg in multiprocessing and replace it with |
| 11074 |
ForkingPickler.register() to resolve conflict with ctypes. |
| 11075 |
|
| 11076 |
- bpo-3090: Fixed ARCHFLAGS parsing on OS/X |
| 11077 |
|
| 11078 |
- bpo-3313: Fixed a crash when a failed dlopen() call does not set a valid |
| 11079 |
dlerror() message. |
| 11080 |
|
| 11081 |
- bpo-3258: Fixed a crash when a ctypes POINTER type to an incomplete |
| 11082 |
structure was created. |
| 11083 |
|
| 11084 |
- bpo-3339: dummy_thread.acquire() should not return None. |
| 11085 |
|
| 11086 |
- bpo-3285: Fractions from_float() and from_decimal() accept Integral |
| 11087 |
arguments. |
| 11088 |
|
| 11089 |
- bpo-3301: Bisect module behaved badly when lo was negative. |
| 11090 |
|
| 11091 |
- bpo-839496: SimpleHTTPServer used to open text files in text mode. This is |
| 11092 |
both unnecessary (HTTP allows text content to be sent in several forms) |
| 11093 |
and wrong because the actual transmitted size could differ from the |
| 11094 |
content-length. The problem had been corrected in the 2.4 branch, but |
| 11095 |
never merged into trunk. |
| 11096 |
|
| 11097 |
- bpo-2663: add filtering capability to shutil.copytree(). |
| 11098 |
|
| 11099 |
- bpo-1622: Correct interpretation of various ZIP header fields. |
| 11100 |
|
| 11101 |
- bpo-1526: Allow more than 64k files to be added to Zip64 file. |
| 11102 |
|
| 11103 |
- bpo-1746: Correct handling of zipfile archive comments (previously |
| 11104 |
archives with comments over 4k were flagged as invalid). Allow writing Zip |
| 11105 |
files with archives by setting the 'comment' attribute of a ZipFile. |
| 11106 |
|
| 11107 |
- bpo-449227: The rlcompleter module now adds "(" to callable objects when |
| 11108 |
completed. |
| 11109 |
|
| 11110 |
- bpo-3190: Pydoc now hides the automatic module attribute __package__ (the |
| 11111 |
handling is now the same as that of other special attributes like |
| 11112 |
__name__). |
| 11113 |
|
| 11114 |
- bpo-2885: The urllib.urlopen() function has been deprecated for removal in |
| 11115 |
Python 3.0 in favor of urllib2.urlopen(). |
| 11116 |
|
| 11117 |
- bpo-2113: Fix error in subprocess.Popen if the select system call is |
| 11118 |
interrupted by a signal. |
| 11119 |
|
| 11120 |
- bpo-3309: Fix bz2.BZFile iterator to release its internal lock properly |
| 11121 |
when raising an exception due to the bz2file being closed. Prevents a |
| 11122 |
deadlock. |
| 11123 |
|
| 11124 |
- bpo-3094: httplib.HTTPSConnection Host: headers no longer include the |
| 11125 |
redundant ":443" port number designation when the connection is using the |
| 11126 |
default https port (443). |
| 11127 |
|
| 11128 |
- bpo-874900: after an os.fork() call the threading module state is cleaned |
| 11129 |
up in the child process to prevent deadlock and report proper thread |
| 11130 |
counts if the new process uses the threading module. |
| 11131 |
|
| 11132 |
Tests |
| 11133 |
----- |
| 11134 |
|
| 11135 |
- test.test_support.catch_warning now keeps track of all warnings it sees |
| 11136 |
and is now better documented. Explicit unit tests for this context manager |
| 11137 |
have been added to test_warnings. |
| 11138 |
|
| 11139 |
Build |
| 11140 |
----- |
| 11141 |
|
| 11142 |
- bpo-3215: Build sqlite3 as sqlite3.dll, not sqlite3.pyd. |
| 11143 |
|
| 11144 |
Documentation |
| 11145 |
------------- |
| 11146 |
|
| 11147 |
- Document that robotparser has been renamed to urllib.robotparser in Python |
| 11148 |
3.0. |
| 11149 |
|
| 11150 |
- Document that urlparse has been renamed to urllib.parse in Python 3.0. |
| 11151 |
|
| 11152 |
- Document that urllib2 is split across multiple modules and renamed in |
| 11153 |
Python 3.0. |
| 11154 |
|
| 11155 |
- Document that urllib is split across multiple modules and renamed in |
| 11156 |
Python 3.0. |
| 11157 |
|
| 11158 |
|
| 11159 |
What's New in Python 2.6 beta 1? |
| 11160 |
================================ |
| 11161 |
|
| 11162 |
*Release date: 18-June-2008* |
| 11163 |
|
| 11164 |
Core and Builtins |
| 11165 |
----------------- |
| 11166 |
|
| 11167 |
- bpo-3211: warnings.warn_explicit() did not guard against its 'registry' |
| 11168 |
argument being anything other than a dict or None. Also fixed a bug in |
| 11169 |
error handling when 'message' and 'category' were both set to None, |
| 11170 |
triggering a bus error. |
| 11171 |
|
| 11172 |
- bpo-3100: Corrected a crash on deallocation of a subclassed weakref which |
| 11173 |
holds the last (strong) reference to its referent. |
| 11174 |
|
| 11175 |
- Add future_builtins.ascii(). |
| 11176 |
|
| 11177 |
- Several set methods now accept multiple arguments: update(), union(), |
| 11178 |
intersection(), intersection_update(), difference(), and |
| 11179 |
difference_update(). |
| 11180 |
|
| 11181 |
- bpo-2898: Added sys.getsizeof() to retrieve size of objects in bytes. |
| 11182 |
|
| 11183 |
- New environment variable PYTHONIOENCODING. |
| 11184 |
|
| 11185 |
- bpo-2488: Add sys.maxsize. |
| 11186 |
|
| 11187 |
- bpo-2353: file.xreadlines() now emits a Py3k warning. |
| 11188 |
|
| 11189 |
- bpo-2863: generators now have a ``gen.__name__`` attribute that equals |
| 11190 |
``gen.gi_code.co_name``, like ``func.__name___`` that equals |
| 11191 |
``func.func_code.co_name``. The repr() of a generator now also contains |
| 11192 |
this name. |
| 11193 |
|
| 11194 |
- bpo-2831: enumerate() now has a ``start`` argument. |
| 11195 |
|
| 11196 |
- bpo-2801: fix bug in the float.is_integer method where a ValueError was |
| 11197 |
sometimes incorrectly raised. |
| 11198 |
|
| 11199 |
- bpo-2790: sys.flags was not properly exposing its bytes_warning attribute. |
| 11200 |
|
| 11201 |
- bpo-2196: hasattr() now lets exceptions which do not inherit Exception |
| 11202 |
(KeyboardInterrupt, and SystemExit) propagate instead of ignoring them. |
| 11203 |
|
| 11204 |
- Added checks for integer overflows, contributed by Google. Some are only |
| 11205 |
available if asserts are left in the code, in cases where they can't be |
| 11206 |
triggered from Python code. |
| 11207 |
|
| 11208 |
Library |
| 11209 |
------- |
| 11210 |
|
| 11211 |
- bpo-1179: [CVE-2007-4965] Integer overflow in imageop module. |
| 11212 |
|
| 11213 |
- bpo-3116: marshal.dumps() had quadratic behavior for strings > 32Mb. |
| 11214 |
|
| 11215 |
- bpo-2138: Add factorial() to the math module. |
| 11216 |
|
| 11217 |
- The heapq module does comparisons using LT instead of LE. This makes its |
| 11218 |
implementation match that used by list.sort(). |
| 11219 |
|
| 11220 |
- bpo-2819: add full-precision summation function to math module, based on |
| 11221 |
Hettinger's ASPN Python Cookbook recipe. |
| 11222 |
|
| 11223 |
- bpo-2592: delegate nb_index and the floor/truediv slots in weakref.proxy. |
| 11224 |
|
| 11225 |
- Support os.O_ASYNC and fcntl.FASYNC if the constants exist on the |
| 11226 |
platform. |
| 11227 |
|
| 11228 |
- Support for Windows 9x has been removed from the winsound module. |
| 11229 |
|
| 11230 |
- bsddb module updated to version 4.7.3. |
| 11231 |
http://www.jcea.es/programacion/pybsddb.htm#bsddb3-4.7.3. This code should |
| 11232 |
be compatible with Python 3.0. |
| 11233 |
|
| 11234 |
- bpo-2858: Fix potential memory corruption when bsddb.db.DBEnv.lock_get and |
| 11235 |
other bsddb.db object constructors raised an exception. |
| 11236 |
|
| 11237 |
- bpo-2669: bsddb/__init__.py iteration no longer silently fails when the |
| 11238 |
database has changed size during iteration. It now raises a RuntimeError |
| 11239 |
in the same manner as a dictionary. |
| 11240 |
|
| 11241 |
- bpo-2870: cmathmodule.c compile error. |
| 11242 |
|
| 11243 |
- Added a threading.Thread.ident property. |
| 11244 |
|
| 11245 |
- logging.config: Removed out-of-date comment in _install_handlers and used |
| 11246 |
issubclass in place of equality comparison of classes. |
| 11247 |
|
| 11248 |
- bpo-2722: Now the os.getcwd() supports very long path names. |
| 11249 |
|
| 11250 |
- bpo-2888: Fixed the behaviour of pprint when working with nested |
| 11251 |
structures, to match the behaviour of 2.5 and 3.0 (now follows the common |
| 11252 |
sense). |
| 11253 |
|
| 11254 |
- bpo-1817: cgi now correctly handles the querystring on POST requests |
| 11255 |
|
| 11256 |
- bpo-3136: fileConfig()'s disabling of old loggers is now conditional via |
| 11257 |
an optional disable_existing_loggers parameter, but the default value is |
| 11258 |
such that the old behaviour is preserved. Thanks to Leandro Lucarella for |
| 11259 |
the patch. |
| 11260 |
|
| 11261 |
- bpo-3126: StreamHandler and FileHandler check before calling "flush" and |
| 11262 |
"close" that the stream object has these, using hasattr (thanks to bobf |
| 11263 |
for the patch). |
| 11264 |
|
| 11265 |
- bpo-2912: platform.uname now tries to determine unknown information even |
| 11266 |
if os.uname exists. |
| 11267 |
|
| 11268 |
- The rfc822 module has been deprecated for removal in 3.0. |
| 11269 |
|
| 11270 |
- The mimetools module has been deprecated for removal in 3.0. |
| 11271 |
|
| 11272 |
- The ctypes.byref function now takes an optional second parameter which |
| 11273 |
specifies an offset in bytes for the constructed pointer-like object. |
| 11274 |
|
| 11275 |
- Added the ast module. |
| 11276 |
|
| 11277 |
- Added the multiprocessing module, PEP 371. |
| 11278 |
|
| 11279 |
- Factored out the indentation cleaning from inspect.getdoc() into |
| 11280 |
inspect.cleandoc() to ease standalone use. |
| 11281 |
|
| 11282 |
- bpo-1798: Add ctypes calling convention that allows safe access to errno. |
| 11283 |
|
| 11284 |
- bpo-2404: ctypes objects support the new pep3118 buffer interface. |
| 11285 |
|
| 11286 |
- bpo-2125: Add GetInteger and GetString methods for msilib.Record objects. |
| 11287 |
|
| 11288 |
- bpo-2782: The datetime module's strftime methods now accept unicode format |
| 11289 |
strings just as time.strftime always has. |
| 11290 |
|
| 11291 |
- The sgmllib and htmllib modules have been deprecated for removal in Python |
| 11292 |
3.0. |
| 11293 |
|
| 11294 |
- bpo-3011: locale module alias table was updated to the latest version from |
| 11295 |
the X.org locale.alias file. |
| 11296 |
|
| 11297 |
- bpo-1797: ctypes NULL function pointers have a False boolean value now. |
| 11298 |
|
| 11299 |
- bpo-2985: Allow 64-bit integer responses (``<i8>``) in XMLRPC transfers. |
| 11300 |
|
| 11301 |
- bpo-2877: The UserString.MutableString class has been removed in Python |
| 11302 |
3.0. |
| 11303 |
|
| 11304 |
- Do not close external file objects passed to tarfile.open(mode='w:bz2') |
| 11305 |
when the TarFile is closed. |
| 11306 |
|
| 11307 |
- bpo-2959: For consistency with other file-like objects, gzip's |
| 11308 |
GzipFile.close() can now be called multiple times without raising an |
| 11309 |
exception. |
| 11310 |
|
| 11311 |
- bpo-1390: Raise ValueError in toxml when an invalid comment would |
| 11312 |
otherwise be produced. |
| 11313 |
|
| 11314 |
- bpo-2914: TimedRotatingFileHandler now takes an optional keyword argument |
| 11315 |
"utc" to use UTC time rather than local time. |
| 11316 |
|
| 11317 |
- bpo-2929: TimedRotatingFileHandler was using the wrong path when deleting |
| 11318 |
old log files (filename only instead of full path). |
| 11319 |
|
| 11320 |
- bpo-1775025: You can now specify zipfile members to open(), read() or |
| 11321 |
extract() via a ZipInfo instance. This allows handling duplicate |
| 11322 |
filenames in zipfiles. |
| 11323 |
|
| 11324 |
- bpo-961805: Fix Text.edit_modified() in Tkinter. |
| 11325 |
|
| 11326 |
- bpo-1793: Function ctypes.util.find_msvcrt() added that returns the name |
| 11327 |
of the C runtime library that Python uses. ctypes.util.find_library(name) |
| 11328 |
now call this function when name is 'm' or 'c'. |
| 11329 |
|
| 11330 |
- The statvfs module has been deprecated for removal in Python 3.0. |
| 11331 |
|
| 11332 |
- The sunaudiodev and SUNAUDIODEV modules have been deprecated for removal |
| 11333 |
in Python 3.0. |
| 11334 |
|
| 11335 |
- The WAIT module from IRIX has been deprecated for removal in Python 3.0. |
| 11336 |
|
| 11337 |
- The torgb module from IRIX has been deprecated for removal in Python 3.0. |
| 11338 |
|
| 11339 |
- The SV module from IRIX has been deprecated for removal in Python 3.0. |
| 11340 |
|
| 11341 |
- The readcd module from IRIX has been deprecated for removal in Python 3.0. |
| 11342 |
|
| 11343 |
- The panelparser module from IRIX has been deprecated for removal in Python |
| 11344 |
3.0. |
| 11345 |
|
| 11346 |
- The panel module from IRIX has been deprecated for removal in Python 3.0. |
| 11347 |
|
| 11348 |
- The jpeg module from IRIX has been deprecated for removal in Python 3.0. |
| 11349 |
|
| 11350 |
- The IOCTL module from IRIX has been deprecated for removal in Python 3.0. |
| 11351 |
|
| 11352 |
- The IN module from IRIX has been deprecated for removal in Python 3.0. |
| 11353 |
|
| 11354 |
- The imgfile module from IRIX has been deprecated for removal in Python |
| 11355 |
3.0. |
| 11356 |
|
| 11357 |
- The GLWS module from IRIX has been deprecated for removal in Python 3.0. |
| 11358 |
|
| 11359 |
- The GET module from IRIX has been deprecated for removal in Python 3.0. |
| 11360 |
|
| 11361 |
- The fm module from IRIX has been deprecated for removal in Python 3.0. |
| 11362 |
|
| 11363 |
- The FL, flp, and fl modules from IRIX have been deprecated for removal in |
| 11364 |
Python 3.0. |
| 11365 |
|
| 11366 |
- The FILE module on IRIX has been deprecated for removal in Python 3.0. |
| 11367 |
|
| 11368 |
- The ERRNO module on IRIX has been deprecated for removal in Python 3.0. |
| 11369 |
|
| 11370 |
- The DEVICE, GL, gl, and cgen modules (which indirectly includes |
| 11371 |
cgensupport) have been deprecated for removal in Python 3.0. |
| 11372 |
|
| 11373 |
- The CL, CL_old, and cl modules for IRIX have been deprecated for removal |
| 11374 |
in Python 3.0. |
| 11375 |
|
| 11376 |
- The cdplayer module for IRIX has been deprecated for removal in Python |
| 11377 |
3.0. |
| 11378 |
|
| 11379 |
- The cddb module for IRIX has been deprecated for removal in Python 3.0. |
| 11380 |
|
| 11381 |
- The cd and CD modules for IRIX have been deprecated for removal in Python |
| 11382 |
3.0. |
| 11383 |
|
| 11384 |
- The al and AL modules for IRIX have been deprecated for removal in Python |
| 11385 |
3.0. |
| 11386 |
|
| 11387 |
- bpo-1713041: fix pprint's handling of maximum depth. |
| 11388 |
|
| 11389 |
- The timing module has been deprecated for removal in Python 3.0. |
| 11390 |
|
| 11391 |
- The sv module has been deprecated for removal in Python 3.0. |
| 11392 |
|
| 11393 |
- The multifile module has been deprecated as per PEP 4. |
| 11394 |
|
| 11395 |
- The imageop module has been deprecated for removal in Python 3.0. |
| 11396 |
|
| 11397 |
- bpo-2250: Exceptions raised during evaluation of names in rlcompleter's |
| 11398 |
``Completer.complete()`` method are now caught and ignored. |
| 11399 |
|
| 11400 |
- bpo-2659: Added ``break_on_hyphens`` option to textwrap TextWrapper class. |
| 11401 |
|
| 11402 |
- The mhlib module has been deprecated for removal in Python 3.0. |
| 11403 |
|
| 11404 |
- The linuxaudiodev module has been deprecated for removal in Python 3.0. |
| 11405 |
|
| 11406 |
- The ihooks module has been deprecated for removal in Python 3.0. |
| 11407 |
|
| 11408 |
- The fpformat module has been deprecated for removal in Python 3.0. |
| 11409 |
|
| 11410 |
- The dl module has been deprecated for removal in Python 3.0. |
| 11411 |
|
| 11412 |
- The Canvas module has been deprecated for removal in Python 3.0. |
| 11413 |
|
| 11414 |
- The compiler package has been deprecated for removal in Python 3.0. |
| 11415 |
|
| 11416 |
- The Bastion and rexec modules have been deprecated for removal in Python |
| 11417 |
3.0. |
| 11418 |
|
| 11419 |
- The bsddb185 module has been deprecated for removal in Python 3.0. |
| 11420 |
|
| 11421 |
- The pure module has been deprecated for removal in Python 3.0. |
| 11422 |
|
| 11423 |
- bpo-2487: change the semantics of math.ldexp(x, n) when n is too large to |
| 11424 |
fit in a C long. ldexp(x, n) now returns a zero (with suitable sign) if n |
| 11425 |
is large and negative; previously, it raised OverflowError. |
| 11426 |
|
| 11427 |
- The toaiff module has been deprecated for removal in Python 3.0. |
| 11428 |
|
| 11429 |
- The test.testall module has been deprecated for removal in Python 3.0. |
| 11430 |
|
| 11431 |
- The new module has been deprecated for removal in Python 3.0. |
| 11432 |
|
| 11433 |
- The user module has been deprecated for removal in Python 3.0. |
| 11434 |
|
| 11435 |
- The stringold module has been deprecated for removal in Python 3.0. |
| 11436 |
|
| 11437 |
- The mutex module has been deprecated for removal in Python 3.0. |
| 11438 |
|
| 11439 |
- The imputil module has been deprecated for removal in Python 3.0. |
| 11440 |
|
| 11441 |
- test.test_support.catch_warning() gained a 'record' argument. |
| 11442 |
|
| 11443 |
- os.path.walk is deprecated in favor of os.walk. |
| 11444 |
|
| 11445 |
- pdb gained the "until" command. |
| 11446 |
|
| 11447 |
- The Mac Modules (including Carbon) have been deprecated for removal in |
| 11448 |
Python 3.0. |
| 11449 |
|
| 11450 |
- Library: on MacOS X you can now set ``ARCHFLAGS`` in the shell environment |
| 11451 |
to control the '-arch' flags that are used to build an extension. This was |
| 11452 |
added for compatibility with Apple's build of Python. |
| 11453 |
|
| 11454 |
- The bundled OSX-specific copy of libbffi is now in sync with the version |
| 11455 |
shipped with PyObjC 2.0 and includes support for x86_64 and ppc64 |
| 11456 |
platforms. |
| 11457 |
|
| 11458 |
- The threading module gained aliases for names that will be removed in the |
| 11459 |
3.x series. |
| 11460 |
|
| 11461 |
Build |
| 11462 |
----- |
| 11463 |
|
| 11464 |
- The Windows installer now includes Tk 8.5, bzip2 1.0.5, and SQLite 3.5.9. |
| 11465 |
|
| 11466 |
- bpo-1722225: Support QNX 6. |
| 11467 |
|
| 11468 |
- ``Lib/lib-old`` is now added to sys.path. |
| 11469 |
|
| 11470 |
- On MacOS X it is now possible to install the framework in 64-bit mode or |
| 11471 |
even as a 4-way universal binary (that is, PPC, i386, PPC64 and x86_64 |
| 11472 |
support in one binary). |
| 11473 |
|
| 11474 |
This is controlled by the configure argument ``--with-universal-archs``: |
| 11475 |
|
| 11476 |
- ``--with-universal-archs=all``: install 4-way universal |
| 11477 |
|
| 11478 |
- ``--with-universal-archs=32-bit``: install 2-way universal, 32-bit (the |
| 11479 |
default) |
| 11480 |
|
| 11481 |
- ``--with-universal-archs=64-bit``: install 2-way universal, 64-bit |
| 11482 |
|
| 11483 |
This option should be used in combination with ``--enable-universalsdk=``. |
| 11484 |
|
| 11485 |
NOTE: 64-bit and 4-way builds are only suppported on Mac OS X 10.5 (or |
| 11486 |
later). |
| 11487 |
|
| 11488 |
C API |
| 11489 |
----- |
| 11490 |
|
| 11491 |
- Add ``PyType_Modified()`` as a public API to clear the type cache. |
| 11492 |
|
| 11493 |
- The PyBytes functions have been renamed to PyByteArray. |
| 11494 |
|
| 11495 |
- The PyString functions have been renamed to PyBytes. A batch of defines |
| 11496 |
were added so that the linker still sees the original PyString names. |
| 11497 |
|
| 11498 |
|
| 11499 |
What's New in Python 2.6 alpha 3? |
| 11500 |
================================= |
| 11501 |
|
| 11502 |
*Release date: 08-May-2008* |
| 11503 |
|
| 11504 |
Core and Builtins |
| 11505 |
----------------- |
| 11506 |
|
| 11507 |
- bpo-2719: backported the ``next()`` builtin from Python 3. |
| 11508 |
|
| 11509 |
- bpo-2681: The octal literal ``0o8`` was incorrecly acctepted. Now it |
| 11510 |
properly raises a SyntaxError. |
| 11511 |
|
| 11512 |
- bpo-2617: Reserved -J and -X arguments for Jython, IronPython and other |
| 11513 |
implementations of Python. |
| 11514 |
|
| 11515 |
- Implemented PEP 370: Per user site-packages directory. |
| 11516 |
|
| 11517 |
Library |
| 11518 |
------- |
| 11519 |
|
| 11520 |
- bpo-2670: Fix a failure in urllib2.build_opener(), when passed two |
| 11521 |
handlers that derive the same default base class. |
| 11522 |
|
| 11523 |
- Added kill, terminate and send_signal(sig) to subprocess.Popen. |
| 11524 |
|
| 11525 |
- Added phase(z) -> phi, polar(z) -> r, phi and rect(r, phi) -> z to the |
| 11526 |
cmath module. |
| 11527 |
|
| 11528 |
- Four new methods were added to the math and cmath modules: acosh, asinh, |
| 11529 |
atanh and log1p. |
| 11530 |
|
| 11531 |
- zlib.decompressobj().flush(value) no longer crashes the interpreter when |
| 11532 |
passed a value less than or equal to zero. |
| 11533 |
|
| 11534 |
- bpo-1631171: Re-implement the 'warnings' module in C (the original Python |
| 11535 |
code has been kept as backup). This will allow for using the 'warning's |
| 11536 |
machinery in such places as the parser where use of pure Python code is |
| 11537 |
not possible. Both the ``showarning()`` and ``formatwarning()`` gain an |
| 11538 |
optional 'line' argument which is not called by default for |
| 11539 |
backwards-compatibility reasons. Setting ``warnings.showwarning()`` to an |
| 11540 |
implementation that lacks support for the ``line`` argument will raise a |
| 11541 |
DeprecationWarning. |
| 11542 |
|
| 11543 |
- The audiodev module has been deprecated for removal in Python 3.0. |
| 11544 |
|
| 11545 |
- bpo-2750: Add the 'json' package. Based on simplejson 1.9 and contributed |
| 11546 |
by Bob Ippolito. |
| 11547 |
|
| 11548 |
- bpo-1734346: Support Unicode file names for zipfiles. |
| 11549 |
|
| 11550 |
- bpo-2581: distutils: Vista UAC/elevation support for bdist_wininst. |
| 11551 |
|
| 11552 |
- bpo-2635: Fix bug in 'fix_sentence_endings' textwrap.fill option, where an |
| 11553 |
extra space was added after a word containing (but not ending in) '.', '!' |
| 11554 |
or '?'. |
| 11555 |
|
| 11556 |
- Add from_buffer() and from_buffer_copy() class methods to ctypes data |
| 11557 |
types. |
| 11558 |
|
| 11559 |
- bpo-2682: ctypes callback functions no longer contain a cyclic reference |
| 11560 |
to themselves. |
| 11561 |
|
| 11562 |
- The getpass module has been improved on Unix. It now uses /dev/tty by |
| 11563 |
default and uses stderr instead of stdout. A GetPassWarning is issued |
| 11564 |
when input echo cannot be controlled. |
| 11565 |
|
| 11566 |
- bpo-2014: Allow XML-RPC datetime objects to have dates before 1900-01-01. |
| 11567 |
|
| 11568 |
- bpo-2439: Added new function pkgutil.get_data(), which is a convenience |
| 11569 |
wrapper for the PEP 302 get_data() API. |
| 11570 |
|
| 11571 |
- bpo-2616: The ctypes.pointer() and ctypes.POINTER() functions are now |
| 11572 |
implemented in C for better performance. |
| 11573 |
|
| 11574 |
- bpo-2408: The ``_types`` module, which was used as in implementation |
| 11575 |
detail of the public ``types`` module, has been removed and replaced by |
| 11576 |
pure python code. |
| 11577 |
|
| 11578 |
- bpo-2513: distutils on Windows is now capable of cross-compiling extension |
| 11579 |
modules between 32 and 64 bit platforms. See the distutls build |
| 11580 |
documentation for more information. |
| 11581 |
|
| 11582 |
- bpo-815646: Individual file objects may now be used from multiple threads |
| 11583 |
at once without fear of crashing the Python interpreter. If file.close() |
| 11584 |
is called while an object is in use by another thread an IOError exception |
| 11585 |
will be raised and the file will not be closed. |
| 11586 |
|
| 11587 |
- The bundled libffi copy is now in sync with the recently released |
| 11588 |
libffi3.0.5 version, apart from some small changes to |
| 11589 |
Modules/_ctypes/libffi/configure.ac. |
| 11590 |
|
| 11591 |
- bpo-2385: distutils.core.run_script() makes __file__ available, so the |
| 11592 |
controlled environment will more closely mirror the typical script |
| 11593 |
environment. This supports setup.py scripts that refer to data files. |
| 11594 |
|
| 11595 |
Tests |
| 11596 |
----- |
| 11597 |
|
| 11598 |
- bpo-2550: The approach used by client/server code for obtaining ports to |
| 11599 |
listen on in network-oriented tests has been refined in an effort to |
| 11600 |
facilitate running multiple instances of the entire regression test suite |
| 11601 |
in parallel without issue. test_support.bind_port() has been fixed such |
| 11602 |
that it will always return a unique port -- which wasn't always the case |
| 11603 |
with the previous implementation, especially if socket options had been |
| 11604 |
set that affected address reuse (i.e. SO_REUSEADDR, SO_REUSEPORT). The |
| 11605 |
new implementation of bind_port() will actually raise an exception if it |
| 11606 |
is passed an AF_INET/SOCK_STREAM socket with either the SO_REUSEADDR or |
| 11607 |
SO_REUSEPORT socket option set. Furthermore, if available, bind_port() |
| 11608 |
will set the SO_EXCLUSIVEADDRUSE option on the socket it's been passed. |
| 11609 |
This currently only applies to Windows. This option prevents any other |
| 11610 |
sockets from binding to the host/port we've bound to, thus removing the |
| 11611 |
possibility of the 'non-deterministic' behaviour, as Microsoft puts it, |
| 11612 |
that occurs when a second SOCK_STREAM socket binds and accepts to a |
| 11613 |
host/port that's already been bound by another socket. The optional |
| 11614 |
preferred port parameter to bind_port() has been removed. Under no |
| 11615 |
circumstances should tests be hard coding ports! |
| 11616 |
|
| 11617 |
test_support.find_unused_port() has also been introduced, which will pass |
| 11618 |
a temporary socket object to bind_port() in order to obtain an unused |
| 11619 |
port. The temporary socket object is then closed and deleted, and the port |
| 11620 |
is returned. This method should only be used for obtaining an unused port |
| 11621 |
in order to pass to an external program (i.e. the -accept [port] argument |
| 11622 |
to openssl's s_server mode) or as a parameter to a server-oriented class |
| 11623 |
that doesn't give you direct access to the underlying socket used. |
| 11624 |
|
| 11625 |
Finally, test_support.HOST has been introduced, which should be used for |
| 11626 |
the host argument of any relevant socket calls (i.e. bind and connect). |
| 11627 |
|
| 11628 |
The following tests were updated to following the new conventions: |
| 11629 |
test_socket, test_smtplib, test_asyncore, test_ssl, test_httplib, |
| 11630 |
test_poplib, test_ftplib, test_telnetlib, test_socketserver, |
| 11631 |
test_asynchat and test_socket_ssl. |
| 11632 |
|
| 11633 |
It is now possible for multiple instances of the regression test suite to |
| 11634 |
run in parallel without issue. |
| 11635 |
|
| 11636 |
Build |
| 11637 |
----- |
| 11638 |
|
| 11639 |
- bpo-1496032: On alpha, use -mieee when gcc is the compiler. |
| 11640 |
|
| 11641 |
- bpo-2544: On HP-UX systems, use 'gcc -shared' for linking when gcc is used |
| 11642 |
as compiler. |
| 11643 |
|
| 11644 |
- bpo-2573: On MacOS X it is now possible to install the framework with a |
| 11645 |
different name using --with-framework-name=NAME. |
| 11646 |
|
| 11647 |
C API |
| 11648 |
----- |
| 11649 |
|
| 11650 |
- Added implementation of copysign, acosh, asinh, atanh and log1p to the new |
| 11651 |
files Include/pymath.h and Python/pymath.h for platforms which provide the |
| 11652 |
functions through their libm. The files also contains several helpers and |
| 11653 |
constants for math. |
| 11654 |
|
| 11655 |
- Added a new convenience macro, PyErr_WarnPy3k, for issuing Py3k warnings. |
| 11656 |
|
| 11657 |
|
| 11658 |
What's New in Python 2.6 alpha 2? |
| 11659 |
================================= |
| 11660 |
|
| 11661 |
*Release date: 02-Apr-2008* |
| 11662 |
|
| 11663 |
Core and Builtins |
| 11664 |
----------------- |
| 11665 |
|
| 11666 |
- bpo-1733757: The interpreter would hang on shutdown if the tracing |
| 11667 |
function set by sys.settrace is still active and happens to call |
| 11668 |
threading.currentThread(). |
| 11669 |
|
| 11670 |
- bpo-1442: properly report exceptions when the PYTHONSTARTUP file cannot be |
| 11671 |
executed. |
| 11672 |
|
| 11673 |
- The compilation of a class nested in another class used to leak one |
| 11674 |
reference on the outer class name. |
| 11675 |
|
| 11676 |
- bpo-1810: compile() can now compile _ast trees as returned by |
| 11677 |
``compile(..., PyCF_ONLY_AST)``. |
| 11678 |
|
| 11679 |
- bpo-2426: Added sqlite3.Connection.iterdump method to allow easy dumping |
| 11680 |
of databases. Contributed by Paul Kippes at PyCon 2008. |
| 11681 |
|
| 11682 |
- bpo-2477: Added from __future__ import unicode_literals. |
| 11683 |
|
| 11684 |
- Added backport of bytearray type. |
| 11685 |
|
| 11686 |
- bpo-2355: add Py3k warning for buffer(). |
| 11687 |
|
| 11688 |
- bpo-1477: With narrow Unicode builds, the unicode escape sequence |
| 11689 |
\Uxxxxxxxx did not accept values outside the Basic Multilingual Plane. |
| 11690 |
This affected raw unicode literals and the 'raw-unicode-escape' codec. |
| 11691 |
Now UTF-16 surrogates are generated in this case, like normal unicode |
| 11692 |
literals and the 'unicode-escape' codec. |
| 11693 |
|
| 11694 |
- bpo-2348: add Py3k warning for file.softspace. |
| 11695 |
|
| 11696 |
- bpo-2346: add Py3k warnings for __methods__ and __members__. (See also: |
| 11697 |
bpo-2347) |
| 11698 |
|
| 11699 |
- bpo-2358: Add a Py3k warning on sys.exc_clear() usage. |
| 11700 |
|
| 11701 |
- bpo-2400: Allow relative imports to "import *". |
| 11702 |
|
| 11703 |
- bpo-1745: Backport print function with ``from __future__ import |
| 11704 |
print_function``. |
| 11705 |
|
| 11706 |
- bpo-2332: add new attribute names for instance method objects. The two |
| 11707 |
changes are: im_self -> __self__ and im_func -> __func__ |
| 11708 |
|
| 11709 |
- bpo-2379: Raise a Py3K warning for __getitem__ or __getslice__ on |
| 11710 |
exception instances. |
| 11711 |
|
| 11712 |
- bpo-2371: Add a Py3k warning when catching an exception that doesn't |
| 11713 |
derive from BaseException. |
| 11714 |
|
| 11715 |
- bpo-2341: Add a Py3k warning when raising an exception that doesn't derive |
| 11716 |
from BaseException. |
| 11717 |
|
| 11718 |
- bpo-2321: use pymalloc for unicode object string data to reduce memory |
| 11719 |
usage in some circumstances. |
| 11720 |
|
| 11721 |
- PEP 3127: octal literals now start with "0o". Old-style octal literals are |
| 11722 |
still valid. There are binary literals with a prefix of "0b". This also |
| 11723 |
affects int(x, 0). |
| 11724 |
|
| 11725 |
- bpo-2359: Adding deprecation warnings for array.{read,write}. |
| 11726 |
|
| 11727 |
- bpo-1779871: GNU gcc can now build Python on OS X because the flags |
| 11728 |
-Wno-long-double, -no-cpp-precomp, and -mno-fused-madd are no longer |
| 11729 |
passed. |
| 11730 |
|
| 11731 |
- Add a warning when asserting a non-empty tuple which is always true. |
| 11732 |
|
| 11733 |
- bpo-2179: speed up with statement execution by storing the exit method on |
| 11734 |
the stack instead of in a temporary variable (patch by Jeffrey Yaskin) |
| 11735 |
|
| 11736 |
- bpo-2238: Some syntax errors in *args and **kwargs expressions could give |
| 11737 |
bogus error messages. |
| 11738 |
|
| 11739 |
- bpo-2143: Fix embedded readline() hang on SSL socket EOF. |
| 11740 |
|
| 11741 |
Library |
| 11742 |
------- |
| 11743 |
|
| 11744 |
- bpo-2240: Implement signal.setitimer and signal.getitimer. |
| 11745 |
|
| 11746 |
- bpo-2315: logging.handlers: TimedRotatingFileHandler now accounts for |
| 11747 |
daylight savings time in calculating the next rollover. |
| 11748 |
|
| 11749 |
- bpo-2316: logging.handlers: TimedRotatingFileHandler now calculates |
| 11750 |
rollovers correctly even when nothing is logged for a while. |
| 11751 |
|
| 11752 |
- bpo-2317: logging.handlers: TimedRotatingFileHandler now uses improved |
| 11753 |
logic for removing old files. |
| 11754 |
|
| 11755 |
- bpo-2495: tokenize.untokenize now inserts a space between two consecutive |
| 11756 |
string literals; previously, ["" ""] was rendered as [""""], which is |
| 11757 |
incorrect python code. |
| 11758 |
|
| 11759 |
- bpo-2248: return the result of the QUIT command. from SMTP.quit(). |
| 11760 |
|
| 11761 |
- Backport of Python 3.0's io module. |
| 11762 |
|
| 11763 |
- bpo-2482: Make sure that the coefficient of a Decimal is always stored as |
| 11764 |
a str instance, not as a unicode instance. This ensures that str(Decimal) |
| 11765 |
is always an instance of str. |
| 11766 |
|
| 11767 |
- bpo-2478: fix failure of decimal.Decimal(0).sqrt() |
| 11768 |
|
| 11769 |
- bpo-2432: give DictReader the dialect and line_num attributes advertised |
| 11770 |
in the docs. |
| 11771 |
|
| 11772 |
- bpo-2460: Make Ellipsis object copyable. |
| 11773 |
|
| 11774 |
- bpo-1681432: Add triangular distribution to the random module |
| 11775 |
|
| 11776 |
- bpo-2136: urllib2's auth handler now allows single-quoted realms in the |
| 11777 |
WWW-Authenticate header. |
| 11778 |
|
| 11779 |
- bpo-2434: Enhanced platform.win32_ver() to also work on Python |
| 11780 |
installation which do not have the win32all package installed. |
| 11781 |
|
| 11782 |
- Added support to platform.uname() to also report the machine and processor |
| 11783 |
information on Windows XP and later. As a result, platform.machine() and |
| 11784 |
platform.processor() will report this information as well. |
| 11785 |
|
| 11786 |
- The library implementing the 2to3 conversion, lib2to3, was added to the |
| 11787 |
standard distribution. |
| 11788 |
|
| 11789 |
- bpo-1747858: Fix chown to work with large uid's and gid's on 64-bit |
| 11790 |
platforms. |
| 11791 |
|
| 11792 |
- bpo-1202: zlib.crc32 and zlib.adler32 no longer return different values on |
| 11793 |
32-bit vs. 64-bit python interpreters. Both were correct, but they now |
| 11794 |
both return a signed integer object for consistency. |
| 11795 |
|
| 11796 |
- bpo-1158: add %f format (fractions of a second represented as |
| 11797 |
microseconds) to datetime objects. Understood by both strptime and |
| 11798 |
strftime. |
| 11799 |
|
| 11800 |
- bpo-705836: struct.pack(">f", x) now raises OverflowError on all platforms |
| 11801 |
when x is too large to fit into an IEEE 754 float; previously it only |
| 11802 |
raised OverflowError on non IEEE 754 platforms. |
| 11803 |
|
| 11804 |
- bpo-2166: now distutils deals with HOME correctly under win32 (See also: |
| 11805 |
bpo-1741, bpo-1531505) |
| 11806 |
|
| 11807 |
- bpo-1858: distutils: added multiple server support in .pypirc |
| 11808 |
|
| 11809 |
- bpo-1106316: pdb.post_mortem()'s parameter, "traceback", is now optional: |
| 11810 |
it defaults to the traceback of the exception that is currently being |
| 11811 |
handled (is mandatory to be in the middle of an exception, otherwise it |
| 11812 |
raises ValueError). |
| 11813 |
|
| 11814 |
- bpo-1193577: A .shutdown() method has been added to SocketServers which |
| 11815 |
terminates the .serve_forever() loop. |
| 11816 |
|
| 11817 |
- bpo-2220: handle rlcompleter attribute match failure more gracefully. |
| 11818 |
|
| 11819 |
- bpo-2225: py_compile, when executed as a script, now returns a non- zero |
| 11820 |
status code if not all files could be compiled successfully. |
| 11821 |
|
| 11822 |
- bpo-1725737: In distutils' sdist, exclude RCS, CVS etc. also in the root |
| 11823 |
directory, and also exclude .hg, .git, .bzr, and _darcs. |
| 11824 |
|
| 11825 |
- bpo-1872: The struct module typecode for _Bool has been changed from 't' |
| 11826 |
to '?'. |
| 11827 |
|
| 11828 |
- The bundled libffi copy is now in sync with the recently released |
| 11829 |
libffi3.0.4 version, apart from some small changes to |
| 11830 |
Modules/_ctypes/libffi/configure.ac. On OS X, preconfigured libffi files |
| 11831 |
are used. On all linux systems the --with-system-ffi configure option |
| 11832 |
defaults to "yes". |
| 11833 |
|
| 11834 |
- bpo-1577: shutil.move() now calls os.rename() if the destination is a |
| 11835 |
directory instead of copying-then-remove-source. |
| 11836 |
|
| 11837 |
Tests |
| 11838 |
----- |
| 11839 |
|
| 11840 |
- test_nis no longer fails when test.test_support.verbose is true and NIS is |
| 11841 |
not set up on the testing machine. |
| 11842 |
|
| 11843 |
- Output comparison tests are no longer supported. |
| 11844 |
|
| 11845 |
- Rewrite test_errno to use unittest and no longer be a no-op. |
| 11846 |
|
| 11847 |
- GHOP 234: Convert test_extcall to doctest. |
| 11848 |
|
| 11849 |
- GHOP 290: Convert test_dbm and test_dummy_threading to unittest. |
| 11850 |
|
| 11851 |
- GHOP 293: Convert test_strftime, test_getargs, and test_pep247 to |
| 11852 |
unittest. |
| 11853 |
|
| 11854 |
- bpo-2055: Convert test_fcntl to unittest. |
| 11855 |
|
| 11856 |
- bpo-1960: Convert test_gdbm to unittest. |
| 11857 |
|
| 11858 |
- GHOP 294: Convert test_contains, test_crypt, and test_select to unittest. |
| 11859 |
|
| 11860 |
- GHOP 238: Convert test_tokenize to use doctest. |
| 11861 |
|
| 11862 |
- GHOP 237: Rewrite test_thread using unittest. |
| 11863 |
|
| 11864 |
- bpo-2232: os.tmpfile might fail on Windows if the user has no permission |
| 11865 |
to create files in the root directory. |
| 11866 |
|
| 11867 |
Build |
| 11868 |
----- |
| 11869 |
|
| 11870 |
- A new script 2to3 is now installed, to run the 2.x to 3.x converter. |
| 11871 |
|
| 11872 |
- Python/memmove.c and Python/strerror.c have been removed; both functions |
| 11873 |
are in the C89 standard library. |
| 11874 |
|
| 11875 |
- bpo-2284: Add -x64 option to rt.bat. |
| 11876 |
|
| 11877 |
C API |
| 11878 |
----- |
| 11879 |
|
| 11880 |
- bpo-2477: Added PyParser_ParseFileFlagsEx() and |
| 11881 |
PyParser_ParseStringFlagsFilenameEx(). |
| 11882 |
|
| 11883 |
|
| 11884 |
What's New in Python 2.6 alpha 1? |
| 11885 |
================================= |
| 11886 |
|
| 11887 |
*Release date: 29-Feb-2008* |
| 11888 |
|
| 11889 |
Core and Builtins |
| 11890 |
----------------- |
| 11891 |
|
| 11892 |
- bpo-2051: pyc and pyo files are no longer created with permission 644. The |
| 11893 |
mode is now inherited from the py file. |
| 11894 |
|
| 11895 |
- bpo-2067: file.__exit__() now calls subclasses' close() method. |
| 11896 |
|
| 11897 |
- bpo-1759: Backport of PEP 3129 class decorators. |
| 11898 |
|
| 11899 |
- bpo-1881: An internal parser limit has been increased. Also see issue |
| 11900 |
#215555 for a discussion. |
| 11901 |
|
| 11902 |
- Added the future_builtins module, which contains hex() and oct(). These |
| 11903 |
are the PEP 3127 version of these functions, designed to be compatible |
| 11904 |
with the hex() and oct() builtins from Python 3.0. They differ slightly |
| 11905 |
in their output formats from the existing, unchanged Python 2.6 builtins. |
| 11906 |
The expected usage of the future_builtins module is: from |
| 11907 |
future_builtins import hex, oct |
| 11908 |
|
| 11909 |
- bpo-1600: Modified PyOS_ascii_formatd to use at most 2 digit exponents for |
| 11910 |
exponents with absolute value < 100. Follows C99 standard. This is a |
| 11911 |
change on Windows, which would use 3 digits. Also, added 'n' to the |
| 11912 |
formats that PyOS_ascii_formatd understands, so that any alterations it |
| 11913 |
does to the resulting string will be available in stringlib/formatter.h |
| 11914 |
(for float.__format__). |
| 11915 |
|
| 11916 |
- Implemented PEP 3101, Advanced String Formatting. This adds a new builtin |
| 11917 |
format(); a format() method for str and unicode; a __format__() method to |
| 11918 |
object, str, unicode, int, long, float, and datetime; the class |
| 11919 |
string.Formatter; and the C API PyObject_Format(). |
| 11920 |
|
| 11921 |
- Fixed several potential crashes, all caused by specially crafted __del__ |
| 11922 |
methods exploiting objects in temporarily inconsistent state. |
| 11923 |
|
| 11924 |
- bpo-2115: Important speedup in setting __slot__ attributes. Also prevent |
| 11925 |
a possible crash: an Abstract Base Class would try to access a slot on a |
| 11926 |
registered virtual subclass. |
| 11927 |
|
| 11928 |
- Fixed repr() and str() of complex numbers with infinity or nan as real or |
| 11929 |
imaginary part. |
| 11930 |
|
| 11931 |
- Clear all free lists during a gc.collect() of the highest generation in |
| 11932 |
order to allow pymalloc to free more arenas. Python may give back memory |
| 11933 |
to the OS earlier. |
| 11934 |
|
| 11935 |
- bpo-2045: Fix an infinite recursion triggered when printing a subclass of |
| 11936 |
collections.defaultdict, if its default_factory is set to a bound method. |
| 11937 |
|
| 11938 |
- Fixed a minor memory leak in dictobject.c. The content of the free list |
| 11939 |
was not freed on interpreter shutdown. |
| 11940 |
|
| 11941 |
- Limit free list of method and built-in function objects to 256 entries |
| 11942 |
each. |
| 11943 |
|
| 11944 |
- bpo-1953: Added ``sys._compact_freelists()`` and the C API functions |
| 11945 |
``PyInt_CompactFreeList`` and ``PyFloat_CompactFreeList`` to compact the |
| 11946 |
internal free lists of pre-allocted ints and floats. |
| 11947 |
|
| 11948 |
- bpo-1983: Fixed return type of fork(), fork1() and forkpty() calls. |
| 11949 |
Python expected the return type int but the fork familie returns pi_t. |
| 11950 |
|
| 11951 |
- bpo-1678380: Fix a bug that identifies 0j and -0j when they appear in the |
| 11952 |
same code unit. |
| 11953 |
|
| 11954 |
- bpo-2025: Add tuple.count() and tuple.index() methods to comply with the |
| 11955 |
collections.Sequence API. |
| 11956 |
|
| 11957 |
- bpo-1970: Speedup unicode whitespace and linebreak detection. (Patch by |
| 11958 |
Antoine Pitrou.) |
| 11959 |
|
| 11960 |
- Added ``PyType_ClearCache()`` and ``sys._clear_type_cache`` to clear the |
| 11961 |
internal lookup cache for ref leak tests. |
| 11962 |
|
| 11963 |
- bpo-1473257: generator objects gain a gi_code attribute. This is the same |
| 11964 |
object as the func_code attribute of the function that produced the |
| 11965 |
generator. |
| 11966 |
|
| 11967 |
- bpo-1920: "while 0" statements were completely removed by the compiler, |
| 11968 |
even in the presence of an "else" clause, which is supposed to be run when |
| 11969 |
the condition is false. Now the compiler correctly emits bytecode for the |
| 11970 |
"else" suite. |
| 11971 |
|
| 11972 |
- A few crashers fixed: weakref_in_del.py (issue #1377858); |
| 11973 |
loosing_dict_ref.py (issue #1303614, test67.py); borrowed_ref_[34].py (not |
| 11974 |
in tracker). |
| 11975 |
|
| 11976 |
- bpo-1069410: The "can't load dll" message box on Windows is suppressed |
| 11977 |
while an extension is loaded by calling SetErrorMode in dynload_win.c. The |
| 11978 |
error is still reported properly. |
| 11979 |
|
| 11980 |
- bpo-1915: Python compiles with --enable-unicode=no again. However several |
| 11981 |
extension methods and modules do not work without unicode support. |
| 11982 |
|
| 11983 |
- bpo-1882: when compiling code from a string, encoding cookies in the |
| 11984 |
second line of code were not always recognized correctly. |
| 11985 |
|
| 11986 |
- bpo-1679: "0x" was taken as a valid integer literal. |
| 11987 |
|
| 11988 |
- bpo-1865: ``bytes`` as an alias for ``str`` and b"" as an alias "" were |
| 11989 |
added. |
| 11990 |
|
| 11991 |
- sys.float_info / PyFloat_GetInfo: The floating point information object |
| 11992 |
was converted from a dict to a specialized structseq object. |
| 11993 |
|
| 11994 |
- bpo-1816: Added sys.flags structseq. It exposes the status of most command |
| 11995 |
line arguments and PYTHON* environment variables. |
| 11996 |
|
| 11997 |
- Objects/structseq.c: Implemented new structseq representation. The patch |
| 11998 |
makes structseqs (e.g. the return value of os.stat) more readable. |
| 11999 |
|
| 12000 |
- bpo-1700288: added a type attribute cache that caches method accesses, |
| 12001 |
resulting in speedups in heavily object-oriented code. |
| 12002 |
|
| 12003 |
- bpo-1776: __import__() no longer accepts filenames on any platform. The |
| 12004 |
first parameter to __import__() must be a valid module name. |
| 12005 |
|
| 12006 |
- bpo-1668: renamed THREADDEBUG envvar to PYTHONTHREADDEBUG. |
| 12007 |
|
| 12008 |
- bpo-602345: Add -B command line option, PYTHONDONTWRITEBYTECODE envvar and |
| 12009 |
sys.dont_write_bytecode attribute. All these can be set to forbid Python |
| 12010 |
to attempt to write compiled bytecode files. |
| 12011 |
|
| 12012 |
- Improve some exception messages when Windows fails to load an extension |
| 12013 |
module. Now we get for example '%1 is not a valid Win32 application' |
| 12014 |
instead of 'error code 193'. |
| 12015 |
|
| 12016 |
- bpo-1481296: Fixed long(float('nan')) != 0L. |
| 12017 |
|
| 12018 |
- bpo-1640: Added math.isinf(x), math.isnan(x) and math.copysign(x, y) |
| 12019 |
functions. |
| 12020 |
|
| 12021 |
- bpo-1635: Platform independent creation and representation of NaN and INF. |
| 12022 |
float("nan"), float("inf") and float("-inf") now work on every platform |
| 12023 |
with IEEE 754 semantics. |
| 12024 |
|
| 12025 |
- Compiler now generates simpler and faster code for dictionary literals. |
| 12026 |
The oparg for BUILD_MAP now indicates an estimated dictionary size. There |
| 12027 |
is a new opcode, STORE_MAP, for adding entries to the dictionary. |
| 12028 |
|
| 12029 |
- bpo-1638: %zd configure test fails on Linux. |
| 12030 |
|
| 12031 |
- bpo-1620: New property decorator syntax was modifying the decorator in |
| 12032 |
place instead of creating a new decorator object. |
| 12033 |
|
| 12034 |
- bpo-1538: Avoid copying string in split/rsplit if the split char is not |
| 12035 |
found. |
| 12036 |
|
| 12037 |
- bpo-1553: An erroneous __length_hint__ can make list() raise a |
| 12038 |
SystemError. |
| 12039 |
|
| 12040 |
- PEP 366: Allow explicit relative imports when executing modules inside |
| 12041 |
packages with the -m switch via a new module level __package__ attribute. |
| 12042 |
|
| 12043 |
- bpo-1402: Fix a crash on exit, when another thread is still running, and |
| 12044 |
if the deallocation of its frames somehow calls the PyGILState_Ensure() / |
| 12045 |
PyGILState_Release() functions. |
| 12046 |
|
| 12047 |
- Expose the Py_Py3kWarningFlag as sys.py3kwarning. |
| 12048 |
|
| 12049 |
- bpo-1445: Fix a SystemError when accessing the ``cell_contents`` attribute |
| 12050 |
of an empty cell object. |
| 12051 |
|
| 12052 |
- bpo-1460: The utf-7 incremental decoder did not accept truncated input. |
| 12053 |
It now correctly saves its state between chunks of data. |
| 12054 |
|
| 12055 |
- bpo-1739468: Directories and zipfiles containing a __main__.py file can |
| 12056 |
now be directly executed by passing their name to the interpreter. The |
| 12057 |
directory/zipfile is automatically inserted as the first entry in |
| 12058 |
sys.path. |
| 12059 |
|
| 12060 |
- bpo-1265: Fix a problem with sys.settrace, if the tracing function uses a |
| 12061 |
generator expression when at the same time the executed code is closing a |
| 12062 |
paused generator. |
| 12063 |
|
| 12064 |
- sets and frozensets now have an isdisjoint() method. |
| 12065 |
|
| 12066 |
- optimize the performance of builtin.sum(). |
| 12067 |
|
| 12068 |
- Fix warnings found by the new version of the Coverity checker. |
| 12069 |
|
| 12070 |
- The enumerate() built-in function is no longer bounded to sequences |
| 12071 |
smaller than LONG_MAX. Formerly, it raised an OverflowError. Now, |
| 12072 |
automatically shifts from ints to longs. |
| 12073 |
|
| 12074 |
- bpo-1686386: Tuple's tp_repr did not take into account the possibility of |
| 12075 |
having a self-referential tuple, which is possible from C code. Nor did |
| 12076 |
object's tp_str consider that a type's tp_str could do something that |
| 12077 |
could lead to an inifinite recursion. Py_ReprEnter() and |
| 12078 |
Py_EnterRecursiveCall(), respectively, fixed the issues. |
| 12079 |
|
| 12080 |
- bpo-1164: It was possible to trigger deadlock when using the 'print' |
| 12081 |
statement to write to a file since the GIL was not released as needed. |
| 12082 |
Now PyObject_Print() does the right thing along with various tp_print |
| 12083 |
implementations of the built-in types and those in the collections module. |
| 12084 |
|
| 12085 |
- bpo-1147: Exceptions were directly allowing string exceptions in their |
| 12086 |
throw() method even though string exceptions no longer allowed. |
| 12087 |
|
| 12088 |
- bpo-1096: Prevent a segfault from getting the repr of a very deeply nested |
| 12089 |
list by using the recursion counter. |
| 12090 |
|
| 12091 |
- bpo-1202533: Fix infinite recursion calls triggered by calls to |
| 12092 |
PyObject_Call() never calling back out to Python code to trigger recursion |
| 12093 |
depth updates/checks. Required the creation of a static RuntimeError |
| 12094 |
instance in case normalizing an exception put the recursion check value |
| 12095 |
past its limit. Fixes crashers infinite_rec_(1|2|4|5).py. |
| 12096 |
|
| 12097 |
- bpo-1031213: Decode source line in SyntaxErrors back to its original |
| 12098 |
source encoding. |
| 12099 |
|
| 12100 |
- bpo-1673759: add a missing overflow check when formatting floats with %G. |
| 12101 |
|
| 12102 |
- Prevent expandtabs() on string and unicode objects from causing a segfault |
| 12103 |
when a large width is passed on 32-bit platforms. |
| 12104 |
|
| 12105 |
- bpo-1733488: Fix compilation of bufferobject.c on AIX. |
| 12106 |
|
| 12107 |
- bpo-1722485: remove docstrings again when running with -OO. |
| 12108 |
|
| 12109 |
- Add new attribute names for function objects. All the func_* become __*__ |
| 12110 |
attributes. (Some already existed, e.g., __doc__ and __name__.) |
| 12111 |
|
| 12112 |
- Add -3 option to the interpreter to warn about features that are |
| 12113 |
deprecated and will be changed/removed in Python 3.0. |
| 12114 |
|
| 12115 |
- bpo-1686487: you can now pass any mapping after '**' in function calls. |
| 12116 |
|
| 12117 |
- except clauses may now be spelled either "except E, target:" or "except E |
| 12118 |
as target:". This is to provide forwards compatibility with Python 3.0. |
| 12119 |
|
| 12120 |
- Deprecate BaseException.message as per PEP 352. |
| 12121 |
|
| 12122 |
- bpo-1303614: don't expose object's __dict__ when the dict is inherited |
| 12123 |
from a built-in base. |
| 12124 |
|
| 12125 |
- When __slots__ are set to a unicode string, make it work the same as |
| 12126 |
setting a plain string, ie don't expand to single letter identifiers. |
| 12127 |
|
| 12128 |
- bpo-1191699: Slices can now be pickled. |
| 12129 |
|
| 12130 |
- bpo-1193128: str.translate() now allows a None argument for translations |
| 12131 |
that only remove characters without re-mapping the remaining characters. |
| 12132 |
|
| 12133 |
- bpo-1682205: a TypeError while unpacking an iterable is no longer masked |
| 12134 |
by a generic one with the message "unpack non-sequence". |
| 12135 |
|
| 12136 |
- Remove unused file Python/fmod.c. |
| 12137 |
|
| 12138 |
- bpo-1683368: The object.__init__() and object.__new__() methods are now |
| 12139 |
stricter in rejecting excess arguments. The only time when either allows |
| 12140 |
excess arguments is when it is not overridden and the other one is. For |
| 12141 |
backwards compatibility, when both are overridden, it is a deprecation |
| 12142 |
warning (for now; maybe a Py3k warning later). Also, type.__init__() |
| 12143 |
insists on the same signature as supported by type.__new__(). |
| 12144 |
|
| 12145 |
- bpo-1675423: PyComplex_AsCComplex() now tries to convert an object to |
| 12146 |
complex using its __complex__() method before falling back to the |
| 12147 |
__float__() method. Therefore, the functions in the cmath module now can |
| 12148 |
operate on objects that define a __complex__() method. |
| 12149 |
|
| 12150 |
- bpo-1623563: allow __class__ assignment for classes with __slots__. The |
| 12151 |
old and the new class are still required to have the same slot names. |
| 12152 |
|
| 12153 |
- bpo-1642547: Fix an error/crash when encountering syntax errors in complex |
| 12154 |
if statements. |
| 12155 |
|
| 12156 |
- bpo-1462488: Python no longer segfaults when ``object.__reduce_ex__()`` is |
| 12157 |
called with an object that is faking its type. |
| 12158 |
|
| 12159 |
- bpo-1680015: Don't modify __slots__ tuple if it contains a unicode name. |
| 12160 |
|
| 12161 |
- bpo-1444529: the builtin compile() now accepts keyword arguments. |
| 12162 |
|
| 12163 |
- bpo-1678647: write a newline after printing an exception in any case, even |
| 12164 |
when converting the value to a string failed. |
| 12165 |
|
| 12166 |
- The dir() function has been extended to call the __dir__() method on its |
| 12167 |
argument, if it exists. If not, it will work like before. This allows |
| 12168 |
customizing the output of dir() in the presence of a __getattr__(). |
| 12169 |
|
| 12170 |
- bpo-922167: Python no longer segfaults when faced with infinitely |
| 12171 |
self-recursive reload() calls (as reported by bug #742342). |
| 12172 |
|
| 12173 |
- bpo-1675981: remove unreachable code from ``type.__new__()`` method. |
| 12174 |
|
| 12175 |
- bpo-1491866: change the complex() constructor to allow parthensized forms. |
| 12176 |
This means complex(repr(x)) now works instead of raising a ValueError. |
| 12177 |
|
| 12178 |
- bpo-703779: unset __file__ in __main__ after running a file. This makes |
| 12179 |
the filenames the warning module prints much more sensible when a |
| 12180 |
PYTHONSTARTUP file is used. |
| 12181 |
|
| 12182 |
- bpo-697613: Don't exit the interpreter on a SystemExit exception if the -i |
| 12183 |
command line option or PYTHONINSPECT environment variable is given, but |
| 12184 |
break into the interactive interpreter just like on other exceptions or |
| 12185 |
normal program exit. |
| 12186 |
|
| 12187 |
- bpo-1638879: don't accept strings with embedded NUL bytes in long(). |
| 12188 |
|
| 12189 |
- bpo-1674503: close the file opened by execfile() in an error condition. |
| 12190 |
|
| 12191 |
- bpo-1674228: when assigning a slice (old-style), check for the |
| 12192 |
sq_ass_slice instead of the sq_slice slot. |
| 12193 |
|
| 12194 |
- When printing an unraisable error, don't print exceptions. before the |
| 12195 |
name. This duplicates the behavior whening normally printing exceptions. |
| 12196 |
|
| 12197 |
- bpo-1653736: Properly discard third argument to slot_nb_inplace_power. |
| 12198 |
|
| 12199 |
- PEP 352: Raising a string exception now triggers a TypeError. Attempting |
| 12200 |
to catch a string exception raises DeprecationWarning. |
| 12201 |
|
| 12202 |
- bpo-1377858: Fix the segfaulting of the interpreter when an object created |
| 12203 |
a weakref on itself during a __del__ call for new-style classes (classic |
| 12204 |
classes still have the bug). |
| 12205 |
|
| 12206 |
- bpo-1579370: Make PyTraceBack_Here use the current thread, not the frame's |
| 12207 |
thread state. |
| 12208 |
|
| 12209 |
- bpo-1630975: Fix crash when replacing sys.stdout in sitecustomize.py. |
| 12210 |
|
| 12211 |
- Prevent seg fault on shutdown which could occur if an object raised a |
| 12212 |
warning. |
| 12213 |
|
| 12214 |
- bpo-1566280: Explicitly invoke threading._shutdown from Py_Main, to avoid |
| 12215 |
relying on atexit. |
| 12216 |
|
| 12217 |
- bpo-1590891: random.randrange don't return correct value for big number. |
| 12218 |
|
| 12219 |
- bpo-1586791: Better exception messages for some operations on strings, |
| 12220 |
tuples and lists. |
| 12221 |
|
| 12222 |
- bpo-1067760: Deprecate passing floats to file.seek. |
| 12223 |
|
| 12224 |
- bpo-1591996: Correctly forward exception in instance_contains(). |
| 12225 |
|
| 12226 |
- bpo-1588287: fix invalid assertion for `1,2` in debug builds. |
| 12227 |
|
| 12228 |
- bpo-1576657: when setting a KeyError for a tuple key, make sure that the |
| 12229 |
tuple isn't used as the "exception arguments tuple". |
| 12230 |
|
| 12231 |
- bpo-1565514: SystemError not raised on too many nested blocks. |
| 12232 |
|
| 12233 |
- bpo-1576174: WindowsError now displays the windows error code again, no |
| 12234 |
longer the posix error code. |
| 12235 |
|
| 12236 |
- bpo-1549049: Support long values in structmember, issue warnings if the |
| 12237 |
assigned value for structmember fields gets truncated. |
| 12238 |
|
| 12239 |
- Update the peephole optimizer to remove more dead code (jumps after |
| 12240 |
returns) and inline unconditional jumps to returns. |
| 12241 |
|
| 12242 |
- bpo-1545497: when given an explicit base, int() did ignore NULs embedded |
| 12243 |
in the string to convert. |
| 12244 |
|
| 12245 |
- bpo-1569998: break inside a try statement (outside a loop) is now |
| 12246 |
recognized and rejected. |
| 12247 |
|
| 12248 |
- list.pop(x) accepts any object x following the __index__ protocol. |
| 12249 |
|
| 12250 |
- A number of places, including integer negation and absolute value, were |
| 12251 |
fixed to not rely on undefined behaviour of the C compiler anymore. |
| 12252 |
|
| 12253 |
- bpo-1566800: make sure that EnvironmentError can be called with any number |
| 12254 |
of arguments, as was the case in Python 2.4. |
| 12255 |
|
| 12256 |
- bpo-1567691: super() and new.instancemethod() now don't accept keyword |
| 12257 |
arguments any more (previously they accepted them, but didn't use them). |
| 12258 |
|
| 12259 |
- Fix a bug in the parser's future statement handling that led to "with" not |
| 12260 |
being recognized as a keyword after, e.g., this statement: from __future__ |
| 12261 |
import division, with_statement |
| 12262 |
|
| 12263 |
- bpo-1557232: fix seg fault with def f((((x)))) and def f(((x),)). |
| 12264 |
|
| 12265 |
- Fix %zd string formatting on Mac OS X so it prints negative numbers. |
| 12266 |
|
| 12267 |
- Allow exception instances to be directly sliced again. |
| 12268 |
|
| 12269 |
- bpo-1551432: Exceptions do not define an explicit __unicode__ method. |
| 12270 |
This allows calling unicode() on exceptions classes directly to succeed. |
| 12271 |
|
| 12272 |
- bpo-1542051: Exceptions now correctly call PyObject_GC_UnTrack. Also make |
| 12273 |
sure that every exception class has __module__ set to 'exceptions'. |
| 12274 |
|
| 12275 |
- bpo-1550983: emit better error messages for erroneous relative imports (if |
| 12276 |
not in package and if beyond toplevel package). |
| 12277 |
|
| 12278 |
- Overflow checking code in integer division ran afoul of new gcc |
| 12279 |
optimizations. Changed to be more standard-conforming. |
| 12280 |
|
| 12281 |
- bpo-1542451: disallow continue anywhere under a finally. |
| 12282 |
|
| 12283 |
- bpo-1546288: fix seg fault in dict_equal due to ref counting bug. |
| 12284 |
|
| 12285 |
- The return tuple from str.rpartition(sep) is (tail, sep, head) where head |
| 12286 |
is the original string if sep was not found. |
| 12287 |
|
| 12288 |
- bpo-1520864: unpacking singleton tuples in list comprehensions and |
| 12289 |
generator expressions (x for x, in ... ) works again. Fixing this problem |
| 12290 |
required changing the .pyc magic number. This means that .pyc files |
| 12291 |
generated before 2.5c2 will be regenerated. |
| 12292 |
|
| 12293 |
- ``with`` and ``as`` are now keywords. |
| 12294 |
|
| 12295 |
- bpo-1664966: Fix crash in exec if Unicode filename can't be decoded. |
| 12296 |
|
| 12297 |
- bpo-1537: Changed GeneratorExit's base class from Exception to |
| 12298 |
BaseException. |
| 12299 |
|
| 12300 |
- bpo-1703448: A joined thread could show up in the threading.enumerate() |
| 12301 |
list after the join() for a brief period until it actually exited. |
| 12302 |
|
| 12303 |
Library |
| 12304 |
------- |
| 12305 |
|
| 12306 |
- bpo-2274: Add heapq.heappushpop(). |
| 12307 |
|
| 12308 |
- Add inspect.isabstract(object) to fix bug #2223 |
| 12309 |
|
| 12310 |
- Add a __format__ method to Decimal, to support PEP 3101. |
| 12311 |
|
| 12312 |
- Add a timing parameter when using trace.Trace to print out timestamps. |
| 12313 |
|
| 12314 |
- bpo-1627: httplib now ignores negative Content-Length headers. |
| 12315 |
|
| 12316 |
- bpo-900744: If an invalid chunked-encoding header is sent by a server, |
| 12317 |
httplib will now raise IncompleteRead and close the connection instead of |
| 12318 |
raising ValueError. |
| 12319 |
|
| 12320 |
- bpo-1492: The content type of BaseHTTPServer error messages can now be |
| 12321 |
overridden. |
| 12322 |
|
| 12323 |
- bpo-1781: ConfigParser now does not let you add the "default" section |
| 12324 |
(ignore-case) |
| 12325 |
|
| 12326 |
- Removed uses of dict.has_key() from distutils, and uses of callable() from |
| 12327 |
copy_reg.py, so the interpreter now starts up without warnings when '-3' |
| 12328 |
is given. More work like this needs to be done in the rest of the stdlib. |
| 12329 |
|
| 12330 |
- bpo-1916: added isgenerator() and isgeneratorfunction() to inspect.py. |
| 12331 |
|
| 12332 |
- bpo-1224: Fixed bad url parsing when path begins with double slash. |
| 12333 |
|
| 12334 |
- ctypes instances that are not or do not contain pointers can now be |
| 12335 |
pickled. |
| 12336 |
|
| 12337 |
- bpo-1966: Break infinite loop in httplib when the servers implements the |
| 12338 |
chunked encoding incorrectly. |
| 12339 |
|
| 12340 |
- Rename rational.py to fractions.py and the rational.Rational class to |
| 12341 |
fractions.Fraction, to avoid the name clash with the abstract base class |
| 12342 |
numbers.Rational. See discussion in issue #1682. |
| 12343 |
|
| 12344 |
- The pickletools module now provides an optimize() function that eliminates |
| 12345 |
unused PUT opcodes from a pickle string. |
| 12346 |
|
| 12347 |
- bpo-2021: Allow tempfile.NamedTemporaryFile and SpooledTemporaryFile to be |
| 12348 |
used in with statements by correctly supporting the context management |
| 12349 |
protocol. |
| 12350 |
|
| 12351 |
- bpo-1979: Add rich comparisons to Decimal, and make Decimal comparisons |
| 12352 |
involving a NaN follow the IEEE 754 standard. |
| 12353 |
|
| 12354 |
- bpo-2004: tarfile.py: Use mode 0700 for temporary directories and default |
| 12355 |
permissions for missing directories. |
| 12356 |
|
| 12357 |
- bpo-175006: The debugger used to skip the condition of a "while" statement |
| 12358 |
after the first iteration. Now it correctly steps on the expression, and |
| 12359 |
breakpoints on the "while" statement are honored on each loop. |
| 12360 |
|
| 12361 |
- bpo-1765140: add an optional delay argument to FileHandler and its |
| 12362 |
subclasses. Defaults to false (existing behaviour), but if true, defers |
| 12363 |
opening the file until the first call to emit(). |
| 12364 |
|
| 12365 |
- The pprint module now supports sets and frozensets. |
| 12366 |
|
| 12367 |
- bpo-1221598: add optional callbacks to ftplib.FTP's storbinary() and |
| 12368 |
storlines() methods. (Contributed by Phil Schwartz) |
| 12369 |
|
| 12370 |
- bpo-1715: include sub-extension modules in pydoc's text output. |
| 12371 |
|
| 12372 |
- bpo-1836: fix an off-by-one bug in TimedRotatingHandler's rollover time |
| 12373 |
calculation. |
| 12374 |
|
| 12375 |
- bpo-1021: fix a bug to allow basicConfig to accept NOTSET as a level. |
| 12376 |
|
| 12377 |
- bpo-932563: add LoggerAdapter convenience class to make it easier to add |
| 12378 |
contextual information in logging output. |
| 12379 |
|
| 12380 |
- bpo-1760556: fix a bug to avoid FileHandler throwing an exception in |
| 12381 |
flush(). |
| 12382 |
|
| 12383 |
- bpo-1530959: distutils' build command now uses different build directory |
| 12384 |
when building extension modules against versions of Python compiled with |
| 12385 |
``--with-pydebug``. |
| 12386 |
|
| 12387 |
- bpo-1555501: move plistlib from plat-mac directory to general library. |
| 12388 |
|
| 12389 |
- bpo-1269: fix a bug in pstats.add_callers() and add a unit test file for |
| 12390 |
pstats. |
| 12391 |
|
| 12392 |
- bpo-1669: don't allow shutil.rmtree() to be called on a symlink to a |
| 12393 |
directory. |
| 12394 |
|
| 12395 |
- bpo-1664522: in urllib, don't read non-existing directories in ftp mode, |
| 12396 |
returning a 0-byte file -- raise an IOError instead. |
| 12397 |
|
| 12398 |
- bpo-856047: respect the ``no_proxy`` environment variable when using the |
| 12399 |
``http_proxy`` etc. environment variables in urllib. |
| 12400 |
|
| 12401 |
- bpo-1178141: add a getcode() method to the addinfourls that urllib.open() |
| 12402 |
returns so that you can retrieve the HTTP status code. |
| 12403 |
|
| 12404 |
- bpo-1003: Fix zipfile decryption check, it would fail zip files with |
| 12405 |
extended local headers. |
| 12406 |
|
| 12407 |
- bpo-1189216: Fix the zipfile module to work on archives with headers past |
| 12408 |
the 2**31 byte boundary. |
| 12409 |
|
| 12410 |
- bpo-1336: fix a race condition in subprocess.Popen if the garbage |
| 12411 |
collector kicked in at the wrong time that would cause the process to hang |
| 12412 |
when the child wrote to stderr. |
| 12413 |
|
| 12414 |
- bpo-1146: fix how textwrap breaks a long word that would start in the last |
| 12415 |
column of a line. |
| 12416 |
|
| 12417 |
- bpo-1693149: trace.py --ignore-module - accept multiple comma-separated |
| 12418 |
modules to be given. |
| 12419 |
|
| 12420 |
- bpo-1822: MIMEMultipart.is_multipart() behaves correctly for a |
| 12421 |
just-created (and empty) instance. Thanks Jonathan Share. |
| 12422 |
|
| 12423 |
- bpo-1861: Added an attribute to the sched module which returns an ordered |
| 12424 |
list of upcoming events (displayed as named tuples). |
| 12425 |
|
| 12426 |
- bpo-1837: The queue module now also supports a LIFO queue and a priority |
| 12427 |
queue. |
| 12428 |
|
| 12429 |
- bpo-1048820: Add insert-mode editing to curses.textpad.Textbox (patch by |
| 12430 |
Stefan Wehr). Also, fix an off-by-one bug in Textbox.gather(). |
| 12431 |
|
| 12432 |
- bpo-1831: ctypes now raises a TypeError if conflicting positional and |
| 12433 |
named arguments are passed to a Structure or Union initializer. When too |
| 12434 |
many positional arguments are passed, also a TypeError is raised instead |
| 12435 |
of a ValueError. |
| 12436 |
|
| 12437 |
- Convert the internal ctypes array type cache to a WeakValueDict so that |
| 12438 |
array types do not live longer than needed. |
| 12439 |
|
| 12440 |
- bpo-1786: pdb should use its own stdin/stdout around an exec call and when |
| 12441 |
creating a recursive instance. |
| 12442 |
|
| 12443 |
- bpo-1698398: ZipFile.printdir() crashed because the format string expected |
| 12444 |
a tuple type of length six instead of time.struct_time object. |
| 12445 |
|
| 12446 |
- bpo-1780: The Decimal constructor now accepts arbitrary leading and |
| 12447 |
trailing whitespace when constructing from a string. |
| 12448 |
Context.create_decimal no longer accepts trailing newlines. |
| 12449 |
|
| 12450 |
- Decimal.as_tuple(), difflib.find_longest_match() and inspect functions |
| 12451 |
that returned a tuple now return a named tuple. |
| 12452 |
|
| 12453 |
- Doctest now returns results as a named tuple for readability: (0, 7) |
| 12454 |
--> TestResults(failed=0, attempted=7) |
| 12455 |
|
| 12456 |
- bpo-846388: re.match is interruptible now, which is particularly good for |
| 12457 |
long regular expression matches. |
| 12458 |
|
| 12459 |
- bpo-1137: allow setting buffer_size attribute on pyexpat Parser objects to |
| 12460 |
set the character data buffer size. |
| 12461 |
|
| 12462 |
- bpo-1757: The hash of a Decimal instance is no longer affected by the |
| 12463 |
current context. |
| 12464 |
|
| 12465 |
- bpo-467924: add ZipFile.extract() and ZipFile.extractall() in the zipfile |
| 12466 |
module. |
| 12467 |
|
| 12468 |
- bpo-1646: Make socket support the TIPC protocol. |
| 12469 |
|
| 12470 |
- bpo-1742: return os.curdir from os.path.relpath() if both arguments are |
| 12471 |
equal instead of raising an exception. |
| 12472 |
|
| 12473 |
- bpo-1637: fix urlparse for URLs like 'http://x.com?arg=/foo'. |
| 12474 |
|
| 12475 |
- bpo-1698: allow '@' in username parsed by urlparse.py. |
| 12476 |
|
| 12477 |
- bpo-1735: TarFile.extractall() now correctly sets directory permissions |
| 12478 |
and times. |
| 12479 |
|
| 12480 |
- bpo-1713: posixpath.ismount() claims symlink to a mountpoint is a |
| 12481 |
mountpoint. |
| 12482 |
|
| 12483 |
- bpo-1687: Fxed plistlib.py restricts <integer> to Python int when writing |
| 12484 |
|
| 12485 |
- bpo-1700: Regular expression inline flags incorrectly handle certain |
| 12486 |
unicode characters. |
| 12487 |
|
| 12488 |
- bpo-1689: PEP 3141, numeric abstract base classes. |
| 12489 |
|
| 12490 |
- Tk issue #1851526: Return results from Python callbacks to Tcl as Tcl |
| 12491 |
objects. |
| 12492 |
|
| 12493 |
- bpo-1642: Fix segfault in ctypes when trying to delete attributes. |
| 12494 |
|
| 12495 |
- bpo-1727780: Support loading pickles of random.Random objects created on |
| 12496 |
32-bit systems on 64-bit systems, and vice versa. As a consequence of the |
| 12497 |
change, Random pickles created by Python 2.6 cannot be loaded in Python |
| 12498 |
2.5. |
| 12499 |
|
| 12500 |
- bpo-1455: The distutils package now supports VS 2005 and VS 2008 for both |
| 12501 |
the msvccompiler and cygwincompiler. |
| 12502 |
|
| 12503 |
- bpo-1531: tarfile.py: Read fileobj from the current offset, do not seek to |
| 12504 |
the start. |
| 12505 |
|
| 12506 |
- bpo-1534: Added a dictionary sys.float_info with information about the |
| 12507 |
internal floating point type to the sys module. |
| 12508 |
|
| 12509 |
- bpo-1429818: patch for trace and doctest modules so they play nicely |
| 12510 |
together. |
| 12511 |
|
| 12512 |
- doctest made a bad assumption that a package's __loader__.get_data() |
| 12513 |
method used universal newlines. |
| 12514 |
|
| 12515 |
- bpo-1705170: contextlib.contextmanager was still swallowing StopIteration |
| 12516 |
in some cases. This should no longer happen. |
| 12517 |
|
| 12518 |
- bpo-1292: On alpha, arm, ppc, and s390 linux systems the --with-system-ffi |
| 12519 |
configure option defaults to "yes". |
| 12520 |
|
| 12521 |
- IN module for FreeBSD 8 is added and preexisting FreeBSD 6 and 7 files are |
| 12522 |
updated. |
| 12523 |
|
| 12524 |
- bpo-1181: unsetenv() is now called when the os.environ.pop() and |
| 12525 |
os.environ.clear() methods are used. (See also: bpo-1287) |
| 12526 |
|
| 12527 |
- ctypes will now work correctly on 32-bit systems when Python is configured |
| 12528 |
with --with-system-ffi. |
| 12529 |
|
| 12530 |
- bpo-1203: ctypes now does work on OS X when Python is built with |
| 12531 |
``--disable-toolbox-glue``. |
| 12532 |
|
| 12533 |
- collections.deque() now supports a "maxlen" argument. |
| 12534 |
|
| 12535 |
- itertools.count() is no longer bounded to LONG_MAX. Formerly, it raised |
| 12536 |
an OverflowError. Now, automatically shifts from ints to longs. |
| 12537 |
|
| 12538 |
- Added itertools.product() which forms the Cartesian product of the input |
| 12539 |
iterables. |
| 12540 |
|
| 12541 |
- Added itertools.combinations() and itertools.permutations(). |
| 12542 |
|
| 12543 |
- bpo-1541463: optimize performance of cgi.FieldStorage operations. |
| 12544 |
|
| 12545 |
- Decimal is fully updated to the latest Decimal Specification (v1.66). |
| 12546 |
|
| 12547 |
- bpo-1153: repr.repr() now doesn't require set and dictionary items to be |
| 12548 |
orderable to properly represent them. |
| 12549 |
|
| 12550 |
- A 'c_longdouble' type was added to the ctypes module. |
| 12551 |
|
| 12552 |
- bpo-1709599: Run test_1565150 only if the file system is NTFS. |
| 12553 |
|
| 12554 |
- When encountering a password-protected robots.txt file the RobotFileParser |
| 12555 |
no longer prompts interactively for a username and password (bug 813986). |
| 12556 |
|
| 12557 |
- TarFile.__init__() no longer fails if no name argument is passed and the |
| 12558 |
fileobj argument has no usable name attribute (e.g. StringIO). |
| 12559 |
|
| 12560 |
- The functools module now provides 'reduce', for forward compatibility with |
| 12561 |
Python 3000. |
| 12562 |
|
| 12563 |
- Server-side SSL support and cert verification added, by Bill Janssen. |
| 12564 |
|
| 12565 |
- socket.ssl deprecated; use new ssl module instead. |
| 12566 |
|
| 12567 |
- uuid creation is now threadsafe. |
| 12568 |
|
| 12569 |
- EUC-KR codec now handles the cheot-ga-keut composed make-up hangul |
| 12570 |
syllables. |
| 12571 |
|
| 12572 |
- GB18030 codec now can encode additional two-byte characters that are |
| 12573 |
missing in GBK. |
| 12574 |
|
| 12575 |
- Add new codecs for UTF-32, UTF-32-LE and UTF-32-BE. |
| 12576 |
|
| 12577 |
- bpo-1704793: Return UTF-16 pair if unicodedata.lookup cannot represent the |
| 12578 |
result in a single character. |
| 12579 |
|
| 12580 |
- bpo-978833: Close https sockets by releasing the _ssl object. |
| 12581 |
|
| 12582 |
- Change location of the package index to pypi.python.org/pypi |
| 12583 |
|
| 12584 |
- bpo-1701409: Fix a segfault in printing ctypes.c_char_p and |
| 12585 |
ctypes.c_wchar_p when they point to an invalid location. As a sideeffect |
| 12586 |
the representation of these instances has changed. |
| 12587 |
|
| 12588 |
- tarfile.py: Added "exclude" keyword argument to TarFile.add(). |
| 12589 |
|
| 12590 |
- bpo-1734723: Fix repr.Repr() so it doesn't ignore the maxtuple attribute. |
| 12591 |
|
| 12592 |
- The urlopen function of urllib2 now has an optional timeout parameter |
| 12593 |
(note that it actually works with HTTP, HTTPS, FTP and FTPS connections). |
| 12594 |
|
| 12595 |
- In ftplib, the FTP.ntransfercmd method, when in passive mode, now uses the |
| 12596 |
socket.create_connection function, using the timeout specified at |
| 12597 |
connection time. |
| 12598 |
|
| 12599 |
- bpo-1728403: Fix a bug that CJKCodecs StreamReader hangs when it reads a |
| 12600 |
file that ends with incomplete sequence and sizehint argument for .read() |
| 12601 |
is specified. |
| 12602 |
|
| 12603 |
- bpo-1730389: Change time.strptime() to use ``\s+`` instead of ``\s*`` when |
| 12604 |
matching spaces in the specified format argument. |
| 12605 |
|
| 12606 |
- bpo-1668596: distutils now copies data files even if package_dir is empty. |
| 12607 |
(See also: bpo-1720897) |
| 12608 |
|
| 12609 |
- sha now raises a DeprecationWarning upon import. |
| 12610 |
|
| 12611 |
- md5 now raises a DeprecationWarning upon import. |
| 12612 |
|
| 12613 |
- bpo-1385: The hmac module now computes the correct hmac when using hashes |
| 12614 |
with a block size other than 64 bytes (such as sha384 and sha512). |
| 12615 |
|
| 12616 |
- mimify now raises a DeprecationWarning upon import. |
| 12617 |
|
| 12618 |
- MimeWriter now raises a DeprecationWarning upon import. |
| 12619 |
|
| 12620 |
- tarfile.py: Improved unicode support. Unicode input names are now |
| 12621 |
officially supported. Added "errors" argument to the TarFile class. |
| 12622 |
|
| 12623 |
- urllib.ftpwrapper class now accepts an optional timeout. |
| 12624 |
|
| 12625 |
- shlex.split() now has an optional "posix" parameter. |
| 12626 |
|
| 12627 |
- The posixfile module now raises a DeprecationWarning. |
| 12628 |
|
| 12629 |
- Remove the gopherlib module. This also leads to the removal of gopher |
| 12630 |
support in urllib/urllib2. |
| 12631 |
|
| 12632 |
- Fix bug in marshal where bad data would cause a segfault due to lack of an |
| 12633 |
infinite recursion check. |
| 12634 |
|
| 12635 |
- Removed plat-freebsd2 and plat-freebsd3 directories (and IN.py in the |
| 12636 |
directories). |
| 12637 |
|
| 12638 |
- HTML-escape the plain traceback in cgitb's HTML output, to prevent the |
| 12639 |
traceback inadvertently or maliciously closing the comment and injecting |
| 12640 |
HTML into the error page. |
| 12641 |
|
| 12642 |
- The popen2 module and os.popen* are deprecated. Use the subprocess |
| 12643 |
module. |
| 12644 |
|
| 12645 |
- Added an optional credentials argument to SMTPHandler, for use with SMTP |
| 12646 |
servers which require authentication. |
| 12647 |
|
| 12648 |
- bpo-1695948: Added optional timeout parameter to SocketHandler. |
| 12649 |
|
| 12650 |
- bpo-1652788: Minor fix for currentframe. |
| 12651 |
|
| 12652 |
- bpo-1598415: Added WatchedFileHandler to better support external log file |
| 12653 |
rotation using e.g. newsyslog or logrotate. This handler is only useful in |
| 12654 |
Unix/Linux environments. |
| 12655 |
|
| 12656 |
- bpo-1706381: Specifying the SWIG option "-c++" in the setup.py file (as |
| 12657 |
opposed to the command line) will now write file names ending in ".cpp" |
| 12658 |
too. |
| 12659 |
|
| 12660 |
- As specified in RFC 2616, an HTTP response like 2xx indicates that the |
| 12661 |
client's request was successfully received, understood, and accepted. Now |
| 12662 |
in these cases no error is raised in urllib (issue #1177) and urllib2. |
| 12663 |
|
| 12664 |
- bpo-1290505: time.strptime's internal cache of locale information is now |
| 12665 |
properly recreated when the locale is changed. |
| 12666 |
|
| 12667 |
- bpo-1685563: remove (don't add) duplicate paths in distutils.MSVCCompiler. |
| 12668 |
|
| 12669 |
- Added a timeout parameter to the constructor of other protocols |
| 12670 |
(telnetlib, ftplib, smtplib and poplib). This is second part of the work |
| 12671 |
started with create_connection() and timeout in httplib, and closes patch |
| 12672 |
#723312. |
| 12673 |
|
| 12674 |
- bpo-1676823: Added create_connection() to socket.py, which may be called |
| 12675 |
with a timeout, and use it from httplib (whose HTTPConnection and |
| 12676 |
HTTPSConnection now accept an optional timeout). |
| 12677 |
|
| 12678 |
- bpo-978833: Revert r50844, as it broke _socketobject.dup. |
| 12679 |
|
| 12680 |
- bpo-1675967: re patterns pickled with Python 2.4 and earlier can now be |
| 12681 |
unpickled with Python 2.5 and newer. |
| 12682 |
|
| 12683 |
- bpo-1630118: add a SpooledTemporaryFile class to tempfile.py. |
| 12684 |
|
| 12685 |
- bpo-1273829: os.walk() now has a "followlinks" parameter. If set to True |
| 12686 |
(which is not the default), it visits symlinks pointing to directories. |
| 12687 |
|
| 12688 |
- bpo-1681228: the webbrowser module now correctly uses the default GNOME or |
| 12689 |
KDE browser, depending on whether there is a session of one of those |
| 12690 |
present. Also, it tries the Windows default browser before trying Mozilla |
| 12691 |
variants. |
| 12692 |
|
| 12693 |
- bpo-1339796: add a relpath() function to os.path. |
| 12694 |
|
| 12695 |
- bpo-1681153: the wave module now closes a file object it opened if |
| 12696 |
initialization failed. |
| 12697 |
|
| 12698 |
- bpo-767111: fix long-standing bug in urllib which caused an AttributeError |
| 12699 |
instead of an IOError when the server's response didn't contain a valid |
| 12700 |
HTTP status line. |
| 12701 |
|
| 12702 |
- bpo-957650: "%var%" environment variable references are now properly |
| 12703 |
expanded in ntpath.expandvars(), also "~user" home directory references |
| 12704 |
are recognized and handled on Windows. |
| 12705 |
|
| 12706 |
- bpo-1429539: pdb now correctly initializes the __main__ module for the |
| 12707 |
debugged script, which means that imports from __main__ work correctly |
| 12708 |
now. |
| 12709 |
|
| 12710 |
- The nonobvious commands.getstatus() function is now deprecated. |
| 12711 |
|
| 12712 |
- bpo-1393667: pdb now has a "run" command which restarts the debugged |
| 12713 |
Python program, optionally with different arguments. |
| 12714 |
|
| 12715 |
- bpo-1649190: Adding support for _Bool to ctypes as c_bool. |
| 12716 |
|
| 12717 |
- bpo-1530482: add pydoc.render_doc() which returns the documentation for a |
| 12718 |
thing instead of paging it to stdout, which pydoc.doc() does. |
| 12719 |
|
| 12720 |
- bpo-1533909: the timeit module now accepts callables in addition to |
| 12721 |
strings for the code to time and the setup code. Also added two |
| 12722 |
convenience functions for instantiating a Timer and calling its methods. |
| 12723 |
|
| 12724 |
- bpo-1537850: tempfile.NamedTemporaryFile now has a "delete" parameter |
| 12725 |
which can be set to False to prevent the default delete-on-close behavior. |
| 12726 |
|
| 12727 |
- bpo-1581073: add a flag to textwrap that prevents the dropping of |
| 12728 |
whitespace while wrapping. |
| 12729 |
|
| 12730 |
- bpo-1603688: ConfigParser.SafeConfigParser now checks values that are set |
| 12731 |
for invalid interpolation sequences that would lead to errors on reading |
| 12732 |
back those values. |
| 12733 |
|
| 12734 |
- Added support for the POSIX.1-2001 (pax) format to tarfile.py. Extended |
| 12735 |
and cleaned up the test suite. Added a new testtar.tar. |
| 12736 |
|
| 12737 |
- bpo-1449244: Support Unicode strings in |
| 12738 |
email.message.Message.{set_charset,get_content_charset}. |
| 12739 |
|
| 12740 |
- bpo-1542681: add entries for "with", "as" and "CONTEXTMANAGERS" to pydoc's |
| 12741 |
help keywords. |
| 12742 |
|
| 12743 |
- bpo-1555098: use str.join() instead of repeated string concatenation in |
| 12744 |
robotparser. |
| 12745 |
|
| 12746 |
- bpo-1635454: the csv.DictWriter class now includes the offending field |
| 12747 |
names in its exception message if you try to write a record with a |
| 12748 |
dictionary containing fields not in the CSV field names list. |
| 12749 |
|
| 12750 |
- bpo-1668100: urllib2 now correctly raises URLError instead of OSError if |
| 12751 |
accessing a local file via the file:// protocol fails. |
| 12752 |
|
| 12753 |
- bpo-1677862: Require a space or tab after import in .pth files. |
| 12754 |
|
| 12755 |
- bpo-1192590: Fix pdb's "ignore" and "condition" commands so they trap the |
| 12756 |
IndexError caused by passing in an invalid breakpoint number. |
| 12757 |
|
| 12758 |
- bpo-1599845: Add an option to disable the implicit calls to server_bind() |
| 12759 |
and server_activate() in the constructors for TCPServer, |
| 12760 |
SimpleXMLRPCServer and DocXMLRPCServer. |
| 12761 |
|
| 12762 |
- bpo-1531963: Make SocketServer.TCPServer's server_address always be equal |
| 12763 |
to calling getsockname() on the server's socket. Fixed by patch #1545011. |
| 12764 |
|
| 12765 |
- bpo-742598: Add .timeout attribute to SocketServer that calls |
| 12766 |
.handle_timeout() when no requests are received. |
| 12767 |
|
| 12768 |
- bpo-1651235: When a tuple was passed to a ctypes function call, Python |
| 12769 |
would crash instead of raising an error. |
| 12770 |
|
| 12771 |
- bpo-1646630: ctypes.string_at(buf, 0) and ctypes.wstring_at(buf, 0) |
| 12772 |
returned string up to the first NUL character. |
| 12773 |
|
| 12774 |
- bpo-957003: Implement smtplib.LMTP. |
| 12775 |
|
| 12776 |
- bpo-1481079: add support for HTTP_REFERER to CGIHTTPServer. |
| 12777 |
|
| 12778 |
- bpo-1675424: Added tests for uncovered code in the zipfile module. The |
| 12779 |
KeyError raised by Zipfile.getinfo for nonexistent names now has a |
| 12780 |
descriptive message. |
| 12781 |
|
| 12782 |
- bpo-1115886: os.path.splitext('.cshrc') gives now ('.cshrc', ''). |
| 12783 |
|
| 12784 |
- unittest now verifies more of its assumptions. In particular, TestCase and |
| 12785 |
TestSuite subclasses (not instances) are no longer accepted in |
| 12786 |
TestSuite.addTest(). This should cause no incompatibility since it never |
| 12787 |
made sense with ordinary subclasses -- the failure just occurred later, |
| 12788 |
with a more cumbersome exception. |
| 12789 |
|
| 12790 |
- bpo-787789: allow passing custom TestRunner instances to unittest's main() |
| 12791 |
function. |
| 12792 |
|
| 12793 |
- bpo-1550273: fix a few bugs in unittest and add a comprehensive test suite |
| 12794 |
for the module. (See also: bpo-1550272) |
| 12795 |
|
| 12796 |
- bpo-1001604: glob.glob() now returns unicode filenames if it was given a |
| 12797 |
unicode argument and os.listdir() returns unicode filenames. |
| 12798 |
|
| 12799 |
- bpo-1673619: setup.py identifies extension modules it doesn't know how to |
| 12800 |
build and those it knows how to build but that fail to build. |
| 12801 |
|
| 12802 |
- bpo-912410: Replace HTML entity references for attribute values in |
| 12803 |
HTMLParser. |
| 12804 |
|
| 12805 |
- bpo-1663234: you can now run doctest on test files and modules using |
| 12806 |
"python -m doctest [-v] filename ...". |
| 12807 |
|
| 12808 |
- bpo-1121142: Implement ZipFile.open. |
| 12809 |
|
| 12810 |
- Taught setup.py how to locate Berkeley DB on Macs using MacPorts. |
| 12811 |
|
| 12812 |
- Added heapq.merge() for merging sorted input streams. |
| 12813 |
|
| 12814 |
- Added collections.namedtuple() for assigning field names to tuples. |
| 12815 |
|
| 12816 |
- Added itertools.izip_longest(). |
| 12817 |
|
| 12818 |
- Have the encoding package's search function dynamically import using |
| 12819 |
absolute import semantics. |
| 12820 |
|
| 12821 |
- bpo-1647484: Renamed GzipFile's filename attribute to name. |
| 12822 |
|
| 12823 |
- bpo-1517891: Mode 'a' for ZipFile now creates the file if it doesn't |
| 12824 |
exist. |
| 12825 |
|
| 12826 |
- bpo-698833: Support file decryption in zipfile. |
| 12827 |
|
| 12828 |
- bpo-685268: Consider a package's __path__ in imputil. |
| 12829 |
|
| 12830 |
- bpo-1463026: Support default namespace in XMLGenerator. |
| 12831 |
|
| 12832 |
- bpo-1571379: Make trace's --ignore-dir facility work in the face of |
| 12833 |
relative directory names. |
| 12834 |
|
| 12835 |
- bpo-1600860: Search for shared python library in LIBDIR, not |
| 12836 |
lib/python/config, on "linux" and "gnu" systems. |
| 12837 |
|
| 12838 |
- bpo-1652681: tarfile.py: create nonexistent files in append mode and allow |
| 12839 |
appending to empty files. |
| 12840 |
|
| 12841 |
- bpo-1124861: Automatically create pipes if GetStdHandle fails in |
| 12842 |
subprocess. |
| 12843 |
|
| 12844 |
- bpo-1634778: add missing encoding aliases for iso8859_15 and iso8859_16. |
| 12845 |
|
| 12846 |
- bpo-1638243: the compiler package is now able to correctly compile a with |
| 12847 |
statement; previously, executing code containing a with statement compiled |
| 12848 |
by the compiler package crashed the interpreter. |
| 12849 |
|
| 12850 |
- bpo-1643943: Fix time.strptime's support for the %U directive. |
| 12851 |
|
| 12852 |
- bpo-1507247: tarfile.py: use current umask for intermediate directories. |
| 12853 |
|
| 12854 |
- bpo-1627441: close sockets properly in urllib2. |
| 12855 |
|
| 12856 |
- bpo-494589: make ntpath.expandvars behave according to its docstring. |
| 12857 |
|
| 12858 |
- Changed platform module API python_version_tuple() to actually return a |
| 12859 |
tuple (it used to return a list). |
| 12860 |
|
| 12861 |
- Added new platform module APIs python_branch(), python_revision(), |
| 12862 |
python_implementation() and linux_distribution(). |
| 12863 |
|
| 12864 |
- Added support for IronPython and Jython to the platform module. |
| 12865 |
|
| 12866 |
- The sets module has been deprecated. Use the built-in set/frozenset types |
| 12867 |
instead. |
| 12868 |
|
| 12869 |
- bpo-1610795: make ctypes.util.find_library work on BSD systems. |
| 12870 |
|
| 12871 |
- Fixes for 64-bit Windows: In ctypes.wintypes, correct the definitions of |
| 12872 |
HANDLE, WPARAM, LPARAM data types. Make parameterless foreign function |
| 12873 |
calls work. |
| 12874 |
|
| 12875 |
- The version number of the ctypes package changed to "1.1.0". |
| 12876 |
|
| 12877 |
- bpo-1627575: logging: Added _open() method to FileHandler which can be |
| 12878 |
used to reopen files. The FileHandler instance now saves the encoding |
| 12879 |
(which can be None) in an attribute called "encoding". |
| 12880 |
|
| 12881 |
- bpo-411881: logging.handlers: bare except clause removed from |
| 12882 |
SMTPHandler.emit. Now, only ImportError is trapped. |
| 12883 |
|
| 12884 |
- bpo-411881: logging.handlers: bare except clause removed from |
| 12885 |
SocketHandler.createSocket. Now, only socket.error is trapped. |
| 12886 |
|
| 12887 |
- bpo-411881: logging: bare except clause removed from LogRecord.__init__. |
| 12888 |
Now, only ValueError, TypeError and AttributeError are trapped. |
| 12889 |
|
| 12890 |
- bpo-1504073: Fix tarfile.open() for mode "r" with a fileobj argument. |
| 12891 |
|
| 12892 |
- bpo-1182394: Speed up ``HMAC.hexdigest``. (Patch by Shane Holloway.) |
| 12893 |
|
| 12894 |
- bpo-1262036: Prevent TarFiles from being added to themselves under certain |
| 12895 |
conditions. |
| 12896 |
|
| 12897 |
- bpo-1230446: tarfile.py: fix ExFileObject so that read() and tell() work |
| 12898 |
correctly together with readline(). |
| 12899 |
|
| 12900 |
- bpo-1484695: The tarfile module now raises a HeaderError exception if a |
| 12901 |
buffer given to frombuf() is invalid. |
| 12902 |
|
| 12903 |
- bpo-1503765: Fix a problem in logging.config with spaces in comma- |
| 12904 |
separated lists read from logging config files. |
| 12905 |
|
| 12906 |
- bpo-1604907: Fix problems in logging.handlers caused at logging shutdown |
| 12907 |
when syslog handlers fail to initialize because of syslogd problems. |
| 12908 |
|
| 12909 |
- bpo-1608267: fix a race condition in os.makedirs() if the directory to be |
| 12910 |
created is already there. |
| 12911 |
|
| 12912 |
- bpo-1610437: fix a tarfile bug with long filename headers. |
| 12913 |
|
| 12914 |
- bpo-1371075: Make ConfigParser accept optional dict type for ordering, |
| 12915 |
sorting, etc. |
| 12916 |
|
| 12917 |
- bpo-1563807: _ctypes built on AIX fails with ld ffi error. |
| 12918 |
|
| 12919 |
- bpo-1598620: A ctypes Structure cannot contain itself. |
| 12920 |
|
| 12921 |
- bpo-1070046: Marshal new-style objects like InstanceType in xmlrpclib. |
| 12922 |
|
| 12923 |
- cStringIO.truncate(-1) now raises an IOError, like StringIO and regular |
| 12924 |
files. |
| 12925 |
|
| 12926 |
- bpo-1472877: Fix Tix subwidget name resolution. |
| 12927 |
|
| 12928 |
- bpo-1594554: Always close a tkSimpleDialog on ok(), even if an exception |
| 12929 |
occurs. |
| 12930 |
|
| 12931 |
- bpo-1538878: Don't make tkSimpleDialog dialogs transient if the parent |
| 12932 |
window is withdrawn. |
| 12933 |
|
| 12934 |
- bpo-1597824: return the registered function from atexit.register() to |
| 12935 |
facilitate usage as a decorator. |
| 12936 |
|
| 12937 |
- bpo-1360200: Use unmangled_version RPM spec field to deal with file name |
| 12938 |
mangling. |
| 12939 |
|
| 12940 |
- bpo-1359217: Process 2xx response in an ftplib transfer that precedes an |
| 12941 |
1xx response. |
| 12942 |
|
| 12943 |
- bpo-1355023: support whence argument for GzipFile.seek. |
| 12944 |
|
| 12945 |
- bpo-1065257: Support passing open files as body in |
| 12946 |
HTTPConnection.request(). |
| 12947 |
|
| 12948 |
- bpo-1569790: mailbox.py: Maildir.get_folder() and MH.get_folder() weren't |
| 12949 |
passing the message factory on to newly created Maildir/MH objects. |
| 12950 |
|
| 12951 |
- bpo-1514543: mailbox.py: In the Maildir class, report errors if there's a |
| 12952 |
filename clash instead of possibly losing a message. (Patch by David |
| 12953 |
Watson.) |
| 12954 |
|
| 12955 |
- bpo-1514544: Try to ensure that messages/indexes have been physically |
| 12956 |
written to disk after calling .flush() or .close(). (Patch by David |
| 12957 |
Watson.) |
| 12958 |
|
| 12959 |
- bpo-1592250: Add elide argument to Tkinter.Text.search. |
| 12960 |
|
| 12961 |
- bpo-838546: Make terminal become controlling in pty.fork(). |
| 12962 |
|
| 12963 |
- bpo-1351744: Add askyesnocancel helper for tkMessageBox. |
| 12964 |
|
| 12965 |
- bpo-1060577: Extract list of RPM files from spec file in bdist_rpm. |
| 12966 |
|
| 12967 |
- bpo-1586613: fix zlib and bz2 codecs' incremental en/decoders. |
| 12968 |
|
| 12969 |
- bpo-1583880: fix tarfile's problems with long names and posix/ GNU modes. |
| 12970 |
|
| 12971 |
- bpo-1586448: the compiler module now emits the same bytecode for list |
| 12972 |
comprehensions as the built-in compiler, using the LIST_APPEND opcode. |
| 12973 |
|
| 12974 |
- Fix codecs.EncodedFile which did not use file_encoding in 2.5.0, and fix |
| 12975 |
all codecs file wrappers to work correctly with the "with" statement (bug |
| 12976 |
#1586513). |
| 12977 |
|
| 12978 |
- Lib/modulefinder.py now handles absolute and relative imports correctly. |
| 12979 |
|
| 12980 |
- bpo-1567274: Support SMTP over TLS. |
| 12981 |
|
| 12982 |
- bpo-1560695: Add .note.GNU-stack to ctypes' sysv.S so that ctypes isn't |
| 12983 |
considered as requiring executable stacks. |
| 12984 |
|
| 12985 |
- ctypes callback functions only support 'fundamental' data types as result |
| 12986 |
type. Raise an error when something else is used. This is a partial fix |
| 12987 |
for Bug #1574584. |
| 12988 |
|
| 12989 |
- Fix turtle so that time.sleep is imported for the entire library. Allows |
| 12990 |
the demo2 function to be executed on its own instead of only when the |
| 12991 |
module is run as a script. |
| 12992 |
|
| 12993 |
- bpo-1565150: Fix subsecond processing for os.utime on Windows. |
| 12994 |
|
| 12995 |
- Support for MSVC 8 was added to bdist_wininst. |
| 12996 |
|
| 12997 |
- bpo-1446043: correctly raise a LookupError if an encoding name given to |
| 12998 |
encodings.search_function() contains a dot. |
| 12999 |
|
| 13000 |
- bpo-1560617: in pyclbr, return full module name not only for classes, but |
| 13001 |
also for functions. |
| 13002 |
|
| 13003 |
- bpo-1457823: cgi.(Sv)FormContentDict's constructor now takes |
| 13004 |
keep_blank_values and strict_parsing keyword arguments. |
| 13005 |
|
| 13006 |
- bpo-1566602: correct failure of posixpath unittest when $HOME ends with a |
| 13007 |
slash. |
| 13008 |
|
| 13009 |
- bpo-1565661: in webbrowser, split() the command for the default GNOME |
| 13010 |
browser in case it is a command with args. |
| 13011 |
|
| 13012 |
- Made the error message for time.strptime when the data and format do match |
| 13013 |
be more clear. |
| 13014 |
|
| 13015 |
- Fix a bug in traceback.format_exception_only() that led to an error being |
| 13016 |
raised when print_exc() was called without an exception set. In version |
| 13017 |
2.4, this printed "None", restored that behavior. |
| 13018 |
|
| 13019 |
- Make webbrowser.BackgroundBrowser usable in Windows (it wasn't because the |
| 13020 |
close_fds arg to subprocess.Popen is not supported). |
| 13021 |
|
| 13022 |
- bpo-1504333: Reverted change to sgmllib because it introduced an infinite |
| 13023 |
loop. |
| 13024 |
|
| 13025 |
- bpo-1553314: Fix the inspect.py slowdown that was hurting IPython & SAGE |
| 13026 |
by adding smarter caching in inspect.getmodule() |
| 13027 |
|
| 13028 |
- Fix missing import of the types module in logging.config. |
| 13029 |
|
| 13030 |
- bpo-1550886: Fix decimal module context management implementation to match |
| 13031 |
the localcontext() example from PEP 343. |
| 13032 |
|
| 13033 |
- bpo-1545341: The 'classifier' keyword argument to the Distutils setup() |
| 13034 |
function now accepts tuples as well as lists. |
| 13035 |
|
| 13036 |
- bpo-1541863: uuid.uuid1 failed to generate unique identifiers on systems |
| 13037 |
with low clock resolution. |
| 13038 |
|
| 13039 |
- bpo-1531862: Do not close standard file descriptors in subprocess. |
| 13040 |
|
| 13041 |
- Fix utf-8-sig incremental decoder, which didn't recognise a BOM when the |
| 13042 |
first chunk fed to the decoder started with a BOM, but was longer than 3 |
| 13043 |
bytes. |
| 13044 |
|
| 13045 |
- The implementation of UnicodeError objects has been simplified (start and |
| 13046 |
end attributes are now stored directly as Py_ssize_t members). |
| 13047 |
|
| 13048 |
- bpo-829951: In the smtplib module, SMTP.starttls() now complies with RFC |
| 13049 |
3207 and forgets any knowledge obtained from the server not obtained from |
| 13050 |
the TLS negotiation itself. Patch contributed by Bill Fenner. |
| 13051 |
|
| 13052 |
- bpo-1339: The smtplib.SMTP class has been refactored a bit such that the |
| 13053 |
SMTP.starttls() caller no longer needs to call ehlo() beforehand. |
| 13054 |
SMTP.starttls() now raises an exception of the server does not claim to |
| 13055 |
support starttls. Adds the SMTP.ehlo_or_helo_if_needed() method. Patch |
| 13056 |
contributed by Bill Fenner. |
| 13057 |
|
| 13058 |
- bpo-1089358: Add signal.siginterrupt, a wrapper around siginterrupt(3). |
| 13059 |
|
| 13060 |
- bpo-1657: added select.epoll and select.kqueue. |
| 13061 |
|
| 13062 |
- bpo-1506171: added operator.methodcaller(). |
| 13063 |
|
| 13064 |
- bpo-1826: operator.attrgetter() now supports dotted attribute paths. |
| 13065 |
|
| 13066 |
- bpo-1957: syslogmodule: Release GIL when calling syslog(3). |
| 13067 |
|
| 13068 |
- bpo-2112: mmap.error is now a subclass of EnvironmentError and not a |
| 13069 |
direct EnvironmentError. |
| 13070 |
|
| 13071 |
- bpo-2111: mmap segfaults when trying to write a block opened with |
| 13072 |
PROT_READ. |
| 13073 |
|
| 13074 |
- bpo-2063: correct order of utime and stime in os.times() result on |
| 13075 |
Windows. |
| 13076 |
|
| 13077 |
- bpo-1736: Fix file name handling of _msi.FCICreate. |
| 13078 |
|
| 13079 |
- Updated ``big5hkscs`` codec to the HKSCS revision of 2004. |
| 13080 |
|
| 13081 |
- bpo-1940: make it possible to use curses.filter() before curses.initscr() |
| 13082 |
as the documentation says. |
| 13083 |
|
| 13084 |
- Backport of _fileio module from Python 3.0. |
| 13085 |
|
| 13086 |
- bpo-1087741: mmap.mmap is now a class, not a factory function. It is also |
| 13087 |
subclassable now. |
| 13088 |
|
| 13089 |
- bpo-1648: added ``sys.getprofile()`` and ``sys.gettrace()``. |
| 13090 |
|
| 13091 |
- bpo-1663329: added ``os.closerange()`` function to quickly close a range |
| 13092 |
of file descriptors without considering errors. |
| 13093 |
|
| 13094 |
- bpo-976880: ``mmap`` objects now have an ``rfind`` method that works as |
| 13095 |
expected. ``mmap.find`` also takes an optional ``end`` parameter. |
| 13096 |
|
| 13097 |
- _winreg's HKEY object has gained __enter__ and __exit__ methods to support |
| 13098 |
the context management protocol. The _winreg module also gained a new |
| 13099 |
function ``ExpandEnvironmentStrings`` to expand REG_EXPAND_SZ keys. |
| 13100 |
|
| 13101 |
- itertools.starmap() now accepts any iterable input. Previously, it |
| 13102 |
required the function inputs to be tuples. |
| 13103 |
|
| 13104 |
- itertools.chain() now has an alternate constructor, chain.from_iterable(). |
| 13105 |
|
| 13106 |
- bpo-1646: Make socket support TIPC. The socket module now has support for |
| 13107 |
TIPC under Linux, see http://tipc.sf.net/ for more information. |
| 13108 |
|
| 13109 |
- Added interface for Windows' WSAIoctl to socket object and added an |
| 13110 |
example for a simple network sniffer. |
| 13111 |
|
| 13112 |
- bpo-1301: Bad assert in _tkinter fixed. |
| 13113 |
|
| 13114 |
- Added bdist_wininst executable for VS 2008. |
| 13115 |
|
| 13116 |
- bpo-1604: collections.deque.__init__(iterable) now clears any prior |
| 13117 |
contents before adding elements from the iterable. This fix brings the |
| 13118 |
behavior into line with that for list.__init__(). |
| 13119 |
|
| 13120 |
- Added wide char functions to msvcrt module: getwch, getwche, putwch and |
| 13121 |
ungetwch. The functions accept or return unicode. |
| 13122 |
|
| 13123 |
- os.access now returns True on Windows for any existing directory. |
| 13124 |
|
| 13125 |
- Added warnpy3k function to the warnings module. |
| 13126 |
|
| 13127 |
- Marshal.dumps() now expects exact type matches for int, long, float, |
| 13128 |
complex, tuple, list, dict, set, and frozenset. Formerly, it would |
| 13129 |
silently miscode subclasses of those types. Now, it raises a ValueError |
| 13130 |
instead. |
| 13131 |
|
| 13132 |
- bpo-1388440: Add set_completion_display_matches_hook and |
| 13133 |
get_completion_type to readline. |
| 13134 |
|
| 13135 |
- bpo-1649098: Avoid declaration of zero-sized array declaration in |
| 13136 |
structure. |
| 13137 |
|
| 13138 |
- Removed the rgbimg module; been deprecated since Python 2.5. |
| 13139 |
|
| 13140 |
- bpo-1721309: prevent bsddb module from freeing random memory. |
| 13141 |
|
| 13142 |
- bpo-1233: fix bsddb.dbshelve.DBShelf append method to work as intended for |
| 13143 |
RECNO databases. |
| 13144 |
|
| 13145 |
- pybsddb.sf.net Bug #477182: Load the database flags at database open time |
| 13146 |
so that opening a database previously created with the DB_DUP or |
| 13147 |
DB_DUPSORT flag set will keep the proper behavior on subsequent opens. |
| 13148 |
Specifically: dictionary assignment to a DB object will replace all values |
| 13149 |
for a given key when the database allows duplicate values. DB users |
| 13150 |
should use DB.put(k, v) when they want to store duplicates; not DB[k] = v. |
| 13151 |
|
| 13152 |
- Add the bsddb.db.DBEnv.lock_id_free method. |
| 13153 |
|
| 13154 |
- bpo-1686475: Support stat'ing open files on Windows again. |
| 13155 |
|
| 13156 |
- bpo-1185447: binascii.b2a_qp() now correctly quotes binary characters with |
| 13157 |
ASCII value less than 32. Also, it correctly quotes dots only if they |
| 13158 |
occur on a single line, as opposed to the previous behavior of quoting |
| 13159 |
dots if they are the second character of any line. |
| 13160 |
|
| 13161 |
- bpo-1622896: fix a rare corner case where the bz2 module raised an error |
| 13162 |
in spite of a succesful compression. |
| 13163 |
|
| 13164 |
- bpo-1654417: make operator.{get,set,del}slice use the full range of |
| 13165 |
Py_ssize_t. |
| 13166 |
|
| 13167 |
- bpo-1646728: datetime.fromtimestamp fails with negative fractional times. |
| 13168 |
With unittest. |
| 13169 |
|
| 13170 |
- bpo-1490190: posixmodule now includes os.chflags() and os.lchflags() |
| 13171 |
functions on platforms where the underlying system calls are available. |
| 13172 |
|
| 13173 |
- bpo-1494140: Add documentation for the new struct.Struct object. |
| 13174 |
|
| 13175 |
- bpo-1432399: Support the HCI protocol for bluetooth sockets |
| 13176 |
|
| 13177 |
- bpo-1657276: Make NETLINK_DNRTMSG conditional. |
| 13178 |
|
| 13179 |
- bpo-1653736: Complain about keyword arguments to time.isoformat. |
| 13180 |
|
| 13181 |
- bpo-1486663: don't reject keyword arguments for subclasses of built-in |
| 13182 |
types. |
| 13183 |
|
| 13184 |
- bpo-1610575: The struct module now supports the 't' code, for C99 _Bool. |
| 13185 |
|
| 13186 |
- bpo-1635058: ensure that htonl and friends never accept or return negative |
| 13187 |
numbers, per the underlying C implementation. |
| 13188 |
|
| 13189 |
- bpo-1544279: Improve thread-safety of the socket module by moving the |
| 13190 |
sock_addr_t storage out of the socket object. |
| 13191 |
|
| 13192 |
- bpo-1019808: fix bug that causes an incorrect error to be returned when a |
| 13193 |
socket timeout is set and a connection attempt fails. |
| 13194 |
|
| 13195 |
- Speed up function calls into the math module. |
| 13196 |
|
| 13197 |
- bpo-1588217: don't parse "= " as a soft line break in binascii's a2b_qp() |
| 13198 |
function, instead leave it in the string as quopri.decode() does. |
| 13199 |
|
| 13200 |
- bpo-1599782: Fix segfault on bsddb.db.DB().type(). |
| 13201 |
|
| 13202 |
- bpo-1567666: Emulate GetFileAttributesExA for Win95. |
| 13203 |
|
| 13204 |
- bpo-1576166: Support os.utime for directories on Windows NT+. |
| 13205 |
|
| 13206 |
- bpo-1572724: fix typo ('=' instead of '==') in _msi.c. |
| 13207 |
|
| 13208 |
- bpo-1572832: fix a bug in ISO-2022 codecs which may cause segfault when |
| 13209 |
encoding non-BMP unicode characters. |
| 13210 |
|
| 13211 |
- bpo-1556784: allow format strings longer than 127 characters in datetime's |
| 13212 |
strftime function. |
| 13213 |
|
| 13214 |
- Fix itertools.count(n) to work with negative numbers again. |
| 13215 |
|
| 13216 |
- RLIMIT_SBSIZE was added to the resource module where available. |
| 13217 |
|
| 13218 |
- bpo-1551427: fix a wrong NULL pointer check in the win32 version of |
| 13219 |
os.urandom(). |
| 13220 |
|
| 13221 |
- bpo-1548092: fix curses.tparm seg fault on invalid input. |
| 13222 |
|
| 13223 |
- bpo-1114: fix curses module compilation on 64-bit AIX, & possibly other |
| 13224 |
64-bit LP64 platforms where attr_t is not the same size as a long. |
| 13225 |
(Contributed by Luke Mewburn.) |
| 13226 |
|
| 13227 |
- bpo-1550714: fix SystemError from itertools.tee on negative value for n. |
| 13228 |
|
| 13229 |
- Fixed a few bugs on cjkcodecs: - gbk and gb18030 codec now handle U+30FB |
| 13230 |
KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 |
| 13231 |
for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 |
| 13232 |
and iso2022_jp_2004 codec can encode JIS X 0213:2 codepoints now. |
| 13233 |
|
| 13234 |
- bpo-1552726: in readline.c, avoid repeatedly polling in interactive mode |
| 13235 |
by only placing a timeout on the select() if an input hook has been |
| 13236 |
defined. This prevents an interactive Python from waking up 10 times per |
| 13237 |
second. Patch by Richard Boulton. |
| 13238 |
|
| 13239 |
- fixed a bug with bsddb.DB.stat: the flags and txn keyword arguments were |
| 13240 |
transposed. |
| 13241 |
|
| 13242 |
- Added support for linking the bsddb module against BerkeleyDB 4.5.x, 4.6.x |
| 13243 |
and 4.7.x. |
| 13244 |
|
| 13245 |
- bpo-1633621: if curses.resizeterm() or curses.resize_term() is called, |
| 13246 |
update _curses.LINES, _curses.COLS, curses.LINES and curses.COLS. |
| 13247 |
|
| 13248 |
- Fix an off-by-one bug in locale.strxfrm(). |
| 13249 |
|
| 13250 |
- Fix libffi configure for hppa*-*-linux* | parisc*-*-linux*. |
| 13251 |
|
| 13252 |
- Build using system ffi library on arm*-linux*. |
| 13253 |
|
| 13254 |
- bpo-1372: zlibmodule.c: int overflow in PyZlib_decompress |
| 13255 |
|
| 13256 |
- bsddb module: Fix memory leak when using database cursors on databases |
| 13257 |
without a DBEnv. |
| 13258 |
|
| 13259 |
- The sqlite3 module was updated to pysqlite 2.4.1. |
| 13260 |
|
| 13261 |
IDLE |
| 13262 |
---- |
| 13263 |
|
| 13264 |
- bpo-813342: Start the IDLE subprocess with -Qnew if the parent is started |
| 13265 |
with that option. |
| 13266 |
|
| 13267 |
- IDLE: Honor the "Cancel" action in the save dialog (Debian bug #299092). |
| 13268 |
|
| 13269 |
Tests |
| 13270 |
----- |
| 13271 |
|
| 13272 |
- bpo-30357: test_thread: setUp() now uses support.threading_setup() and |
| 13273 |
support.threading_cleanup() to wait until threads complete to avoid random |
| 13274 |
side effects on following tests. Initial patch written by Grzegorz |
| 13275 |
Grzywacz. |
| 13276 |
|
| 13277 |
- Refactor test_logging to use unittest. |
| 13278 |
|
| 13279 |
- Refactor test_profile and test_cprofile to use the same code to profile. |
| 13280 |
|
| 13281 |
- Make test_runpy reentrant by fixing _check_module to clear out any module |
| 13282 |
being tested. Was causing an error by __import__ doing a reload on the |
| 13283 |
second run and thus suppressing bytecode recreation. |
| 13284 |
|
| 13285 |
- Capture socket connection resets and timeouts in test_socket_ssl and |
| 13286 |
test_urllib2net and raise test.test_support.ResourceDenied. |
| 13287 |
|
| 13288 |
- bpo-1559413: Fix test_cmd_line if sys.executable contains a space. |
| 13289 |
|
| 13290 |
- Added test.test_support.TransientResource which is a context manager to |
| 13291 |
surround calls to resources that are not guaranteed to work even if |
| 13292 |
test.test_support.requires says that the resource should exist. |
| 13293 |
|
| 13294 |
- Added a test for slicing of an exception. |
| 13295 |
|
| 13296 |
- Added test.test_support.EnvironmentVarGuard. It's a class that provides a |
| 13297 |
context manager so that one can temporarily set or unset environment |
| 13298 |
variables. |
| 13299 |
|
| 13300 |
- Added some tests for modulefinder. |
| 13301 |
|
| 13302 |
- Converted test_imp to use unittest. |
| 13303 |
|
| 13304 |
- Fix bsddb test_basics.test06_Transactions to check the version number |
| 13305 |
properly. |
| 13306 |
|
| 13307 |
- test.test_support.catch_warning is a new context manager that can be used |
| 13308 |
to catch the warnings issued by the warning framework. |
| 13309 |
|
| 13310 |
Tools/Demos |
| 13311 |
----------- |
| 13312 |
|
| 13313 |
- Tools/scripts/reindent.py now creates the backup file using shutil.copy to |
| 13314 |
preserve user/group and permissions. Added also a --nobackup option to not |
| 13315 |
create the backup if the user is concerned regarding this. Check issue |
| 13316 |
#1050828 for more details. |
| 13317 |
|
| 13318 |
- Tools/scripts/win_add2path.py was added. The simple script modifes the |
| 13319 |
PATH environment var of the HKCU tree and adds the python bin and script |
| 13320 |
directory. |
| 13321 |
|
| 13322 |
- Tools/18n/pygettext.py was added to the list of scripts installed by |
| 13323 |
Tools/scripts/setup.py (tracker item 642309). |
| 13324 |
|
| 13325 |
- Added IronPython and Jython support to pybench (part of which was patch |
| 13326 |
#1563844). |
| 13327 |
|
| 13328 |
- Made some minor changes to pybench output to allow the user to see which |
| 13329 |
Python version is running pybench. |
| 13330 |
|
| 13331 |
- Added support for the new platform module feature |
| 13332 |
platform.python_implementation(); this will now be saved in the benchmark |
| 13333 |
pickle. |
| 13334 |
|
| 13335 |
Documentation |
| 13336 |
------------- |
| 13337 |
|
| 13338 |
- RFE #1765140: Updated documentation on FileHandler and subclasses to |
| 13339 |
include new optional delay argument. |
| 13340 |
|
| 13341 |
- bpo-932563: Added section on getting contextual information into logging |
| 13342 |
output, and added documentation for the new LoggerAdapter class. |
| 13343 |
|
| 13344 |
- bpo-1295: Added information about caching of formatted exception |
| 13345 |
information in the LogRecord by Formatter.format(). |
| 13346 |
|
| 13347 |
- bpo-1637365: add subsection about "__name__ == __main__" to the Python |
| 13348 |
tutorial. |
| 13349 |
|
| 13350 |
- bpo-1698768: updated the "using Python on the Mac" intro. |
| 13351 |
|
| 13352 |
- bpo-1569057: Document that calling file.next() when the file is open for |
| 13353 |
writing is undefined. |
| 13354 |
|
| 13355 |
- bpo-1489771: the syntax rules in Python Reference Manual were updated to |
| 13356 |
reflect the current Python syntax. |
| 13357 |
|
| 13358 |
- bpo-1686451: Fix return type for PySequence_{Count,Index,Fast_GET_SIZE}. |
| 13359 |
|
| 13360 |
- bpo-1679379: add documentation for fnmatch.translate(). |
| 13361 |
|
| 13362 |
- bpo-1629566: clarify the docs on the return values of parsedate() and |
| 13363 |
parsedate_tz() in email.utils and rfc822. |
| 13364 |
|
| 13365 |
- bpo-1671450: add a section about subclassing built-in types to the |
| 13366 |
"extending and embedding" tutorial. |
| 13367 |
|
| 13368 |
- bpo-1629125: fix wrong data type (int -> Py_ssize_t) in PyDict_Next docs. |
| 13369 |
|
| 13370 |
- bpo-1565919: document set types in the Language Reference. |
| 13371 |
|
| 13372 |
- bpo-1546052: clarify that PyString_FromString(AndSize) copies the string |
| 13373 |
pointed to by its parameter. |
| 13374 |
|
| 13375 |
- bpo-1566663: remove obsolete example from datetime docs. |
| 13376 |
|
| 13377 |
- bpo-1541682: Fix example in the "Refcount details" API docs. Additionally, |
| 13378 |
remove a faulty example showing PySequence_SetItem applied to a newly |
| 13379 |
created list object and add notes that this isn't a good idea. |
| 13380 |
|
| 13381 |
Tools/Demos |
| 13382 |
----------- |
| 13383 |
|
| 13384 |
- bpo-1552024: add decorator support to unparse.py demo script. |
| 13385 |
|
| 13386 |
- Make auto-generated python.vim file list built-ins and exceptions in |
| 13387 |
alphatbetical order. Makes output more deterministic and easier to tell |
| 13388 |
if the file is stale or not. |
| 13389 |
|
| 13390 |
- bpo-1546372: Fixed small bugglet in pybench that caused a missing file not |
| 13391 |
to get reported properly. |
| 13392 |
|
| 13393 |
Build |
| 13394 |
----- |
| 13395 |
|
| 13396 |
- Have the search path for building extensions follow the declared order in |
| 13397 |
$CPPFLAGS and $LDFLAGS when adding directories from those environment |
| 13398 |
variables. |
| 13399 |
|
| 13400 |
- bpo-1983: Added a check to pyport to verify that sizeof(pid_t) is smaller |
| 13401 |
or equal sizeof(long). |
| 13402 |
|
| 13403 |
- bpo-1234: Fixed semaphore errors on AIX 5.2 |
| 13404 |
|
| 13405 |
- bpo-1726: Remove Python/atof.c from PCBuild/pythoncore.vcproj. |
| 13406 |
|
| 13407 |
- Removed PCbuild8/ directory and added a new build directory for VS 2005 |
| 13408 |
based on the VS 2008 build directory to PC/VS8.0. The script |
| 13409 |
PCbuild/vs8to9.py was added to sync changes from PCbuild to PC/VS8.0. |
| 13410 |
|
| 13411 |
- Moved PCbuild/ directory for VS 2003 to PC/VS7.1 and renamed PCBuild9/ |
| 13412 |
directory to PCBuild/. |
| 13413 |
|
| 13414 |
- bpo-1699: Define _BSD_SOURCE only on OpenBSD. |
| 13415 |
|
| 13416 |
- bpo-1608: use -fwrapv when GCC supports it. This is important, newer GCC |
| 13417 |
versions may optimize away overflow buffer overflow checks without this |
| 13418 |
option! |
| 13419 |
|
| 13420 |
- bpo-1418: Make the AC_REPLACE_FUNCS object files actually work. |
| 13421 |
|
| 13422 |
- Add a FAST_LOOPS build option that speeds-up looping by trading away |
| 13423 |
periodic threadstate and signal checking in tight loops. By default, this |
| 13424 |
option is turned-off. It should only be enabled in debugged, performance |
| 13425 |
critical applications. |
| 13426 |
|
| 13427 |
- bpo-786737: Allow building in a tree of symlinks pointing to a readonly |
| 13428 |
source. |
| 13429 |
|
| 13430 |
- bpo-1737210: Change Manufacturer of Windows installer to PSF. |
| 13431 |
|
| 13432 |
- bpo-1746880: Correctly install DLLs into system32 folder on Win64. |
| 13433 |
|
| 13434 |
- Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD 4.1+. |
| 13435 |
|
| 13436 |
- Stop supporting AtheOS and cause a build error in configure for the |
| 13437 |
platform. |
| 13438 |
|
| 13439 |
- bpo-1655392: don't add -L/usr/lib/pythonX.Y/config to the LDFLAGS returned |
| 13440 |
by python-config if Python was built with --enable-shared because that |
| 13441 |
prevented the shared library from being used. |
| 13442 |
|
| 13443 |
- bpo-1569798: fix a bug in distutils when building Python from a directory |
| 13444 |
within sys.exec_prefix. |
| 13445 |
|
| 13446 |
- bpo-1675511: Use -Kpic instead of -xcode=pic32 on Solaris/x86. |
| 13447 |
|
| 13448 |
- Disable _XOPEN_SOURCE on NetBSD 1.x. |
| 13449 |
|
| 13450 |
- configure now checks whether gcc supports the PyArg_ParseTuple format |
| 13451 |
attribute. |
| 13452 |
|
| 13453 |
- bpo-1578513: Cross compilation was broken by a change to configure. Repair |
| 13454 |
so that it's back to how it was in 2.4.3. |
| 13455 |
|
| 13456 |
- bpo-1576954: Update VC6 build directory; remove redundant files in VC7. |
| 13457 |
|
| 13458 |
- bpo-1568842: Fix test for uintptr_t. |
| 13459 |
|
| 13460 |
- bpo-1540470: for OpenBSD 4.0. |
| 13461 |
|
| 13462 |
- Fix build failure on kfreebsd and on the hurd. |
| 13463 |
|
| 13464 |
- Fix the build of the library reference in info format. |
| 13465 |
|
| 13466 |
- Allow Emacs 22 for building the documentation in info format. |
| 13467 |
|
| 13468 |
- Makefile.pre.in(buildbottest): Run an optional script pybuildbot.identify |
| 13469 |
to include some information about the build environment. |
| 13470 |
|
| 13471 |
C API |
| 13472 |
----- |
| 13473 |
|
| 13474 |
- Unified naming convention for free lists and their limits. All free lists |
| 13475 |
in Object/ are named ``free_list``, the counter ``numfree`` and the upper |
| 13476 |
limit is a macro ``PyName_MAXFREELIST`` inside an #ifndef block. |
| 13477 |
|
| 13478 |
- ``PySet_Add()`` can now modify a newly created frozenset. Similarly to |
| 13479 |
``PyTuple_SetItem``, it can be used to populate a brand new frozenset; but |
| 13480 |
it does not steal a reference to the added item. |
| 13481 |
|
| 13482 |
- Added ``PySet_Check()`` and ``PyFrozenSet_Check()`` to the set API. |
| 13483 |
|
| 13484 |
- Backport of PyUnicode_FromString(), _FromStringAndSize(), _Format and |
| 13485 |
_FormatV from Python 3.0. Made PyLong_AsSsize_t and PyLong_FromSsize_t |
| 13486 |
public functions. |
| 13487 |
|
| 13488 |
- bpo-1720595: add T_BOOL to the range of structmember types. |
| 13489 |
|
| 13490 |
- bpo-1534: Added ``PyFloat_GetMax()``, ``PyFloat_GetMin()`` and |
| 13491 |
``PyFloat_GetInfo()`` to the float API. |
| 13492 |
|
| 13493 |
- bpo-1521: On 64bit platforms, using PyArgs_ParseTuple with the t# of w# |
| 13494 |
format code incorrectly truncated the length to an int, even when |
| 13495 |
PY_SSIZE_T_CLEAN is set. The str.decode method used to return incorrect |
| 13496 |
results with huge strings. |
| 13497 |
|
| 13498 |
- bpo-1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and |
| 13499 |
Py_REFCNT. |
| 13500 |
|
| 13501 |
- PEP 3123: Provide forward compatibility with Python 3.0, while keeping |
| 13502 |
backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and |
| 13503 |
PyVarObject_HEAD_INIT. |
| 13504 |
|
| 13505 |
- Py_ssize_t fields work in structmember when HAVE_LONG_LONG is not defined. |
| 13506 |
|
| 13507 |
- bpo-1733960: Allow T_LONGLONG to accept ints. |
| 13508 |
|
| 13509 |
- T_PYSSIZET can now be used in PyMemberDef lists for Py_ssize_t members. |
| 13510 |
|
| 13511 |
- Added a new API function ``PyImport_ImportModuleNoBlock``. |
| 13512 |
|
| 13513 |
- bpo-1637022: Prefix AST symbols with _Py_. |
| 13514 |
|
| 13515 |
- Fix some leftovers from the conversion from int to Py_ssize_t (relevant to |
| 13516 |
strings and sequences of more than 2**31 items). |
| 13517 |
|
| 13518 |
- Make _PyGILState_NoteThreadState() static, it was not used anywhere |
| 13519 |
outside of pystate.c and should not be necessary. |
| 13520 |
|
| 13521 |
- ``PyImport_Import`` and ``PyImport_ImportModule`` now always do absolute |
| 13522 |
imports. In earlier versions they might have used relative imports under |
| 13523 |
some conditions. |
| 13524 |
|
| 13525 |
- Added case insensitive comparison methods ``PyOS_stricmp(char*, char*)`` |
| 13526 |
and ``PyOS_strnicmp(char*, char*, Py_ssize_t)``. |
| 13527 |
|
| 13528 |
- bpo-1542693: remove semi-colon at end of PyImport_ImportModuleEx macro so |
| 13529 |
it can be used as an expression. |
| 13530 |
|
| 13531 |
Windows |
| 13532 |
------- |
| 13533 |
|
| 13534 |
- bpo-1706: Drop support for Win9x, WinME and NT4. Python now requires |
| 13535 |
Windows 2000 or greater. The _WINVER and NTDDI_VERSION macros are set to |
| 13536 |
Win2k for x86/32bit builds and WinXP for AMD64 builds. |
| 13537 |
|
| 13538 |
- Conditionalize definition of _CRT_SECURE_NO_DEPRECATE and |
| 13539 |
_CRT_NONSTDC_NO_DEPRECATE. |
| 13540 |
|
| 13541 |
- bpo-1216: Restore support for Visual Studio 2002. |
| 13542 |
|
| 13543 |
macOS |
| 13544 |
----- |
| 13545 |
|
| 13546 |
- cfmfile now raises a DeprecationWarning. |
| 13547 |
|
| 13548 |
- buildtools now raises a DeprecationWarning. |
| 13549 |
|
| 13550 |
- Removed the macfs module. It had been deprecated since Python 2.5. This |
| 13551 |
lead to the deprecation of macostools.touched() as it relied solely on |
| 13552 |
macfs and was a no-op under OS X. |
| 13553 |
|
| 13554 |
|
| 13555 |
**(For information about older versions, consult the HISTORY file.)** |