1.. bpo: 1733757 2.. date: 6865 3.. nonce: cyKvMt 4.. release date: 02-Apr-2008 5.. section: Core and Builtins 6 7The interpreter would hang on shutdown if the tracing function set by 8sys.settrace is still active and happens to call threading.currentThread(). 9 10.. 11 12.. bpo: 1442 13.. date: 6864 14.. nonce: h73ZTm 15.. section: Core and Builtins 16 17properly report exceptions when the PYTHONSTARTUP file cannot be executed. 18 19.. 20 21.. bpo: 0 22.. date: 6863 23.. nonce: q3LWX0 24.. section: Core and Builtins 25 26The compilation of a class nested in another class used to leak one 27reference on the outer class name. 28 29.. 30 31.. bpo: 1810 32.. date: 6862 33.. nonce: ESXjRG 34.. section: Core and Builtins 35 36compile() can now compile _ast trees as returned by ``compile(..., 37PyCF_ONLY_AST)``. 38 39.. 40 41.. bpo: 2426 42.. date: 6861 43.. nonce: H-NFT6 44.. section: Core and Builtins 45 46Added sqlite3.Connection.iterdump method to allow easy dumping of databases. 47Contributed by Paul Kippes at PyCon 2008. 48 49.. 50 51.. bpo: 2477 52.. date: 6860 53.. nonce: iEeee2 54.. section: Core and Builtins 55 56Added from __future__ import unicode_literals. 57 58.. 59 60.. bpo: 0 61.. date: 6859 62.. nonce: MQCT3j 63.. section: Core and Builtins 64 65Added backport of bytearray type. 66 67.. 68 69.. bpo: 2355 70.. date: 6858 71.. nonce: 3IrFJn 72.. section: Core and Builtins 73 74add Py3k warning for buffer(). 75 76.. 77 78.. bpo: 1477 79.. date: 6857 80.. nonce: kL8T9Y 81.. section: Core and Builtins 82 83With narrow Unicode builds, the unicode escape sequence \Uxxxxxxxx did not 84accept values outside the Basic Multilingual Plane. This affected raw 85unicode literals and the 'raw-unicode-escape' codec. Now UTF-16 surrogates 86are generated in this case, like normal unicode literals and the 87'unicode-escape' codec. 88 89.. 90 91.. bpo: 2348 92.. date: 6856 93.. nonce: bTKRrx 94.. section: Core and Builtins 95 96add Py3k warning for file.softspace. 97 98.. 99 100.. bpo: 2346 101.. date: 6855 102.. nonce: ZdxBIW 103.. section: Core and Builtins 104 105add Py3k warnings for __methods__ and __members__. (See also: bpo-2347) 106 107.. 108 109.. bpo: 2358 110.. date: 6854 111.. nonce: -9p_qA 112.. section: Core and Builtins 113 114Add a Py3k warning on sys.exc_clear() usage. 115 116.. 117 118.. bpo: 2400 119.. date: 6853 120.. nonce: Vh9y6O 121.. section: Core and Builtins 122 123Allow relative imports to "import *". 124 125.. 126 127.. bpo: 1745 128.. date: 6852 129.. nonce: E7-cUG 130.. section: Core and Builtins 131 132Backport print function with ``from __future__ import print_function``. 133 134.. 135 136.. bpo: 2332 137.. date: 6851 138.. nonce: J5iU51 139.. section: Core and Builtins 140 141add new attribute names for instance method objects. The two changes are: 142im_self -> __self__ and im_func -> __func__ 143 144.. 145 146.. bpo: 2379 147.. date: 6850 148.. nonce: 9-tqgC 149.. section: Core and Builtins 150 151Raise a Py3K warning for __getitem__ or __getslice__ on exception instances. 152 153.. 154 155.. bpo: 2371 156.. date: 6849 157.. nonce: xuvdpy 158.. section: Core and Builtins 159 160Add a Py3k warning when catching an exception that doesn't derive from 161BaseException. 162 163.. 164 165.. bpo: 2341 166.. date: 6848 167.. nonce: LmD2N7 168.. section: Core and Builtins 169 170Add a Py3k warning when raising an exception that doesn't derive from 171BaseException. 172 173.. 174 175.. bpo: 2321 176.. date: 6847 177.. nonce: v7FzTy 178.. section: Core and Builtins 179 180use pymalloc for unicode object string data to reduce memory usage in some 181circumstances. 182 183.. 184 185.. bpo: 0 186.. date: 6846 187.. nonce: O8A72m 188.. section: Core and Builtins 189 190PEP 3127: octal literals now start with "0o". Old-style octal literals are 191still valid. There are binary literals with a prefix of "0b". This also 192affects int(x, 0). 193 194.. 195 196.. bpo: 2359 197.. date: 6845 198.. nonce: cR7f7i 199.. section: Core and Builtins 200 201Adding deprecation warnings for array.{read,write}. 202 203.. 204 205.. bpo: 1779871 206.. date: 6844 207.. nonce: Q9u7-T 208.. section: Core and Builtins 209 210GNU gcc can now build Python on OS X because the flags -Wno-long-double, 211-no-cpp-precomp, and -mno-fused-madd are no longer passed. 212 213.. 214 215.. bpo: 0 216.. date: 6843 217.. nonce: 00spAB 218.. section: Core and Builtins 219 220Add a warning when asserting a non-empty tuple which is always true. 221 222.. 223 224.. bpo: 2179 225.. date: 6842 226.. nonce: 6ZA8c- 227.. section: Core and Builtins 228 229speed up with statement execution by storing the exit method on the stack 230instead of in a temporary variable (patch by Jeffrey Yaskin) 231 232.. 233 234.. bpo: 2238 235.. date: 6841 236.. nonce: LMUvyp 237.. section: Core and Builtins 238 239Some syntax errors in *args and **kwargs expressions could give bogus error 240messages. 241 242.. 243 244.. bpo: 2143 245.. date: 6840 246.. nonce: 39hw9G 247.. section: Core and Builtins 248 249Fix embedded readline() hang on SSL socket EOF. 250 251.. 252 253.. bpo: 2240 254.. date: 6839 255.. nonce: WNReGo 256.. section: Library 257 258Implement signal.setitimer and signal.getitimer. 259 260.. 261 262.. bpo: 2315 263.. date: 6838 264.. nonce: pqno5o 265.. section: Library 266 267logging.handlers: TimedRotatingFileHandler now accounts for daylight savings 268time in calculating the next rollover. 269 270.. 271 272.. bpo: 2316 273.. date: 6837 274.. nonce: ZS89xB 275.. section: Library 276 277logging.handlers: TimedRotatingFileHandler now calculates rollovers 278correctly even when nothing is logged for a while. 279 280.. 281 282.. bpo: 2317 283.. date: 6836 284.. nonce: 4RDUg2 285.. section: Library 286 287logging.handlers: TimedRotatingFileHandler now uses improved logic for 288removing old files. 289 290.. 291 292.. bpo: 2495 293.. date: 6835 294.. nonce: XaNV_D 295.. section: Library 296 297tokenize.untokenize now inserts a space between two consecutive string 298literals; previously, ["" ""] was rendered as [""""], which is incorrect 299python code. 300 301.. 302 303.. bpo: 2248 304.. date: 6834 305.. nonce: EFdgNK 306.. section: Library 307 308return the result of the QUIT command. from SMTP.quit(). 309 310.. 311 312.. bpo: 0 313.. date: 6833 314.. nonce: lDMF2h 315.. section: Library 316 317Backport of Python 3.0's io module. 318 319.. 320 321.. bpo: 2482 322.. date: 6832 323.. nonce: gt5k7F 324.. section: Library 325 326Make sure that the coefficient of a Decimal is always stored as a str 327instance, not as a unicode instance. This ensures that str(Decimal) is 328always an instance of str. 329 330.. 331 332.. bpo: 2478 333.. date: 6831 334.. nonce: A33H1n 335.. section: Library 336 337fix failure of decimal.Decimal(0).sqrt() 338 339.. 340 341.. bpo: 2432 342.. date: 6830 343.. nonce: K_Wmv6 344.. section: Library 345 346give DictReader the dialect and line_num attributes advertised in the docs. 347 348.. 349 350.. bpo: 2460 351.. date: 6829 352.. nonce: N-GQGP 353.. section: Library 354 355Make Ellipsis object copyable. 356 357.. 358 359.. bpo: 1681432 360.. date: 6828 361.. nonce: UMEj9l 362.. section: Library 363 364Add triangular distribution to the random module 365 366.. 367 368.. bpo: 2136 369.. date: 6827 370.. nonce: pMUClw 371.. section: Library 372 373urllib2's auth handler now allows single-quoted realms in the 374WWW-Authenticate header. 375 376.. 377 378.. bpo: 2434 379.. date: 6826 380.. nonce: 7NhX4x 381.. section: Library 382 383Enhanced platform.win32_ver() to also work on Python installation which do 384not have the win32all package installed. 385 386.. 387 388.. bpo: 0 389.. date: 6825 390.. nonce: Mua_8k 391.. section: Library 392 393Added support to platform.uname() to also report the machine and processor 394information on Windows XP and later. As a result, platform.machine() and 395platform.processor() will report this information as well. 396 397.. 398 399.. bpo: 0 400.. date: 6824 401.. nonce: TVfcNn 402.. section: Library 403 404The library implementing the 2to3 conversion, lib2to3, was added to the 405standard distribution. 406 407.. 408 409.. bpo: 1747858 410.. date: 6823 411.. nonce: q45meX 412.. section: Library 413 414Fix chown to work with large uid's and gid's on 64-bit platforms. 415 416.. 417 418.. bpo: 1202 419.. date: 6822 420.. nonce: aihbD5 421.. section: Library 422 423zlib.crc32 and zlib.adler32 no longer return different values on 32-bit vs. 42464-bit python interpreters. Both were correct, but they now both return a 425signed integer object for consistency. 426 427.. 428 429.. bpo: 1158 430.. date: 6821 431.. nonce: AkVzAm 432.. section: Library 433 434add %f format (fractions of a second represented as microseconds) to 435datetime objects. Understood by both strptime and strftime. 436 437.. 438 439.. bpo: 705836 440.. date: 6820 441.. nonce: g5peII 442.. section: Library 443 444struct.pack(">f", x) now raises OverflowError on all platforms when x is too 445large to fit into an IEEE 754 float; previously it only raised OverflowError 446on non IEEE 754 platforms. 447 448.. 449 450.. bpo: 2166 451.. date: 6819 452.. nonce: WF2f5f 453.. section: Library 454 455now distutils deals with HOME correctly under win32 (See also: bpo-1741, 456bpo-1531505) 457 458.. 459 460.. bpo: 1858 461.. date: 6818 462.. nonce: jGCMLw 463.. section: Library 464 465distutils: added multiple server support in .pypirc 466 467.. 468 469.. bpo: 1106316 470.. date: 6817 471.. nonce: uk36rF 472.. section: Library 473 474pdb.post_mortem()'s parameter, "traceback", is now optional: it defaults to 475the traceback of the exception that is currently being handled (is mandatory 476to be in the middle of an exception, otherwise it raises ValueError). 477 478.. 479 480.. bpo: 1193577 481.. date: 6816 482.. nonce: b-BahY 483.. section: Library 484 485A .shutdown() method has been added to SocketServers which terminates the 486.serve_forever() loop. 487 488.. 489 490.. bpo: 2220 491.. date: 6815 492.. nonce: qjYxWH 493.. section: Library 494 495handle rlcompleter attribute match failure more gracefully. 496 497.. 498 499.. bpo: 2225 500.. date: 6814 501.. nonce: a0QsFA 502.. section: Library 503 504py_compile, when executed as a script, now returns a non- zero status code 505if not all files could be compiled successfully. 506 507.. 508 509.. bpo: 1725737 510.. date: 6813 511.. nonce: nvfK6A 512.. section: Library 513 514In distutils' sdist, exclude RCS, CVS etc. also in the root directory, and 515also exclude .hg, .git, .bzr, and _darcs. 516 517.. 518 519.. bpo: 1872 520.. date: 6812 521.. nonce: m8TmRv 522.. section: Library 523 524The struct module typecode for _Bool has been changed from 't' to '?'. 525 526.. 527 528.. bpo: 0 529.. date: 6811 530.. nonce: VqAlAz 531.. section: Library 532 533The bundled libffi copy is now in sync with the recently released 534libffi3.0.4 version, apart from some small changes to 535Modules/_ctypes/libffi/configure.ac. On OS X, preconfigured libffi files 536are used. On all linux systems the --with-system-ffi configure option 537defaults to "yes". 538 539.. 540 541.. bpo: 1577 542.. date: 6810 543.. nonce: njrgUJ 544.. section: Library 545 546shutil.move() now calls os.rename() if the destination is a directory 547instead of copying-then-remove-source. 548 549.. 550 551.. bpo: 0 552.. date: 6809 553.. nonce: K5ZD7T 554.. section: Tests 555 556test_nis no longer fails when test.test_support.verbose is true and NIS is 557not set up on the testing machine. 558 559.. 560 561.. bpo: 0 562.. date: 6808 563.. nonce: 1ZE-e2 564.. section: Tests 565 566Output comparison tests are no longer supported. 567 568.. 569 570.. bpo: 0 571.. date: 6807 572.. nonce: N2wGxu 573.. section: Tests 574 575Rewrite test_errno to use unittest and no longer be a no-op. 576 577.. 578 579.. bpo: 0 580.. date: 6806 581.. nonce: f80pTz 582.. section: Tests 583 584GHOP 234: Convert test_extcall to doctest. 585 586.. 587 588.. bpo: 0 589.. date: 6805 590.. nonce: IG1fWw 591.. section: Tests 592 593GHOP 290: Convert test_dbm and test_dummy_threading to unittest. 594 595.. 596 597.. bpo: 0 598.. date: 6804 599.. nonce: 2Pr5hV 600.. section: Tests 601 602GHOP 293: Convert test_strftime, test_getargs, and test_pep247 to unittest. 603 604.. 605 606.. bpo: 2055 607.. date: 6803 608.. nonce: yoFv4H 609.. section: Tests 610 611Convert test_fcntl to unittest. 612 613.. 614 615.. bpo: 1960 616.. date: 6802 617.. nonce: 8bFRO9 618.. section: Tests 619 620Convert test_gdbm to unittest. 621 622.. 623 624.. bpo: 0 625.. date: 6801 626.. nonce: 5VXuUU 627.. section: Tests 628 629GHOP 294: Convert test_contains, test_crypt, and test_select to unittest. 630 631.. 632 633.. bpo: 0 634.. date: 6800 635.. nonce: Huq18v 636.. section: Tests 637 638GHOP 238: Convert test_tokenize to use doctest. 639 640.. 641 642.. bpo: 0 643.. date: 6799 644.. nonce: yrOIgp 645.. section: Tests 646 647GHOP 237: Rewrite test_thread using unittest. 648 649.. 650 651.. bpo: 2232 652.. date: 6798 653.. nonce: gT2U-l 654.. section: Tests 655 656os.tmpfile might fail on Windows if the user has no permission to create 657files in the root directory. 658 659.. 660 661.. bpo: 0 662.. date: 6797 663.. nonce: xClq5J 664.. section: Build 665 666A new script 2to3 is now installed, to run the 2.x to 3.x converter. 667 668.. 669 670.. bpo: 0 671.. date: 6796 672.. nonce: K_qDWf 673.. section: Build 674 675Python/memmove.c and Python/strerror.c have been removed; both functions are 676in the C89 standard library. 677 678.. 679 680.. bpo: 2284 681.. date: 6795 682.. nonce: g5HXfy 683.. section: Build 684 685Add -x64 option to rt.bat. 686 687.. 688 689.. bpo: 2477 690.. date: 6794 691.. nonce: ff3qxW 692.. section: C API 693 694Added PyParser_ParseFileFlagsEx() and PyParser_ParseStringFlagsFilenameEx(). 695