From: Neil H. <ne...@sc...> - 2001-11-08 06:35:22
|
Kevin Altis: > What I'm wondering is whethr the imports above are > considered "good style". I remember Neil bringing this > up long ago, but I don't know if there was a general rule > other than avoid import * when possible, which of > course is always done with wxPython.wx, but other than > that how does the list above look? There is a 'What are the "best practices" for using import in a module?' FAQ: http://www.python.org/cgi-bin/faqw.py?req=show&file=faq04.100.htp My aversion to "import *" comes from the consensus on comp.lang.python, especially from Tim Peters - all praise the timbot!. It is also a good idea to try to limit dependencies as designs where each module calls a lot of other modules are hard to understand. Neil |