Steve Dower <steve.do...@python.org> added the comment:

> the existing check in `do_help` didn't catch this case because 
> https://docs.python.org/3/library/sys.html#sys.flags only reflects command 
> line flags, rather than whether or not it was actually optimised.

Precisely. Your check is much more appropriate for what the actual issue 
is going to be, though keeping the existing check there means we can 
provide a more specific error message when we *know* that the user 
deliberately chose that behaviour.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue46434>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to