﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
221	"<?python ... ?> is broken --- ""from module import *"" doesn't work"	mats_a@…	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"	defect	closed	major	0.5	Template processing	devel	fixed		
