Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input() and raw_input() #52

Open
dusty-phillips opened this issue Jan 9, 2012 · 1 comment
Open

input() and raw_input() #52

dusty-phillips opened this issue Jan 9, 2012 · 1 comment
Labels

Comments

@dusty-phillips
Copy link

using prompt() perhaps?

Note: Python 3 did away with the distinction.

@chrivers
Copy link
Owner

I think that could work, but it shouldn't be the only option.

For example, print() uses the javascript print() function when it is available. This is typically the case when run from a "js" executable. I think said "js" exe has a read() function as well, so we should make a similar multiplex for input functions.

That would mean that when run from the console, pyjaco code would behave fully like python code, using stdin and stdout. Prompting is probably a good (besides, probably the only) fallback for browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants