Class Variable Question

Alex Martelli aleaxit at yahoo.com
Wed Apr 11 17:03:23 EDT 2001


"D-Man" <dsh8290 at rit.edu> wrote in message
news:mailman.987012138.32047.python-list at python.org...
> 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.

Right -- the primitive-vs-Object split.


> This is one reason I really like Python's object model much better
> than Java's.

Python has its own type/class split, of course, but I agree
it is less damaging than Java's.


Alex






More information about the Python-list mailing list