[Tutor] what's your name? (to a class)

spir denis.spir at gmail.com
Thu Jan 2 17:26:04 CET 2014


On 01/02/2014 04:48 PM, eryksun wrote:
> On Thu, Jan 2, 2014 at 5:12 AM, spir <denis.spir at gmail.com> wrote:
>>
>> Am I missing something or don't classes know how they're called (unlike
>> funcs, which have a __name__ attribute, very practicle)? Is there a way to
>> get it otherwise?
>
> What are you smoking, and where can I get some? ;)

I hadn't this morminig ;-)
Must be getting along with wonderful people these times, makes similar effects 
on mood, without side-effects (as fonctional programmers say ;-) ...

> Actually, I think I understand the source of your confusion. `dir`
> doesn't show attributes from the metaclass because that would be too
> confusing.

That's it, exactly! (see other replies)



More information about the Tutor mailing list