Further to Tim's reply about project layout. One of the tennats of Python is that it is a choice language. If you want to put modules in a single file then do so. If it fits better in a directory then that's fine too. Both work well and neither approach will make you a leper to other Python devs. :)
I usually mix it up. Large modules go in directories. Simple small ones in a single file :) -- Tom ++ No problem should ever have to be solved twice ++ — LiveMeta.net <http://www.livemeta.net> | Errant.me.uk<http://www.errant.me.uk> | T: +447743187094 | t...@errant.me.uk | <morton.tho...@googlemail.com> morton.tho...@googlemail.com follow me: [image: Google Talk:] morton.thomas [image: MSN:] morton.tho...@googlemail.com [image: Twitter] <http://www.twitter.com/errantx>[image: Facebook]<http://www.facebook.com/home.php#/profile.php?id=197811041&ref=profile>[image: Last.fm] <http://www.last.fm/user/mugserrant>[image: Blogger]<http://www.blogger.com/profile/02209987468203140732>[image: Youtube] <http://uk.youtube.com/tmorton166>[image: Digg]<http://www.digg.com/users/errantx> Short reply? I use the five.sentenc.es policy in mail replies --- @ WiseStamp Signature. <http://www.wisestamp.com> Get it now<http://www.wisestamp.com> 2009/5/8 Tim Golden <m...@timgolden.me.uk> > Alec Muffett wrote: > >> Hi folks, >> > > Hi, welcome to Python. Be aware that this list (python-uk) > is very low volume, and tends to be used for announcements > of UK Python meetups, conferences, jobs and the like. Nothing > wrong with posting technical questions here, but you might > be better off on the main Python list: > > http://mail.python.org/mailman/listinfo/python-list > > As to your actual question re project layout, I myself > don't have any strong feelings, and I haven't seen > anything very authoritative noised about, either. > The __init__.py file *is* in fact a part of the "syntax", > so to speak, of Python: it indicates that the directory > containing it is to be treated as a Python package: > > http://docs.python.org/tutorial/modules.html#packages > > TJG > > _______________________________________________ > python-uk mailing list > python-uk@python.org > http://mail.python.org/mailman/listinfo/python-uk >
_______________________________________________ python-uk mailing list python-uk@python.org http://mail.python.org/mailman/listinfo/python-uk