1.. bpo: 3642 2.. date: 7164 3.. nonce: TraQw9 4.. release date: 12-Sep-2008 5.. section: Core and Builtins 6 7Suppress warning in obmalloc when size_t is larger than uint. 8 9.. 10 11.. bpo: 3743 12.. date: 7163 13.. nonce: _AUYYI 14.. section: Core and Builtins 15 16In a few places, PY_FORMAT_SIZE_T was incorrectly used with 17PyString_FromFormat or PyErr_Format to display size_t values. The macro 18PY_FORMAT_SIZE_T is designed to select the correct format for the OS 19``printf`` function, whereas PyString_FromFormat has an independent 20implementation and uses "%zd" on all platforms for size_t values. This makes 21a difference on win64, where ``printf`` needs "%Id" to display 64bit values. 22 23.. 24 25.. bpo: 3634 26.. date: 7162 27.. nonce: q1zzTV 28.. section: Core and Builtins 29 30_weakref.ref(Exception).__init__() gave invalid return value on error. 31 32.. 33 34.. bpo: 3777 35.. date: 7161 36.. nonce: NkvE9K 37.. section: Core and Builtins 38 39long() applied to a float object now always return a long object; previously 40an int would be returned for small values. the __long__ method is allowed to 41return either an int or a long, but the behaviour of float objects should 42not change to respect backward compatibility. 43 44.. 45 46.. bpo: 3751 47.. date: 7160 48.. nonce: afWsF3 49.. section: Core and Builtins 50 51str.rpartition would perform a left-partition when called with a unicode 52argument. 53 54.. 55 56.. bpo: 3683 57.. date: 7159 58.. nonce: CbyWTH 59.. section: Core and Builtins 60 61Fix compilation when --without-threads is given. 62 63.. 64 65.. bpo: 3668 66.. date: 7158 67.. nonce: y5pFso 68.. section: Core and Builtins 69 70Fix a memory leak with the "s*" argument parser in PyArg_ParseTuple and 71friends, which occurred when the argument for "s*" was correctly parsed but 72parsing of subsequent arguments failed. 73 74.. 75 76.. bpo: 2534 77.. date: 7157 78.. nonce: ZzJgOR 79.. section: Core and Builtins 80 81speed up isinstance() and issubclass() by 50-70%, so as to match Python 2.5 82speed despite the __instancecheck__ / __subclasscheck__ mechanism. In the 83process, fix a bug where isinstance() and issubclass(), when given a tuple 84of classes as second argument, were looking up __instancecheck__ / 85__subclasscheck__ on the tuple rather than on each type object. 86 87.. 88 89.. bpo: 0 90.. date: 7156 91.. nonce: IOhEYG 92.. section: Core and Builtins 93 94Fix crashes on memory allocation failure found with failmalloc. 95 96.. 97 98.. bpo: 0 99.. date: 7155 100.. nonce: 7fUtnU 101.. section: Core and Builtins 102 103Fix memory leaks found with valgrind and update suppressions file. 104 105.. 106 107.. bpo: 0 108.. date: 7154 109.. nonce: C2iKX_ 110.. section: Core and Builtins 111 112Fix compiler warnings in opt mode which would lead to invalid memory reads. 113 114.. 115 116.. bpo: 0 117.. date: 7153 118.. nonce: F8qIAG 119.. section: Core and Builtins 120 121Fix problem using wrong name in decimal module reported by pychecker. 122 123.. 124 125.. bpo: 0 126.. date: 7152 127.. nonce: 9G7-79 128.. section: Core and Builtins 129 130Silenced another compiler warning about a used but not defined function 131'stringlib_contains_obj'. 132 133.. 134 135.. bpo: 0 136.. date: 7151 137.. nonce: cL5FNH 138.. section: Core and Builtins 139 140Added warnings on the use of ``__getslice__``, ``__setslice__``, or 141``__delslice__``. 142 143.. 144 145.. bpo: 3678 146.. date: 7150 147.. nonce: tSSebH 148.. section: Core and Builtins 149 150Correctly pass LDFLAGS and LDLAST to the linker on shared library targets in 151the Makefile. 152 153.. 154 155.. bpo: 1204 156.. date: 7149 157.. nonce: 9IuIp4 158.. section: Core and Builtins 159 160The configure script now tests for additional libraries that may be required 161when linking against readline. This fixes issues with x86_64 builds on some 162platforms (a few Linux flavors and OpenBSD). 163 164.. 165 166.. bpo: 0 167.. date: 7148 168.. nonce: Amo-aR 169.. section: C API 170 171Aliased PyObject_Bytes to PyObject_Str. 172 173.. 174 175.. bpo: 3640 176.. date: 7147 177.. nonce: wZzbae 178.. section: Library 179 180Pickling a list or a dict uses less local variables, to reduce stack usage 181in the case of deeply nested objects. 182 183.. 184 185.. bpo: 3629 186.. date: 7146 187.. nonce: 2q6K2c 188.. section: Library 189 190Fix sre "bytecode" validator for an end case. 191 192.. 193 194.. bpo: 3811 195.. date: 7145 196.. nonce: 1qgQ9c 197.. section: Library 198 199The Unicode database was updated to 5.1. 200 201.. 202 203.. bpo: 3781 204.. date: 7144 205.. nonce: HYW5OU 206.. section: Library 207 208Further warnings.catch_warnings() cleanup to prevent silent misbehaviour 209when a single instance is nested in multiple with statements, or when the 210methods are invoked in the wrong order. 211 212.. 213 214.. bpo: 3809 215.. date: 7143 216.. nonce: 2A-aqP 217.. section: Library 218 219Fixed spurious 'test.blah' file left behind by test_logging. 220 221.. 222 223.. bpo: 3781 224.. date: 7142 225.. nonce: jpkn0I 226.. section: Library 227 228Clean up the API for warnings.catch_warnings() by having it return a list or 229None rather than a custom object. 230 231.. 232 233.. bpo: 1638033 234.. date: 7141 235.. nonce: kT2UVI 236.. section: Library 237 238Cookie.Morsel gained the httponly attribute. 239 240.. 241 242.. bpo: 3535 243.. date: 7140 244.. nonce: dxRVxE 245.. section: Library 246 247zipfile couldn't read some zip files larger than 2GB. 248 249.. 250 251.. bpo: 3776 252.. date: 7139 253.. nonce: Ct7r55 254.. section: Library 255 256Deprecate the bsddb package for removal in 3.0. 257 258.. 259 260.. bpo: 3762 261.. date: 7138 262.. nonce: R3t7Yb 263.. section: Library 264 265platform.architecture() fails if python is lanched via its symbolic link. 266 267.. 268 269.. bpo: 3772 270.. date: 7137 271.. nonce: 9RUdoE 272.. section: Library 273 274Fixed regression problem in StreamHandler.emit(). 275 276.. 277 278.. bpo: 600362 279.. date: 7136 280.. nonce: bb-Gpk 281.. section: Library 282 283Relocated parse_qs() and parse_qsl(), from the cgi module to the urlparse 284one. Added a PendingDeprecationWarning in the old module, it will be 285deprecated in the future. 286 287.. 288 289.. bpo: 2562 290.. date: 7135 291.. nonce: gvBsX4 292.. section: Library 293 294Fix distutils PKG-INFO writing logic to allow having non-ascii characters 295and Unicode in setup.py meta-data. 296 297.. 298 299.. bpo: 3726 300.. date: 7134 301.. nonce: oNy3vR 302.. section: Library 303 304Allow spaces in separators in logging configuration files. 305 306.. 307 308.. bpo: 3719 309.. date: 7133 310.. nonce: vt_7GX 311.. section: Library 312 313platform.architecture() fails if there are spaces in the path to the Python 314binary. 315 316.. 317 318.. bpo: 3602 319.. date: 7132 320.. nonce: SFNmF7 321.. section: Library 322 323Moved test.test_support.catch_warning() to warnings.catch_warnings() along 324with some API cleanup. Expanding the tests for catch_warnings() also led to 325an improvement in the raising of a DeprecationWarning related to 326warnings.warn_explicit(). 327 328.. 329 330.. bpo: 0 331.. date: 7131 332.. nonce: Fxi-Xv 333.. section: Library 334 335The deprecation warnings for the old camelCase threading API were removed. 336 337.. 338 339.. bpo: 0 340.. date: 7130 341.. nonce: _Wmj88 342.. section: Library 343 344logging: fixed lack of use of encoding attribute specified on a stream. 345 346.. 347 348.. bpo: 0 349.. date: 7129 350.. nonce: yON-CX 351.. section: Library 352 353Silenced a trivial compiler warning in the sqlite module. 354 355.. 356 357.. bpo: 0 358.. date: 7128 359.. nonce: UdFFop 360.. section: Library 361 362Fixed two format strings in the _collections module. 363 364.. 365 366.. bpo: 3703 367.. date: 7127 368.. nonce: JVWmi4 369.. section: Library 370 371_fileio.FileIO gave unhelpful error message when trying to open a directory. 372 373.. 374 375.. bpo: 3708 376.. date: 7126 377.. nonce: dbhr5L 378.. section: Library 379 380os.urandom no longer goes into an infinite loop when passed a non-integer 381floating point number. 382 383.. 384 385.. bpo: 3110 386.. date: 7125 387.. nonce: TXNjN7 388.. section: Library 389 390multiprocessing fails to compiel on solaris 10 due to missing SEM_VALUE_MAX. 391 392.. 393 394.. bpo: 4301 395.. date: 7124 396.. nonce: To_Er1 397.. section: Library 398 399Patch the logging module to add processName support, remove 400_check_logger_class from multiprocessing. 401 402.. 403 404.. bpo: 2975 405.. date: 7123 406.. nonce: 3nTVpN 407.. section: Library 408 409When compiling several extension modules with Visual Studio 2008 from the 410same python interpreter, some environment variables would grow without 411limit. 412 413.. 414 415.. bpo: 3643 416.. date: 7122 417.. nonce: r2JHSh 418.. section: Library 419 420Added a few more checks to _testcapi to prevent segfaults by exploitation of 421poor argument checking. 422 423.. 424 425.. bpo: 0 426.. date: 7121 427.. nonce: WeFjzv 428.. section: Library 429 430sqlite3: Changed docstring of iterdump() to mark method as "Non-standard". 431 432.. 433 434.. bpo: 3103 435.. date: 7120 436.. nonce: WO-2NA 437.. section: Library 438 439Reduced globals symbols used by sqlite3 module and made sure all remaining 440ones have "pysqlite_" prefix. 441 442.. 443 444.. bpo: 3846 445.. date: 7119 446.. nonce: IF6rMt 447.. section: Library 448 449Release the GIL during sqlite3_prepare calls. This improves concurrent 450access to the same SQLite database from multiple threads/processes. 451 452.. 453 454.. bpo: 3781 455.. date: 7118 456.. nonce: c8hFsy 457.. section: Tests 458 459Add test.test_support.check_warnings() as a convenience wrapper for 460warnings.catch_warnings() that makes it easier to check that expected 461warning messages are being reported. 462 463.. 464 465.. bpo: 3796 466.. date: 7117 467.. nonce: 04E6Gg 468.. section: Tests 469 470Some tests functions were not enabled in test_float. 471 472.. 473 474.. bpo: 3768 475.. date: 7116 476.. nonce: wK7GYq 477.. section: Tests 478 479Move test_py3kwarn over to the new API for catch_warnings(). 480 481.. 482 483.. bpo: 3833 484.. date: 7115 485.. nonce: 8gZDgB 486.. section: Build 487 488Use a different upgrade code for Win64 installers. 489 490.. 491 492.. bpo: 2271 493.. date: 7114 494.. nonce: 8MXC-o 495.. section: Build 496 497Set SecureCustomProperties so that installation will properly use the 498TARGETDIR even for unprivileged users. 499 500.. 501 502.. bpo: 0 503.. date: 7113 504.. nonce: 4XBUzg 505.. section: Build 506 507Allow passing the MSI file name to merge.py. 508 509.. 510 511.. bpo: 3758 512.. date: 7112 513.. nonce: xZ4Rlj 514.. section: Build 515 516Rename the 'check' target to 'patchcheck' so as to not clash with GNU build 517target guidelines. 518