-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Douglas Anderson wrote: | On Thu, Dec 4, 2008 at 2:43 PM, Alec Warner <[EMAIL PROTECTED]> wrote: |> <nitpick feel free to ignore me> |> Don't put stuff in __init__.py. |> |> Make a file called equery (no .py) and do all the work in the modules |> you import; eg. |> |> from equery import driver |> |> if __name__ == "__main__": |> driver.Run() |> |> Then put all this code in driver.py (option parsing, signal handling, |> etc...). Don't try to hide the code in __init__.py; it confuses |> people who are trying to figure out what the module is for (since |> __init__.py has very specific duties in declaring what is in the |> module when you inspect the query module).
It's probably a good idea that we fulfill these 'duties' in any case, but if we sufficiently comment __init__.py I don't really see the harm. |> Putting the code in a file |> named 'driver.py' or similarly makes it pretty obvious (to me anyway) |> what the code in that file is for (to drive a program). I don't really see the point, but if it'll make a difference a symlink would be easy enough. |> Does that make sense or am I full of crap? Are those two things mutually exclusive, Alec? (j/k) :P - -Michael -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkk7C5AACgkQzwtr5yY0JZxWkACdF6+DK/C3b4k66A+ZlwQ7njHB CsIAn3AIhNt6o6Wwbcrj7ClkOOUIbRsx =iO5I -----END PGP SIGNATURE-----