Closed aroberge closed 2 years ago
Alternatively, do more work behind the scene:
compile()
the file to see if there is a SyntaxError
.TODO:
This works, but is slightly buggy. However, using friendly_idle is really the way to go as it is much more user-friendly. So, closing this as being not worth spending additional time on it.
<pyshell#dd>
content from argumentdd
, and add it to Friendly object for IDLEcheck_syntax
to Friendly object with a simpledd
argument.run
argument for dealing similarly with runtime errors that occurred prior to running IDLEinstall
automatically friendly when importingfriendly.idle
.