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 <wes.turner@gmail.com> 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 <kirby.urner@gmail.com> 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=d1ec6762e753d5...
https://kirbyurner.medium.com/pythons-rib-cage-e4ff16cf3a74?sk=3e59d2356de6a...
A two parter on Medium. I'm getting some claps. I can take criticisms too.
Kirby
_______________________________________________ Edu-sig mailing list -- edu-sig@python.org To unsubscribe send an email to edu-sig-leave@python.org https://mail.python.org/mailman3/lists/edu-sig.python.org/ Member address: wes.turner@gmail.com
_______________________________________________ Edu-sig mailing list -- edu-sig@python.org To unsubscribe send an email to edu-sig-leave@python.org https://mail.python.org/mailman3/lists/edu-sig.python.org/ Member address: ccosse@gmail.com