[Python-checkins] python/dist/src/Misc NEWS,1.684,1.685

tim_one@users.sourceforge.net tim_one@users.sourceforge.net
Sat, 01 Mar 2003 16:19:52 -0800


Update of /cvsroot/python/python/dist/src/Misc
In directory sc8-pr-cvs1:/tmp/cvs-serv24329/Misc

Modified Files:
	NEWS 
Log Message:
SF bug 693121:  Set == non-Set is a TypeError.
Allow mixed-type __eq__ and __ne__ for Set objects.  This is messier than
I'd like because Set *also* implements __cmp__.  I know of one glitch now:
cmp(s, t) returns 0 now when s and t are both Sets and s == t, despite
that Set.__cmp__ unconditionally raises TypeError (and by intent).  The
rub is that __eq__ gets tried first, and the x.__eq__(y) True result
convinces Python that cmp(x, y) is 0 without even calling Set.__cmp__.


Index: NEWS
===================================================================
RCS file: /cvsroot/python/python/dist/src/Misc/NEWS,v
retrieving revision 1.684
retrieving revision 1.685
diff -C2 -d -r1.684 -r1.685
*** NEWS	1 Mar 2003 03:20:40 -0000	1.684
--- NEWS	2 Mar 2003 00:19:49 -0000	1.685
***************
*** 32,35 ****
--- 32,42 ----
  -------
  
+ - sets.Set objects now support mixed-type __eq__ and __ne__, instead
+   of raising TypeError.  If x is a Set object and y is a non-Set object,
+   x == y is False, and x != y is True.  This is akin to the change made
+   for mixed-type comparisons of datetime objects in 2.3a2; more info
+   about the rationale is in the NEWS entry for that.  See also SF bug
+   report <http://www.python.org/sf/693121>.
+ 
  - os.listdir() now returns Unicode strings on platforms that set
    Py_FileSystemDefaultEncoding, for file names that are not representable
***************
*** 84,88 ****
  - A new method MacOS.WMAvailable() returns true if it is safe to access
    the window manager, false otherwise.
!   
  - EasyDialogs dialogs are now movable-modal.
  
--- 91,95 ----
  - A new method MacOS.WMAvailable() returns true if it is safe to access
    the window manager, false otherwise.
! 
  - EasyDialogs dialogs are now movable-modal.
  
***************
*** 344,349 ****
    pathsep, curdir, pardir and defpath are now defined in the platform
    dependent path modules (e.g. ntpath.py) rather than os.py, so these
!   variables are now available via os.path.  They continue to be 
!   available from the os module.  
    (see <http://www.python.org/sf/680789>).
  
--- 351,356 ----
    pathsep, curdir, pardir and defpath are now defined in the platform
    dependent path modules (e.g. ntpath.py) rather than os.py, so these
!   variables are now available via os.path.  They continue to be
!   available from the os module.
    (see <http://www.python.org/sf/680789>).
  
***************
*** 500,509 ****
  - Type Carbon.File.FSCatalogInfo and supporting methods have been implemented.
    This also makes macfs.FSSpec.SetDates() work again.
!   
  - There is a new module pimp, the package install manager for Python, and
    accompanying applet PackageManager. These allow you to easily download
    and install pretested extension packages either in source or binary
    form. Only in MacPython-OSX.
!   
  - Applets are now built with bundlebuilder in MacPython-OSX, which should make
    them more robust and also provides a path towards BuildApplication. The
--- 507,516 ----
  - Type Carbon.File.FSCatalogInfo and supporting methods have been implemented.
    This also makes macfs.FSSpec.SetDates() work again.
! 
  - There is a new module pimp, the package install manager for Python, and
    accompanying applet PackageManager. These allow you to easily download
    and install pretested extension packages either in source or binary
    form. Only in MacPython-OSX.
! 
  - Applets are now built with bundlebuilder in MacPython-OSX, which should make
    them more robust and also provides a path towards BuildApplication. The