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 mark.dickinson
Recipients Yehuda, mark.dickinson, nicktimko
Date 2019-08-28.17:06:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1567012011.13.0.686515302746.issue37968@roundup.psfhosted.org>
In-reply-to
Content
> 1 the next code SHOULD produce an error message. Think that it's followed
> by a few dozens of code lines:
> from turtle import *
> fd; rt(90)

There's no reasonable mechanism in current Python by which this could produce an error message; it's not an error, and you'd need to make substantial changes to the core language to make it such, including fleshing out exactly what those changes would be and how they'd work, and persuading other core developers that those changes improve the language.

As Nick Timkovich points out, tools like pylint will flag this sort of thing. When I run pylint on your script, the output includes the following:

> untitled.py:3:8: W0104: Statement seems to have no effect (pointless-statement) 

If you really want to pursue the necessary changes in the core language, I'd suggest starting a discussion on the python-ideas mailing list; others may have innovative suggestions for ameliorating the core problem. But it's just not feasible in the language as it stands.

I'd suggest focusing this issue on your second item, and dropping the first.
History
Date User Action Args
2019-08-28 17:06:51mark.dickinsonsetrecipients: + mark.dickinson, nicktimko, Yehuda
2019-08-28 17:06:51mark.dickinsonsetmessageid: <1567012011.13.0.686515302746.issue37968@roundup.psfhosted.org>
2019-08-28 17:06:51mark.dickinsonlinkissue37968 messages
2019-08-28 17:06:50mark.dickinsoncreate