[Tutor] Detect duplicate object names
Kent Johnson
kent37 at tds.net
Wed Oct 21 21:06:45 CEST 2009
On Wed, Oct 21, 2009 at 2:09 PM, Lizhi Yang <yanglizhi at gmail.com> 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 PyChecker, they should be able to detect
this sort of error.
Kent
More information about the Tutor
mailing list