[Python-Dev] Compiler warnings
"Martin v. Löwis"
martin at v.loewis.de
Wed Feb 1 20:16:04 CET 2006
Sjoerd Mullender wrote:
> I don't quite understand what's the big deal.
Traditionally, people see two problems with these initializations:
- the extra initialization may cause a performance loss.
- the initialization might hide real bugs later on. For example,
if an additional control flow branch is added which fails to
initialize the variable, you don't get the warning anymore,
not even from compilers which previously did a correct analysis.
Whether this is a big deal, I don't know.
Regards,
Martin
More information about the Python-Dev
mailing list