<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div> > Why not adding both? Properties do have their uses as does
      __getattr__.</div><div><br></div><div>In that case I would just add __getattr__ to module.c, and add a recipe or perhaps a utility module that implements a __getattr__ you can put into your module if you want @property support. That way you can have both but you only need a little bit of code in module.c to check for __getattr__ and call it when you'd otherwise raise AttributeError.<br></div></div><div class="gmail_quote"><br></div>-- <br><div class="gmail_signature">--Guido van Rossum (<a href="http://python.org/%7Eguido" target="_blank">python.org/~guido</a>)</div>
</div></div>