[Python-checkins] CVS: python/dist/src/Misc NEWS,1.250,1.251
Tim Peters
tim_one@users.sourceforge.net
Sat, 22 Sep 2001 14:30:24 -0700
Update of /cvsroot/python/python/dist/src/Misc
In directory usw-pr-cvs1:/tmp/cvs-serv24440/python/Misc
Modified Files:
NEWS
Log Message:
Make difflib.ndiff() and difflib.Differ.compare() generators. This
restores the 2.1 ability of Tools/scripts/ndiff.py to start producing
output before the entire comparison is complete.
Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.250
retrieving revision 1.251
diff -C2 -d -r1.250 -r1.251
*** NEWS 2001/09/22 17:10:44 1.250
--- NEWS 2001/09/22 21:30:22 1.251
***************
*** 31,35 ****
- In 2.2a3, __new__ would only see sequential arguments passed to the
type in a constructor call; __init__ would see both sequential and
! positional arguments. This made no sense whatsoever any more, so
now both __new__ and __init__ see all arguments.
--- 31,35 ----
- In 2.2a3, __new__ would only see sequential arguments passed to the
type in a constructor call; __init__ would see both sequential and
! keyword arguments. This made no sense whatsoever any more, so
now both __new__ and __init__ see all arguments.
***************
*** 55,58 ****
--- 55,62 ----
Library
+ - difflib.ndiff() and difflib.Differ.compare() are generators now. This
+ restores the ability of Tools/scripts/ndiff.py to start producing output
+ before the entire comparison is complete.
+
- StringIO.StringIO instances and cStringIO.StringIO instances support
iteration just like file objects (i.e. their .readline() method is
***************
*** 125,132 ****
Tests
Windows
- Large file support now also works for files > 4GB, on filesystems
! that support it (NTFS under Windows 2000).
--- 129,151 ----
Tests
+ - The "classic" standard tests, which work by comparing stdout to
+ an expected-output file under Lib/test/output/, no longer stop at
+ the first mismatch. Instead the test is run to completion, and a
+ variant of ndiff-style comparison is used to report all differences.
+ This is much easier to understand than the previous style of reporting.
+
+ - The unittest-based standard tests now use regrtest's test_main()
+ convention, instead of running as a side-effect of merely being
+ imported. This allows these tests to be run in more natural and
+ flexible ways as unittests, outside the regrtest framework.
+
+ - regrtest.py is much better integrated with unittest and doctest now,
+ especially in regard to reporting errors.
+
Windows
- Large file support now also works for files > 4GB, on filesystems
! that support it (NTFS under Windows 2000). See "What's New in
! Python 2.2a3" for more detail.