determining fully qualified package & class name
patrimith
paddysmith at gmail.com
Thu Oct 11 14:18:33 EDT 2007
More information about the Python-list mailing list
Thu Oct 11 14:18:33 EDT 2007
- Previous message (by thread): determining fully qualified package & class name
- Next message (by thread): Web Ontology Language (OWL) parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi List, I am used to the following with Java: import some.package.MyClass; name = MyClass.class.getName(); The value for name will be "some.package.MyClass". For Python, I find: from some.package.myclass import MyClass name = MyClass.__name__ The value for name will be "MyClass" Is there a comparable way to get the fully qualified name (package, module, and class name) in Python? Thanks, Patrick Smith -- View this message in context: http://www.nabble.com/determining-fully-qualified-package---class-name-tf4609111.html#a13161736 Sent from the Python - python-list mailing list archive at Nabble.com.
- Previous message (by thread): determining fully qualified package & class name
- Next message (by thread): Web Ontology Language (OWL) parsing
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list