Ticket #221 (closed defect: fixed)
<?python ... ?> is broken --- "from module import *" doesn't work
|Reported by:||mats_a@…||Owned by:||cmlenz|
Goal: Write python code with "from modulename import *"
Problem: Something fails with the following error:
File "/home/username/.../mytemplate.html", line 123, in <Suite u'import turbogears as tg ...'>
print "this is the line above the error"
SystemError?: Objects/dictobject.c:599: bad argument to internal function
Reproduction: - Make a template - Add this to it:
<?python from sys import * ?> _
Possible cause?: Perhaps this may be occurring because genshi seems to be eval'ing lines one by one... and normally python doesn't allow an eval("import sys/os/etc.")... and perhaps Genshi is doing something behind-the-scenes to make it work... _
Suggested priority if reproducible: very high / blocker: prevents one from using very common python code