Usage of main()

Albert Hopkins marduk at letterboxes.org
Fri Sep 4 09:23:42 EDT 2009


On Fri, 2009-09-04 at 22:55 +1000, Ben Finney wrote:
> * having a module that can be imported without side effects helps
> select
>   pieces of the module's functionality
> 
> * any module should be importable without side effects to make it
> easier
>   to run unit tests for that module
> 

+1




More information about the Python-list mailing list