summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.7rc1.rst
blob: 18578b5037edc1828a7ccfee1205c92a3c7c7432 (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
.. bpo: 8271
.. date: 8078
.. nonce: HKwc-i
.. release date: 2010-06-05
.. section: Core and Builtins

during the decoding of an invalid UTF-8 byte sequence, only the start byte
and the continuation byte(s) are now considered invalid, instead of the
number of bytes specified by the start byte. E.g.:
'\xf1\x80AB'.decode('utf-8', 'replace') now returns u'\ufffdAB' and replaces
with U+FFFD only the start byte ('\xf1') and the continuation byte ('\x80')
even if '\xf1' is the start byte of a 4-bytes sequence. Previous versions
returned a single u'\ufffd'.

..

.. bpo: 8627
.. date: 8077
.. nonce: l2l6Zs
.. section: Core and Builtins

Remove bogus "Overriding __cmp__ blocks inheritance of __hash__ in 3.x"
warning.  Also fix "XXX undetected error" that arises from the "Overriding
__eq__ blocks inheritance ..." warning when turned into an exception: in
this case the exception simply gets ignored.

..

.. bpo: 8748
.. date: 8076
.. nonce: bKymOB
.. section: Core and Builtins

Fix two issues with comparisons between complex and integer objects.  (1)
The comparison could incorrectly return True in some cases (2**53+1 ==
complex(2**53) == 2**53), breaking transivity of equality. (2) The
comparison raised an OverflowError for large integers, leading to
unpredictable exceptions when combining integers and complex objects in sets
or dicts.

..

.. bpo: 5211
.. date: 8075
.. nonce: BNwm54
.. section: Core and Builtins

Implicit coercion for the complex type is now completely removed.  (Coercion
for arithmetic operations was already removed in 2.7 alpha 4, but coercion
for rich comparisons was accidentally left in.)

..

.. bpo: 3798
.. date: 8074
.. nonce: L9n27k
.. section: Core and Builtins

Write sys.exit() message to sys.stderr to use stderr encoding and error
handler, instead of writing to the C stderr file in utf-8

..

.. bpo: 7902
.. date: 8073
.. nonce: K75Ezw
.. section: Core and Builtins

When using explicit relative import syntax, don't try implicit relative
import semantics.

..

.. bpo: 7079
.. date: 8072
.. nonce: wEGBdB
.. section: Core and Builtins

Fix a possible crash when closing a file object while using it from another
thread.  Patch by Daniel Stutzbach.

..

.. bpo: 8868
.. date: 8071
.. nonce: rg3J-W
.. section: Core and Builtins

Fix that ensures that python scripts have access to the Window Server again
in a framework build on MacOSX 10.5 or earlier.

..

.. bpo: 5753
.. date: 8070
.. nonce: 205374
.. section: C API

A new C API function, :cfunc:`PySys_SetArgvEx`, allows embedders of the
interpreter to set sys.argv without also modifying sys.path.  This helps fix
`CVE-2008-5983
<http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-5983>`_.

..

.. bpo: 8302
.. date: 8069
.. nonce: U5tZ_l
.. section: Library

SkipTest in unittest.TestCase.setUpClass or setUpModule is now reported as a
skip rather than an error.

..

.. bpo: 8351
.. date: 8068
.. nonce: 8I5oO-
.. section: Library

Excessively large diffs due to unittest.TestCase.assertSequenceEqual are no
longer included in failure reports.

..

.. bpo: 8899
.. date: 8067
.. nonce: Q6oIpy
.. section: Library

time.struct_time now has class and attribute docstrings.

..

.. bpo: 4487
.. date: 8066
.. nonce: WdV86e
.. section: Library

email now accepts as charset aliases all codec aliases accepted by the
codecs module.

..

.. bpo: 6470
.. date: 8065
.. nonce: eVTlgU
.. section: Library

Drop UNC prefix in FixTk.

..

.. bpo: 5610
.. date: 8064
.. nonce: 3x0O2c
.. section: Library

feedparser no longer eats extra characters at the end of a body part if the
body part ends with a \r\n.

..

.. bpo: 8833
.. date: 8063
.. nonce: R9JBZA
.. section: Library

tarfile created hard link entries with a size field != 0 by mistake.

..

.. bpo: 1368247
.. date: 8062
.. nonce: OVD5zb
.. section: Library

set_charset (and therefore MIMEText) now automatically encodes a unicode
_payload to the output_charset.

..

.. bpo: 7150
.. date: 8061
.. nonce: kBTznJ
.. section: Library

Raise OverflowError if the result of adding or subtracting timedelta from
date or datetime falls outside of the MINYEAR:MAXYEAR range.

..

.. bpo: 6662
.. date: 8060
.. nonce: jpO1QX
.. section: Library

Fix parsing of malformatted charref (&#bad;), patch written by Fredrik Håård

..

.. bpo: 8016
.. date: 8059
.. nonce: vAmdrz
.. section: Library

Add the CP858 codec.

..

.. bpo: 3924
.. date: 8058
.. nonce: -W1f1B
.. section: Library

Ignore cookies with invalid "version" field in cookielib.

..

.. bpo: 6268
.. date: 8057
.. nonce: fQgJxL
.. section: Library

Fix seek() method of codecs.open(), don't read or write the BOM twice after
seek(0). Fix also reset() method of codecs, UTF-16, UTF-32 and StreamWriter
classes.

..

.. bpo: 5640
.. date: 8056
.. nonce: dpc6TZ
.. section: Library

Fix Shift-JIS incremental encoder for error handlers different than
'strict'.

..

.. bpo: 8782
.. date: 8055
.. nonce: asLuOV
.. section: Library

Add a trailing newline in linecache.updatecache to the last line of files
without one.

..

.. bpo: 8729
.. date: 8054
.. nonce: Nq_Uhf
.. section: Library

Return NotImplemented from ``collections.Mapping.__eq__()`` when comparing
to a non-mapping.

..

.. bpo: 8759
.. date: 8053
.. nonce: 0yDlu7
.. section: Library

Fix user paths in sysconfig for posix and os2 schemes.

..

.. bpo: 1285086
.. date: 8052
.. nonce: U8BtXR
.. section: Library

Speed up ``urllib.quote()`` and urllib.unquote for simple cases.

..

.. bpo: 8688
.. date: 8051
.. nonce: gUJqmI
.. section: Library

Distutils now recalculates MANIFEST every time.

..

.. bpo: 5099
.. date: 8050
.. nonce: kmjFaU
.. section: Library

The ``__del__()`` method of ``subprocess.Popen`` (and the methods it calls)
referenced global objects, causing errors to pop up during interpreter
shutdown.

..

.. bpo: 7384
.. date: 8049
.. nonce: E16zrc
.. section: Library

If the system readline library is linked against ncurses, the curses module
must be linked against ncurses as well. Otherwise it is not safe to load
both the readline and curses modules in an application.

..

.. bpo: 2810
.. date: 8048
.. nonce: FSt0Y0
.. section: Library

Fix cases where the Windows registry API returns ERROR_MORE_DATA, requiring
a re-try in order to get the complete result.

..

.. bpo: 8674
.. date: 8047
.. nonce: Q2kfWX
.. section: Library

Fixed a number of incorrect or undefined-behaviour-inducing overflow checks
in the ``audioop`` module.

..

.. bpo: 8889
.. date: 8046
.. nonce: 9IoVzA
.. section: Tests

test_support.transient_internet rewritten so that the new checks also work
on FreeBSD, which lacks EAI_NODATA.

..

.. bpo: 8835
.. date: 8045
.. nonce: FJzJvJ
.. section: Tests

test_support.transient_internet() catches gaierror(EAI_NONAME) and
gaierror(EAI_NODATA)

..

.. bpo: 7449
.. date: 8044
.. nonce: LeKyd_
.. section: Tests

Skip test_socketserver if threading support is disabled

..

.. bpo: 0
.. date: 8043
.. nonce: b_na1a
.. section: Tests

On darwin, ``test_site`` assumed that a framework build was being used,
leading to a failure where four directories were expected for site-packages
instead of two in a non-framework build.

..

.. bpo: 0
.. date: 8042
.. nonce: g-v7fs
.. section: Build

Display installer warning that Windows 2000 won't be supported in future
releases.

..

.. bpo: 1759169
.. date: 8041
.. nonce: NW035m
.. section: Build

Drop _XOPEN_SOURCE on Solaris, define it for multiprocessing only. (See
also: bpo-8864)

..

.. bpo: 5464
.. date: 8040
.. nonce: R1pj9Y
.. section: Tools/Demos

Implement plural forms in msgfmt.py.