Conversation
Notices
-
Embed this notice
feld (feld@bikeshed.party)'s status on Tuesday, 02-Jan-2024 02:27:02 JST feld @alex so this was in a recent blog post complaining about user-hostile patterns in programming and it really is the perfect Python example - Alex Gleason likes this.
-
Embed this notice
SockAccountForWatchingRandbot (sockaccountforwatchingrandbot@poa.st)'s status on Tuesday, 02-Jan-2024 02:46:09 JST SockAccountForWatchingRandbot @feld @alex in py, exit is a named function, so of course you need to add () to the end to invoke it. -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Tuesday, 02-Jan-2024 02:46:09 JST Alex Gleason @SockAccountForWatchingRandbot @feld It's like you didn't read the post tho. -
Embed this notice
feld (feld@bikeshed.party)'s status on Tuesday, 02-Jan-2024 02:47:12 JST feld @SockAccountForWatchingRandbot @alex But you are in the Python REPL shell, so it should accept those shell commands not just Python code.
And the CTRL+D doesn't work either -
Embed this notice
feld (feld@bikeshed.party)'s status on Tuesday, 02-Jan-2024 03:07:53 JST feld @SockAccountForWatchingRandbot @alex You're missing the point: the standard error is:
SyntaxError: invalid syntax
These jerks put in special code just to catch you typing "exit" and scold you for it. -
Embed this notice
SockAccountForWatchingRandbot (sockaccountforwatchingrandbot@poa.st)'s status on Tuesday, 02-Jan-2024 03:07:54 JST SockAccountForWatchingRandbot @feld @alex Yeah, but from what I understand it to be, the repl is just a quick and easy env to write and execute "legal" py code.