[Trac-tickets] Re: [The Trac Project] #1011: global name 'hdf' is
not defined
The Trac Project
noreply at edgewall.com
Thu Dec 2 04:10:50 EST 2004
#1011: global name 'hdf' is not defined
---------------------+------------------------------------------------------
Id: 1011 | Status: new
Component: general | Modified: Thu Dec 2 04:10:23 2004
Severity: normal | Milestone:
Priority: normal | Version: 0.8
Owner: jonas | Reporter: ax
---------------------+------------------------------------------------------
Comment (by cboos at bct-technology.com):
This is a Python-2.1 lexical scope issue,
it works for me (Python-2.3).
However, as 2.1 must be supported, try that fix:
The {{{hdf}}} argument must be propagated to the
local {{{def code_block(...)}}}.
Simply add a new {{{hdf}}} argument to that {{{def}}},
and pass the {{{hdf}}} value from the enclosing scope.
The reStructuredText support could be even
better if the #801 patch by tonib was applied...
(after having done a quick check, it seems the patch
also suffers from 2.1 compatibility issues)
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/1011>
The Trac Project <>
More information about the Trac-Tickets
mailing list