A program that succeeds on cpython 2.6 fails for jython 2.5.1 with the diagnostic 

   AttributeError: __len__

where the offending line is:

   module = __import__(module_path, globals(), locals(), True)

The Pydev debugger reveals that neither globals() or locals() have a a value with a __len__ attribute.  Is this correct behavior and is there a workaround for this, e.g., by providing runtime flag or option?


Owen Newnan

cell 720 260-5753