[HN Gopher] How Python attributes work
       ___________________________________________________________________
        
       How Python attributes work
        
       Author : r4victor
       Score  : 38 points
       Date   : 2020-12-30 13:07 UTC (9 hours ago)
        
 (HTM) web link (tenthousandmeters.com)
 (TXT) w3m dump (tenthousandmeters.com)
        
       | r4victor wrote:
       | Hi! This is part 7 of my Python behind the scenes series. Each
       | part of the series covers how some aspect of the language is
       | implemented in the interpreter, CPython. This time we'll study
       | how Python attributes work. You'll learn:                 - What
       | CPython does to execute statements like value = obj.attr and
       | obj.attr = value.       - Why attributes of different objects
       | work differently.       - How attributes of most objects work.
       | - How the __getattribute__(), __getattr__(), __setattr__() and
       | __delattr__() special methods customize attribute access,
       | assignment and deletion.       - How built-in types get their
       | attributes, e.g. __dict__, __dir__(), __base__. What these
       | attributes are.
       | 
       | I welcome your feedback and questions. Thanks!
        
         | rytill wrote:
         | You are providing immense valuable to your target audience. I
         | would love to see an article about threading and asyncio.
        
         | rytill wrote:
         | What are some of your favorite projects built with Python?
        
         | alexpetralia wrote:
         | Just wanted to say I found your series incredibly valuable!
         | Thank you.
        
       | miguendes wrote:
       | Another awesome article! Really enjoy going through them, I've
       | learnt tons about the internals of Cpython.
        
       ___________________________________________________________________
       (page generated 2020-12-30 23:00 UTC)