Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4541505 By: boostpy2005
Maybe the following can help you to fix the problem! autoreload of cherrypy checked how to find the module by calling the function hasattr(obj, attr). the function hasattr will be implemented by call getattr(obj, attr) in turn, which you implemented thru __getattr__ for the Null object. In this way, we get always True if calling hasattr. At the end, cherrypy gets the value by calling the function getattr and we get always the Null object if there is no such attribute. Therefore under cherrypy we get never the default value None even if calling getattr(obj, attr, None)! That is the reason why cherrypy failed. I still do not understand why only psyco has Null as module, not the really module as others. hope to help you to find a solution. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Pydev-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pydev-users
