summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.6rc1.rst
blob: 8555980cef8c0e5a0a3801dee1cbaa49942cad10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
.. bpo: 3642
.. date: 7164
.. nonce: TraQw9
.. release date: 12-Sep-2008
.. section: Core and Builtins

Suppress warning in obmalloc when size_t is larger than uint.

..

.. bpo: 3743
.. date: 7163
.. nonce: _AUYYI
.. section: Core and Builtins

In a few places, PY_FORMAT_SIZE_T was incorrectly used with
PyString_FromFormat or PyErr_Format to display size_t values. The macro
PY_FORMAT_SIZE_T is designed to select the correct format for the OS
``printf`` function, whereas PyString_FromFormat has an independent
implementation and uses "%zd" on all platforms for size_t values. This makes
a difference on win64, where ``printf`` needs "%Id" to display 64bit values.

..

.. bpo: 3634
.. date: 7162
.. nonce: q1zzTV
.. section: Core and Builtins

_weakref.ref(Exception).__init__() gave invalid return value on error.

..

.. bpo: 3777
.. date: 7161
.. nonce: NkvE9K
.. section: Core and Builtins

long() applied to a float object now always return a long object; previously
an int would be returned for small values. the __long__ method is allowed to
return either an int or a long, but the behaviour of float objects should
not change to respect backward compatibility.

..

.. bpo: 3751
.. date: 7160
.. nonce: afWsF3
.. section: Core and Builtins

str.rpartition would perform a left-partition when called with a unicode
argument.

..

.. bpo: 3683
.. date: 7159
.. nonce: CbyWTH
.. section: Core and Builtins

Fix compilation when --without-threads is given.

..

.. bpo: 3668
.. date: 7158
.. nonce: y5pFso
.. section: Core and Builtins

Fix a memory leak with the "s*" argument parser in PyArg_ParseTuple and
friends, which occurred when the argument for "s*" was correctly parsed but
parsing of subsequent arguments failed.

..

.. bpo: 2534
.. date: 7157
.. nonce: ZzJgOR
.. section: Core and Builtins

speed up isinstance() and issubclass() by 50-70%, so as to match Python 2.5
speed despite the __instancecheck__ / __subclasscheck__ mechanism. In the
process, fix a bug where isinstance() and issubclass(), when given a tuple
of classes as second argument, were looking up __instancecheck__ /
__subclasscheck__ on the tuple rather than on each type object.

..

.. bpo: 0
.. date: 7156
.. nonce: IOhEYG
.. section: Core and Builtins

Fix crashes on memory allocation failure found with failmalloc.

..

.. bpo: 0
.. date: 7155
.. nonce: 7fUtnU
.. section: Core and Builtins

Fix memory leaks found with valgrind and update suppressions file.

..

.. bpo: 0
.. date: 7154
.. nonce: C2iKX_
.. section: Core and Builtins

Fix compiler warnings in opt mode which would lead to invalid memory reads.

..

.. bpo: 0
.. date: 7153
.. nonce: F8qIAG
.. section: Core and Builtins

Fix problem using wrong name in decimal module reported by pychecker.

..

.. bpo: 0
.. date: 7152
.. nonce: 9G7-79
.. section: Core and Builtins

Silenced another compiler warning about a used but not defined function
'stringlib_contains_obj'.

..

.. bpo: 0
.. date: 7151
.. nonce: cL5FNH
.. section: Core and Builtins

Added warnings on the use of ``__getslice__``, ``__setslice__``, or
``__delslice__``.

..

.. bpo: 3678
.. date: 7150
.. nonce: tSSebH
.. section: Core and Builtins

Correctly pass LDFLAGS and LDLAST to the linker on shared library targets in
the Makefile.

..

.. bpo: 1204
.. date: 7149
.. nonce: 9IuIp4
.. section: Core and Builtins

The configure script now tests for additional libraries that may be required
when linking against readline.  This fixes issues with x86_64 builds on some
platforms (a few Linux flavors and OpenBSD).

..

.. bpo: 0
.. date: 7148
.. nonce: Amo-aR
.. section: C API

Aliased PyObject_Bytes to PyObject_Str.

..

.. bpo: 3640
.. date: 7147
.. nonce: wZzbae
.. section: Library

Pickling a list or a dict uses less local variables, to reduce stack usage
in the case of deeply nested objects.

..

.. bpo: 3629
.. date: 7146
.. nonce: 2q6K2c
.. section: Library

Fix sre "bytecode" validator for an end case.

..

.. bpo: 3811
.. date: 7145
.. nonce: 1qgQ9c
.. section: Library

The Unicode database was updated to 5.1.

..

.. bpo: 3781
.. date: 7144
.. nonce: HYW5OU
.. section: Library

Further warnings.catch_warnings() cleanup to prevent silent misbehaviour
when a single instance is nested in multiple with statements, or when the
methods are invoked in the wrong order.

..

.. bpo: 3809
.. date: 7143
.. nonce: 2A-aqP
.. section: Library

Fixed spurious 'test.blah' file left behind by test_logging.

..

.. bpo: 3781
.. date: 7142
.. nonce: jpkn0I
.. section: Library

Clean up the API for warnings.catch_warnings() by having it return a list or
None rather than a custom object.

..

.. bpo: 1638033
.. date: 7141
.. nonce: kT2UVI
.. section: Library

Cookie.Morsel gained the httponly attribute.

..

.. bpo: 3535
.. date: 7140
.. nonce: dxRVxE
.. section: Library

zipfile couldn't read some zip files larger than 2GB.

..

.. bpo: 3776
.. date: 7139
.. nonce: Ct7r55
.. section: Library

Deprecate the bsddb package for removal in 3.0.

..

.. bpo: 3762
.. date: 7138
.. nonce: R3t7Yb
.. section: Library

platform.architecture() fails if python is lanched via its symbolic link.

..

.. bpo: 3772
.. date: 7137
.. nonce: 9RUdoE
.. section: Library

Fixed regression problem in StreamHandler.emit().

..

.. bpo: 600362
.. date: 7136
.. nonce: bb-Gpk
.. section: Library

Relocated parse_qs() and parse_qsl(), from the cgi module to the urlparse
one.  Added a PendingDeprecationWarning in the old module, it will be
deprecated in the future.

..

.. bpo: 2562
.. date: 7135
.. nonce: gvBsX4
.. section: Library

Fix distutils PKG-INFO writing logic to allow having non-ascii characters
and Unicode in setup.py meta-data.

..

.. bpo: 3726
.. date: 7134
.. nonce: oNy3vR
.. section: Library

Allow spaces in separators in logging configuration files.

..

.. bpo: 3719
.. date: 7133
.. nonce: vt_7GX
.. section: Library

platform.architecture() fails if there are spaces in the path to the Python
binary.

..

.. bpo: 3602
.. date: 7132
.. nonce: SFNmF7
.. section: Library

Moved test.test_support.catch_warning() to warnings.catch_warnings() along
with some API cleanup. Expanding the tests for catch_warnings() also led to
an improvement in the raising of a DeprecationWarning related to
warnings.warn_explicit().

..

.. bpo: 0
.. date: 7131
.. nonce: Fxi-Xv
.. section: Library

The deprecation warnings for the old camelCase threading API were removed.

..

.. bpo: 0
.. date: 7130
.. nonce: _Wmj88
.. section: Library

logging: fixed lack of use of encoding attribute specified on a stream.

..

.. bpo: 0
.. date: 7129
.. nonce: yON-CX
.. section: Library

Silenced a trivial compiler warning in the sqlite module.

..

.. bpo: 0
.. date: 7128
.. nonce: UdFFop
.. section: Library

Fixed two format strings in the _collections module.

..

.. bpo: 3703
.. date: 7127
.. nonce: JVWmi4
.. section: Library

_fileio.FileIO gave unhelpful error message when trying to open a directory.

..

.. bpo: 3708
.. date: 7126
.. nonce: dbhr5L
.. section: Library

os.urandom no longer goes into an infinite loop when passed a non-integer
floating point number.

..

.. bpo: 3110
.. date: 7125
.. nonce: TXNjN7
.. section: Library

multiprocessing fails to compiel on solaris 10 due to missing SEM_VALUE_MAX.

..

.. bpo: 4301
.. date: 7124
.. nonce: To_Er1
.. section: Library

Patch the logging module to add processName support, remove
_check_logger_class from multiprocessing.

..

.. bpo: 2975
.. date: 7123
.. nonce: 3nTVpN
.. section: Library

When compiling several extension modules with Visual Studio 2008 from the
same python interpreter, some environment variables would grow without
limit.

..

.. bpo: 3643
.. date: 7122
.. nonce: r2JHSh
.. section: Library

Added a few more checks to _testcapi to prevent segfaults by exploitation of
poor argument checking.

..

.. bpo: 0
.. date: 7121
.. nonce: WeFjzv
.. section: Library

sqlite3: Changed docstring of iterdump() to mark method as "Non-standard".

..

.. bpo: 3103
.. date: 7120
.. nonce: WO-2NA
.. section: Library

Reduced globals symbols used by sqlite3 module and made sure all remaining
ones have "pysqlite_" prefix.

..

.. bpo: 3846
.. date: 7119
.. nonce: IF6rMt
.. section: Library

Release the GIL during sqlite3_prepare calls. This improves concurrent
access to the same SQLite database from multiple threads/processes.

..

.. bpo: 3781
.. date: 7118
.. nonce: c8hFsy
.. section: Tests

Add test.test_support.check_warnings() as a convenience wrapper for
warnings.catch_warnings() that makes it easier to check that expected
warning messages are being reported.

..

.. bpo: 3796
.. date: 7117
.. nonce: 04E6Gg
.. section: Tests

Some tests functions were not enabled in test_float.

..

.. bpo: 3768
.. date: 7116
.. nonce: wK7GYq
.. section: Tests

Move test_py3kwarn over to the new API for catch_warnings().

..

.. bpo: 3833
.. date: 7115
.. nonce: 8gZDgB
.. section: Build

Use a different upgrade code for Win64 installers.

..

.. bpo: 2271
.. date: 7114
.. nonce: 8MXC-o
.. section: Build

Set SecureCustomProperties so that installation will properly use the
TARGETDIR even for unprivileged users.

..

.. bpo: 0
.. date: 7113
.. nonce: 4XBUzg
.. section: Build

Allow passing the MSI file name to merge.py.

..

.. bpo: 3758
.. date: 7112
.. nonce: xZ4Rlj
.. section: Build

Rename the 'check' target to 'patchcheck' so as to not clash with GNU build
target guidelines.