Movatterモバイル変換


[0]ホーム

URL:


Method to give name of class instance?

Timothy L. Robertsontimothyr at timothyr.com
Sun Apr 29 20:22:53 EDT 2001


Hi Everyone,I've been enjoying learning Python very much, but have hit a littlesnag.  I want a way to find out the name of a class instance from amethod.  eg.>>>classinstance=MyClass()>>>classinstance.myname()'classinstance'Is there a way to do this?Thanks,-Timtimothyr at timothyr.com


More information about the Python-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp