summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.6b2.rst
blob: d4e77afecb53b96bd26f0983d88e4aab6e9a9c6c (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
.. bpo: 3156
.. date: 7059
.. nonce: hdm5KM
.. release date: 17-Jul-2008
.. section: Core and Builtins

Fix inconsistent behavior of the bytearray type: all its methods now allow
for items objects that can be converted to an integer using
operator.index().

..

.. bpo: 3360
.. date: 7058
.. nonce: IrjlMc
.. section: Core and Builtins

Fix incorrect parsing of '020000000000.0', which produced a ValueError
instead of giving the correct float.

..

.. bpo: 3083
.. date: 7057
.. nonce: -lGbUY
.. section: Core and Builtins

Add alternate (#) formatting for bin, oct, hex output for str.format().
This adds the prefix 0b, 0o, or 0x, respectively.

..

.. bpo: 3008
.. date: 7056
.. nonce: YsZO12
.. section: Core and Builtins

the float type has a new instance method 'float.hex' and a new class method
'float.fromhex' to convert floating-point numbers to and from hexadecimal
strings, respectively.

..

.. bpo: 2235
.. date: 7055
.. nonce: 8Brs_N
.. section: Core and Builtins

__hash__ is once again inherited by default. To allow collections.Hashable
to remain meaningful in the presence of the default hash implementation
(object.__hash__), it is now possible to explicit block inheritance of hash
by setting __hash__=None at the Python level, or
tp_hash=PyObject_HashNotImplemented at the C level.

..

.. bpo: 3221
.. date: 7054
.. nonce: -0HAEB
.. section: Core and Builtins

Issue a RuntimeWarning instead of raising SystemError if the parent module
cannot be found while performing an absolute import. This means that an
incorrectly defined __package__ attribute will now only prevent relative
imports in that module rather than causing all imports from that module to
fail.

..

.. bpo: 2517
.. date: 7053
.. nonce: YHwfKp
.. section: Core and Builtins

Allow unicode messages in Exceptions again by correctly bypassing the
instance dictionary when looking up __unicode__ on new-style classes.

..

.. bpo: 3242
.. date: 7052
.. nonce: uFneM1
.. section: Core and Builtins

Fix a crash inside the print statement, if sys.stdout is set to a custom
object whose write() method happens to install another file in sys.stdout.

..

.. bpo: 3088
.. date: 7051
.. nonce: bSHlNi
.. section: Core and Builtins

Corrected a race condition in classes derived from threading.local: the
first member set by a thread could be saved in another thread's dictionary.

..

.. bpo: 3004
.. date: 7050
.. nonce: P4g_vU
.. section: Core and Builtins

Minor change to slice.indices(): the start and stop arguments are now
treated identically, making the behaviour easier to describe and understand.
For example, slice(None, -10, 1).indices(9) now returns (0, 0, 1) instead of
(0, -1, 1), and slice(None, 10, -1).indices(10) returns (9, 9, -1) instead
of (9, 10, -1).

..

.. bpo: 3219
.. date: 7049
.. nonce: 6awi9c
.. section: Core and Builtins

Calling a function with repeated keyword arguments, f(a=2, a=23), would not
cause a syntax error.  This was a regression from 2.4 caused by the switch
to the new compiler.

..

.. bpo: 2862
.. date: 7048
.. nonce: R-Avyy
.. section: Core and Builtins

Make int and float freelist management consistent with other freelists.
Changes their CompactFreeList apis into ClearFreeList apis and calls them
via gc.collect().

..

.. bpo: 3554
.. date: 7047
.. nonce: _5DO8B
.. section: Library

ctypes.string_at and ctypes.wstring_at did call Python api functions without
holding the GIL, which could lead to a fatal error when they failed.

..

.. bpo: 799428
.. date: 7046
.. nonce: kA7sJS
.. section: Library

Fix Tkinter.Misc._nametowidget to unwrap Tcl command objects.

..

.. bpo: 3395
.. date: 7045
.. nonce: j6q9M6
.. section: Library

fix reference in test_multiprocessing to old debugInfo method

..

.. bpo: 3312
.. date: 7044
.. nonce: pGNZVY
.. section: Library

Fix two crashes in sqlite3.

..

.. bpo: 1608818
.. date: 7043
.. nonce: FtvGGk
.. section: Library

Fix misbehavior in os.listdir() if readdir() fails.

..

.. bpo: 3125
.. date: 7042
.. nonce: fEAPxY
.. section: Library

Remove copy_reg in multiprocessing and replace it with
ForkingPickler.register() to resolve conflict with ctypes.

..

.. bpo: 3090
.. date: 7041
.. nonce: Dl5Ar4
.. section: Library

Fixed ARCHFLAGS parsing on OS/X

..

.. bpo: 3313
.. date: 7040
.. nonce: wvm6HP
.. section: Library

Fixed a crash when a failed dlopen() call does not set a valid dlerror()
message.

..

.. bpo: 3258
.. date: 7039
.. nonce: JBBmgi
.. section: Library

Fixed a crash when a ctypes POINTER type to an incomplete structure was
created.

..

.. bpo: 3339
.. date: 7038
.. nonce: L4Fn9f
.. section: Library

dummy_thread.acquire() should not return None.

..

.. bpo: 3285
.. date: 7037
.. nonce: 9B3FF_
.. section: Library

Fractions from_float() and from_decimal() accept Integral arguments.

..

.. bpo: 3301
.. date: 7036
.. nonce: 063oaQ
.. section: Library

Bisect module behaved badly when lo was negative.

..

.. bpo: 839496
.. date: 7035
.. nonce: pl02h-
.. section: Library

SimpleHTTPServer used to open text files in text mode. This is both
unnecessary (HTTP allows text content to be sent in several forms) and wrong
because the actual transmitted size could differ from the content-length.
The problem had been corrected in the 2.4 branch, but never merged into
trunk.

..

.. bpo: 2663
.. date: 7034
.. nonce: j037TB
.. section: Library

add filtering capability to shutil.copytree().

..

.. bpo: 1622
.. date: 7033
.. nonce: Yi7nBf
.. section: Library

Correct interpretation of various ZIP header fields.

..

.. bpo: 1526
.. date: 7032
.. nonce: GTmFzB
.. section: Library

Allow more than 64k files to be added to Zip64 file.

..

.. bpo: 1746
.. date: 7031
.. nonce: 9HT8Dq
.. section: Library

Correct handling of zipfile archive comments (previously archives with
comments over 4k were flagged as invalid). Allow writing Zip files with
archives by setting the 'comment' attribute of a ZipFile.

..

.. bpo: 449227
.. date: 7030
.. nonce: 5LsZeI
.. section: Library

The rlcompleter module now adds "(" to callable objects when completed.

..

.. bpo: 3190
.. date: 7029
.. nonce: VtDnou
.. section: Library

Pydoc now hides the automatic module attribute __package__ (the handling is
now the same as that of other special attributes like __name__).

..

.. bpo: 2885
.. date: 7028
.. nonce: uiHEVr
.. section: Library

The urllib.urlopen() function has been deprecated for removal in Python 3.0
in favor of urllib2.urlopen().

..

.. bpo: 2113
.. date: 7027
.. nonce: bYWyrt
.. section: Library

Fix error in subprocess.Popen if the select system call is interrupted by a
signal.

..

.. bpo: 3309
.. date: 7026
.. nonce: Y7DVRF
.. section: Library

Fix bz2.BZFile iterator to release its internal lock properly when raising
an exception due to the bz2file being closed. Prevents a deadlock.

..

.. bpo: 3094
.. date: 7025
.. nonce: DuUvkr
.. section: Library

httplib.HTTPSConnection Host: headers no longer include the redundant ":443"
port number designation when the connection is using the default https port
(443).

..

.. bpo: 874900
.. date: 7024
.. nonce: O4a6qo
.. section: Library

after an os.fork() call the threading module state is cleaned up in the
child process to prevent deadlock and report proper thread counts if the new
process uses the threading module.

..

.. bpo: 0
.. date: 7023
.. nonce: qnkMJb
.. section: Tests

test.test_support.catch_warning now keeps track of all warnings it sees and
is now better documented. Explicit unit tests for this context manager have
been added to test_warnings.

..

.. bpo: 3215
.. date: 7022
.. nonce: JA6IUI
.. section: Build

Build sqlite3 as sqlite3.dll, not sqlite3.pyd.

..

.. bpo: 0
.. date: 7021
.. nonce: A25wbC
.. section: Documentation

Document that robotparser has been renamed to urllib.robotparser in Python
3.0.

..

.. bpo: 0
.. date: 7020
.. nonce: k24KZW
.. section: Documentation

Document that urlparse has been renamed to urllib.parse in Python 3.0.

..

.. bpo: 0
.. date: 7019
.. nonce: wtGKB7
.. section: Documentation

Document that urllib2 is split across multiple modules and renamed in Python
3.0.

..

.. bpo: 0
.. date: 7018
.. nonce: kWfaYS
.. section: Documentation

Document that urllib is split across multiple modules and renamed in Python
3.0.