Re: [Tutor] Detect duplicate object names

2009-10-22 Thread Alan Gauld
"Lizhi Yang" wrote When I define functions in a Module, how to avoid override the name of existing functions? Do you mean other functions within the same module or do you mean functions in other modules? For the first case, keep the number of functions to a reasonable number so you can r

Re: [Tutor] Detect duplicate object names

2009-10-21 Thread Kent Johnson
On Wed, Oct 21, 2009 at 2:09 PM, Lizhi Yang wrote: > Hi, > > When I define functions in a Module, how to avoid override the name of > existing functions? > For example: > > define func1(): > define func2(): > define func1(): > > Is there anyway to pop up the warnings? Take a look at PyFlakes and

[Tutor] Detect duplicate object names

2009-10-21 Thread Lizhi Yang
Hi, When I define functions in a Module, how to avoid override the name of existing functions? For example: define func1(): define func2(): define func1(): Is there anyway to pop up the warnings? ___ Tutor maillist - Tutor@python.org To unsubscribe o