Are some of these dunder methods new?
---------8<---------
>>> d=Dog()
I am a Dog
>>> d
<__main__.Dog object at 0x7fd1cfaac910>
>>> d.__
d.__class__( d.__doc__ d.__getattribute__(
d.__init_subclass__( d.__ne__( d.__repr__(
d.__subclasshook__(
d.__delattr__( d.__eq__( d.__gt__( d.__le__(
d.__new__( d.__setattr__( d.__weakref__
d.__dict__ d.__format__( d.__hash__( d.__lt__(
d.__reduce__( d.__sizeof__(
d.__dir__( d.__ge__( d.__init__(
d.__module__ d.__reduce_ex__( d.__str__(
>>> d.__
---------8<---------
On Sat, Mar 2, 2024 at 3:37 PM Wes Turner <[email protected]> wrote:
> They're dunder methods; double-underscore
>
> /? site:docs.python.org "dunder" methods
> https://www.google.com/search?q=site%3Adocs.python.org+%22dunder%22+methods
>
> On Wed, Feb 14, 2024, 10:50 AM kirby urner <[email protected]> wrote:
>
>>
>> Long termers here will likely remember my fave Pythonic Pedagogy: to
>> introduce special names as __ribs__.
>>
>> Because pythons have lots of __ribs__.
>>
>> I've not abandoned this idea, just haven't been redundantly reposting
>> about it here for some time.
>>
>> But now...
>>
>> Why not share a couple "friend links" (nothing counts against a quota, no
>> logging in I hope)?:
>>
>>
>> https://kirbyurner.medium.com/grokking-python-9f96140c1e07?sk=d1ec6762e753d5c79106faf1669fcb04
>>
>>
>> https://kirbyurner.medium.com/pythons-rib-cage-e4ff16cf3a74?sk=3e59d2356de6a13b42c9cf61d4d6a308
>>
>> A two parter on Medium. I'm getting some claps. I can take criticisms too.
>>
>> Kirby
>>
>> _______________________________________________
>> Edu-sig mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>> https://mail.python.org/mailman3/lists/edu-sig.python.org/
>> Member address: [email protected]
>>
> _______________________________________________
> Edu-sig mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/edu-sig.python.org/
> Member address: [email protected]
>
_______________________________________________
Edu-sig mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/edu-sig.python.org/
Member address: [email protected]