1.. bpo: 0
2.. date: 8039
3.. nonce: 8aqNKP
4.. release date: 2010-05-08
5.. section: Core and Builtins
6
7Run Clang 2.7's static analyzer for ``Objects/`` and ``Python/``.
8
9..
10
11.. bpo: 1533
12.. date: 8038
13.. nonce: 6FLjC9
14.. section: Core and Builtins
15
16Fix inconsistency in range function argument processing: any non-float
17non-integer argument is now converted to an integer (if possible) using its
18__int__ method.  Previously, only small arguments were treated this way;
19larger arguments (those whose __int__ was outside the range of a C long)
20would produce a TypeError.
21
22..
23
24.. bpo: 8202
25.. date: 8037
26.. nonce: UvqmQ2
27.. section: Core and Builtins
28
29``sys.argv[0]`` is now set to '-m' instead of '-c' when searching for the
30module file to be executed with the -m command line option.
31
32..
33
34.. bpo: 7319
35.. date: 8036
36.. nonce: Ry0QuX
37.. section: Core and Builtins
38
39When -Q is used, do not silence DeprecationWarning.
40
41..
42
43.. bpo: 7332
44.. date: 8035
45.. nonce: mCUzwz
46.. section: Core and Builtins
47
48Remove the 16KB stack-based buffer in ``PyMarshal_ReadLastObjectFromFile``,
49which doesn't bring any noticeable benefit compared to the dynamic memory
50allocation fallback.  Patch by Charles-François Natali.
51
52..
53
54.. bpo: 8417
55.. date: 8034
56.. nonce: qcRfh8
57.. section: Core and Builtins
58
59Raise an OverflowError when an integer larger than sys.maxsize is passed to
60bytearray.
61
62..
63
64.. bpo: 7072
65.. date: 8033
66.. nonce: YGHQG7
67.. section: Core and Builtins
68
69``isspace(0xa0)`` is true on Mac OS X.
70
71..
72
73.. bpo: 8404
74.. date: 8032
75.. nonce: 0krGPF
76.. section: Core and Builtins
77
78Fix set operations on dictionary views.
79
80..
81
82.. bpo: 8084
83.. date: 8031
84.. nonce: uiAFoS
85.. section: Core and Builtins
86
87PEP 370 now conforms to system conventions for framework builds on MacOS X.
88That is, ``python setup.py install --user`` will install into
89``~/Library/Python/2.7`` instead of ``~/.local``.
90
91..
92
93.. bpo: 8681
94.. date: 8030
95.. nonce: bnD2Mi
96.. section: Library
97
98Make the zlib module's error messages more informative when the zlib itself
99doesn't give any detailed explanation.
100
101..
102
103.. bpo: 8571
104.. date: 8029
105.. nonce: BGxcud
106.. section: Library
107
108Fix an internal error when compressing or decompressing a chunk larger than
1091GB with the zlib module's compressor and decompressor objects.
110
111..
112
113.. bpo: 8573
114.. date: 8028
115.. nonce: PZTYKm
116.. section: Library
117
118asyncore ``_strerror()`` function might throw ValueError.
119
120..
121
122.. bpo: 8483
123.. date: 8027
124.. nonce: gWRwCr
125.. section: Library
126
127asyncore.dispatcher's __getattr__ method produced confusing error messages
128when accessing undefined class attributes because of the cheap inheritance
129with the underlying socket object.  The cheap inheritance has been
130deprecated.
131
132..
133
134.. bpo: 4265
135.. date: 8026
136.. nonce: gtcR-h
137.. section: Library
138
139``shutil.copyfile()`` was leaking file descriptors when disk fills.  Patch
140by Tres Seaver.
141
142..
143
144.. bpo: 7755
145.. date: 8025
146.. nonce: k5FaAX
147.. section: Library
148
149Use an unencumbered audio file for tests.
150
151..
152
153.. bpo: 8621
154.. date: 8024
155.. nonce: 64sJJn
156.. section: Library
157
158``uuid.uuid4()`` returned the same sequence of values in the parent and any
159children created using ``os.fork`` on Mac OS X 10.6.
160
161..
162
163.. bpo: 8313
164.. date: 8023
165.. nonce: lE868K
166.. section: Library
167
168``traceback.format_exception_only()`` encodes unicode message to ASCII with
169backslashreplace error handler if ``str(value)`` failed.
170
171..
172
173.. bpo: 8567
174.. date: 8022
175.. nonce: agGfsd
176.. section: Library
177
178Fix precedence of signals in Decimal module: when a Decimal operation raises
179multiple signals and more than one of those signals is trapped, the
180specification determines the order in which the signals should be handled.
181In many cases this order wasn't being followed, leading to the wrong Python
182exception being raised.
183
184..
185
186.. bpo: 7865
187.. date: 8021
188.. nonce: YF-RSw
189.. section: Library
190
191The close() method of :mod:`io` objects should not swallow exceptions raised
192by the implicit flush().  Also ensure that calling close() several times is
193supported.  Patch by Pascal Chambon.
194
195..
196
197.. bpo: 8576
198.. date: 8020
199.. nonce: P-vn7s
200.. section: Library
201
202logging updated to remove usage of find_unused_port().
203
204..
205
206.. bpo: 4687
207.. date: 8019
208.. nonce: WuWPAI
209.. section: Library
210
211Fix accuracy of garbage collection runtimes displayed with gc.DEBUG_STATS.
212
213..
214
215.. bpo: 8354
216.. date: 8018
217.. nonce: ihPpD8
218.. section: Library
219
220The siginterrupt setting is now preserved for all signals, not just SIGCHLD.
221
222..
223
224.. bpo: 7192
225.. date: 8017
226.. nonce: crfmVq
227.. section: Library
228
229``webbrowser.get("firefox")`` now works on Mac OS X, as does
230``webbrowser.get("safari")``.
231
232..
233
234.. bpo: 8577
235.. date: 8016
236.. nonce: aNmUf8
237.. section: Library
238
239``distutils.sysconfig.get_python_inc()`` now makes a difference between the
240build dir and the source dir when looking for "python.h" or "Include".
241
242..
243
244.. bpo: 8464
245.. date: 8015
246.. nonce: dckIPz
247.. section: Library
248
249tarfile no longer creates files with execute permissions set when mode="w|"
250is used.
251
252..
253
254.. bpo: 7834
255.. date: 8014
256.. nonce: 6FWkzA
257.. section: Library
258
259Fix connect() of Bluetooth L2CAP sockets with recent versions of the Linux
260kernel.  Patch by Yaniv Aknin.
261
262..
263
264.. bpo: 6312
265.. date: 8013
266.. nonce: ZgHCwc
267.. section: Library
268
269Fix http HEAD request when the transfer encoding is chunked.  It should
270correctly return an empty response now.
271
272..
273
274.. bpo: 7490
275.. date: 8012
276.. nonce: hT8uzG
277.. section: Library
278
279To facilitate sharing of doctests between 2.x and 3.x test suites, the
280``IGNORE_EXCEPTION_DETAIL`` directive now also ignores the module location
281of the raised exception.  Based on initial patch by Lennart Regebro.
282
283..
284
285.. bpo: 8086
286.. date: 8011
287.. nonce: Nn01DF
288.. section: Library
289
290In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline before the
291certificate footer.  Patch by Kyle VanderBeek.
292
293..
294
295.. bpo: 8546
296.. date: 8010
297.. nonce: ZJV_Z2
298.. section: Library
299
300Reject None given as the buffering argument to ``_pyio.open()``.
301
302..
303
304.. bpo: 8549
305.. date: 8009
306.. nonce: 9m7vbm
307.. section: Library
308
309Fix compiling the _ssl extension under AIX.  Patch by Sridhar Ratnakumar.
310
311..
312
313.. bpo: 6656
314.. date: 8008
315.. nonce: oU6_NU
316.. section: Library
317
318Fix locale.format_string to handle escaped percents and mappings.
319
320..
321
322.. bpo: 2302
323.. date: 8007
324.. nonce: KqJUA8
325.. section: Library
326
327Fix a race condition in SocketServer.BaseServer.shutdown, where the method
328could block indefinitely if called just before the event loop started
329running.  This also fixes the occasional freezes witnessed in
330test_httpservers.
331
332..
333
334.. bpo: 5103
335.. date: 8006
336.. nonce: mBe0-l
337.. section: Library
338
339SSL handshake would ignore the socket timeout and block indefinitely if the
340other end didn't respond.
341
342..
343
344.. bpo: 0
345.. date: 8005
346.. nonce: XlQAbN
347.. section: Library
348
349The do_handshake() method of SSL objects now adjusts the blocking mode of
350the SSL structure if necessary (as other methods already do).
351
352..
353
354.. bpo: 7507
355.. date: 8004
356.. nonce: PPZWiA
357.. section: Library
358
359Quote "!" in pipes.quote(); it is special to some shells.
360
361..
362
363.. bpo: 5238
364.. date: 8003
365.. nonce: HjIVqr
366.. section: Library
367
368Calling makefile() on an SSL object would prevent the underlying socket from
369being closed until all objects get truely destroyed.
370
371..
372
373.. bpo: 7943
374.. date: 8002
375.. nonce: 0wcepT
376.. section: Library
377
378Fix circular reference created when instantiating an SSL socket. Initial
379patch by Péter Szabó.
380
381..
382
383.. bpo: 8451
384.. date: 8001
385.. nonce: vWZKfu
386.. section: Library
387
388Syslog module now uses basename(sys.argv[0]) instead of the string "python"
389as the *ident*.  openlog() arguments are all optional and keywords.
390
391..
392
393.. bpo: 8108
394.. date: 8000
395.. nonce: gw3ghC
396.. section: Library
397
398Fix the unwrap() method of SSL objects when the socket has a non-infinite
399timeout.  Also make that method friendlier with applications wanting to
400continue using the socket in clear-text mode, by disabling OpenSSL's
401internal readahead.  Thanks to Darryl Miles for guidance.
402
403..
404
405.. bpo: 8484
406.. date: 7999
407.. nonce: b9zFsh
408.. section: Library
409
410Load all ciphers and digest algorithms when initializing the _ssl extension,
411such that verification of some SSL certificates doesn't fail because of an
412"unknown algorithm".
413
414..
415
416.. bpo: 8437
417.. date: 7998
418.. nonce: iGGyX3
419.. section: Library
420
421Fix test_gdb failures, patch written by Dave Malcolm
422
423..
424
425.. bpo: 4814
426.. date: 7997
427.. nonce: kc5m59
428.. section: Library
429
430The timeout parameter is now applied also for connections resulting from
431PORT/EPRT commands.
432
433..
434
435.. bpo: 8463
436.. date: 7996
437.. nonce: slxxrW
438.. section: Library
439
440Add missing reference to bztar in shutil's documentation.
441
442..
443
444.. bpo: 8438
445.. date: 7995
446.. nonce: TUjaAU
447.. section: Library
448
449Remove reference to the missing "surrogateescape" encoding error handler
450from the new IO library.
451
452..
453
454.. bpo: 3817
455.. date: 7994
456.. nonce: 6zjb85
457.. section: Library
458
459ftplib.FTP.abort() method now considers 225 a valid response code as stated
460in RFC-959 at chapter 5.4.
461
462..
463
464.. bpo: 8279
465.. date: 7993
466.. nonce: MubiOg
467.. section: Library
468
469Fix test_gdb failures.
470
471..
472
473.. bpo: 8322
474.. date: 7992
475.. nonce: XVocgc
476.. section: Library
477
478Add a *ciphers* argument to SSL sockets, so as to change the available
479cipher list.  Helps fix test_ssl with OpenSSL 1.0.0.
480
481..
482
483.. bpo: 2987
484.. date: 7991
485.. nonce: FbxT-M
486.. section: Library
487
488RFC 2732 support for urlparse (IPv6 addresses).  Patch by Tony Locke and
489Hans Ulrich Niedermann.
490
491..
492
493.. bpo: 7585
494.. date: 7990
495.. nonce: stGadz
496.. section: Library
497
498difflib context and unified diffs now place a tab between filename and date,
499conforming to the 'standards' they were originally designed to follow.  This
500improves compatibility with patch tools.
501
502..
503
504.. bpo: 7472
505.. date: 7989
506.. nonce: IghBPp
507.. section: Library
508
509Fixed typo in email.encoders module; messages using ISO-2022 character sets
510will now consistently use a Content-Transfer-Encoding of 7bit rather than
511sometimes being marked as 8bit.
512
513..
514
515.. bpo: 8330
516.. date: 7988
517.. nonce: LPDqBG
518.. section: Library
519
520Fix expected output in test_gdb.
521
522..
523
524.. bpo: 8374
525.. date: 7987
526.. nonce: bWoGdD
527.. section: Library
528
529Update the internal alias table in the :mod:`locale` module to cover recent
530locale changes and additions.
531
532..
533
534.. bpo: 8644
535.. date: 7986
536.. nonce: JWO_61
537.. section: Library
538
539Improved accuracy of ``timedelta.total_seconds()``.
540
541..
542
543.. bpo: 0
544.. date: 7985
545.. nonce: LYHXVb
546.. section: Library
547
548Use Clang 2.7's static analyzer to find places to clean up some code.
549
550..
551
552.. bpo: 0
553.. date: 7984
554.. nonce: jbiDIM
555.. section: Library
556
557Build the ossaudio extension on GNU/kFreeBSD.
558
559..
560
561.. bpo: 0
562.. date: 7983
563.. nonce: NCKMWo
564.. section: Library
565
566On Windows, ctypes no longer checks the stack before and after calling a
567foreign function.  This allows using the unmodified libffi library.
568
569..
570
571.. bpo: 8672
572.. date: 7982
573.. nonce: hs9Ync
574.. section: Tests
575
576Add a zlib test ensuring that an incomplete stream can be handled by a
577decompressor object without errors (it returns incomplete uncompressed
578data).
579
580..
581
582.. bpo: 8490
583.. date: 7981
584.. nonce: yG1Xr0
585.. section: Tests
586
587asyncore now has a more solid test suite which actually tests its API.
588
589..
590
591.. bpo: 8576
592.. date: 7980
593.. nonce: Up6MTB
594.. section: Tests
595
596Remove use of find_unused_port() in test_smtplib and test_multiprocessing.
597Patch by Paul Moore.
598
599..
600
601.. bpo: 7449
602.. date: 7979
603.. nonce: as77J5
604.. section: Tests
605
606Fix many tests to support Python compiled without thread support. Patches
607written by Jerry Seutter.
608
609..
610
611.. bpo: 8108
612.. date: 7978
613.. nonce: -PlMAS
614.. section: Tests
615
616test_ftplib's non-blocking SSL server now has proper handling of SSL
617shutdowns.
618
619..
620
621.. bpo: 8625
622.. date: 7977
623.. nonce: E4dSUW
624.. section: Build
625
626Turn off optimization in ``--with-pydebug`` builds with gcc. (Optimization
627was unintentionally turned on in gcc --with-pydebug builds in 2.7 beta1 as a
628result of the issue #1628484 fix, combined with autoconf's strange choice of
629default CFLAGS produced by AC_PROG_CC for gcc.)
630
631..
632
633.. bpo: 8509
634.. date: 7976
635.. nonce: N8vHHZ
636.. section: Build
637
638Fix quoting in help strings and code snippets in configure.in.
639
640..
641
642.. bpo: 3646
643.. date: 7975
644.. nonce: UyNDbm
645.. section: Build
646
647It is now easily possible to install a Python framework into your home
648directory on Mac OS X, see Mac/README for more information.
649
650..
651
652.. bpo: 8510
653.. date: 7974
654.. nonce: 8MiUfR
655.. section: Build
656
657Update to autoconf 2.65.
658
659..
660
661.. bpo: 0
662.. date: 7973
663.. nonce: 18HloG
664.. section: Windows
665
666Update the Vim syntax highlight file.
667