Message358766
> (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. |
|
Date |
User |
Action |
Args |
2019-12-21 08:12:40 | BTaskaya | set | recipients:
+ BTaskaya, vstinner, steveire, nanjekyejoannah |
2019-12-21 08:12:40 | BTaskaya | set | messageid: <1576915960.42.0.984326631069.issue30905@roundup.psfhosted.org> |
2019-12-21 08:12:40 | BTaskaya | link | issue30905 messages |
2019-12-21 08:12:40 | BTaskaya | create | |
|