summaryrefslogtreecommitdiff
path: root/Misc/NEWS.d/2.7a2.rst
blob: d453e96f8e8a87a18501eb5351a060ab4aa9282b (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
.. bpo: 0
.. date: 7804
.. nonce: jherxT
.. release date: 2010-01-09
.. section: Core and Builtins

The ``__complex__()`` method is now looked up on the class of instances to
make it consistent with other special methods.

..

.. bpo: 7462
.. date: 7803
.. nonce: E1r1bi
.. section: Core and Builtins

Implement the stringlib fast search algorithm for the `rfind`, `rindex`,
`rsplit` and `rpartition` methods.  Patch by Florent Xicluna.

..

.. bpo: 5080
.. date: 7802
.. nonce: Wb4q9j
.. section: Core and Builtins

A number of functions and methods previously produced a DeprecationWarning
when passed a float argument where an integer was expected. These functions
and methods now raise TypeError instead.  The majority of the effects of
this change are in the extension modules, but some core functions and
methods are affected: notably the 'chr', 'range' and 'xrange' builtins, and
many unicode/str methods.

..

.. bpo: 7604
.. date: 7801
.. nonce: tTzdbD
.. section: Core and Builtins

Deleting an unset slotted attribute did not raise an AttributeError.

..

.. bpo: 7534
.. date: 7800
.. nonce: UJiEZi
.. section: Core and Builtins

Fix handling of IEEE specials (infinities, nans, negative zero) in **
operator.  The behaviour now conforms to that described in C99 Annex F.

..

.. bpo: 7579
.. date: 7799
.. nonce: cmOrYb
.. section: Core and Builtins

The msvcrt module now has docstrings for all its functions.

..

.. bpo: 7413
.. date: 7798
.. nonce: g6Euap
.. section: Core and Builtins

Passing '\0' as the separator to datetime.datetime.isoformat() used to drop
the time part of the result.

..

.. bpo: 1811
.. date: 7797
.. nonce: e1nd7g
.. section: Core and Builtins

Improve accuracy and cross-platform consistency for true division of
integers: the result of a/b is now correctly rounded for ints a and b (at
least on IEEE 754 platforms), and in particular does not depend on the
internal representation of a long.

..

.. bpo: 6108
.. date: 7796
.. nonce: j3A6pp
.. section: Core and Builtins

``unicode(exception)`` and ``str(exception)`` should return the same message
when only ``__str__()`` (and not ``__unicode__()``) is overridden in the
subclass.

..

.. bpo: 6834
.. date: 7795
.. nonce: iPCAPI
.. section: Core and Builtins

Replace the implementation for the 'python' and 'pythonw' executables on
OSX.

These executables now work properly with the arch(1) command: ``arch -ppc
python`` will start a universal binary version of python in PPC mode (unlike
previous releases).

..

.. bpo: 1680159
.. date: 7794
.. nonce: zCoubo
.. section: Core and Builtins

Unicode coercion during an 'in' operation no longer masks the underlying
error when the coercion fails for the left hand operand.

..

.. bpo: 7491
.. date: 7793
.. nonce: bGallI
.. section: Core and Builtins

Metaclass's __cmp__ method was ignored.

..

.. bpo: 7466
.. date: 7792
.. nonce: zrhYS4
.. section: Core and Builtins

Segmentation fault when the garbage collector is called in the middle of
populating a tuple.  Patch by Florent Xicluna.

..

.. bpo: 6963
.. date: 7791
.. nonce: TJvFT0
.. section: Library

Added "maxtasksperchild" argument to ``multiprocessing.Pool``, allowing for
a maximum number of tasks within the pool to be completed by the worker
before that worker is terminated, and a new one created to replace it.

..

.. bpo: 7617
.. date: 7790
.. nonce: duSdpP
.. section: Library

Make sure distutils.unixccompiler.UnixCCompiler recognizes gcc when it has a
fully qualified configuration prefix.  Initial patch by Arfrever.

..

.. bpo: 7092
.. date: 7789
.. nonce: 8Bxjpz
.. section: Library

Remove py3k warning when importing cPickle.  2to3 handles renaming of
`cPickle` to `pickle`.  The warning was annoying since there's no
alternative to cPickle if you care about performance.  Patch by Florent
Xicluna.

..

.. bpo: 7455
.. date: 7788
.. nonce: 4QZ2RC
.. section: Library

Fix possible crash in cPickle on invalid input.  Patch by Victor Stinner.

..

.. bpo: 7092
.. date: 7787
.. nonce: z80fv1
.. section: Library

Fix the DeprecationWarnings emitted by the standard library when using the
-3 flag.  Patch by Florent Xicluna.

..

.. bpo: 7471
.. date: 7786
.. nonce: Flh7OS
.. section: Library

Improve the performance of GzipFile's buffering mechanism, and make it
implement the ``io.BufferedIOBase`` ABC to allow for further speedups by
wrapping it in an ``io.BufferedReader``.  Patch by Nir Aides.

..

.. bpo: 3972
.. date: 7785
.. nonce: T0AsF9
.. section: Library

``httplib.HTTPConnection`` now accepts an optional source_address parameter
to allow specifying where your connections come from.

..

.. bpo: 0
.. date: 7784
.. nonce: VuT7xt
.. section: Library

``socket.create_connection()`` now accepts an optional source_address
parameter.

..

.. bpo: 5511
.. date: 7783
.. nonce: qXXb66
.. section: Library

``zipfile.ZipFile`` can now be used as a context manager. Initial patch by
Brian Curtin.

..

.. bpo: 0
.. date: 7782
.. nonce: jVBfGB
.. section: Library

Distutils now correctly identifies the build architecture as "x86_64" when
building on OSX 10.6 without "-arch" flags.

..

.. bpo: 7556
.. date: 7781
.. nonce: 9TArd4
.. section: Library

Distutils' msvc9compiler now opens the MSVC Manifest file in text mode.

..

.. bpo: 7552
.. date: 7780
.. nonce: cuagLV
.. section: Library

Removed line feed in the base64 Authorization header in the Distutils upload
command to avoid an error when PyPI reads it.  This occurs on long
passwords.  Initial patch by JP St. Pierre.

..

.. bpo: 7231
.. date: 7779
.. nonce: PtW-pZ
.. section: Library

urllib2 cannot handle https with proxy requiring auth.  Patch by Tatsuhiro
Tsujikawa.

..

.. bpo: 7349
.. date: 7778
.. nonce: qwbHfI
.. section: Library

Make methods of file objects in the io module accept None as an argument
where file-like objects (ie StringIO and BytesIO) accept them to mean the
same as passing no argument.

..

.. bpo: 7348
.. date: 7777
.. nonce: 47KswH
.. section: Library

``StringIO.StringIO.readline(-1)`` now acts as if it got no argument like
other file objects.

..

.. bpo: 7357
.. date: 7776
.. nonce: EteBpH
.. section: Library

tarfile no longer suppresses fatal extraction errors by default.

..

.. bpo: 7470
.. date: 7775
.. nonce: IW_7wI
.. section: Library

logging: Fix bug in Unicode encoding fallback.

..

.. bpo: 5949
.. date: 7774
.. nonce: oAWtv2
.. section: Library

Fixed IMAP4_SSL hang when the IMAP server response is missing proper
end-of-line termination.

..

.. bpo: 7457
.. date: 7773
.. nonce: n8Bkqb
.. section: Library

Added a read_pkg_file method to ``distutils.dist.DistributionMetadata``.

..

.. bpo: 3745
.. date: 7772
.. nonce: 1on7AT
.. section: Library

Undo the 2.7a1 change to have hashlib to reject unicode and non buffer API
supporting objects as input.  That behavior is for 3.x only.

..

.. bpo: 7767
.. date: 7771
.. nonce: XmNIZJ
.. section: C API

New function ``PyLong_AsLongLongAndOverflow()`` added, analogous to
``PyLong_AsLongAndOverflow()``.

..

.. bpo: 5080
.. date: 7770
.. nonce: bMlEGy
.. section: C API

The argument parsing functions ``PyArg_ParseTuple()``,
``PyArg_ParseTupleAndKeywords()``, ``PyArg_VaParse()``,
``PyArg_VaParseTupleAndKeywords()`` and ``PyArg_Parse()`` no longer accept
float arguments for integer format codes (other than 'L'): previously an
attempt to pass a float resulted in a DeprecationWarning; now it gives a
TypeError.  For the 'L' format code (which previously had no warning) there
is now a DeprecationWarning.

..

.. bpo: 7033
.. date: 7769
.. nonce: koLSHo
.. section: C API

Function ``PyErr_NewExceptionWithDoc()`` added.

..

.. bpo: 6491
.. date: 7768
.. nonce: mDJ_mR
.. section: Build

Allow --with-dbmliborder to specify that no dbms will be built.

..

.. bpo: 6943
.. date: 7767
.. nonce: HhHPsy
.. section: Build

Use pkg-config to find the libffi headers when the ``--with-system-ffi``
flag is used.

..

.. bpo: 7609
.. date: 7766
.. nonce: w1witS
.. section: Build

Add a ``--with-system-expat`` option that causes the system's expat library
to be used for the pyexpat module instead of the one included with Python.

..

.. bpo: 7589
.. date: 7765
.. nonce: uh9YyY
.. section: Build

Only build the nis module when the correct header files are found.

..

.. bpo: 0
.. date: 7764
.. nonce: 6WvEdi
.. section: Build

Switch to OpenSSL 0.9.8l and sqlite 3.6.21 on Windows.

..

.. bpo: 7541
.. date: 7763
.. nonce: V8g0W6
.. section: Build

when using ``python-config`` with a framework install the compiler might use
the wrong library.

..

.. bpo: 7376
.. date: 7762
.. nonce: Y0Cani
.. section: Tests

Instead of running a self-test (which was failing) when called with no
arguments, doctest.py now gives a usage message.

..

.. bpo: 7396
.. date: 7761
.. nonce: WRRHMZ
.. section: Tests

Fix regrtest -s, which was broken by the -j enhancement.

..

.. bpo: 7498
.. date: 7760
.. nonce: Cpaz-t
.. section: Tests

test_multiprocessing now uses test_support.find_unused_port instead of a
hardcoded port number in test_rapid_restart.