Message354

Author crumhorn
Recipients
Date 2001-07-24.22:59:44
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Expect pickle-module-str for second print stmt (not '1'); Jython seems to ignore import in favor of earlier
local binding in jython 2.1a2:

  >>> def foo(pickle):
  ...     print pickle
  ...     import pickle
  ...     print pickle
  ...
  >>> foo(1)
  1
  1
  >>>
----------------------------------------------------


python 2.1 works as expected:

  Python 2.1 (#15, Apr 16 2001, 18:25:49) [MSC 32 bit   (Intel)] on win32
  Type "copyright", "credits" or "license" for more     information.
  >>> def foo(pickle):
  ...     print pickle
  ...     import pickle
  ...     print pickle
  ...
  >>> foo(1)
  1
  <module 'pickle' from 'd:\python21\lib\pickle.py'>
  >>>
History
Date User Action Args
2008-02-20 17:16:52adminlinkissue444292 messages
2008-02-20 17:16:52admincreate