Modules vs Classes

jb jblazi at hotmail.com
Fri May 10 03:59:38 EDT 2002


I use PyQt and need classes very much. I just wonder, if it is not a good 
idea to have one (complicated) class in an own module and storing private 
members of this class as global variables in the module.
By doing so, the variables cannot be easily accessed from outside (of course 
you can import them) and I can write simply h0 for the height of an object 
instead of writing self.h0.

Is this good programming tyle?

-- 
Janos Blazi

"Il n'y a guère dans la vie qu'une préoccupation grave: c'est la mort;" 
(Dumas) 



-----------== Posted via Newsgroups.Com - Uncensored Usenet News ==----------
   http://www.newsgroups.com       The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Ulimited Fast Downloads - 19 Servers =-----



More information about the Python-list mailing list