Class Variable Question
D-Man
dsh8290 at rit.edu
Wed Apr 11 14:01:47 EDT 2001
On Wed, Apr 11, 2001 at 11:56:07AM +0200, Alex Martelli wrote:
...
| gain a bit more flexibility, but not much usefulness) -- other
| compile-time-typesafe languages such as Java (if it had some
| way to have constrained generics) would let you use 'Object'
| as the value-type, so you could in fact add anything.
Almost :
not 'int' , 'char' , 'float' , 'double' , 'byte' , 'short' , 'long' ,
and any of the above (including Object) in array form.
This is one reason I really like Python's object model much better
than Java's.
-D
More information about the Python-list
mailing list