[Python-bugs-list] [ python-Bugs-446375 ] Python 2.2a1 List functionality
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 31 Jul 2001 05:51:13 -0700
Bugs item #446375, was opened at 2001-07-31 05:51
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=446375&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Colin J. Williams (cjwhrh)
Assigned to: Nobody/Anonymous (nobody)
Summary: Python 2.2a1 List functionality
Initial Comment:
a= [1,2,3]
b= list([1,2,3])
a == b gives a result of 1 - Good
type(a) == type(b) gives a result of 1 - Not good
a and b have different methods.
Perhaps the list class should be 'List' to (a) distinguish between the two types
and (b) to follow the convention that class names start with an upper case
letter.
------------------------------------------------------------------------
b.__add__(22) gives a warning - Good
b.__radd__(22) crashes W95 OSR2 - Very Bad
cjw
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=446375&group_id=5470