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 BTaskaya
Recipients BTaskaya, nanjekyejoannah, steveire, vstinner
Date 2019-12-21.08:12:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1576915960.42.0.984326631069.issue30905@roundup.psfhosted.org>
In-reply-to
Content
> (1) BUT: The value of 'a' is not printed

Isn't this the expected behavior for file input? You need to call print() in order to get 'a' printed.

> (2) This is OK! We run one statement at a time

As it should be for "single input". 

> (3) This is NOT OK! Python throws a SyntaxError because we used Py_single_input.

Yes, because AFAIK single stands for single statement. There are 2 (assign + expression)

> These two requirements are in conflict, because while Py_single_input enables the first, it forbids the second.

It is why there is a code module which allows implementation of REPL loops.
History
Date User Action Args
2019-12-21 08:12:40BTaskayasetrecipients: + BTaskaya, vstinner, steveire, nanjekyejoannah
2019-12-21 08:12:40BTaskayasetmessageid: <1576915960.42.0.984326631069.issue30905@roundup.psfhosted.org>
2019-12-21 08:12:40BTaskayalinkissue30905 messages
2019-12-21 08:12:40BTaskayacreate