1.. bpo: 9670 2.. date: 8461 3.. nonce: D4p50W 4.. release date: 2011-05-29 5.. section: Core and Builtins 6 7Increase the default stack size for secondary threads on Mac OS X and 8FreeBSD to reduce the chances of a crash instead of a "maximum recursion 9depth" RuntimeError exception. (patch by Ronald Oussoren) 10 11.. 12 13.. bpo: 0 14.. date: 8460 15.. nonce: w122h9 16.. section: Core and Builtins 17 18Correct lookup of __dir__ on objects. This allows old-style classes to have 19__dir__. It also causes errors besides AttributeError found on lookup to be 20propagated. 21 22.. 23 24.. bpo: 1195 25.. date: 8459 26.. nonce: rUvlec 27.. section: Core and Builtins 28 29Fix input() if it is interrupted by CTRL+d and then CTRL+c, clear the 30end-of-file indicator after CTRL+d. 31 32.. 33 34.. bpo: 8651 35.. date: 8458 36.. nonce: KT0VWy 37.. section: Core and Builtins 38 39PyArg_Parse*() functions raise an OverflowError if the file doesn't have 40PY_SSIZE_T_CLEAN define and the size doesn't fit in an int (length bigger 41than 2^31-1 bytes). 42 43.. 44 45.. bpo: 8651 46.. date: 8457 47.. nonce: d-KV9c 48.. section: Core and Builtins 49 50Fix "z#" format of PyArg_Parse*() function: the size was not written if 51PY_SSIZE_T_CLEAN is defined. 52 53.. 54 55.. bpo: 9756 56.. date: 8456 57.. nonce: L962XN 58.. section: Core and Builtins 59 60When calling a method descriptor or a slot wrapper descriptor, the check of 61the object type doesn't read the __class__ attribute anymore. Fix a crash if 62a class override its __class__ attribute (e.g. a proxy of the str type). 63Patch written by Andreas Stührk. 64 65.. 66 67.. bpo: 10517 68.. date: 8455 69.. nonce: eHRgPe 70.. section: Core and Builtins 71 72After fork(), reinitialize the TLS used by the PyGILState_* APIs, to avoid a 73crash with the pthread implementation in RHEL 5. Patch by Charles-François 74Natali. 75 76.. 77 78.. bpo: 6780 79.. date: 8454 80.. nonce: MS1yFK 81.. section: Core and Builtins 82 83fix starts/endswith error message to mention that tuples are accepted too. 84 85.. 86 87.. bpo: 5057 88.. date: 8453 89.. nonce: BMmS2n 90.. section: Core and Builtins 91 92fix a bug in the peepholer that led to non-portable pyc files between narrow 93and wide builds while optimizing BINARY_SUBSCR on non-BMP chars (e.g. 94u"\U00012345"[0]). 95 96.. 97 98.. bpo: 11650 99.. date: 8452 100.. nonce: r47Jvk 101.. section: Core and Builtins 102 103PyOS_StdioReadline() retries fgets() if it was interrupted (EINTR), for 104example if the program is stopped with CTRL+z on Mac OS X. Patch written by 105Charles-Francois Natali. 106 107.. 108 109.. bpo: 11144 110.. date: 8451 111.. nonce: FE1cYC 112.. section: Core and Builtins 113 114Ensure that int(a_float) returns an int whenever possible. Previously, there 115were some corner cases where a long was returned even though the result was 116within the range of an int. 117 118.. 119 120.. bpo: 11450 121.. date: 8450 122.. nonce: ulI9xJ 123.. section: Core and Builtins 124 125Don't truncate hg version info in Py_GetBuildInfo() when there are many tags 126(e.g. when using mq). Patch by Nadeem Vawda. 127 128.. 129 130.. bpo: 10451 131.. date: 8449 132.. nonce: wlYiI8 133.. section: Core and Builtins 134 135memoryview objects could allow mutating a readable buffer. Initial patch by 136Ross Lagerwall. 137 138.. 139 140.. bpo: 10892 141.. date: 8448 142.. nonce: ATjwD_ 143.. section: Core and Builtins 144 145Don't segfault when trying to delete __abstractmethods__ from a class. 146 147.. 148 149.. bpo: 8020 150.. date: 8447 151.. nonce: aERuZE 152.. section: Core and Builtins 153 154Avoid a crash where the small objects allocator would read non-Python 155managed memory while it is being modified by another thread. Patch by Matt 156Bandy. 157 158.. 159 160.. bpo: 11004 161.. date: 8446 162.. nonce: 2Wj4t8 163.. section: Core and Builtins 164 165Repaired edge case in deque.count(). 166 167.. 168 169.. bpo: 8278 170.. date: 8445 171.. nonce: 8P-kMi 172.. section: Core and Builtins 173 174On Windows and with a NTFS filesystem, os.stat() and os.utime() can now 175handle dates after 2038. 176 177.. 178 179.. bpo: 4236 180.. date: 8444 181.. nonce: kMjQK6 182.. section: Core and Builtins 183 184Py_InitModule4 now checks the import machinery directly rather than the 185Py_IsInitialized flag, avoiding a Fatal Python error in certain 186circumstances when an import is done in __del__. 187 188.. 189 190.. bpo: 11828 191.. date: 8443 192.. nonce: nBlnst 193.. section: Core and Builtins 194 195startswith and endswith don't accept None as slice index. Patch by Torsten 196Becker. 197 198.. 199 200.. bpo: 10674 201.. date: 8442 202.. nonce: ZNFQ1f 203.. section: Core and Builtins 204 205Remove unused 'dictmaker' rule from grammar. 206 207.. 208 209.. bpo: 10596 210.. date: 8441 211.. nonce: r05xzm 212.. section: Core and Builtins 213 214Fix float.__mod__ to have the same behaviour as float.__divmod__ with 215respect to signed zeros. -4.0 % 4.0 should be 0.0, not -0.0. 216 217.. 218 219.. bpo: 11386 220.. date: 8440 221.. nonce: wrrB8K 222.. section: Core and Builtins 223 224bytearray.pop() now throws IndexError when the bytearray is empty, instead 225of OverflowError. 226 227.. 228 229.. bpo: 12161 230.. date: 8439 231.. nonce: CmDpNV 232.. section: Library 233 234Cause StringIO.getvalue() to raise a ValueError when used on a closed 235StringIO instance. 236 237.. 238 239.. bpo: 12182 240.. date: 8438 241.. nonce: IWruZQ 242.. section: Library 243 244Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true) division 245(python -Qnew). Patch written by Ralf W. Grosse-Kunstleve. 246 247.. 248 249.. bpo: 12175 250.. date: 8437 251.. nonce: 9M55CV 252.. section: Library 253 254RawIOBase.readall() now returns None if read() returns None. 255 256.. 257 258.. bpo: 12175 259.. date: 8436 260.. nonce: U3k4iw 261.. section: Library 262 263FileIO.readall() now raises a ValueError instead of an IOError if the file 264is closed. 265 266.. 267 268.. bpo: 1441530 269.. date: 8435 270.. nonce: pSlnFk 271.. section: Library 272 273In imaplib, use makefile() to wrap the SSL socket to avoid heap 274fragmentation and MemoryError with some malloc implementations. 275 276.. 277 278.. bpo: 12100 279.. date: 8434 280.. nonce: 4sb-gJ 281.. section: Library 282 283Don't reset incremental encoders of CJK codecs at each call to their 284encode() method anymore, but continue to call the reset() method if the 285final argument is True. 286 287.. 288 289.. bpo: 12124 290.. date: 8433 291.. nonce: qpMI7g 292.. section: Library 293 294zipimport doesn't keep a reference to zlib.decompress() anymore to be able 295to unload the module. 296 297.. 298 299.. bpo: 10154 300.. date: 8432 301.. nonce: 4iPVr8 302.. section: Library 303 304change the normalization of UTF-8 to "UTF-8" instead of "UTF8" in the locale 305module as the latter is not supported MacOSX and OpenBSD. (See also: 306bpo-10090) 307 308.. 309 310.. bpo: 9516 311.. date: 8431 312.. nonce: WLkxuC 313.. section: Library 314 315avoid errors in sysconfig when MACOSX_DEPLOYMENT_TARGET is set in shell. 316 317.. 318 319.. bpo: 12050 320.. date: 8430 321.. nonce: v6HF9i 322.. section: Library 323 324zlib.decompressobj().decompress() now clears the unconsumed_tail attribute 325when called without a max_length argument. 326 327.. 328 329.. bpo: 12062 330.. date: 8429 331.. nonce: fUVuyO 332.. section: Library 333 334In the `io` module, fix a flushing bug when doing a certain type of I/O 335sequence on a file opened in read+write mode (namely: reading, seeking a bit 336forward, writing, then seeking before the previous write but still within 337buffered data, and writing again). 338 339.. 340 341.. bpo: 8498 342.. date: 8428 343.. nonce: XooGVI 344.. section: Library 345 346In socket.accept(), allow specifying 0 as a backlog value in order to accept 347exactly one connection. Patch by Daniel Evers. 348 349.. 350 351.. bpo: 12012 352.. date: 8427 353.. nonce: raFUoR 354.. section: Library 355 356ssl.PROTOCOL_SSLv2 becomes optional. 357 358.. 359 360.. bpo: 11927 361.. date: 8426 362.. nonce: UqvRAV 363.. section: Library 364 365SMTP_SSL now uses port 465 by default as documented. Patch by Kasun Herath. 366 367.. 368 369.. bpo: 11999 370.. date: 8425 371.. nonce: aLa-HD 372.. section: Library 373 374fixed sporadic sync failure mailbox.Maildir due to its trying to detect 375mtime changes by comparing to the system clock instead of to the previous 376value of the mtime. 377 378.. 379 380.. bpo: 10684 381.. date: 8424 382.. nonce: Ctye6o 383.. section: Library 384 385shutil.move used to delete a folder on case insensitive filesystems when the 386source and destination name where the same except for the case. 387 388.. 389 390.. bpo: 11982 391.. date: 8423 392.. nonce: 4CiHRO 393.. section: Library 394 395fix json.loads('""') to return u'' rather than ''. 396 397.. 398 399.. bpo: 11277 400.. date: 8422 401.. nonce: 4nCUxv 402.. section: Library 403 404mmap.mmap() calls fcntl(fd, F_FULLFSYNC) on Mac OS X to get around a mmap 405bug with sparse files. Patch written by Steffen Daode Nurpmeso. 406 407.. 408 409.. bpo: 10761 410.. date: 8421 411.. nonce: rwSQE7 412.. section: Library 413 414Fix tarfile.extractall failure when symlinked files are present. Initial 415patch by Scott Leerssen. 416 417.. 418 419.. bpo: 11763 420.. date: 8420 421.. nonce: LPGrnG 422.. section: Library 423 424don't use difflib in TestCase.assertMultiLineEqual if the strings are too 425long. 426 427.. 428 429.. bpo: 11236 430.. date: 8419 431.. nonce: DyWdnL 432.. section: Library 433 434getpass.getpass responds to ctrl-c or ctrl-z on terminal. 435 436.. 437 438.. bpo: 11768 439.. date: 8418 440.. nonce: HRg5Hy 441.. section: Library 442 443The signal handler of the signal module only calls Py_AddPendingCall() for 444the first signal to fix a deadlock on reentrant or parallel calls. 445PyErr_SetInterrupt() writes also into the wake up file. 446 447.. 448 449.. bpo: 11875 450.. date: 8417 451.. nonce: xFn-yD 452.. section: Library 453 454collections.OrderedDict's __reduce__ was temporarily mutating the object 455instead of just working on a copy. 456 457.. 458 459.. bpo: 11442 460.. date: 8416 461.. nonce: Jta8go 462.. section: Library 463 464Add a charset parameter to the Content-type in SimpleHTTPServer to avoid XSS 465attacks. 466 467.. 468 469.. bpo: 11467 470.. date: 8415 471.. nonce: th8B0N 472.. section: Library 473 474Fix urlparse behavior when handling urls which contains scheme specific part 475only digits. Patch by Santoso Wijaya. 476 477.. 478 479.. bpo: 0 480.. date: 8414 481.. nonce: MOd782 482.. section: Library 483 484collections.Counter().copy() now works correctly for subclasses. 485 486.. 487 488.. bpo: 11474 489.. date: 8413 490.. nonce: UKTAWA 491.. section: Library 492 493Fix the bug with url2pathname() handling of '/C|/' on Windows. Patch by 494Santoso Wijaya. 495 496.. 497 498.. bpo: 9233 499.. date: 8412 500.. nonce: AIRcqi 501.. section: Library 502 503Fix json.loads('{}') to return a dict (instead of a list), when _json is not 504available. 505 506.. 507 508.. bpo: 11703 509.. date: 8411 510.. nonce: hwI5Mw 511.. section: Library 512 513urllib2.geturl() does not return correct url when the original url contains 514#fragment. 515 516.. 517 518.. bpo: 10019 519.. date: 8410 520.. nonce: J7QVFU 521.. section: Library 522 523Fixed regression in json module where an indent of 0 stopped adding newlines 524and acted instead like 'None'. 525 526.. 527 528.. bpo: 5162 529.. date: 8409 530.. nonce: UYJrO- 531.. section: Library 532 533Treat services like frozen executables to allow child spawning from 534multiprocessing.forking on Windows. 535 536.. 537 538.. bpo: 4877 539.. date: 8408 540.. nonce: 4B7uDJ 541.. section: Library 542 543Fix a segfault in xml.parsers.expat while attempting to parse a closed file. 544 545.. 546 547.. bpo: 11830 548.. date: 8407 549.. nonce: tFEtWl 550.. section: Library 551 552Remove unnecessary introspection code in the decimal module. It was causing 553a failed import in the Turkish locale where the locale sensitive str.upper() 554method caused a name mismatch. 555 556.. 557 558.. bpo: 8428 559.. date: 8406 560.. nonce: vVu7J6 561.. section: Library 562 563Fix a race condition in multiprocessing.Pool when terminating worker 564processes: new processes would be spawned while the pool is being shut down. 565Patch by Charles-François Natali. 566 567.. 568 569.. bpo: 7311 570.. date: 8405 571.. nonce: lRokCQ 572.. section: Library 573 574Fix HTMLParser to accept non-ASCII attribute values. 575 576.. 577 578.. bpo: 10963 579.. date: 8404 580.. nonce: _J-MW9 581.. section: Library 582 583Ensure that subprocess.communicate() never raises EPIPE. 584 585.. 586 587.. bpo: 11662 588.. date: 8403 589.. nonce: GpHbgk 590.. section: Library 591 592Make urllib and urllib2 ignore redirections if the scheme is not HTTP, HTTPS 593or FTP (CVE-2011-1521). 594 595.. 596 597.. bpo: 11256 598.. date: 8402 599.. nonce: AVqrHZ 600.. section: Library 601 602Fix inspect.getcallargs on functions that take only keyword arguments. 603 604.. 605 606.. bpo: 11696 607.. date: 8401 608.. nonce: dzz7nM 609.. section: Library 610 611Fix ID generation in msilib. 612 613.. 614 615.. bpo: 9696 616.. date: 8400 617.. nonce: Nh0u8J 618.. section: Library 619 620Fix exception incorrectly raised by xdrlib.Packer.pack_int when trying to 621pack a negative (in-range) integer. 622 623.. 624 625.. bpo: 11675 626.. date: 8399 627.. nonce: qFfmkU 628.. section: Library 629 630multiprocessing.[Raw]Array objects created from an integer size are now 631zeroed on creation. This matches the behaviour specified by the 632documentation. 633 634.. 635 636.. bpo: 7639 637.. date: 8398 638.. nonce: PKfmwz 639.. section: Library 640 641Fix short file name generation in bdist_msi. 642 643.. 644 645.. bpo: 11666 646.. date: 8397 647.. nonce: Hni56e 648.. section: Library 649 650let help() display named tuple attributes and methods that start with a 651leading underscore. 652 653.. 654 655.. bpo: 11673 656.. date: 8396 657.. nonce: uXlx4W 658.. section: Library 659 660Fix multiprocessing Array and RawArray constructors to accept a size of type 661'long', rather than only accepting 'int'. 662 663.. 664 665.. bpo: 10042 666.. date: 8395 667.. nonce: SCtRiD 668.. section: Library 669 670Fixed the total_ordering decorator to handle cross-type comparisons that 671could lead to infinite recursion. 672 673.. 674 675.. bpo: 10979 676.. date: 8394 677.. nonce: FjyVrT 678.. section: Library 679 680unittest stdout buffering now works with class and module setup and 681teardown. 682 683.. 684 685.. bpo: 11569 686.. date: 8393 687.. nonce: fp461F 688.. section: Library 689 690use absolute path to the sysctl command in multiprocessing to ensure that it 691will be found regardless of the shell PATH. This ensures that 692multiprocessing.cpu_count works on default installs of MacOSX. 693 694.. 695 696.. bpo: 11500 697.. date: 8392 698.. nonce: SOGd4Y 699.. section: Library 700 701Fixed a bug in the os x proxy bypass code for fully qualified IP addresses 702in the proxy exception list. 703 704.. 705 706.. bpo: 11131 707.. date: 8391 708.. nonce: PnmRwo 709.. section: Library 710 711Fix sign of zero in plus and minus operations when the context rounding mode 712is ROUND_FLOOR. 713 714.. 715 716.. bpo: 5622 717.. date: 8390 718.. nonce: dM7tnW 719.. section: Library 720 721Fix curses.wrapper to raise correct exception if curses initialization 722fails. 723 724.. 725 726.. bpo: 11391 727.. date: 8389 728.. nonce: hdoRPe 729.. section: Library 730 731Writing to a mmap object created with ``mmap.PROT_READ|mmap.PROT_EXEC`` 732would segfault instead of raising a TypeError. Patch by Charles-François 733Natali. 734 735.. 736 737.. bpo: 11306 738.. date: 8388 739.. nonce: 2rXDt4 740.. section: Library 741 742mailbox in certain cases adapts to an inability to open certain files in 743read-write mode. Previously it detected this by checking for EACCES, now it 744also checks for EROFS. 745 746.. 747 748.. bpo: 11265 749.. date: 8387 750.. nonce: Y51oyn 751.. section: Library 752 753asyncore now correctly handles EPIPE, EBADF and EAGAIN errors on accept(), 754send() and recv(). 755 756.. 757 758.. bpo: 11326 759.. date: 8386 760.. nonce: 2GUPyU 761.. section: Library 762 763Add the missing connect_ex() implementation for SSL sockets, and make it 764work for non-blocking connects. 765 766.. 767 768.. bpo: 10956 769.. date: 8385 770.. nonce: ArNOt6 771.. section: Library 772 773Buffered I/O classes retry reading or writing after a signal has arrived and 774the handler returned successfully. 775 776.. 777 778.. bpo: 10680 779.. date: 8384 780.. nonce: pAmFnC 781.. section: Library 782 783Fix mutually exclusive arguments for argument groups in argparse. 784 785.. 786 787.. bpo: 4681 788.. date: 8383 789.. nonce: I20jgq 790.. section: Library 791 792Allow mmap() to work on file sizes and offsets larger than 4GB, even on 79332-bit builds. Initial patch by Ross Lagerwall, adapted for 32-bit Windows. 794 795.. 796 797.. bpo: 10360 798.. date: 8382 799.. nonce: JAYw4l 800.. section: Library 801 802In WeakSet, do not raise TypeErrors when testing for membership of 803non-weakrefable objects. 804 805.. 806 807.. bpo: 10549 808.. date: 8381 809.. nonce: 15cASW 810.. section: Library 811 812Fix pydoc traceback when text-documenting certain classes. 813 814.. 815 816.. bpo: 940286 817.. date: 8380 818.. nonce: cPglIg 819.. section: Library 820 821pydoc.Helper.help() ignores input/output init parameters. 822 823.. 824 825.. bpo: 11171 826.. date: 8379 827.. nonce: ZXEFXT 828.. section: Library 829 830Fix detection of config/Makefile when --prefix != --exec-prefix, which 831caused Python to not start. 832 833.. 834 835.. bpo: 11116 836.. date: 8378 837.. nonce: J0xgWH 838.. section: Library 839 840any error during addition of a message to a mailbox now causes a rollback, 841instead of leaving the mailbox partially modified. 842 843.. 844 845.. bpo: 8275 846.. date: 8377 847.. nonce: -TRADs 848.. section: Library 849 850Fix passing of callback arguments with ctypes under Win64. Patch by Stan 851Mihai. 852 853.. 854 855.. bpo: 10949 856.. date: 8376 857.. nonce: sknBTt 858.. section: Library 859 860Improved robustness of rotating file handlers. 861 862.. 863 864.. bpo: 10955 865.. date: 8375 866.. nonce: RSqPRN 867.. section: Library 868 869Fix a potential crash when trying to mmap() a file past its length. Initial 870patch by Ross Lagerwall. 871 872.. 873 874.. bpo: 10898 875.. date: 8374 876.. nonce: 2VhVxS 877.. section: Library 878 879Allow compiling the posix module when the C library defines a symbol named 880FSTAT. 881 882.. 883 884.. bpo: 10916 885.. date: 8373 886.. nonce: xpdEg8 887.. section: Library 888 889mmap should not segfault when a file is mapped using 0 as length and a 890non-zero offset, and an attempt to read past the end of file is made (IndexError 891is raised instead). Patch by Ross Lagerwall. 892 893.. 894 895.. bpo: 10875 896.. date: 8372 897.. nonce: RSNYLS 898.. section: Library 899 900Update Regular Expression HOWTO; patch by 'SilentGhost'. 901 902.. 903 904.. bpo: 10827 905.. date: 8371 906.. nonce: vjZCZr 907.. section: Library 908 909Changed the rules for 2-digit years. The time.asctime function will now 910format any year when ``time.accept2dyear`` is false and will accept years >= 9111000 otherwise. The year range accepted by ``time.mktime`` and 912``time.strftime`` is still system dependent, but ``time.mktime`` will now 913accept full range supported by the OS. Conversion of 2-digit years to 9144-digit is deprecated. 915 916.. 917 918.. bpo: 10869 919.. date: 8370 920.. nonce: 3xBkWx 921.. section: Library 922 923Fixed bug where ast.increment_lineno modified the root node twice. 924 925.. 926 927.. bpo: 7858 928.. date: 8369 929.. nonce: DKZMOA 930.. section: Library 931 932Raise an error properly when os.utime() fails under Windows on an existing 933file. 934 935.. 936 937.. bpo: 3839 938.. date: 8368 939.. nonce: zMNSit 940.. section: Library 941 942wsgiref should not override a Content-Length header set by the application. 943Initial patch by Clovis Fabricio. 944 945.. 946 947.. bpo: 10806 948.. date: 8367 949.. nonce: dEztuB 950.. section: Library 951 952Fix subprocess pipes when some of the standard file descriptors (0, 1, 2) 953are closed in the parent process. Initial patch by Ross Lagerwall. (See 954also: bpo-9905) 955 956.. 957 958.. bpo: 4662 959.. date: 8366 960.. nonce: m3fHnI 961.. section: Library 962 963os.tempnam(), os.tmpfile() and os.tmpnam() now raise a py3k 964DeprecationWarning. 965 966.. 967 968.. bpo: 0 969.. date: 8365 970.. nonce: t8RJ2P 971.. section: Library 972 973Subclasses of collections.OrderedDict now work correctly with __missing__. 974 975.. 976 977.. bpo: 10753 978.. date: 8364 979.. nonce: pjcQCT 980.. section: Library 981 982Characters ';', '=' and ',' in the PATH_INFO environment variable won't be 983quoted when the URI is constructed by the wsgiref.util 's request_uri 984method. According to RFC 3986, these characters can be a part of params in 985PATH component of URI and need not be quoted. 986 987.. 988 989.. bpo: 10738 990.. date: 8363 991.. nonce: GT7QZa 992.. section: Library 993 994Fix webbrowser.Opera.raise_opts 995 996.. 997 998.. bpo: 9824 999.. date: 8362 1000.. nonce: vJBIAh 1001.. section: Library 1002 1003SimpleCookie now encodes , and ; in values to cater to how browsers actually 1004parse cookies. 1005 1006.. 1007 1008.. bpo: 1379416 1009.. date: 8361 1010.. nonce: fpWgER 1011.. section: Library 1012 1013eliminated a source of accidental unicode promotion in 1014email.header.Header.encode. 1015 1016.. 1017 1018.. bpo: 5258 1019.. date: 8360 1020.. nonce: fNenmJ 1021.. section: Library 1022 1023if site.py encounters a .pth file that generates an error, it now prints the 1024filename, line number, and traceback to stderr and skips the rest of that 1025individual file, instead of stopping processing entirely. (See also: 1026bpo-10642) 1027 1028.. 1029 1030.. bpo: 10750 1031.. date: 8359 1032.. nonce: o-KFTn 1033.. section: Library 1034 1035The ``raw`` attribute of buffered IO objects is now read-only. 1036 1037.. 1038 1039.. bpo: 10242 1040.. date: 8358 1041.. nonce: uwgK8s 1042.. section: Library 1043 1044unittest.TestCase.assertItemsEqual makes too many assumptions about input. 1045 1046.. 1047 1048.. bpo: 10611 1049.. date: 8357 1050.. nonce: y67Wpv 1051.. section: Library 1052 1053SystemExit should not cause a unittest test run to exit. 1054 1055.. 1056 1057.. bpo: 6791 1058.. date: 8356 1059.. nonce: b5b4M7 1060.. section: Library 1061 1062Limit header line length (to 65535 bytes) in http.client, to avoid denial of 1063services from the other party. 1064 1065.. 1066 1067.. bpo: 9907 1068.. date: 8355 1069.. nonce: EC_Wry 1070.. section: Library 1071 1072Fix tab handling on OSX when using editline by calling rl_initialize first, 1073then setting our custom defaults, then reading .editrc. 1074 1075.. 1076 1077.. bpo: 4188 1078.. date: 8354 1079.. nonce: nIr5eF 1080.. section: Library 1081 1082Avoid creating dummy thread objects when logging operations from the 1083threading module (with the internal verbose flag activated). 1084 1085.. 1086 1087.. bpo: 9721 1088.. date: 8353 1089.. nonce: G8i-SO 1090.. section: Library 1091 1092Fix the behavior of urljoin when the relative url starts with a ';' 1093character. Patch by Wes Chow. 1094 1095.. 1096 1097.. bpo: 10714 1098.. date: 8352 1099.. nonce: 2ytXWI 1100.. section: Library 1101 1102Limit length of incoming request in http.server to 65536 bytes for security 1103reasons. Initial patch by Ross Lagerwall. 1104 1105.. 1106 1107.. bpo: 9558 1108.. date: 8351 1109.. nonce: Zu3z6Q 1110.. section: Library 1111 1112Fix distutils.command.build_ext with VS 8.0. 1113 1114.. 1115 1116.. bpo: 10695 1117.. date: 8350 1118.. nonce: 9PoZLI 1119.. section: Library 1120 1121passing the port as a string value to telnetlib no longer causes debug mode 1122to fail. 1123 1124.. 1125 1126.. bpo: 10478 1127.. date: 8349 1128.. nonce: 3rusTg 1129.. section: Library 1130 1131Reentrant calls inside buffered IO objects (for example by way of a signal 1132handler) now raise a RuntimeError instead of freezing the current process. 1133 1134.. 1135 1136.. bpo: 10497 1137.. date: 8348 1138.. nonce: KCVp0v 1139.. section: Library 1140 1141Fix incorrect use of gettext in argparse. 1142 1143.. 1144 1145.. bpo: 10464 1146.. date: 8347 1147.. nonce: oT76Cm 1148.. section: Library 1149 1150netrc now correctly handles lines with embedded '#' characters. 1151 1152.. 1153 1154.. bpo: 1731717 1155.. date: 8346 1156.. nonce: 1WiN2u 1157.. section: Library 1158 1159Fixed the problem where subprocess.wait() could cause an OSError exception 1160when The OS had been told to ignore SIGCLD in our process or otherwise not 1161wait for exiting child processes. 1162 1163.. 1164 1165.. bpo: 9509 1166.. date: 8345 1167.. nonce: Oh-iMy 1168.. section: Library 1169 1170argparse now properly handles IOErrors raised by argparse.FileType. 1171 1172.. 1173 1174.. bpo: 9348 1175.. date: 8344 1176.. nonce: zsJPPj 1177.. section: Library 1178 1179Raise an early error if argparse nargs and metavar don't match. 1180 1181.. 1182 1183.. bpo: 8982 1184.. date: 8343 1185.. nonce: fTONNH 1186.. section: Library 1187 1188Improve the documentation for the argparse Namespace object. 1189 1190.. 1191 1192.. bpo: 9343 1193.. date: 8342 1194.. nonce: 9T-Qyz 1195.. section: Library 1196 1197Document that argparse parent parsers must be configured before their 1198children. 1199 1200.. 1201 1202.. bpo: 9026 1203.. date: 8341 1204.. nonce: 2xqEFT 1205.. section: Library 1206 1207Fix order of argparse sub-commands in help messages. 1208 1209.. 1210 1211.. bpo: 9347 1212.. date: 8340 1213.. nonce: R8xBsQ 1214.. section: Library 1215 1216Fix formatting for tuples in argparse type= error messages. 1217 1218.. 1219 1220.. bpo: 0 1221.. date: 8339 1222.. nonce: qXxXWp 1223.. section: Library 1224 1225Stop using the old interface for providing methods and attributes in the 1226_sre module. Among other things, this gives these classes ``__class__`` 1227attributes. (See #12099) 1228 1229.. 1230 1231.. bpo: 10169 1232.. date: 8338 1233.. nonce: OXJ9Nh 1234.. section: Library 1235 1236Fix argument parsing in socket.sendto() to avoid error masking. 1237 1238.. 1239 1240.. bpo: 12051 1241.. date: 8337 1242.. nonce: 7HjY_U 1243.. section: Library 1244 1245Fix segfault in json.dumps() while encoding highly-nested objects using the 1246C accelerations. 1247 1248.. 1249 1250.. bpo: 12017 1251.. date: 8336 1252.. nonce: w25YNq 1253.. section: Library 1254 1255Fix segfault in json.loads() while decoding highly-nested objects using the 1256C accelerations. 1257 1258.. 1259 1260.. bpo: 1838 1261.. date: 8335 1262.. nonce: EzKU3z 1263.. section: Library 1264 1265Prevent segfault in ctypes, when _as_parameter_ on a class is set to an 1266instance of the class. 1267 1268.. 1269 1270.. bpo: 678250 1271.. date: 8334 1272.. nonce: a5vtlO 1273.. section: Library 1274 1275Make mmap flush a noop on ACCESS_READ and ACCESS_COPY. 1276 1277.. 1278 1279.. bpo: 11718 1280.. date: 8333 1281.. nonce: giS1iY 1282.. section: IDLE 1283 1284IDLE's open module dialog couldn't find the __init__.py file in a package. 1285 1286.. 1287 1288.. bpo: 12590 1289.. date: 8332 1290.. nonce: dcDjo7 1291.. section: IDLE 1292 1293IDLE editor window now always displays the first line when opening a long 1294file. With Tk 8.5, the first line was hidden. 1295 1296.. 1297 1298.. bpo: 11088 1299.. date: 8331 1300.. nonce: 08NI5v 1301.. section: IDLE 1302 1303don't crash when using F5 to run a script in IDLE on MacOSX with Tk 8.5. 1304 1305.. 1306 1307.. bpo: 10940 1308.. date: 8330 1309.. nonce: qwi3cm 1310.. section: IDLE 1311 1312Workaround an IDLE hang on Mac OS X 10.6 when using the menu accelerators 1313for Open Module, Go to Line, and New Indent Width. The accelerators still 1314work but no longer appear in the menu items. 1315 1316.. 1317 1318.. bpo: 10907 1319.. date: 8329 1320.. nonce: BHHc_r 1321.. section: IDLE 1322 1323Warn OS X 10.6 IDLE users to use ActiveState Tcl/Tk 8.5, rather than the 1324currently problematic Apple-supplied one, when running with the 64-/32-bit 1325installer variant. 1326 1327.. 1328 1329.. bpo: 11052 1330.. date: 8328 1331.. nonce: avmtSQ 1332.. section: IDLE 1333 1334Correct IDLE menu accelerators on Mac OS X for Save commands. 1335 1336.. 1337 1338.. bpo: 6075 1339.. date: 8327 1340.. nonce: AHKNEZ 1341.. section: IDLE 1342 1343IDLE on Mac OS X now works with both Carbon AquaTk and Cocoa AquaTk. 1344 1345.. 1346 1347.. bpo: 10404 1348.. date: 8326 1349.. nonce: CBzs_G 1350.. section: IDLE 1351 1352Use ctl-button-1 on OSX for the context menu in Idle. 1353 1354.. 1355 1356.. bpo: 10107 1357.. date: 8325 1358.. nonce: Bsx-F4 1359.. section: IDLE 1360 1361Warn about unsaved files in IDLE on OSX. 1362 1363.. 1364 1365.. bpo: 10406 1366.. date: 8324 1367.. nonce: HKSefS 1368.. section: IDLE 1369 1370Enable Rstrip IDLE extension on OSX (just like on other platforms). 1371 1372.. 1373 1374.. bpo: 6378 1375.. date: 8323 1376.. nonce: Vr_x3W 1377.. section: IDLE 1378 1379Further adjust idle.bat to start associated Python 1380 1381.. 1382 1383.. bpo: 11896 1384.. date: 8322 1385.. nonce: XPwdkw 1386.. section: IDLE 1387 1388Save on Close failed despite selecting "Yes" in dialog. 1389 1390.. 1391 1392.. bpo: 4676 1393.. date: 8321 1394.. nonce: qQkued 1395.. section: IDLE 1396 1397<Home> toggle failing on Tk 8.5, causing IDLE exits and strange selection 1398behavior. Improve selection extension behaviour. 1399 1400.. 1401 1402.. bpo: 3851 1403.. date: 8320 1404.. nonce: iy6ENX 1405.. section: IDLE 1406 1407<Home> toggle non-functional when NumLock set on Windows. 1408 1409.. 1410 1411.. bpo: 11217 1412.. date: 8319 1413.. nonce: mIEwfc 1414.. section: Build 1415 1416For 64-bit/32-bit Mac OS X universal framework builds, ensure "make install" 1417creates symlinks in --prefix bin for the "-32" files in the framework bin 1418directory like the installer does. 1419 1420.. 1421 1422.. bpo: 11411 1423.. date: 8318 1424.. nonce: 1m9fjv 1425.. section: Build 1426 1427Fix 'make DESTDIR=' with a relative destination. 1428 1429.. 1430 1431.. bpo: 10709 1432.. date: 8317 1433.. nonce: QpLCFk 1434.. section: Build 1435 1436Add updated AIX notes in Misc/README.AIX. 1437 1438.. 1439 1440.. bpo: 11184 1441.. date: 8316 1442.. nonce: sGfAXw 1443.. section: Build 1444 1445Fix large-file support on AIX. 1446 1447.. 1448 1449.. bpo: 941346 1450.. date: 8315 1451.. nonce: heMADD 1452.. section: Build 1453 1454Fix broken shared library build on AIX. 1455 1456.. 1457 1458.. bpo: 11268 1459.. date: 8314 1460.. nonce: Lgcka6 1461.. section: Build 1462 1463Prevent Mac OS X Installer failure if Documentation package had previously 1464been installed. 1465 1466.. 1467 1468.. bpo: 11079 1469.. date: 8313 1470.. nonce: Y0Hh5V 1471.. section: Build 1472 1473The /Applications/Python x.x folder created by the Mac OS X installers now 1474includes a link to the installed documentation. 1475 1476.. 1477 1478.. bpo: 11054 1479.. date: 8312 1480.. nonce: BN3sYU 1481.. section: Build 1482 1483Allow Mac OS X installer builds to again work on 10.5 with the 1484system-provided Python. 1485 1486.. 1487 1488.. bpo: 10843 1489.. date: 8311 1490.. nonce: EdyFR6 1491.. section: Build 1492 1493Update third-party library versions used in OS X 32-bit installer builds: 1494bzip2 1.0.6, readline 6.1.2, SQLite 3.7.4 (with FTS3/FTS4 and RTREE 1495enabled), and ncursesw 5.5 (wide-char support enabled). 1496 1497.. 1498 1499.. bpo: 0 1500.. date: 8310 1501.. nonce: nsY3xU 1502.. section: Build 1503 1504Don't run pgen twice when using make -j. 1505 1506.. 1507 1508.. bpo: 7716 1509.. date: 8309 1510.. nonce: KkZ-2b 1511.. section: Build 1512 1513Under Solaris, don't assume existence of /usr/xpg4/bin/grep in the configure 1514script but use $GREP instead. Patch by Fabian Groffen. 1515 1516.. 1517 1518.. bpo: 10475 1519.. date: 8308 1520.. nonce: LVKSbB 1521.. section: Build 1522 1523Don't hardcode compilers for LDSHARED/LDCXXSHARED on NetBSD and DragonFly 1524BSD. Patch by Nicolas Joly. 1525 1526.. 1527 1528.. bpo: 10655 1529.. date: 8307 1530.. nonce: WauLJp 1531.. section: Build 1532 1533Fix the build on PowerPC on Linux with GCC when building with timestamp 1534profiling (--with-tsc): the preprocessor test for the PowerPC support now 1535looks for "__powerpc__" as well as "__ppc__": the latter seems to only be 1536present on OS X; the former is the correct one for Linux with GCC. 1537 1538.. 1539 1540.. bpo: 1099 1541.. date: 8306 1542.. nonce: KikOsu 1543.. section: Build 1544 1545Fix the build on MacOSX when building a framework with pydebug using GCC 15464.0. 1547 1548.. 1549 1550.. bpo: 11164 1551.. date: 8305 1552.. nonce: w2nrYU 1553.. section: Tests 1554 1555Remove obsolete allnodes test from minidom test. 1556 1557.. 1558 1559.. bpo: 12205 1560.. date: 8304 1561.. nonce: gVhWmC 1562.. section: Tests 1563 1564Fix test_subprocess failure due to uninstalled test data. 1565 1566.. 1567 1568.. bpo: 5723 1569.. date: 8303 1570.. nonce: Lfg1OX 1571.. section: Tests 1572 1573Improve json tests to be executed with and without accelerations. 1574 1575.. 1576 1577.. bpo: 11910 1578.. date: 8302 1579.. nonce: HhQx49 1580.. section: Tests 1581 1582Fix test_heapq to skip the C tests when _heapq is missing. 1583 1584.. 1585 1586.. bpo: 0 1587.. date: 8301 1588.. nonce: i8QOXe 1589.. section: Tests 1590 1591Fix test_startfile to wait for child process to terminate before finishing. 1592 1593.. 1594 1595.. bpo: 11719 1596.. date: 8300 1597.. nonce: ojamUL 1598.. section: Tests 1599 1600Fix message about unexpected test_msilib skip on non-Windows platforms. 1601Patch by Nadeem Vawda. 1602 1603.. 1604 1605.. bpo: 7108 1606.. date: 8299 1607.. nonce: xaF3OE 1608.. section: Tests 1609 1610Fix test_commands to not fail when special attributes ('@' or '.') appear in 1611'ls -l' output. 1612 1613.. 1614 1615.. bpo: 11490 1616.. date: 8298 1617.. nonce: I86Gxz 1618.. section: Tests 1619 1620test_subprocess:test_leaking_fds_on_error no longer gives a false positive 1621if the last directory in the path is inaccessible. 1622 1623.. 1624 1625.. bpo: 10822 1626.. date: 8297 1627.. nonce: P0VrIZ 1628.. section: Tests 1629 1630Fix test_posix:test_getgroups failure under Solaris. Patch by Ross 1631Lagerwall. 1632 1633.. 1634 1635.. bpo: 6293 1636.. date: 8296 1637.. nonce: J7ur1U 1638.. section: Tests 1639 1640Have regrtest.py echo back sys.flags. This is done by default in whole runs 1641and enabled selectively using ``--header`` when running an explicit list of 1642tests. Original patch by Collin Winter. 1643 1644.. 1645 1646.. bpo: 775964 1647.. date: 8295 1648.. nonce: 7a2XLN 1649.. section: Tests 1650 1651test_grp now skips YP/NIS entries instead of failing when encountering them. 1652 1653.. 1654 1655.. bpo: 7110 1656.. date: 8294 1657.. nonce: SyQreJ 1658.. section: Tests 1659 1660regrtest now sends test failure reports and single-failure tracebacks to 1661stderr rather than stdout. 1662