Movatterモバイル変換


[0]ホーム

URL:


why python annoys me

D-Mandsh8290 at rit.edu
Wed Apr 18 17:34:22 EDT 2001


On Wed, Apr 18, 2001 at 01:43:54PM +0200, Martin von Loewis wrote:|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.They are objects (of a sort, more like a C struct IMO), but they donot inherit from java.lang.Object and thus can't be passed to a methodthat wants a java.lang.Object.Also where is the inheritance hierarchy for arrays you mentioned?-D


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp