Why not 3.__class__ ?
mcfletch at home.com
Fri Oct 12 00:24:37 CEST 2001
Strangely, one of the things I use most commonly in Python is:
which, I suppose, illustrates that I'm perverting the language again :) . I
use it so often it's part of my general dictation vocabulary (as "py-init").
Sure, it makes me uncomfortable to use something magic every time I create a
class, but "we've always done it that way".
Please save me from myself! Show the one-true-Python-way. ;)
Smile, Tim! I haven't heckled you in ages :) .
From: python-list-admin at python.org
[mailto:python-list-admin at python.org]On Behalf Of Tim Peters
Sent: October 11, 2001 17:04
To: python-list at python.org
Subject: RE: Why not 3.__class__ ?
They're supposed to be ugly: if you find yourself using __xxx__ thingies a
lot, it's supposed to be a clue that you're not using the language as
More information about the Python-list