summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.6b3.rst
blob: 6b23d6c19c5d11c44029614376258d9b64cc4651 (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
518
519
520
521
522
523
524
525
526
527
528
529
530
531
.. bpo: 1878
.. date: 7111
.. nonce: exCmjh
.. release date: 20-Aug-2008
.. section: Core and Builtins

Remove Py_TPFLAGS_HAVE_VERSION_TAG from Py_TPFLAGS_DEFAULT when not building
the core.  This means 3rd party extensions do not automatically benefit from
the class attribute cache; they will have to explicitly add
Py_TPFLAGS_HAVE_VERSION_TAG to their tp_flags field if they care.  This is a
backwards compatibility feature; in 3.0, all types will use the cache by
default.

..

.. bpo: 0
.. date: 7110
.. nonce: 7crJgG
.. section: Core and Builtins

Keyword arguments can now follow starred arguments. (``f(a, *args,
keyword=23)`` is now valid syntax.)

..

.. bpo: 0
.. date: 7109
.. nonce: OfzhCP
.. section: Core and Builtins

ctypes function pointers that are COM methods have a boolean True value
again.

..

.. bpo: 3139
.. date: 7108
.. nonce: j4FT95
.. section: Core and Builtins

Make buffer-interface thread-safe wrt. PyArg_ParseTuple, by denying s# to
parse objects that have a releasebuffer procedure, and introducing s*.

..

.. bpo: 3537
.. date: 7107
.. nonce: Jd1RRZ
.. section: Core and Builtins

Fix an assertion failure when an empty but presized dict object was stored
in the freelist.

..

.. bpo: 1481296
.. date: 7106
.. nonce: 9MXKTf
.. section: Core and Builtins

Make long(float('nan')) and int(float('nan')) raise ValueError consistently
across platforms.

..

.. bpo: 3479
.. date: 7105
.. nonce: 2x4rkT
.. section: Core and Builtins

On platforms where sizeof(int) is smaller than sizeof(long) (64bit Unix, for
example), unichr() would truncate its argument and return u'\x00' for
unichr(2**32). Now it properly raises an OverflowError.

..

.. bpo: 0
.. date: 7104
.. nonce: dpio6h
.. section: Core and Builtins

Apply security patches from Apple.

..

.. bpo: 2542
.. date: 7103
.. nonce: OGrPLh
.. section: Core and Builtins

Now that issubclass() may call arbitrary code, ensure that
PyErr_ExceptionMatches returns 0 when an exception occurs there.

..

.. bpo: 1819
.. date: 7102
.. nonce: LzrD36
.. section: Core and Builtins

function calls with several named parameters are now on average 35% faster
(as measured by pybench).

..

.. bpo: 2378
.. date: 7101
.. nonce: jnJN2_
.. section: Core and Builtins

An unexpected UnboundLocalError or NameError could appear when the python
debugger steps into a class statement: the free variables (local variables
defined in an outer scope) would be deleted from the outer scope.

..

.. bpo: 2620
.. date: 7100
.. nonce: g7NRZZ
.. section: Core and Builtins

Overflow checking when allocating or reallocating memory was not always
being done properly in some python types and extension modules.
PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been
updated to perform better checks and places in the code that would
previously leak memory on the error path when such an allocation failed have
been fixed.

..

.. bpo: 3612
.. date: 7099
.. nonce: RX3nFS
.. section: Library

Added some missing basic types in ctypes.wintypes.

..

.. bpo: 0
.. date: 7098
.. nonce: 6arfb-
.. section: Library

The methods ``is_in_tuple()``, ``is_vararg()``, and ``is_keywordarg()`` of
symtable.Symbol have been deprecated for removal in 3.0 and the next
release.

..

.. bpo: 2234
.. date: 7097
.. nonce: ZY7qAp
.. section: Library

distutils failed for some versions of the cygwin compiler. The version
reported by these tools does not necessarily follow the python version
numbering scheme, so the module is less strict when parsing it.

..

.. bpo: 2235
.. date: 7096
.. nonce: lZ4uDf
.. section: Library

Added Py3k warnings for types which will become unhashable under the
stricter __hash__ inheritance rules in 3.0. Several types which did not meet
the rules for hash invariants and were already unhashable in 3.0 have now
been explicitly flagged as unhashable in 2.6 as well (collections.Mapping,
collections.Set, unittest.TestSuite, xml.dom.minidom.NamedNodeMap,
numbers.Number, UserList.UserList)

..

.. bpo: 0
.. date: 7095
.. nonce: njv0Yv
.. section: Library

Update __all__ for cookielib, csv, os, urllib2, and weakref to include
things imported into the module but exposed as part of the module's API.

..

.. bpo: 0
.. date: 7094
.. nonce: IOULx3
.. section: Library

Remove an unneeded import of abc.ABCMeta from 'inspect'.

..

.. bpo: 0
.. date: 7093
.. nonce: ui1bpi
.. section: Library

Remove unneeded imports of 'sys' and 'warnings' from 'io'.

..

.. bpo: 0
.. date: 7092
.. nonce: 5UlHtd
.. section: Library

Remove unneeded imports of 'warnings' from shelve, filecmp, and
dummy_thread.

..

.. bpo: 3575
.. date: 7091
.. nonce: f0B44V
.. section: Library

Incremental decoder's decode function now takes bytearray by using 's*'
instead of 't#'.

..

.. bpo: 2222
.. date: 7090
.. nonce: 76LS-7
.. section: Library

Fixed reference leak when occurred os.rename() fails unicode conversion on
2nd parameter. (windows only)

..

.. bpo: 2464
.. date: 7089
.. nonce: Hm7gBN
.. section: Library

urllib2 now supports a malformation in the URL received in a redirect.

..

.. bpo: 0
.. date: 7088
.. nonce: 1-8Grp
.. section: Library

Silence the DeprecationWarning raised when importing mimetools in
BaseHTTPServer, cgi (and rfc822), httplib.

..

.. bpo: 2776
.. date: 7087
.. nonce: pcfDP0
.. section: Library

fixed small issue when handling a URL with double slash after a 302 response
in the case of not going through a proxy.

..

.. bpo: 2676
.. date: 7086
.. nonce: muz1Bh
.. section: Library

in the email package, content-type parsing was hanging on pathological input
because of quadratic or exponential behaviour of a regular expression.

..

.. bpo: 3476
.. date: 7085
.. nonce: Gdp5Hg
.. section: Library

binary buffered reading through the new "io" library is now thread-safe.

..

.. bpo: 0
.. date: 7084
.. nonce: 4jao1V
.. section: Library

Silence the DeprecationWarning of rfc822 when it is imported by mimetools
since mimetools itself is deprecated. Because modules are cached, all
subsequent imports of rfc822 will not raise a visible DeprecationWarning.

..

.. bpo: 3134
.. date: 7083
.. nonce: sGPHeo
.. section: Library

shutil referenced undefined WindowsError symbol.

..

.. bpo: 1342811
.. date: 7082
.. nonce: Mf5TLp
.. section: Library

Fix leak in Tkinter.Menu.delete. Commands associated to menu entries were
not deleted.

..

.. bpo: 0
.. date: 7081
.. nonce: XIC5LX
.. section: Library

Copied the implementation of reduce() to _functools.reduce() to have a
version that did not raise a DeprecationWarning under -3.

..

.. bpo: 3205
.. date: 7080
.. nonce: RcrD2G
.. section: Library

When iterating over a BZ2File fails allocating memory, raise a MemoryError
rather than silently stop the iteration.

..

.. bpo: 3487
.. date: 7079
.. nonce: LoL0Xp
.. section: Library

sre "bytecode" validator.  Passing invalid "re-bytecode" to _sre.compile()
will now be rejected.  This should not affect anybody since the re.compile()
function never generates invalid re-bytecode.

..

.. bpo: 3436
.. date: 7078
.. nonce: H10Gz5
.. section: Library

Make csv.DictReader's fieldnames attribute a property so that upon first
access it can be automatically initialized from the csv file if it wasn't
initialized during instantiation.

..

.. bpo: 2338
.. date: 7077
.. nonce: jB97v8
.. section: Library

Create imp.reload() to help with transitioning to Python 3.0 as the reload()
built-in has been removed.

..

.. bpo: 0
.. date: 7076
.. nonce: YAmZW-
.. section: Library

Changed code in the following modules/packages to remove warnings raised
while running under the ``-3`` flag: aifc, asynchat, asyncore, bdb, bsddb,
ConfigParser, cookielib, csv, difflib, distutils, DocXMLRPCServer, email,
filecmp, fileinput, inspect, logging, modulefinder, pdb, pickle, profile,
pstats, pydoc, re, rlcompleter, SimpleXMLRPCServer, shelve, socket,
subprocess, sqlite3, tarfile, Tkinter, test.test_support, textwrap,
threading, tokenize, traceback, urlparse, wsgiref, xml, xmlrpclib.

..

.. bpo: 3039
.. date: 7075
.. nonce: 6106lp
.. section: Library

Fix tarfile.TarFileCompat.writestr() which always raised an AttributeError.

..

.. bpo: 2523
.. date: 7074
.. nonce: F9osM5
.. section: Library

Fix quadratic behaviour when read()ing a binary file without asking for a
specific length. This problem only affected files opened using the new "io"
module, not the built-in open() function.

..

.. bpo: 3449
.. date: 7073
.. nonce: HIJRJS
.. section: Library

Update decimal module to use most recent specification (v. 1.68) and tests
(v. 2.58) from IBM.

..

.. bpo: 3437
.. date: 7072
.. nonce: mFS0ML
.. section: Library

Bug fix in robotparser parsing of Allow: lines.

..

.. bpo: 1592
.. date: 7071
.. nonce: zq1SOI
.. section: Library

Improve error reporting when operations are attempted on a closed shelf.

..

.. bpo: 0
.. date: 7070
.. nonce: q6AI_C
.. section: Library

Deprecate the "ast" parser function aliases.

..

.. bpo: 3120
.. date: 7069
.. nonce: x-kAFj
.. section: Library

On 64-bit Windows the subprocess module was truncating handles.

..

.. bpo: 3303
.. date: 7068
.. nonce: MGj8zT
.. section: Library

Fix a crash in locale.strcoll() when calling it with invalid arguments.

..

.. bpo: 3302
.. date: 7067
.. nonce: qnZ5Ic
.. section: Library

Fix several crashes when calling locale's gettext functions with None
arguments.

..

.. bpo: 3389
.. date: 7066
.. nonce: Dhf3EA
.. section: Library

Allow resolving dotted names for handlers in logging configuration files.

..

.. bpo: 0
.. date: 7065
.. nonce: wtYP5i
.. section: Library

Deprecate the sunaudio module for removal in Python 3.0.

..

.. bpo: 3394
.. date: 7064
.. nonce: PDdapW
.. section: Library

zipfile.writestr sets external attributes when passed a file name rather
than a ZipInfo instance, so files are extracted with mode 0600 rather than
000 under Unix.

..

.. bpo: 1857
.. date: 7063
.. nonce: VLu5_h
.. section: Library

subprocess.Popen.poll gained an additional _deadstate keyword argument in
python 2.5, this broke code that subclassed Popen to include its own poll
method.  Fixed my moving _deadstate to an _internal_poll method.

..

.. bpo: 0
.. date: 7062
.. nonce: y_hE4z
.. section: Build

Generate the PatternGrammar pickle during "make install".

..

.. bpo: 2235
.. date: 7061
.. nonce: BMunQV
.. section: Documentation

the C API function PyObject_HashNotImplemented and its interaction with the
tp_hash slot (added in 2.6b2) are now documented

..

.. bpo: 643841
.. date: 7060
.. nonce: Dc77Ec
.. section: Documentation

The language reference now provides more detailed coverage of the lookup
process for special methods. The disclaimers regarding lack of coverage of
new-style classes have also been removed, since the coverage is now fairly
reasonable.