DEF X = nosuchidentifier raises TypeError in ExprNodes.py
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cython |
Fix Committed
|
Low
|
Unassigned |
Bug Description
I noticed this while reporting bug 220108. If I try to compile a Cython 0.9.13.1 source file containing a line such as
DEF X = nosuchidentifier
where "nosuchidentifier" appears nowhere else, the build process fails with the following exception:
File "/usr/local/
error(self.pos, "Compile-time name '%s' not defined", self.name)
TypeError: error() takes exactly 2 arguments (3 given)
I'm guessing that the relevant line of ExprNodes.py is intended to read as follows:
error(self.pos, "Compile-time name '%s' not defined" % self.name)
which is to say that the second comma looks like it ought to be a percent sign.
Thanks again!
Thanks!