why python annoys me
Martin von Loewis
loewis at informatik.hu-berlin.de
Wed Apr 18 07:43:54 EDT 2001
neelk at alum.mit.edu (Neelakantan Krishnaswami) writes:
> Hi Paul, I think I will have to disagree with you on this point. ints
> and arrays are not objects in Java, whereas the corresponding things
> in Python are.
This is OT, but arrays in Java are objects. You create them with new,
they follow an inheritance hierarchy, can be polymorphically passed
where Object is allowed, and support introspection.
The "primitive" types (i.e. the numeric types and boolean) are not
objects in Java.
Regards,
Martin
More information about the Python-list
mailing list