[issue11614] import __hello__ is broken in Python 3

Andreas Stührk report at bugs.python.org
Sat Mar 26 11:01:17 CET 2011


Andreas Stührk <andy-python at hammerhartes.de> added the comment:

On Fri, Mar 25, 2011 at 5:52 PM, Éric Araujo <report at bugs.python.org> wrote:
> Okay, it doesn’t work with -m __hello__, but using -c "import __hello__" I can see the message in all versions.

Can you elaborate on that? I.e. the versions and the actual message.
The current bytecode of the __hello__ module is (default branch):

  1           0 LOAD_CONST               1 (True)
              3 STORE_NAME               1 (initialized)
              6 LOAD_CONST               0 (None)
              9 RETURN_VALUE

I'd be a bit surprised if that really prints a message.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11614>
_______________________________________


More information about the Python-bugs-list mailing list