←back to thread

90 points Numerlor | 1 comments | | HN request time: 0.199s | source
Show context
klreslx ◴[] No.41851609[source]
I don't see the point. People who want Jupyter or an IDE know where to find it. Other people who want the basic REPL and mostly use editors anyway are annoyed.

Well, perhaps the usual suspects can get another infoworld self-promotion article out of it.

replies(5): >>41851731 #>>41851796 #>>41852422 #>>41852924 #>>41853980 #
zahlman ◴[] No.41853980[source]
They really don't. The Python userbase has a very high percentage of beginners at any time, and trying to move them into Jupyter or an IDE before they understand fundamentals, usually just makes it much harder to help them with programming problems (because they don't know what's language functionality and what comes from their tools; they don't know anything about the virtual environment the tool is managing; they aren't prepared for an IDE to identify problems that are different from what the runtime chokes on; etc.)

The basic REPL causes serious problems for beginners, and the differences in this REPL are (intentionally or not) largely geared towards fixing those problems. Most notably, beginners can't reliably paste in code examples from tutorials. Either there's a use of `input` which eats the next line of code as interactive input, or a blank line inside a block which the REPL interprets as end-of-code (causing the rest of the block to report `IndentationError`s despite being correctly indented for the intent of the code). They also commonly get tripped up by `help` and `exit` being Python callables rather than REPL commands, and get put off by the lack of built-in screen clearing. (Historically - as it turns out from forum discussion - the Python devs have expected that people actually quit the interpreter with ctrl-D/ctrl-Z, and clear the screen with the terminal emulator's functionality for doing so.)

replies(1): >>41854496 #
handman ◴[] No.41854496[source]
How did beginners survive the previous REPL for 30 years? No one had issues beyond the small annoyances, and you could use the included IDLE anyway.

These days anything is justified by the hypothetical needs of beginners, the same people who are used and incited by the Python ruling class to flag posts and report people on discuss.python.org, in the same way that Mao operated in the cultural revolution when he felt his power waning.

replies(2): >>41854748 #>>41855677 #
1. kamaal ◴[] No.41855677[source]
>>How did beginners survive the previous REPL for 30 years?

Mostly by not using it at all.

REPL doesn't maintain a state, atleast not complex enough state to be relevant to most things. People only use it for hello world kind of demo and don't touch it ever again.