🪴 Chris' Digital Garden

Recent Notes

  • Arithmetic Intensity of a Neural Network Linear Layer

    May 24, 2025

    • Automatic Material System

      May 17, 2025

      Home

      ❯

      tech

      ❯

      python

      ❯

      __getattr__ vs __getattribute__

      __getattr__ vs __getattribute__

      May 17, 20251 min read

      When an attribute of a class is invoked, e.g. my_obj.attr, __getattribute__ is first called. If that attribute exists, a value is returned. If that value does not exist, then __getattr__ is called instead.

      References

      https://mathspp.com/blog/til/difference-between-__getattr__-and-__getattribute__


      Graph View

      Created with Quartz v4.5.0 © 2025