[JPython] dir and java classes

Barry A. Warsaw bwarsaw at cnri.reston.va.us
Tue Oct 26 18:47:05 EDT 1999


>>>>> "JA" == Jim Althoff <jima at aspectdv.com> writes:

    JA> To further compound the teaching problem, dir() is
    JA> inconsistent between Python and JPython.  So when trying to
    JA> teach someone JPython, I always advise them to install Python
    JA> just so that they can use the "more fully loaded" dir() of
    JA> Python to help in their learning process.  Not pretty.

This will be fixed for JPython, for those attributes and objects that
make sense.  Some attributes on some objects have no equivalent in
JPython, and those will not show up with dir() -- they'll also raise
AttributeErrors if you try to access them.

-Barry




More information about the Python-list mailing list