1.. bpo: 13020 2.. date: 8656 3.. nonce: 7y51PJ 4.. release date: 2012-02-23 5.. section: Core and Builtins 6 7Fix a reference leak when allocating a structsequence object fails. Patch 8by Suman Saha. 9 10.. 11 12.. bpo: 13703 13.. date: 8655 14.. nonce: 8FylqY 15.. section: Core and Builtins 16 17oCERT-2011-003: add -R command-line option and PYTHONHASHSEED environment 18variable, to provide an opt-in way to protect against denial of service 19attacks due to hash collisions within the dict and set types. Patch by 20David Malcolm, based on work by Victor Stinner. 21 22.. 23 24.. bpo: 11235 25.. date: 8654 26.. nonce: 6wzkv- 27.. section: Core and Builtins 28 29Fix OverflowError when trying to import a source file whose modification 30time doesn't fit in a 32-bit timestamp. 31 32.. 33 34.. bpo: 11638 35.. date: 8653 36.. nonce: M-D70Z 37.. section: Core and Builtins 38 39Unicode strings in 'name' and 'version' no longer cause UnicodeDecodeErrors. 40 41.. 42 43.. bpo: 0 44.. date: 8652 45.. nonce: 2J4kRL 46.. section: Core and Builtins 47 48Fix the fix for issue #12149: it was incorrect, although it had the side 49effect of appearing to resolve the issue. Thanks to Mark Shannon for 50noticing. 51 52.. 53 54.. bpo: 13546 55.. date: 8651 56.. nonce: iNNZwK 57.. section: Core and Builtins 58 59Fixed an overflow issue that could crash the intepreter when calling 60sys.setrecursionlimit((1<<31)-1). 61 62.. 63 64.. bpo: 13333 65.. date: 8650 66.. nonce: jkzjPN 67.. section: Core and Builtins 68 69The UTF-7 decoder now accepts lone surrogates (the encoder already accepts 70them). 71 72.. 73 74.. bpo: 10519 75.. date: 8649 76.. nonce: vnPUhZ 77.. section: Core and Builtins 78 79Avoid unnecessary recursive function calls in setobject.c. 80 81.. 82 83.. bpo: 13268 84.. date: 8648 85.. nonce: 1add1A 86.. section: Core and Builtins 87 88Fix the assert statement when a tuple is passed as the message. 89 90.. 91 92.. bpo: 13018 93.. date: 8647 94.. nonce: WRySxn 95.. section: Core and Builtins 96 97Fix reference leaks in error paths in dictobject.c. Patch by Suman Saha. 98 99.. 100 101.. bpo: 12604 102.. date: 8646 103.. nonce: dDegux 104.. section: Core and Builtins 105 106VTRACE macro expanded to no-op in _sre.c to avoid compiler warnings. Patch 107by Josh Triplett and Petri Lehtinen. 108 109.. 110 111.. bpo: 7833 112.. date: 8645 113.. nonce: NcSnnJ 114.. section: Core and Builtins 115 116Extension modules built using distutils on Windows will no longer include a 117"manifest" to prevent them failing at import time in some embedded 118situations. 119 120.. 121 122.. bpo: 13186 123.. date: 8644 124.. nonce: 8x-IKP 125.. section: Core and Builtins 126 127Fix __delitem__ on old-style instances when invoked through 128PySequence_DelItem. 129 130.. 131 132.. bpo: 13156 133.. date: 8643 134.. nonce: YQ_oHA 135.. section: Core and Builtins 136 137Revert the patch for issue #10517 (reset TLS upon fork()), which was only 138relevant for the native pthread TLS implementation. 139 140.. 141 142.. bpo: 7732 143.. date: 8642 144.. nonce: Su45lo 145.. section: Core and Builtins 146 147Fix a crash on importing a module if a directory has the same name than a 148Python module (e.g. "__init__.py"): don't close the file twice. 149 150.. 151 152.. bpo: 12973 153.. date: 8641 154.. nonce: i36yPj 155.. section: Core and Builtins 156 157Fix overflow checks that invoked undefined behaviour in int.__pow__. These 158overflow checks were causing int.__pow__ to produce incorrect results with 159recent versions of Clang, as a result of the compiler optimizing the check 160away. Also fix similar overflow checks in list_repeat (listobject.c) and 161islice_next (itertoolsmodule.c). These bugs caused test failures with 162recent versions of Clang. 163 164.. 165 166.. bpo: 12266 167.. date: 8640 168.. nonce: SifsgD 169.. section: Core and Builtins 170 171Fix str.capitalize() to correctly uppercase/lowercase titlecased and cased 172non-letter characters. 173 174.. 175 176.. bpo: 12610 177.. date: 8639 178.. nonce: ppRi5I 179.. section: Core and Builtins 180 181Verify that user generated AST has correct string and identifier types 182before compiling. (See also: bpo-12609) 183 184.. 185 186.. bpo: 11627 187.. date: 8638 188.. nonce: sfRw_E 189.. section: Core and Builtins 190 191Fix segfault when __new__ on an exception returns a non-exception class. 192 193.. 194 195.. bpo: 12149 196.. date: 8637 197.. nonce: tp-PTF 198.. section: Core and Builtins 199 200Update the method cache after a type's dictionnary gets cleared by the 201garbage collector. This fixes a segfault when an instance and its type get 202caught in a reference cycle, and the instance's deallocator calls one of the 203methods on the type (e.g. when subclassing IOBase). Diagnosis and patch by 204Davide Rizzo. 205 206.. 207 208.. bpo: 12501 209.. date: 8636 210.. nonce: 25PdW1 211.. section: Core and Builtins 212 213Remove Py3k warning for callable. callable() is supported again in Python 2143.2. 215 216.. 217 218.. bpo: 9611 219.. date: 8635 220.. nonce: tQEmuh 221.. section: Core and Builtins 222 223FileIO.read(), FileIO.readinto(), FileIO.write() and os.write() clamp the 224length to INT_MAX on Windows. (See also: bpo-9015) 225 226.. 227 228.. bpo: 1195 229.. date: 8634 230.. nonce: Tp_J8Y 231.. section: Core and Builtins 232 233my_fgets() now always clears errors before calling fgets(). Fix the 234following case: sys.stdin.read() stopped with CTRL+d (end of file), 235raw_input() interrupted by CTRL+c. 236 237.. 238 239.. bpo: 10860 240.. date: 8633 241.. nonce: _w3Kvl 242.. section: Core and Builtins 243 244httplib now correctly handles an empty port after port delimiter in URLs. 245 246.. 247 248.. bpo: 0 249.. date: 8632 250.. nonce: dh7XT7 251.. section: Core and Builtins 252 253dict_proxy objects now display their contents rather than just the class 254name. 255 256.. 257 258.. bpo: 8033 259.. date: 8631 260.. nonce: vZ-AWU 261.. section: Library 262 263sqlite3: Fix 64-bit integer handling in user functions on 32-bit 264architectures. Initial patch by Philippe Devalkeneer. 265 266.. 267 268.. bpo: 0 269.. date: 8630 270.. nonce: Apd_xz 271.. section: Library 272 273HTMLParser is now able to handle slashes in the start tag. 274 275.. 276 277.. bpo: 14001 278.. date: 8629 279.. nonce: Za_h38 280.. section: Library 281 282CVE-2012-0845: xmlrpc: Fix an endless loop in SimpleXMLRPCServer upon 283malformed POST request. 284 285.. 286 287.. bpo: 2489 288.. date: 8628 289.. nonce: EENP1J 290.. section: Library 291 292pty.spawn could consume 100% cpu when it encountered an EOF. 293 294.. 295 296.. bpo: 13014 297.. date: 8627 298.. nonce: bfZLHS 299.. section: Library 300 301Fix a possible reference leak in SSLSocket.getpeercert(). 302 303.. 304 305.. bpo: 13987 306.. date: 8626 307.. nonce: rZLDDo 308.. section: Library 309 310HTMLParser is now able to handle EOFs in the middle of a construct and 311malformed start tags. 312 313.. 314 315.. bpo: 13015 316.. date: 8625 317.. nonce: bxws6S 318.. section: Library 319 320Fix a possible reference leak in defaultdict.__repr__. Patch by Suman Saha. 321 322.. 323 324.. bpo: 13979 325.. date: 8624 326.. nonce: Q0ci2w 327.. section: Library 328 329A bug in ctypes.util.find_library that caused the wrong library name to be 330returned has been fixed. 331 332.. 333 334.. bpo: 1326113 335.. date: 8623 336.. nonce: QvF-XL 337.. section: Library 338 339distutils' build_ext command --libraries option now correctly parses 340multiple values separated by whitespace or commas. 341 342.. 343 344.. bpo: 13993 345.. date: 8622 346.. nonce: 4g3z3P 347.. section: Library 348 349HTMLParser is now able to handle broken end tags. 350 351.. 352 353.. bpo: 13960 354.. date: 8621 355.. nonce: g0TjwZ 356.. section: Library 357 358HTMLParser is now able to handle broken comments. 359 360.. 361 362.. bpo: 9750 363.. date: 8620 364.. nonce: CsQyVM 365.. section: Library 366 367Fix sqlite3.Connection.iterdump on tables and fields with a name that is a 368keyword or contains quotes. Patch by Marko Kohtala. 369 370.. 371 372.. bpo: 13994 373.. date: 8619 374.. nonce: pnLrEB 375.. section: Library 376 377Earlier partial revert of Distutils enhancements in 2.7 has left two 378versions of customize_compiler, the original in distutils.sysconfig and 379another copy in distutils.ccompiler, with some parts of distutils calling 380one and others using the other. Complete the revert back to only having one 381in distutils.sysconfig as is the case in 3.x. 382 383.. 384 385.. bpo: 13590 386.. date: 8618 387.. nonce: b6Qvrj 388.. section: Library 389 390On OS X 10.7 and 10.6 with Xcode 4.2, building Distutils-based packages with 391C extension modules may fail because Apple has removed gcc-4.2, the version 392used to build python.org 64-bit/32-bit Pythons. If the user does not 393explicitly override the default C compiler by setting the CC environment 394variable, Distutils will now attempt to compile extension modules with clang 395if gcc-4.2 is required but not found. Also as a convenience, if the user 396does explicitly set CC, substitute its value as the default compiler in the 397Distutils LDSHARED configuration variable for OS X. (Note, the python.org 39832-bit-only Pythons use gcc-4.0 and the 10.4u SDK, neither of which are 399available in Xcode 4. This change does not attempt to override settings to 400support their use with Xcode 4.) 401 402.. 403 404.. bpo: 9021 405.. date: 8617 406.. nonce: A0WRsT 407.. section: Library 408 409Add an introduction to the copy module documentation. 410 411.. 412 413.. bpo: 6005 414.. date: 8616 415.. nonce: cy8Z22 416.. section: Library 417 418Examples in the socket library documentation use sendall, where relevant, 419instead send method. 420 421.. 422 423.. bpo: 10811 424.. date: 8615 425.. nonce: m6b_ZC 426.. section: Library 427 428Fix recursive usage of cursors. Instead of crashing, raise a 429ProgrammingError now. 430 431.. 432 433.. bpo: 13676 434.. date: 8614 435.. nonce: IwPgKL 436.. section: Library 437 438Handle strings with embedded zeros correctly in sqlite3. 439 440.. 441 442.. bpo: 13806 443.. date: 8613 444.. nonce: Y34Lg3 445.. section: Library 446 447The size check in audioop decompression functions was too strict and could 448reject valid compressed data. Patch by Oleg Plakhotnyuk. 449 450.. 451 452.. bpo: 13885 453.. date: 8612 454.. nonce: fTNryk 455.. section: Library 456 457CVE-2011-3389: the _ssl module would always disable the CBC IV attack 458countermeasure. 459 460.. 461 462.. bpo: 6631 463.. date: 8611 464.. nonce: FyxhCp 465.. section: Library 466 467Disallow relative file paths in urllib urlopen methods. 468 469.. 470 471.. bpo: 13781 472.. date: 8610 473.. nonce: xWnNcZ 474.. section: Library 475 476Prevent gzip.GzipFile from using the dummy filename provided by file objects 477opened with os.fdopen(). 478 479.. 480 481.. bpo: 13589 482.. date: 8609 483.. nonce: sQsnEf 484.. section: Library 485 486Fix some serialization primitives in the aifc module. Patch by Oleg 487Plakhotnyuk. 488 489.. 490 491.. bpo: 13803 492.. date: 8608 493.. nonce: WnPIts 494.. section: Library 495 496Under Solaris, distutils doesn't include bitness in the directory name. 497 498.. 499 500.. bpo: 13642 501.. date: 8607 502.. nonce: 8qUg-G 503.. section: Library 504 505Unquote before b64encoding user:password during Basic Authentication. Patch 506contributed by Joonas Kuorilehto and Michele Orrù. 507 508.. 509 510.. bpo: 13636 511.. date: 8606 512.. nonce: eWRf1t 513.. section: Library 514 515Weak ciphers are now disabled by default in the ssl module (except when 516SSLv2 is explicitly asked for). 517 518.. 519 520.. bpo: 12798 521.. date: 8605 522.. nonce: ggdsmY 523.. section: Library 524 525Updated the mimetypes documentation. 526 527.. 528 529.. bpo: 13639 530.. date: 8604 531.. nonce: X0z3dn 532.. section: Library 533 534Accept unicode filenames in tarfile.open(mode="w|gz"). 535 536.. 537 538.. bpo: 1785 539.. date: 8603 540.. nonce: DKL5I8 541.. section: Library 542 543Fix inspect and pydoc with misbehaving descriptors. 544 545.. 546 547.. bpo: 7502 548.. date: 8602 549.. nonce: lIMyju 550.. section: Library 551 552Fix equality comparison for DocTestCase instances. Patch by Cédric Krier. 553 554.. 555 556.. bpo: 11870 557.. date: 8601 558.. nonce: 85bAB9 559.. section: Library 560 561threading: Properly reinitialize threads internal locks and condition 562variables to avoid deadlocks in child processes. 563 564.. 565 566.. bpo: 8035 567.. date: 8600 568.. nonce: yzn_Oa 569.. section: Library 570 571urllib: Fix a bug where the client could remain stuck after a redirection or 572an error. 573 574.. 575 576.. bpo: 0 577.. date: 8599 578.. nonce: xZO873 579.. section: Library 580 581tarfile.py: Correctly detect bzip2 compressed streams with blocksizes other 582than 900k. 583 584.. 585 586.. bpo: 13573 587.. date: 8598 588.. nonce: 2oPaJa 589.. section: Library 590 591The csv.writer now uses the repr() for floats rather than str(). This allows 592floats to round-trip without loss of precision. 593 594.. 595 596.. bpo: 13439 597.. date: 8597 598.. nonce: H8wdOt 599.. section: Library 600 601Fix many errors in turtle docstrings. 602 603.. 604 605.. bpo: 12856 606.. date: 8596 607.. nonce: 7eIfN8 608.. section: Library 609 610Ensure child processes do not inherit the parent's random seed for filename 611generation in the tempfile module. Patch by Brian Harring. 612 613.. 614 615.. bpo: 13458 616.. date: 8595 617.. nonce: EHyzED 618.. section: Library 619 620Fix a memory leak in the ssl module when decoding a certificate with a 621subjectAltName. Patch by Robert Xiao. 622 623.. 624 625.. bpo: 13415 626.. date: 8594 627.. nonce: Ap8joO 628.. section: Library 629 630os.unsetenv() doesn't ignore errors anymore. 631 632.. 633 634.. bpo: 13322 635.. date: 8593 636.. nonce: Ect89q 637.. section: Library 638 639Fix BufferedWriter.write() to ensure that BlockingIOError is raised when the 640wrapped raw file is non-blocking and the write would block. Previous code 641assumed that the raw write() would raise BlockingIOError, but 642RawIOBase.write() is defined to returned None when the call would block. 643Patch by sbt. 644 645.. 646 647.. bpo: 13358 648.. date: 8592 649.. nonce: kPO1ja 650.. section: Library 651 652HTMLParser now calls handle_data only once for each CDATA. 653 654.. 655 656.. bpo: 4147 657.. date: 8591 658.. nonce: wQbNcw 659.. section: Library 660 661minidom's toprettyxml no longer adds whitespace around a text node when it 662is the only child of an element. Initial patch by Dan Kenigsberg. 663 664.. 665 666.. bpo: 1745761 667.. date: 8590 668.. nonce: zfO1ng 669.. section: Library 670 671HTMLParser now correctly handles non-valid attributes, including adjacent 672and unquoted attributes. (See also: bpo-755670, bpo-13357, bpo-12629, 673bpo-1200313) 674 675.. 676 677.. bpo: 13373 678.. date: 8589 679.. nonce: 8wM3bP 680.. section: Library 681 682multiprocessing.Queue.get() could sometimes block indefinitely when called 683with a timeout. Patch by Arnaud Ysmal. 684 685.. 686 687.. bpo: 3067 688.. date: 8588 689.. nonce: yjMIU9 690.. section: Library 691 692Enhance the documentation and docstring of locale.setlocale(). 693 694.. 695 696.. bpo: 13254 697.. date: 8587 698.. nonce: CKJxT0 699.. section: Library 700 701Fix Maildir initialization so that maildir contents are read correctly. 702 703.. 704 705.. bpo: 13140 706.. date: 8586 707.. nonce: EguPSD 708.. section: Library 709 710Fix the daemon_threads attribute of ThreadingMixIn. 711 712.. 713 714.. bpo: 2892 715.. date: 8585 716.. nonce: kugtRq 717.. section: Library 718 719preserve iterparse events in case of SyntaxError. 720 721.. 722 723.. bpo: 670664 724.. date: 8584 725.. nonce: dPMzKt 726.. section: Library 727 728Fix HTMLParser to correctly handle the content of ``<script>...</script>`` 729and ``<style>...</style>``. 730 731.. 732 733.. bpo: 10817 734.. date: 8583 735.. nonce: 2NZ4yV 736.. section: Library 737 738Fix urlretrieve function to raise ContentTooShortError even when reporthook 739is None. Patch by Jyrki Pulliainen. 740 741.. 742 743.. bpo: 7334 744.. date: 8582 745.. nonce: HVmJ5I 746.. section: Library 747 748close source files on ElementTree.parse and iterparse. 749 750.. 751 752.. bpo: 13232 753.. date: 8581 754.. nonce: WWF7QZ 755.. section: Library 756 757logging: Improved logging of exceptions in the presence of multiple 758encodings. 759 760.. 761 762.. bpo: 10332 763.. date: 8580 764.. nonce: E9qFmi 765.. section: Library 766 767multiprocessing: fix a race condition when a Pool is closed before all tasks 768have completed. 769 770.. 771 772.. bpo: 1548891 773.. date: 8579 774.. nonce: isTjAs 775.. section: Library 776 777The cStringIO.StringIO() constructor now encodes unicode arguments with the 778system default encoding just like the write() method does, instead of 779converting it to a raw buffer. This also fixes handling of unicode input in 780the shlex module (#6988, #1170). 781 782.. 783 784.. bpo: 9168 785.. date: 8578 786.. nonce: eLGWkL 787.. section: Library 788 789now smtpd is able to bind privileged port. 790 791.. 792 793.. bpo: 12529 794.. date: 8577 795.. nonce: TX2NNI 796.. section: Library 797 798fix cgi.parse_header issue on strings with double-quotes and semicolons 799together. Patch by Ben Darnell and Petri Lehtinen. 800 801.. 802 803.. bpo: 6090 804.. date: 8576 805.. nonce: 8BVasJ 806.. section: Library 807 808zipfile raises a ValueError when a document with a timestamp earlier than 8091980 is provided. Patch contributed by Petri Lehtinen. 810 811.. 812 813.. bpo: 13194 814.. date: 8575 815.. nonce: b0HQpu 816.. section: Library 817 818zlib.compressobj().copy() and zlib.decompressobj().copy() are now available 819on Windows. 820 821.. 822 823.. bpo: 13114 824.. date: 8574 825.. nonce: qtS6EQ 826.. section: Library 827 828Fix the distutils commands check and register when the long description is a 829Unicode string with non-ASCII characters. 830 831.. 832 833.. bpo: 7367 834.. date: 8573 835.. nonce: 2xoC41 836.. section: Library 837 838Fix pkgutil.walk_paths to skip directories whose contents cannot be read. 839 840.. 841 842.. bpo: 7425 843.. date: 8572 844.. nonce: e4gH2x 845.. section: Library 846 847Prevent pydoc -k failures due to module import errors. (Backport to 2.7 of 848existing 3.x fix) 849 850.. 851 852.. bpo: 13099 853.. date: 8571 854.. nonce: hhmbgp 855.. section: Library 856 857Fix sqlite3.Cursor.lastrowid under a Turkish locale. Reported and diagnosed 858by Thomas Kluyver. 859 860.. 861 862.. bpo: 7689 863.. date: 8570 864.. nonce: --iH31 865.. section: Library 866 867Allow pickling of dynamically created classes when their metaclass is 868registered with copy_reg. Patch by Nicolas M. Thiéry and Craig Citro. 869 870.. 871 872.. bpo: 13058 873.. date: 8569 874.. nonce: KJ3kEA 875.. section: Library 876 877ossaudiodev: fix a file descriptor leak on error. Patch by Thomas Jarosch. 878 879.. 880 881.. bpo: 12931 882.. date: 8568 883.. nonce: b6La4G 884.. section: Library 885 886xmlrpclib now encodes Unicode URI to ISO-8859-1, instead of failing with a 887UnicodeDecodeError. 888 889.. 890 891.. bpo: 8933 892.. date: 8567 893.. nonce: yiVHCJ 894.. section: Library 895 896distutils' PKG-INFO files will now correctly report Metadata-Version: 1.1 897instead of 1.0 if a Classifier or Download-URL field is present. 898 899.. 900 901.. bpo: 8286 902.. date: 8566 903.. nonce: 9gJAZN 904.. section: Library 905 906The distutils command sdist will print a warning message instead of crashing 907when an invalid path is given in the manifest template. 908 909.. 910 911.. bpo: 12841 912.. date: 8565 913.. nonce: VRTnfy 914.. section: Library 915 916tarfile unnecessarily checked the existence of numerical user and group ids 917on extraction. If one of them did not exist the respective id of the current 918user (i.e. root) was used for the file and ownership information was lost. 919 920.. 921 922.. bpo: 10946 923.. date: 8564 924.. nonce: HYgRut 925.. section: Library 926 927The distutils commands bdist_dumb, bdist_wininst and bdist_msi now respect a 928--skip-build option given to bdist. 929 930.. 931 932.. bpo: 12287 933.. date: 8563 934.. nonce: _b1Hy3 935.. section: Library 936 937Fix a stack corruption in ossaudiodev module when the FD is greater than 938FD_SETSIZE. 939 940.. 941 942.. bpo: 12839 943.. date: 8562 944.. nonce: YFQywe 945.. section: Library 946 947Fix crash in zlib module due to version mismatch. Fix by Richard M. Tew. 948 949.. 950 951.. bpo: 12786 952.. date: 8561 953.. nonce: Wv58St 954.. section: Library 955 956Set communication pipes used by subprocess.Popen CLOEXEC to avoid them being 957inherited by other subprocesses. 958 959.. 960 961.. bpo: 4106 962.. date: 8560 963.. nonce: CWHsfS 964.. section: Library 965 966Fix occasional exceptions printed out by multiprocessing on interpreter 967shutdown. 968 969.. 970 971.. bpo: 11657 972.. date: 8559 973.. nonce: K6NkKs 974.. section: Library 975 976Fix sending file descriptors over 255 over a multiprocessing Pipe. 977 978.. 979 980.. bpo: 12213 981.. date: 8558 982.. nonce: nL3AJE 983.. section: Library 984 985Fix a buffering bug with interleaved reads and writes that could appear on 986io.BufferedRandom streams. 987 988.. 989 990.. bpo: 12326 991.. date: 8557 992.. nonce: oR88Sz 993.. section: Library 994 995sys.platform is now always 'linux2' on Linux, even if Python is compiled on 996Linux 3. 997 998.. 999 1000.. bpo: 13007 1001.. date: 8556 1002.. nonce: 6OcUii 1003.. section: Library 1004 1005whichdb should recognize gdbm 1.9 magic numbers. 1006 1007.. 1008 1009.. bpo: 9173 1010.. date: 8555 1011.. nonce: 7CSZen 1012.. section: Library 1013 1014Let shutil._make_archive work if the logger argument is None. 1015 1016.. 1017 1018.. bpo: 12650 1019.. date: 8554 1020.. nonce: hY2GLb 1021.. section: Library 1022 1023Fix a race condition where a subprocess.Popen could leak resources 1024(FD/zombie) when killed at the wrong time. 1025 1026.. 1027 1028.. bpo: 12752 1029.. date: 8553 1030.. nonce: 3uiyON 1031.. section: Library 1032 1033Fix regression which prevented locale.normalize() from accepting unicode 1034strings. 1035 1036.. 1037 1038.. bpo: 12683 1039.. date: 8552 1040.. nonce: pySdFM 1041.. section: Library 1042 1043urlparse updated to include svn as schemes that uses relative paths. (svn 1044from 1.5 onwards support relative path). 1045 1046.. 1047 1048.. bpo: 11933 1049.. date: 8551 1050.. nonce: voGTke 1051.. section: Library 1052 1053Fix incorrect mtime comparison in distutils. 1054 1055.. 1056 1057.. bpo: 11104 1058.. date: 8550 1059.. nonce: EZRzAK 1060.. section: Library 1061 1062Fix the behavior of distutils' sdist command with manually-maintained 1063MANIFEST files. (See also: bpo-8688) 1064 1065.. 1066 1067.. bpo: 8887 1068.. date: 8549 1069.. nonce: GV2FAG 1070.. section: Library 1071 1072"pydoc somebuiltin.somemethod" (or help('somebuiltin.somemethod') in Python 1073code) now finds the doc of the method. 1074 1075.. 1076 1077.. bpo: 12603 1078.. date: 8548 1079.. nonce: wO8DQ8 1080.. section: Library 1081 1082Fix pydoc.synopsis() on files with non-negative st_mtime. 1083 1084.. 1085 1086.. bpo: 12514 1087.. date: 8547 1088.. nonce: e1PR4a 1089.. section: Library 1090 1091Use try/finally to assure the timeit module restores garbage collections 1092when it is done. 1093 1094.. 1095 1096.. bpo: 12607 1097.. date: 8546 1098.. nonce: t5RWHt 1099.. section: Library 1100 1101In subprocess, fix issue where if stdin, stdout or stderr is given as a low 1102fd, it gets overwritten. 1103 1104.. 1105 1106.. bpo: 12102 1107.. date: 8545 1108.. nonce: VJSgGA 1109.. section: Library 1110 1111Document that buffered files must be flushed before being used with mmap. 1112Patch by Steffen Daode Nurpmeso. 1113 1114.. 1115 1116.. bpo: 12560 1117.. date: 8544 1118.. nonce: 9ydkW_ 1119.. section: Library 1120 1121Build libpython.so on OpenBSD. Patch by Stefan Sperling. 1122 1123.. 1124 1125.. bpo: 1813 1126.. date: 8543 1127.. nonce: M1IkRm 1128.. section: Library 1129 1130Fix codec lookup and setting/getting locales under Turkish locales. 1131 1132.. 1133 1134.. bpo: 10883 1135.. date: 8542 1136.. nonce: _e0WlS 1137.. section: Library 1138 1139Fix socket leaks in urllib when using FTP. 1140 1141.. 1142 1143.. bpo: 12592 1144.. date: 8541 1145.. nonce: -EZrk3 1146.. section: Library 1147 1148Make Python build on OpenBSD 5 (and future major releases). 1149 1150.. 1151 1152.. bpo: 12372 1153.. date: 8540 1154.. nonce: 7QRSzO 1155.. section: Library 1156 1157POSIX semaphores are broken on AIX: don't use them. 1158 1159.. 1160 1161.. bpo: 12571 1162.. date: 8539 1163.. nonce: qrkjgh 1164.. section: Library 1165 1166Add a plat-linux3 directory mirroring the plat-linux2 directory, so that 1167"import DLFCN" and other similar imports work on Linux 3.0. 1168 1169.. 1170 1171.. bpo: 7484 1172.. date: 8538 1173.. nonce: 0bZoAH 1174.. section: Library 1175 1176smtplib no longer puts <> around addresses in VRFY and EXPN commands; they 1177aren't required and in fact postfix doesn't support that form. 1178 1179.. 1180 1181.. bpo: 11603 1182.. date: 8537 1183.. nonce: B016rQ 1184.. section: Library 1185 1186Fix a crash when __str__ is rebound as __repr__. Patch by Andreas Stührk. 1187 1188.. 1189 1190.. bpo: 12502 1191.. date: 8536 1192.. nonce: p8Kedr 1193.. section: Library 1194 1195asyncore: fix polling loop with AF_UNIX sockets. 1196 1197.. 1198 1199.. bpo: 4376 1200.. date: 8535 1201.. nonce: 6yUats 1202.. section: Library 1203 1204ctypes now supports nested structures in an endian different than the parent 1205structure. Patch by Vlad Riscutia. 1206 1207.. 1208 1209.. bpo: 12493 1210.. date: 8534 1211.. nonce: qaPq_Q 1212.. section: Library 1213 1214subprocess: Popen.communicate() now also handles EINTR errors if the process 1215has only one pipe. 1216 1217.. 1218 1219.. bpo: 12467 1220.. date: 8533 1221.. nonce: x0sMKt 1222.. section: Library 1223 1224warnings: fix a race condition if a warning is emitted at shutdown, if 1225globals()['__file__'] is None. 1226 1227.. 1228 1229.. bpo: 12352 1230.. date: 8532 1231.. nonce: Htm8Oe 1232.. section: Library 1233 1234Fix a deadlock in multiprocessing.Heap when a block is freed by the garbage 1235collector while the Heap lock is held. 1236 1237.. 1238 1239.. bpo: 9516 1240.. date: 8531 1241.. nonce: v8AhHk 1242.. section: Library 1243 1244On Mac OS X, change Distutils to no longer globally attempt to check or set 1245the MACOSX_DEPLOYMENT_TARGET environment variable for the interpreter 1246process. This could cause failures in non-Distutils subprocesses and was 1247unreliable since tests or user programs could modify the interpreter 1248environment after Distutils set it. Instead, have Distutils set the 1249deployment target only in the environment of each build subprocess. It is 1250still possible to globally override the default by setting 1251MACOSX_DEPLOYMENT_TARGET before launching the interpreter; its value must be 1252greater or equal to the default value, the value with which the interpreter 1253was built. 1254 1255.. 1256 1257.. bpo: 11802 1258.. date: 8530 1259.. nonce: 6ktAp2 1260.. section: Library 1261 1262The cache in filecmp now has a maximum size of 100 so that it won't grow 1263without bound. 1264 1265.. 1266 1267.. bpo: 12404 1268.. date: 8529 1269.. nonce: bS5-Qf 1270.. section: Library 1271 1272Remove C89 incompatible code from mmap module. Patch by Akira Kitada. 1273 1274.. 1275 1276.. bpo: 11700 1277.. date: 8528 1278.. nonce: VpdGS5 1279.. section: Library 1280 1281mailbox proxy object close methods can now be called multiple times without 1282error, and _ProxyFile now closes the wrapped file. 1283 1284.. 1285 1286.. bpo: 12133 1287.. date: 8527 1288.. nonce: Ag9yty 1289.. section: Library 1290 1291AbstractHTTPHandler.do_open() of urllib.request closes the HTTP connection 1292if its getresponse() method fails with a socket error. Patch written by Ezio 1293Melotti. 1294 1295.. 1296 1297.. bpo: 9284 1298.. date: 8526 1299.. nonce: -NhBcF 1300.. section: Library 1301 1302Allow inspect.findsource() to find the source of doctest functions. 1303 1304.. 1305 1306.. bpo: 10694 1307.. date: 8525 1308.. nonce: JD6qXr 1309.. section: Library 1310 1311zipfile now ignores garbage at the end of a zipfile. 1312 1313.. 1314 1315.. bpo: 11583 1316.. date: 8524 1317.. nonce: Wu1xMh 1318.. section: Library 1319 1320Speed up os.path.isdir on Windows by using GetFileAttributes instead of 1321os.stat. 1322 1323.. 1324 1325.. bpo: 12080 1326.. date: 8523 1327.. nonce: oDmVxk 1328.. section: Library 1329 1330Fix a performance issue in Decimal._power_exact that caused some corner-case 1331Decimal.__pow__ calls to take an unreasonably long time. 1332 1333.. 1334 1335.. bpo: 0 1336.. date: 8522 1337.. nonce: aMnclC 1338.. section: Library 1339 1340Named tuples now work correctly with vars(). 1341 1342.. 1343 1344.. bpo: 0 1345.. date: 8521 1346.. nonce: qdHiJw 1347.. section: Library 1348 1349sys.setcheckinterval() now updates the current ticker count as well as 1350updating the check interval, so if the user decreases the check interval, 1351the ticker doesn't have to wind down to zero from the old starting point 1352before the new interval takes effect. And if the user increases the 1353interval, it makes sure the new limit takes effect right away rather have an 1354early task switch before recognizing the new interval. 1355 1356.. 1357 1358.. bpo: 12085 1359.. date: 8520 1360.. nonce: cu9-Sp 1361.. section: Library 1362 1363Fix an attribute error in subprocess.Popen destructor if the constructor has 1364failed, e.g. because of an undeclared keyword argument. Patch written by 1365Oleg Oshmyan. 1366 1367.. 1368 1369.. bpo: 9041 1370.. date: 8519 1371.. nonce: iLXuHK 1372.. section: Library 1373 1374An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that 1375caused an incorrect exception to be returned in the case of overflow has 1376been fixed. 1377 1378.. 1379 1380.. bpo: 0 1381.. date: 8518 1382.. nonce: zRuNTM 1383.. section: Library 1384 1385bsddb module: Erratic behaviour of "DBEnv->rep_elect()" because a typo. 1386Possible crash. 1387 1388.. 1389 1390.. bpo: 13774 1391.. date: 8517 1392.. nonce: -HkPbH 1393.. section: Library 1394 1395json: Fix a SystemError when a bogus encoding is passed to json.loads(). 1396 1397.. 1398 1399.. bpo: 9975 1400.. date: 8516 1401.. nonce: 2SRKp5 1402.. section: Library 1403 1404socket: Fix incorrect use of flowinfo and scope_id. Patch by Vilmos Nebehaj. 1405 1406.. 1407 1408.. bpo: 13159 1409.. date: 8515 1410.. nonce: Zoj0wD 1411.. section: Library 1412 1413FileIO, BZ2File, and the built-in file class now use a linear-time buffer 1414growth strategy instead of a quadratic one. 1415 1416.. 1417 1418.. bpo: 13070 1419.. date: 8514 1420.. nonce: zcoYVY 1421.. section: Library 1422 1423Fix a crash when a TextIOWrapper caught in a reference cycle would be 1424finalized after the reference to its underlying BufferedRWPair's writer got 1425cleared by the GC. 1426 1427.. 1428 1429.. bpo: 12881 1430.. date: 8513 1431.. nonce: IpOO6j 1432.. section: Library 1433 1434ctypes: Fix segfault with large structure field names. 1435 1436.. 1437 1438.. bpo: 13013 1439.. date: 8512 1440.. nonce: KLH96V 1441.. section: Library 1442 1443ctypes: Fix a reference leak in PyCArrayType_from_ctype. Thanks to Suman 1444Saha for finding the bug and providing a patch. 1445 1446.. 1447 1448.. bpo: 13022 1449.. date: 8511 1450.. nonce: zeo8hs 1451.. section: Library 1452 1453Fix: _multiprocessing.recvfd() doesn't check that file descriptor was 1454actually received. 1455 1456.. 1457 1458.. bpo: 12483 1459.. date: 8510 1460.. nonce: IpGhKV 1461.. section: Library 1462 1463ctypes: Fix a crash when the destruction of a callback object triggers the 1464garbage collector. 1465 1466.. 1467 1468.. bpo: 12950 1469.. date: 8509 1470.. nonce: Z7xl-R 1471.. section: Library 1472 1473Fix passing file descriptors in multiprocessing, under OpenIndiana/Illumos. 1474 1475.. 1476 1477.. bpo: 12764 1478.. date: 8508 1479.. nonce: YtBoIj 1480.. section: Library 1481 1482Fix a crash in ctypes when the name of a Structure field is not a string. 1483 1484.. 1485 1486.. bpo: 9651 1487.. date: 8507 1488.. nonce: INPcwf 1489.. section: Library 1490 1491Fix a crash when ctypes.create_string_buffer(0) was passed to some functions 1492like file.write(). 1493 1494.. 1495 1496.. bpo: 10309 1497.. date: 8506 1498.. nonce: -z_Mxz 1499.. section: Library 1500 1501Define _GNU_SOURCE so that mremap() gets the proper signature. Without 1502this, architectures where sizeof void* != sizeof int are broken. Patch 1503given by Hallvard B Furuseth. 1504 1505.. 1506 1507.. bpo: 964437 1508.. date: 8505 1509.. nonce: buwNGK 1510.. section: IDLE 1511 1512Make IDLE help window non-modal. Patch by Guilherme Polo and Roger Serwy. 1513 1514.. 1515 1516.. bpo: 13933 1517.. date: 8504 1518.. nonce: 5CAw8l 1519.. section: IDLE 1520 1521IDLE auto-complete did not work with some imported module, like hashlib. 1522(Patch by Roger Serwy) 1523 1524.. 1525 1526.. bpo: 13506 1527.. date: 8503 1528.. nonce: ztXHhD 1529.. section: IDLE 1530 1531Add '' to path for IDLE Shell when started and restarted with Restart Shell. 1532Original patches by Marco Scataglini and Roger Serwy. 1533 1534.. 1535 1536.. bpo: 4625 1537.. date: 8502 1538.. nonce: 2pS4tW 1539.. section: IDLE 1540 1541If IDLE cannot write to its recent file or breakpoint files, display a 1542message popup and continue rather than crash. (original patch by Roger 1543Serwy) 1544 1545.. 1546 1547.. bpo: 8793 1548.. date: 8501 1549.. nonce: 2eA1HO 1550.. section: IDLE 1551 1552Prevent IDLE crash when given strings with invalid hex escape sequences. 1553 1554.. 1555 1556.. bpo: 13296 1557.. date: 8500 1558.. nonce: bMHIFe 1559.. section: IDLE 1560 1561Fix IDLE to clear compile __future__ flags on shell restart. (Patch by Roger 1562Serwy) 1563 1564.. 1565 1566.. bpo: 14409 1567.. date: 8499 1568.. nonce: 8SNyRR 1569.. section: IDLE 1570 1571IDLE now properly executes commands in the Shell window when it cannot read 1572the normal config files on startup and has to use the built-in default key 1573bindings. There was previously a bug in one of the defaults. 1574 1575.. 1576 1577.. bpo: 3573 1578.. date: 8498 1579.. nonce: yIQRtd 1580.. section: IDLE 1581 1582IDLE hangs when passing invalid command line args (directory(ies) instead of 1583file(s)). 1584 1585.. 1586 1587.. bpo: 6807 1588.. date: 8497 1589.. nonce: lfskSG 1590.. section: Build 1591 1592Run msisupport.mak earlier. 1593 1594.. 1595 1596.. bpo: 10580 1597.. date: 8496 1598.. nonce: GkwWHF 1599.. section: Build 1600 1601Minor grammar change in Windows installer. 1602 1603.. 1604 1605.. bpo: 12627 1606.. date: 8495 1607.. nonce: pVGmbv 1608.. section: Build 1609 1610Implement PEP 394 for Python 2.7 ("python2"). 1611 1612.. 1613 1614.. bpo: 8746 1615.. date: 8494 1616.. nonce: z-aagT 1617.. section: Build 1618 1619Correct faulty configure checks so that os.chflags() and os.lchflags() are 1620once again built on systems that support these functions (*BSD and OS X). 1621Also add new stat file flags for OS X (UF_HIDDEN and UF_COMPRESSED). 1622 1623.. 1624 1625.. bpo: 14053 1626.. date: 8493 1627.. nonce: tR4DDC 1628.. section: Tools/Demos 1629 1630patchcheck.py ("make patchcheck") now works with MQ patches. Patch by 1631Francisco Martín Brugué. 1632 1633.. 1634 1635.. bpo: 13930 1636.. date: 8492 1637.. nonce: jUdfJ- 1638.. section: Tools/Demos 1639 16402to3 is now able to write its converted output files to another directory 1641tree as well as copying unchanged files and altering the file suffix. See 1642its new -o, -W and --add-suffix options. This makes it more useful in many 1643automated code translation workflows. 1644 1645.. 1646 1647.. bpo: 10639 1648.. date: 8491 1649.. nonce: ZGu-0K 1650.. section: Tools/Demos 1651 1652reindent.py no longer converts newlines and will raise an error if 1653attempting to convert a file with mixed newlines. 1654 1655.. 1656 1657.. bpo: 13628 1658.. date: 8490 1659.. nonce: XznUD3 1660.. section: Tools/Demos 1661 1662python-gdb.py is now able to retrieve more frames in the Python traceback if 1663Python is optimized. 1664 1665.. 1666 1667.. bpo: 15467 1668.. date: 8489 1669.. nonce: Ilkvjd 1670.. section: Tests 1671 1672Move helpers for __sizeof__ tests into test_support. Patch by Serhiy 1673Storchaka. 1674 1675.. 1676 1677.. bpo: 11689 1678.. date: 8488 1679.. nonce: n1UPYK 1680.. section: Tests 1681 1682Fix a variable scoping error in an sqlite3 test. Initial patch by Torsten 1683Landschoff. 1684 1685.. 1686 1687.. bpo: 10881 1688.. date: 8487 1689.. nonce: CG7Ecn 1690.. section: Tests 1691 1692Fix test_site failures with OS X framework builds. 1693 1694.. 1695 1696.. bpo: 13901 1697.. date: 8486 1698.. nonce: ICKGPH 1699.. section: Tests 1700 1701Prevent test_distutils failures on OS X with --enable-shared. 1702 1703.. 1704 1705.. bpo: 13304 1706.. date: 8485 1707.. nonce: jDDi97 1708.. section: Tests 1709 1710Skip test case if user site-packages disabled (-s or PYTHONNOUSERSITE). 1711(Patch by Carl Meyer) 1712 1713.. 1714 1715.. bpo: 13218 1716.. date: 8484 1717.. nonce: EZ3jnV 1718.. section: Tests 1719 1720Fix test_ssl failures on Debian/Ubuntu. 1721 1722.. 1723 1724.. bpo: 12821 1725.. date: 8483 1726.. nonce: fmA715 1727.. section: Tests 1728 1729Fix test_fcntl failures on OpenBSD 5. 1730 1731.. 1732 1733.. bpo: 12331 1734.. date: 8482 1735.. nonce: ZSPeJW 1736.. section: Tests 1737 1738The test suite for lib2to3 can now run from an installed Python. 1739 1740.. 1741 1742.. bpo: 12549 1743.. date: 8481 1744.. nonce: S4urNL 1745.. section: Tests 1746 1747Correct test_platform to not fail when OS X returns 'x86_64' as the 1748processor type on some Mac systems. 1749 1750.. 1751 1752.. bpo: 0 1753.. date: 8480 1754.. nonce: EofQqr 1755.. section: Tests 1756 1757Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary 1758failure in name resolution. 1759 1760.. 1761 1762.. bpo: 11812 1763.. date: 8479 1764.. nonce: jeNaCB 1765.. section: Tests 1766 1767Solve transient socket failure to connect to 'localhost' in 1768test_telnetlib.py. 1769 1770.. 1771 1772.. bpo: 0 1773.. date: 8478 1774.. nonce: cUdl39 1775.. section: Tests 1776 1777Solved a potential deadlock in test_telnetlib.py. Related to issue #11812. 1778 1779.. 1780 1781.. bpo: 0 1782.. date: 8477 1783.. nonce: QtTimW 1784.. section: Tests 1785 1786Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and an 1787overzealous DNS service (e.g. OpenDNS) redirects to a placeholder Web site. 1788 1789.. 1790 1791.. bpo: 0 1792.. date: 8476 1793.. nonce: Vvh-2P 1794.. section: Tests 1795 1796Avoid failing in test_urllibnet.test_bad_address when some overzealous DNS 1797service (e.g. OpenDNS) resolves a non-existent domain name. The test is now 1798skipped instead. 1799 1800.. 1801 1802.. bpo: 8716 1803.. date: 8475 1804.. nonce: -qUe-z 1805.. section: Tests 1806 1807Avoid crashes caused by Aqua Tk on OSX when attempting to run test_tk or 1808test_ttk_guionly under a username that is not currently logged in to the 1809console windowserver (as may be the case under buildbot or ssh). 1810 1811.. 1812 1813.. bpo: 12141 1814.. date: 8474 1815.. nonce: -5YCgZ 1816.. section: Tests 1817 1818Install a copy of template C module file so that test_build_ext of 1819test_distutils is no longer silently skipped when run outside of a build 1820directory. 1821 1822.. 1823 1824.. bpo: 8746 1825.. date: 8473 1826.. nonce: I497O- 1827.. section: Tests 1828 1829Add additional tests for os.chflags() and os.lchflags(). Patch by Garrett 1830Cooper. 1831 1832.. 1833 1834.. bpo: 10736 1835.. date: 8472 1836.. nonce: 60t_7a 1837.. section: Tests 1838 1839Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9 on Mac OS X. (Patch 1840by Ronald Oussoren) 1841 1842.. 1843 1844.. bpo: 12057 1845.. date: 8471 1846.. nonce: 7QVG6T 1847.. section: Tests 1848 1849Add tests for ISO 2022 codecs (iso2022_jp, iso2022_jp_2, iso2022_kr). 1850 1851.. 1852 1853.. bpo: 13491 1854.. date: 8470 1855.. nonce: zMFNID 1856.. section: Documentation 1857 1858Fix many errors in sqlite3 documentation. Initial patch for #13491 by 1859Johannes Vogel. (See also: bpo-13995) 1860 1861.. 1862 1863.. bpo: 13402 1864.. date: 8469 1865.. nonce: VSNrG0 1866.. section: Documentation 1867 1868Document absoluteness of sys.executable. 1869 1870.. 1871 1872.. bpo: 13883 1873.. date: 8468 1874.. nonce: atFSNh 1875.. section: Documentation 1876 1877PYTHONCASEOK also works on OS X, OS/2, and RiscOS. 1878 1879.. 1880 1881.. bpo: 2134 1882.. date: 8467 1883.. nonce: lkdzru 1884.. section: Documentation 1885 1886The tokenize documentation has been clarified to explain why all operator 1887and delimiter tokens are treated as token.OP tokens. 1888 1889.. 1890 1891.. bpo: 13513 1892.. date: 8466 1893.. nonce: Z6l39q 1894.. section: Documentation 1895 1896Fix io.IOBase documentation to correctly link to the io.IOBase.readline 1897method instead of the readline module. 1898 1899.. 1900 1901.. bpo: 13237 1902.. date: 8465 1903.. nonce: EVVjZK 1904.. section: Documentation 1905 1906Reorganise subprocess documentation to emphasise convenience functions and 1907the most commonly needed arguments to Popen. 1908 1909.. 1910 1911.. bpo: 13141 1912.. date: 8464 1913.. nonce: rDLimI 1914.. section: Documentation 1915 1916Demonstrate recommended style for SocketServer examples. 1917