Repository navigation
Expand file tree
/
Copy pathNEWS
More file actions
2962 lines (2161 loc) · 117 KB
/
Copy pathNEWS
File metadata and controls
2962 lines (2161 loc) · 117 KB
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
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
+++++++++++
Python News
+++++++++++
(editors: check NEWS.help for information about editing NEWS using ReST.)
What's New in Python 2.3.5?
==============================
*Release date: 08-FEB-2005*
Core and builtins
-----------------
- Partially revert the fix for #1074011; don't try to fflush stdin anymore.
Library
-------
- Applied a security fix to SimpleXMLRPCserver (PSF-2005-001). This
disables recursive traversal through instance attributes, which can
be exploited in various ways.
- Bug #1114776. Applied a fix to the copy.py fix in 2.3.5rc1 to deal
with types that don't have an __mro__.
What's New in Python 2.3.5rc1?
==============================
*Release date: 26-JAN-2005*
Core and builtins
-----------------
- Bug #1074011: closing sys.std{in,out,err} now causes a flush() and
an ferror() call.
- Bug #1055820 Cyclic garbage collection was not protecting against that
calling a live weakref to a piece of cyclic trash could resurrect an
insane mutation of the trash if any Python code ran during gc (via
running a dead object's __del__ method, running another callback on a
weakref to a dead object, or via any Python code run in any other thread
that managed to obtain the GIL while a __del__ or callback was running
in the thread doing gc). The most likely symptom was "impossible"
``AttributeEror`` exceptions, appearing seemingly at random, on weakly
referenced objects. The cure was to clear all weakrefs to unreachable
objects before allowing any callbacks to run.
- Bug #951851: Python crashed when reading import table of certain
Windows DLLs
- Bug #966623. classes created with type() in an exec(, {}) don't
have a __module__, but code in typeobject assumed it would always
be there.
- Bug #952807: Unpickling pickled instances of subclasses of
datetime.date, datetime.datetime and datetime.time could yield insane
objects. Thanks to Jiwon Seo for a fix.
- Bug #845802: Python crashed when __init__.py is a directory.
- Bug #875692: Improve signal handling, especially when using threads, by
forcing an early re-execution of PyEval_EvalFrame() "periodic" code when
things_to_do is not cleared by Py_MakePendingCalls().
Extension modules
-----------------
- Patch #1012280: Fix term.h compilation problems on Solaris.
- Patch #914291: Set locale while getting a line from readline.
- Bug #1005308: Define _BSD_TYPES.
- Patch #1005568: Use _SC_PAGESIZE on Irix in resourcemoudle.
- Patch #924294: Do no check for AF_INET6 if it is not defined.
- Patch #954115: Properly handle UNC roots in nt.stat.
- Bug #841757: xmlrpclib failed on structs with Unicode keys.
- Bug #954364: inspect.getframeinfo() sometimes produces incorrect traceback
line numbers
- Patch #909007: Enable a bunch of safe bug workarounds in OpenSSL, for
the sake of compatibility with various broken SSL implementations.
- Patch #945642: Fix non-blocking SSL sockets, which blocked on reads/writes.
- Bug #1083110: ``zlib.decompress.flush()`` would segfault if called
immediately after creating the object, without any intervening
``.decompress()`` calls.
Library
-------
- copy.py fixed to first lookup __copy__ from the instance being copied,
rather than only looking at the type - this was broken in 2.3.
- Bug #1103844: fix distutils.install.dump_dirs() with negated options.
- Bug #1067732: wininst --install-script doesn't leave residual files anymore.
- Bug #1045381: strptime() now uses %U and %W for date calculations if the year
and day of the week are also specified.
- Bug #1039270: Locale data is now escaped for regex metacharacters.
- Bug #807871: Fix tkMessageBox.askyesno result.
- Patch #1014992: In tarfile.readline, never return more than a line.
- Bug #1013882: Flush bz2 data even if nothing had been written so far.
- Patch #997284: Allow pydoc to work with XP Themes (.manifest file)
- Patch #808719: Ignore locale's encoding in IDLE if it is an empty string.
- Patch #946153: Add wait_visibility before grab_set.
- Patch #994595: urllib2 now recognizes Basic authentication even if
other authentication schemes are offered.
- Bug #993394. A KeyError was being raised by Thread.__delete() for
dummy_threading when called by atexit if an instance of Thread was created in
an interpreter running in -O. The exception was of no importance and thus is
now thrown away if raised.
- Bug #930024: posixpath.realpath() now detects loops from symlinks and returns
the longest path before the loop begins.
- Bug #980327/Patch #988607: ntpath now compresses extra slashes between the
drive letter and the rest of the path properly. Also removed ambiguity from
UNC paths. Thanks Paul Moore.
- Bug #679953: zipfile can now handle file sizes over 2 GB. Previously the
compressed and uncompressed file sizes were being stored as signed longs
instead of unsigned as the ZIP spec specifies.
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror()
handler can now also be os.listdir.
- Bug #754449: threading.Thread will no longer mask exceptions raised during
interpreter shutdown with another exception caused by attempting to output
the initial exception. This fix also includes a backport of rev. 1.41 from
HEAD.
- Bug #982215: The Back and Next buttons in bdist_wininst installers are now
disabled during file copy operations.
- Bug #981299: rsync is now a recognized protocol in urlparse that uses a
"netloc" portion of a URL.
- Patch #975885: Print file name in err msg in quiet mode of compileall.py.
- Bug #919012: shutil.move() raises an exception when you try to move a
directory into itself.
- Bug #934282: make pydoc.stripid() be case-insensitive.
- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).
- The distutils sdist command now ignores all .svn directories, in
addition to CVS and RCS directories. .svn directories hold
administrative files for the Subversion source control system.
- Bug #902501: fix unicode value of CYRILLIC CAPITAL LETTER UKRAINIAN IE
in KOI8-U to unicode convertion table.
- Bug #1048816: fix bug in Ctrl-K at start of line in curses.textpad.Textbox
- Bug #1017553: fix bug in tarfile.filemode()
Tools/Demos
-----------
- pygettext.py: Generate POT-Creation-Date header in ISO format.
Macintosh
---------
- Bug #1091468: make frameworkinstall now works with DESTROOT builds
- Bug #1076490 (MacOS9 only): fixed a BuildApplication crash when it tried
to actually save the application
Build
-----
- Patch #850977: Detect Tk on FreeBSD and OpenBSD.
- Bug #1034496: Use -h instead of -soname for Solaris compatibility.
- Patch #973204: Use -rpath instead of -R for runtime_library_dirs
on Irix and True64.
- Bug #978645: Modules/getpath.c now builds properly under --disable-framework
build under OS X.
What's New in Python 2.3.4 (final)?
===================================
*Release date: 27-May-2004*
What's New in Python 2.3.4rc1?
==============================
*Release date: 13-May-2004*
Core and builtins
-----------------
- Bug #858016: isinstance() and issubclass() can have their second
argument be a tuple whose nested depth is capped at the interpreter's
recursion limit. Raises RuntimeError if the limit reached.
- Made omitted callback and None equivalent for weakref.ref() and
weakref.proxy(); the None case wasn't handled correctly in all
cases.
- Fixed problem where PyWeakref_NewRef() and PyWeakref_NewProxy()
assumed that initial existing entries in an object's weakref list
would not be removed while allocating a new weakref object. Since
GC could be invoked at that time, however, that assumption was
invalid. In a truly obscure case of GC being triggered during
creation for a new weakref object for an referent which already
has a weakref without a callback which is only referenced from
cyclic trash, a memory error can occur. This consistently created a
segfault in a debug build, but provided less predictable behavior in
a release build.
- Fixed a bug in object.__reduce_ex__ when using protocol 2. Failure
to clear the error when attempts to get the __getstate__ attribute
fail caused intermittent errors and odd behavior.
- fixed: if a file is opened with an explicit buffer size >= 1, repeated
close() calls would attempt to free() the buffer already free()ed on
the first call.
Library
-------
- Bug #876278: Unbounded recursion in modulefinder
- Brought platform.py in line with the 2.4 version, fixing support for
newer Windows versions and a cache issue.
- Bug #950057: itertools.chain() and itertools.cycle() now handle
exceptions immediately instead of waiting until the
input source is updated.
- Bug #931848: Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode.
- Bug #938076: Consider output encoding in XMLGenerator.
- Bug #936637: Properly delegate startElementNS in saxutils.XMLFilterBase.
- Bug #944082: Empty passwords in urllib2 are now supported.
- Bug #926075: Fixed a bug that returns a wrong pattern object
for a string or unicode object in sre.compile() when a different
type pattern with the same value exists.
- Bug #924361: Properly support normalization of empty unicode strings.
- Fixed a caching bug in platform.platform() where the argument of 'terse' was
not taken into consideration when caching value.
- Bug #920575: A problem that _locale module segfaults on
nl_langinfo(ERA) caused by GNU libc's illegal NULL return is fixed.
- Bug #883604: Fix Lib/test/test_strftime.py to escape characters from locale
time values that might be mistaken as regex syntax.
- Bug #700055: .pth files can now have any type of line endings.
- Patch 817379: Allow absolute ftp paths in urllib2.
- Patch 711838: Support non-anonymous ftp URLs in urllib2.
Windows
-------
- The Windows installer now includes tix, the Tk Interface eXtension,
a powerful set of user interface components that expands the capabilities
of your Tcl/Tk and Python applications.
Build
-----
- Bug #929689: Don't define _XOPEN_SOURCE on UnixWare 7.1.4.
What's New in Python 2.3.3 (final)?
===================================
*Release date: 19-Dec-2003*
Core and builtins
-----------------
- Removed PendingDeprecationWarning from apply(). apply() remains
deprecated, but the nuisance warning will not be issued.
Library
-------
- A couple of bugs were squished in trace.py
What's New in Python 2.3.3c1?
=============================
*Release date: 05-Dec-2003*
Core and builtins
-----------------
- Critical bugfix, for SF bug 839548: if a weakref with a callback,
its callback, and its weakly referenced object, all became part of
cyclic garbage during a single run of garbage collection, the order
in which they were torn down was unpredictable. It was possible for
the callback to see partially-torn-down objects, leading to immediate
segfaults, or, if the callback resurrected garbage objects, to
resurrect insane objects that caused segfaults (or other surprises)
later. In one sense this wasn't surprising, because Python's cyclic gc
had no knowledge of Python's weakref objects. It does now. When
weakrefs with callbacks become part of cyclic garbage now, those
weakrefs are cleared first. The callbacks don't trigger then,
preventing the problems. If you need callbacks to trigger, then just
as when cyclic gc is not involved, you need to write your code so
that weakref objects outlive the objects they weakly reference.
- Critical bugfix, for SF bug 840829: if cyclic garbage collection
happened to occur during a weakref callback for a new-style class
instance, subtle memory corruption could result (in a release build;
in a debug build, a segfault occurred reliably very soon after).
This has been repaired.
- At Python shutdown time (Py_Finalize()), 2.3 called cyclic garbage
collection twice, both before and after tearing down modules. The
call after tearing down modules has been disabled, because too much
of Python has been torn down then for __del__ methods and weakref
callbacks to execute sanely. The most common symptom was a sequence
of uninformative messages on stderr when Python shut down, produced
by threads trying to raise exceptions, but unable to report the nature
of their problems because too much of the sys module had already been
destroyed.
- Patch #820195: object.__contains__() now returns True or False instead
of 1 or 0.
Extension modules
-----------------
- Bug #852314: Fix return type of tkFileDialog.askdirectory on Unix.
- Bug #834676: Fix crashes when normalizing Hangul syllables.
- Bug #703198: Ignore "b" and "t" in os.popen on Unix.
- Patch #803998: Deal with errors in SSL_write correctly.
- The xml.parsers.expat module now provides Expat 1.95.7.
- Patch #813445: Add missing socket.IPPROTO_IPV6.
- Bug #807314: Properly raise an exception if non-existent Tcl
variable is accessed.
- Bug #811028: ncurses.h breakage on FreeBSD/MacOS X
- Bug #814613: INET_ADDRSTRLEN fix needed for all compilers on SGI
Library
-------
- Bug #849662: UserDict.DictMixin had performance issues when
an instance was tested for equality with None.
- Bug #848614: distutils' msvccompiler fails to find the MSVC6
compiler because of incomplete registry entries.
- Patch #841977: modulefinder didn't find extension modules
in packages.
- Bug #792101: Add missing file operations for httplib.SSLFile.
- Bug #811082: test_tempfile fails if space in install directory.
- Bug #780461: platform.mac_ver() raised MacOSError exception under OS X.
- Bug #812202: random.randrange() returned only even numbers
for range lengths above 2**53.
- Bug #823328: urllib2's HTTP Digest Auth support works again.
Build
-----
- Bug #934635: Fixed a bug where the configure script couldn't detect
getaddrinfo() properly if the KAME stack had SCTP support.
What's New in Python 2.3.2 (final)?
===================================
*Release date: 03-Oct-2003*
Core and builtins
-----------------
- A workaround for an OpenBSD compiler bug that meant python failed to
detect floating point overflow in some cases.
Tools/Demos
-----------
- Tools/scripts/md5sum.py opens files in binary mode by default. Opening
in text mode is almost certainly not what you want.
Extension modules
-----------------
- The documentation for bsddb now warns strongly about using the legacy
API in multi-threaded applications.
What's New in Python 2.3.2c1?
=============================
*Release date: 30-Sep-2003*
Build
-----
- A bug in the autoconf machinery meant that os.fsync was never available.
- A bug in autoconf meant a bunch of symbols were undefined on HP/UX.
Mac
---
- The Framework build now identifies itself as 2.3.2.
What's New in Python 2.3.1?
===========================
*Release date: 23-Sep-2003*
Core and builtins
-----------------
- Patch #805613: Fix usage of the PTH library.
- Fixed a bug in the cache of length-one Unicode strings that could
lead to a seg fault. The specific problem occurred when an earlier,
non-fatal error left an uninitialized Unicode object in the
freelist.
- Fixed a leak in class objects defining a comparison but not a hash
function.
- Bug #789402, fixed memory leak when opening a file object.
- Fixed a leak when new code objects are instantiated.
- Bug #800796: slice(1).__hash__() now raises a TypeError, unhashable type.
- Bug #603724: Pass an explicit buffer to setvbuf in PyFile_SetBufSize().
- Bug #795506: The % formatting operator did not support '%F' as
had been documented.
- Bug #775985: Only set stdout.encoding if a codec is available.
Extension modules
-----------------
- The _bsddb module now supports Berkeley DB 4.2.
- Bug #698282: Add __file__ to dynamic modules in multiple interpreters.
- Patch #798145: Return correct information from nl_langinfo(RADIXCHAR).
- Bug #797447: Correct confusing error message for unsupported locales.
- Patch #798534: fixed memory leak in os.popen().
- Bug #793826: re-ordered the reference counting code in
itertools.izip() to prevent re-entrancy anomalies. Also,
if given zero arguments, it now returns an empty iterator
rather than raising a type error.
- Bug #770485: cStringIO did not support the f.closed attribute.
- Patch #781722: Gracefully reject AF_INET6 in socket.inet_pton
if IPv6 is disabled.
- Bug #783312: Release host name memory in socket calls.
Library
-------
- Bug #709491: Reset __starttext_tag in sgmllib.
- The bsddb module and dbhash module now support the iterator and
mapping protocols.
- Bug #711632: Reset all state members in HTMLParser.reset.
- Bug #792649: logging.ConfigStreamHandler had an uninitialized variable
- The csv module's DictReader and DictWriter classes now accept keyword
arguments. This was an omission in the initial implementation.
- Bug #453515: filecmp.dircmp() can now make case insensitive
filename comparisons.
- Bug #798254: doctest.py can now handle unbound methods.
- Bug #797650: textwrap.py now avoids an infinite loop when one of the
indent arguments is set longer than the total width.
- Bug #796149: time.strptime() now handles having parentheses in the
format string properly.
- The email package handles some RFC 2231 parameters with missing
CHARSET fields better. It also includes a patch to parameter
parsing when semicolons appear inside quotes.
- sets.py now runs under Py2.2. In addition, the argument restrictions
for most set methods (but not the operators) have been relaxed to
allow any iterable.
- Bug #801342: random.sample() now accepts a Set as a possible argument.
Previously, it insisted that the population argument be indexable.
- Bug #778964: random.seed() now uses fractional seconds so that
rapid successive, seeding calls will produce different sequences.
- Bug #777664: Add Tkconstants.HIDDEN.
- Bug #781065: test_normalization is updated to the current
URL of the Unicode 3.2 normalization file.
- Bug #782369: fix memory leak in array module.
- Caching in _strptime.py has been re-introduced. This leads to a large
performance boost at the cost of not being thread-safe from locale
changes while executing time.strptime() .
- Bug #783952: time.strptime() now properly handles issue of
time.tzname[0] == time.tzname[1] while time.daylight is set to be
true.
IDLE
----
- Bug #788378: Handle locale.error.
- Bug #774680: IDLE now does not fail to save the file anymore
if the Tk buffer is not a Unicode string, yet eol_convention is.
- Bug #782510: The idna codec would fail to support names with a
trailing full-stop.
Tools/Demos
-----------
- Patch #713645: Fix typo in checkextensions_win32.
- Pynche was fixed to not crash when there is no ~/.pynche file and no
-d option was given.
- texcheck.py now checks for double word errors and erroneous spacing markup.
Build
-----
- patch #762934: improve detection of broken implementations of tzset().
- Patch #798202: detect redhat9 Tcl/Tk in configure script.
Windows
-------
- The _winreg module could segfault when reading very large registry
values, due to unchecked alloca() calls (SF bug 851056). The fix is
uses either PyMem_Malloc(n) or PyString_FromStringAndSize(NULL, n),
as appropriate, followed by a size check.
- The _ssl extension module was built using openssl-0.9.7b.
- The Windows installer includes documentation in HTMLHelp format
instead of single HTML pages.
What's New in Python 2.3 final?
===============================
*Release date: 29-Jul-2003*
IDLE
----
- Bug 778400: IDLE hangs when selecting "Edit with IDLE" from explorer.
This was unique to Windows, and was fixed by adding an -n switch to
the command the Windows installer creates to execute "Edit with IDLE"
context-menu actions.
- IDLE displays a new message upon startup: some "personal firewall"
kinds of programs (for example, ZoneAlarm) open a dialog of their
own when any program opens a socket. IDLE does use sockets, talking
on the computer's internal loopback interface. This connection is not
visible on any external interface and no data is sent to or received
from the Internet. So, if you get such a dialog when opening IDLE,
asking whether to let pythonw.exe talk to address 127.0.0.1, say yes,
and rest assured no communication external to your machine is taking
place. If you don't allow it, IDLE won't be able to start.
What's New in Python 2.3 release candidate 2?
=============================================
*Release date: 24-Jul-2003*
Core and builtins
-----------------
- It is now possible to import from zipfiles containing additional
data bytes before the zip compatible archive. Zipfiles containing a
comment at the end are still unsupported.
Extension modules
-----------------
- A longstanding bug in the parser module's initialization could cause
fatal internal refcount confusion when the module got initialized more
than once. This has been fixed.
- Fixed memory leak in pyexpat; using the parser's ParseFile() method
with open files that aren't instances of the standard file type
caused an instance of the bound .read() method to be leaked on every
call.
- Fixed some leaks in the locale module.
Library
-------
- Lib/encodings/rot_13.py when used as a script, now more properly
uses the first Python interpreter on your path.
- Removed caching of TimeRE (and thus LocaleTime) in _strptime.py to
fix a locale related bug in the test suite. Although another patch
was needed to actually fix the problem, the cache code was not
restored.
IDLE
----
- Calltips patches.
Build
-----
- For MacOSX, added -mno-fused-madd to BASECFLAGS to fix test_coercion
on Panther (OSX 10.3).
Windows
-------
- The tempfile module could do insane imports on Windows if PYTHONCASEOK
was set, making temp file creation impossible. Repaired.
- Add a patch to workaround pthread_sigmask() bugs in Cygwin.
Mac
---
- Various fixes to pimp.
- Scripts runs with pythonw no longer had full window manager access.
- Don't force boot-disk-only install, for reasons unknown it causes
more problems than it solves.
What's New in Python 2.3 release candidate 1?
=============================================
*Release date: 18-Jul-2003*
Core and builtins
-----------------
- The new function sys.getcheckinterval() returns the last value set
by sys.setcheckinterval().
- Several bugs in the symbol table phase of the compiler have been
fixed. Errors could be lost and compilation could fail without
reporting an error. SF patch 763201.
- The interpreter is now more robust about importing the warnings
module. In an executable generated by freeze or similar programs,
earlier versions of 2.3 would fail if the warnings module could
not be found on the file system. Fixes SF bug 771097.
- A warning about assignments to module attributes that shadow
builtins, present in earlier releases of 2.3, has been removed.
- It is not possible to create subclasses of builtin types like str
and tuple that define an itemsize. Earlier releases of Python 2.3
allowed this by mistake, leading to crashes and other problems.
- The thread_id is now initialized to 0 in a non-thread build. SF bug
770247.
- SF bug 762891: "del p[key]" on proxy object no longer raises SystemError.
Extension modules
-----------------
- weakref.proxy() can now handle "del obj[i]" for proxy objects
defining __delitem__. Formerly, it generated a SystemError.
- SSL no longer crashes the interpreter when the remote side disconnects.
- On Unix the mmap module can again be used to map device files.
- time.strptime now exclusively uses the Python implementation
contained within the _strptime module.
- The print slot of weakref proxy objects was removed, because it was
not consistent with the object's repr slot.
- The mmap module only checks file size for regular files, not
character or block devices. SF patch 708374.
- The cPickle Pickler garbage collection support was fixed to traverse
the find_class attribute, if present.
- There are several fixes for the bsddb3 wrapper module.
bsddb3 no longer crashes if an environment is closed before a cursor
(SF bug 763298).
The DB and DBEnv set_get_returns_none function was extended to take
a level instead of a boolean flag. The new level 2 means that in
addition, cursor.set()/.get() methods return None instead of raising
an exception.
A typo was fixed in DBCursor.join_item(), preventing a crash.
Library
-------
- distutils now supports MSVC 7.1
- doctest now examines all docstrings by default. Previously, it would
skip over functions with private names (as indicated by the underscore
naming convention). The old default created too much of a risk that
user tests were being skipped inadvertently. Note, this change could
break code in the unlikely case that someone had intentionally put
failing tests in the docstrings of private functions. The breakage
is easily fixable by specifying the old behavior when calling testmod()
or Tester().
- There were several fixes to the way dumbdbms are closed. It's vital
that a dumbdbm database be closed properly, else the on-disk data
and directory files can be left in mutually inconsistent states.
dumbdbm.py's _Database.__del__() method attempted to close the
database properly, but a shutdown race in _Database._commit() could
prevent this from working, so that a program trusting __del__() to
get the on-disk files in synch could be badly surprised. The race
has been repaired. A sync() method was also added so that shelve
can guarantee data is written to disk.
The close() method can now be called more than once without complaint.
- The classes in threading.py are now new-style classes. That they
weren't before was an oversight.
- The urllib2 digest authentication handlers now define the correct
auth_header. The earlier versions would fail at runtime.
- SF bug 763023: fix uncaught ZeroDivisionError in difflib ratio methods
when there are no lines.
- SF bug 763637: fix exception in Tkinter with after_cancel
which could occur with Tk 8.4
- SF bug 770601: CGIHTTPServer.py now passes the entire environment
to child processes.
- SF bug 765238: add filter to fnmatch's __all__.
- SF bug 748201: make time.strptime() error messages more helpful.
- SF patch 764470: Do not dump the args attribute of a Fault object in
xmlrpclib.
- SF patch 549151: urllib and urllib2 now redirect POSTs on 301
responses.
- SF patch 766650: The whichdb module was fixed to recognize dbm files
generated by gdbm on OS/2 EMX.
- SF bugs 763047 and 763052: fixes bug of timezone value being left as
-1 when ``time.tzname[0] == time.tzname[1] and not time.daylight``
is true when it should only when time.daylight is true.
- SF bug 764548: re now allows subclasses of str and unicode to be
used as patterns.
- SF bug 763637: In Tkinter, change after_cancel() to handle tuples
of varying sizes. Tk 8.4 returns a different number of values
than Tk 8.3.
- SF bug 763023: difflib.ratio() did not catch zero division.
- The Queue module now has an __all__ attribute.
Tools/Demos
-----------
- See Lib/idlelib/NEWS.txt for IDLE news.
- SF bug 753592: webchecker/wsgui now handles user supplied directories.
- The trace.py script has been removed. It is now in the standard library.
Build
-----
- Python now compiles with -fno-strict-aliasing if possible (SF bug 766696).
- The socket module compiles on IRIX 6.5.10.
- An irix64 system is treated the same way as an irix6 system (SF
patch 764560).
- Several definitions were missing on FreeBSD 5.x unless the
__BSD_VISIBLE symbol was defined. configure now defines it as
needed.
C API
-----
- Unicode objects now support mbcs as a built-in encoding, so the C
API can use it without deferring to the encodings package.
Windows
-------
- The Windows implementation of PyThread_start_new_thread() never
checked error returns from Windows functions correctly. As a result,
it could claim to start a new thread even when the Microsoft
_beginthread() function failed (due to "too many threads" -- this is
on the order of thousands when it happens). In these cases, the
Python exception ::
thread.error: can't start new thread
is raised now.
- SF bug 766669: Prevent a GPF on interpreter exit when sockets are in
use. The interpreter now calls WSACleanup() from Py_Finalize()
instead of from DLL teardown.
Mac
---
- Bundlebuilder now inherits default values in the right way. It was
previously possible for app bundles to get a type of "BNDL" instead
of "APPL." Other improvements include, a --build-id option to
specify the CFBundleIdentifier and using the --python option to set
the executable in the bundle.
- Fixed two bugs in MacOSX framework handling.
- pythonw did not allow user interaction in 2.3rc1, this has been fixed.
- Python is now compiled with -mno-fused-madd, making all tests pass
on Panther.
What's New in Python 2.3 beta 2?
================================
*Release date: 29-Jun-2003*
Core and builtins
-----------------
- A program can now set the environment variable PYTHONINSPECT to some
string value in Python, and cause the interpreter to enter the
interactive prompt at program exit, as if Python had been invoked
with the -i option.
- list.index() now accepts optional start and stop arguments. Similar
changes were made to UserList.index(). SF feature request 754014.
- SF patch 751998 fixes an unwanted side effect of the previous fix
for SF bug 742860 (the next item).
- SF bug 742860: "WeakKeyDictionary __delitem__ uses iterkeys". This
wasn't threadsafe, was very inefficient (expected time O(len(dict))
instead of O(1)), and could raise a spurious RuntimeError if another
thread mutated the dict during __delitem__, or if a comparison function
mutated it. It also neglected to raise KeyError when the key wasn't
present; didn't raise TypeError when the key wasn't of a weakly
referencable type; and broke various more-or-less obscure dict
invariants by using a sequence of equality comparisons over the whole
set of dict keys instead of computing the key's hash code to narrow
the search to those keys with the same hash code. All of these are
considered to be bugs. A new implementation of __delitem__ repairs all
that, but note that fixing these bugs may change visible behavior in
code relying (whether intentionally or accidentally) on old behavior.
- SF bug 734869: Fixed a compiler bug that caused a fatal error when
compiling a list comprehension that contained another list comprehension
embedded in a lambda expression.
- SF bug 705231: builtin pow() no longer lets the platform C pow()
raise -1.0 to integer powers, because (at least) glibc gets it wrong
in some cases. The result should be -1.0 if the power is odd and 1.0
if the power is even, and any float with a sufficiently large exponent
is (mathematically) an exact even integer.
- SF bug 759227: A new-style class that implements __nonzero__() must
return a bool or int (but not an int subclass) from that method. This
matches the restriction on classic classes.
- The encoding attribute has been added for file objects, and set to
the terminal encoding on Unix and Windows.
- The softspace attribute of file objects became read-only by oversight.
It's writable again.
- Reverted a 2.3 beta 1 change to iterators for subclasses of list and
tuple. By default, the iterators now access data elements directly
instead of going through __getitem__. If __getitem__ access is
preferred, then __iter__ can be overridden.
- SF bug 735247: The staticmethod and super types participate in
garbage collection. Before this change, it was possible for leaks to
occur in functions with non-global free variables that used these types.
Extension modules
-----------------
- the socket module has a new exception, socket.timeout, to allow
timeouts to be handled separately from other socket errors.
- SF bug 751276: cPickle has fixed to propagate exceptions raised in
user code. In earlier versions, cPickle caught and ignored any
exception when it performed operations that it expected to raise
specific exceptions like AttributeError.
- cPickle Pickler and Unpickler objects now participate in garbage
collection.
- mimetools.choose_boundary() could return duplicate strings at times,
especially likely on Windows. The strings returned are now guaranteed
unique within a single program run.
- thread.interrupt_main() raises KeyboardInterrupt in the main thread.
dummy_thread has also been modified to try to simulate the behavior.
- array.array.insert() now treats negative indices as being relative
to the end of the array, just like list.insert() does. (SF bug #739313)
- The datetime module classes datetime, time, and timedelta are now
properly subclassable.
- _tkinter.{get|set}busywaitinterval was added.
- itertools.islice() now accepts stop=None as documented.
Fixes SF bug #730685.
- the bsddb185 module is built in one restricted instance -
/usr/include/db.h exists and defines HASHVERSION to be 2. This is true
for many BSD-derived systems.
Library
-------
- Some happy doctest extensions from Jim Fulton have been added to
doctest.py. These are already being used in Zope3. The two
primary ones:
doctest.debug(module, name) extracts the doctests from the named object
in the given module, puts them in a temp file, and starts pdb running
on that file. This is great when a doctest fails.
doctest.DocTestSuite(module=None) returns a synthesized unittest
TestSuite instance, to be run by the unittest framework, which