question about class, functions and scope

Gabriel Genellina gagsl-py at yahoo.com.ar
Mon Aug 28 15:14:51 EDT 2006


At Monday 28/8/2006 14:55, shawn bright wrote:

>would it be better to move all the functions i want to share into 
>some class and have the class threads refer to them that way ? i 
>mean, just to keep things seperate, but resuseable ?

That really depends on your design. Python does not enforce that 
*all* code be in class methods; using functions alone -as others have 
pointed out- is fine.



Gabriel Genellina
Softlab SRL 


	
	
		
__________________________________________________
Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 
http://www.yahoo.com.ar/respuestas




More information about the Python-list mailing list