<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>On Sep 26, 2014, at 12:12, Nathaniel Smith <<a href="mailto:njs@pobox.com">njs@pobox.com</a>> wrote:</div><div><br></div><blockquote type="cite"><div><p dir="ltr">On 26 Sep 2014 19:15, "Nathaniel Smith" <<a href="mailto:njs@pobox.com">njs@pobox.com</a>> wrote:<br>
> The proposal is that before exec'ing __init__.py, we check for the existence of a __preinit__.py, </p>
<p dir="ltr">Silly me, obviously the right and proper name for this file would be __new__.py.</p></div></blockquote><div><br></div>I had an email written just to say "this sounds brilliant, but why isn't it called __new__", with three paragraphs explaining why it was a good analogy... Now I guess I can delete draft. :)<div><br></div><div>Anyway, I definitely like this better than re-classing modules in mid-initialization, and better than my magic comment hack (and looking at the code again, of course you're right that my magic comment hack was necessary with anything like my approach, I guess I just forgot in the intervening time).</div></body></html>