According to the pydev New Release: 1.3.9 /Major highlights:
* psyco changed for Null object for debug (so, no changes are
required to the code if psyco is used while
If I use debugger with cherrypy, I have problem within the function
autoreload in the module _cpengine.py because there is k with the
value "psyco" in the list sys.modules.items(), but m is an instance
(Null object). So the following
code
for filename in sysfiles + self.reload_files:
if filename:
if type(filename) != str:
both of the conditions are true, so the code tries to get file
information, but is is not a file!!!
Any idea? who, cherrypy and pydev, has implemented wrongly and should
change?
Thanks in advance!
I found this is a general problem if we use sys.modules because pydev
introduce the Null object and therefore psyco will be forced as Null,
not as real module within sys.modules
My workaround as follows and work for me,
at the beginning of the function autoreload of _cpengine.py will be
added the second and the third lines direct within the for loop.
for k, m in sys.modules.items():
if type(m) == types.InstanceType:
continue
Is there a better alternative or?
thanks for any tips!