DEF X = nosuchidentifier raises TypeError in ExprNodes.py

Bug #220109 reported by Jacques Frechet
2
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/lib/python2.5/site-packages/Cython/Compiler/ExprNodes.py", line 779, in compile_time_value
    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!

Revision history for this message
scoder (scoder) wrote :

Thanks!

Changed in cython:
importance: Undecided → Low
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.