What is the purpose of __class__?

0 views
Skip to first unread message

Jason Bunting

unread,
Nov 28, 2007, 4:36:47 PM11/28/07
to MochiKit

I see this convention being used but don’t understand why it exists:

 

__class__

 

Is it simply a Pythonic type of convention that isn’t being used currently? What is the point of it and how can it be beneficially used?

 

Thanks,
Jason Bunting

 

Bob Ippolito

unread,
Nov 28, 2007, 4:49:43 PM11/28/07
to Jason Bunting, MochiKit
It's only used for introspection. Some of the repr's use it, the ones
that don't probably should. It's not otherwise very interesting.

-bob

Reply all
Reply to author
Forward
0 new messages