[Pyrex] Small fix for "with gil" compiler error
Stefan Behnel
stefan_ml at behnel.de
Sun Dec 2 12:31:05 CET 2007
Hi,
here's a small fix for the error report the compiler generates when running
into a "with UNKNOWN". Both Cython and Pyrex currently crash here.
BTW, Greg, what's the status of the "with gil" block implementation?
Currently, it also generates the error below.
Stefan
# HG changeset patch
# User Stefan Behnel <scoder at users.berlios.de>
# Date 1196593655 -3600
# Node ID f82502b66b0d6cab80698040f270c10262e746a8
# Parent b2c3a4522f29fe8103303477bee496b6790bfd5b
fixed broken call to compiler error function
diff -r b2c3a4522f29 -r f82502b66b0d Compiler/Parsing.py
--- a/Compiler/Parsing.py Sat Nov 24 10:54:22 2007 +0100
+++ b/Compiler/Parsing.py Sun Dec 02 12:07:35 2007 +0100
@@ -1202,7 +1202,8 @@ def p_with_statement(s):
body = p_suite(s)
return Nodes.GILStatNode(pos, state = state, body = body)
else:
- s.error(pos, "Only 'with gil' and 'with nogil' implemented")
+ s.error("Only 'with gil' and 'with nogil' implemented",
+ pos = pos)
def p_simple_statement(s):
#print "p_simple_statement:", s.sy, s.systring ###
More information about the Pyrex
mailing list