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.

classification
Title: file calls itself
Type: Stage: resolved
Components: Build Versions: Python 3.8
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Dennis Sweeney, lallo
Priority: normal Keywords:

Created on 2022-02-08 13:57 by lallo, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (2)
msg412840 - (view) Author: renzo (lallo) Date: 2022-02-08 13:57
good morning
I created a file called prova.py

inside I put 3 lines
import test
a = 2
print (a)

d questions
why does a file have to call itself .. is it intended?
  how come it prints the value of a twice and does not enter the loop?
msg412841 - (view) Author: Dennis Sweeney (Dennis Sweeney) * (Python committer) Date: 2022-02-08 14:02
https://stackoverflow.com/ or https://discuss.python.org/c/users/ are better places for this question.
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90838
2022-02-08 14:02:49Dennis Sweeneysetstatus: open -> closed

nosy: + Dennis Sweeney
messages: + msg412841

resolution: not a bug
stage: resolved
2022-02-08 13:57:09lallocreate