Liu Zuo Lin
Mar 11, 2024

--

We usually write __getattr__ when we want to define behaviour when 1) we use object.somekey and 2) somekey doesn't actually exist in object

--

--

Liu Zuo Lin
Liu Zuo Lin

Written by Liu Zuo Lin

SWE @ Meta | [Ebook] 101 Things I Never Knew About Python: https://payhip.com/b/vywcf

No responses yet