[issue22568] Use of "utime" as variable name in Modules/posixmodule.c causes errors

Jeffrey Armstrong report at bugs.python.org
Mon Oct 6 22:01:08 CEST 2014


Jeffrey Armstrong added the comment:

Under the conditions I described in Modules/posixmodules.c on line 4815, the utime() function is called.  With the current code, the following correct compiler error is emitted:

./Modules/posixmodule.c(4815): Error! E1012: Expression is not a function

The above occurs because utime is treated as a local variable and an attempt is made at calling it as a function.

The use of a possible (and fairly standard) function name as a local variable is unfortunate, and I'm guessing these conditions haven't been tested in a while.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22568>
_______________________________________


More information about the Python-bugs-list mailing list