﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
6609	pysco clears the stack - causes delayed_loader to fail	pcoles@…	nobody	"The delayed_loader method (in django.utils.translation.__init__.py) will throw exceptions when an application has imported a module that uses psyco and psyco has managed to clear the stack.  The explicit call that fails is: 
{{{ 
caller = traceback.extract_stack(limit=2)[0][2]
}}}

If the exception is caught and the following code is run, it will show an empty list:
{{{
import traceback
raise Exception(traceback.extract_stack())
}}}

I am having trouble reproducing this - since psyco seems to only clear the stack in special cases, but I have seen it in multiple cases where one module is using psyco and a separate module is performing stack introspection.  This bug has existed in django-users and been unreported for almost a year.

The django-users examples are:

http://groups.google.com/group/django-users/browse_thread/thread/4eb598a52fee2d14/49cd8b7eae6bd72e
http://groups.google.com/group/django-users/browse_thread/thread/8fadc9dd544a9c37/d21ba2996c184560
"		closed	Internationalization	dev		wontfix	psyco, delayed_loader, stack		Accepted	0	0	0	0	0	0
