Re: How can I catch misnamed variables?
- From: Christian Heimes <lists@xxxxxxxxxx>
- Date: Sat, 11 Feb 2012 00:21:11 +0100
Am 10.02.2012 22:06, schrieb John Gordon:
Is there an automated way to catch errors like these? I'm using the
compileall module to build my program and it does catch some errors
such as incorrect indentation, but not errors like the above.
Write unit tests and use coverage to aim for 100% code and branch coverage.
If you want to write high quality code and avoid problems like misnamed
variables then you have to write unit tests and functional tests for
your program. I'm well aware that it's hard and requires time. But in
the long run it will *save* lots of time.
.
- References:
- How can I catch misnamed variables?
- From: John Gordon
- How can I catch misnamed variables?
- Prev by Date: Re: Postpone evaluation of argument
- Next by Date: Re: Postpone evaluation of argument
- Previous by thread: Re: OT (waaaayyyyyyyyy off-topic)
- Next by thread: datetime module and timezone
- Index(es):