This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author matrixise
Recipients Arfrever, Carl.Friedrich.Bolz, amaury.forgeotdarc, arigo, benjamin.peterson, fijal, mark.dickinson, mastrodomenico, matrixise, serhiy.storchaka
Date 2019-05-14.14:22:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557843756.25.0.536618174334.issue1875@roundup.psfhosted.org>
In-reply-to
Content
With the last 2.7 and 3.7, I can import the x module and the 'hello' is automatically printed.

Python 2.7.15 (default, Oct 15 2018, 15:26:09) 
[GCC 8.2.1 20180801 (Red Hat 8.2.1-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import x
hello


Python 3.7.3 (default, Apr  2 2019, 06:55:20) 
[GCC 8.3.1 20190223 (Red Hat 8.3.1-2)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import x
hello

>>> content = open('x.py').read()
>>> import dis
>>> dis.dis(content)
  1           0 LOAD_NAME                0 (print)
              2 LOAD_CONST               0 ('hello')
              4 CALL_FUNCTION            1
              6 POP_TOP

  3           8 LOAD_CONST               1 (None)
             10 RETURN_VALUE


but because I am not sure about this issue, I prefer to ask Serhiy.

Can we close it?

Thank you
History
Date User Action Args
2019-05-14 14:22:36matrixisesetrecipients: + matrixise, arigo, amaury.forgeotdarc, mark.dickinson, fijal, Carl.Friedrich.Bolz, benjamin.peterson, Arfrever, mastrodomenico, serhiy.storchaka
2019-05-14 14:22:36matrixisesetmessageid: <1557843756.25.0.536618174334.issue1875@roundup.psfhosted.org>
2019-05-14 14:22:36matrixiselinkissue1875 messages
2019-05-14 14:22:35matrixisecreate