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

Support input() function #451

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

knogu
Copy link

@knogu knogu commented Aug 23, 2023

It is important that Codon supports as many Python's features as possible.
But input() has yet to be implemented in Codon. So I made this PR to add it.
input() in Python: https://docs.python.org/3/library/functions.html#input

in develop branch (before merging this PR):

$ cat input.codon
print(input())
$ codon run input.codon
input.codon:1:7-12: error: name 'input' is not defined

in the branch for this PR, it works as well as Python
(test right under the command is manually input)

$ codon run input.codon
test
test

Closes #96

@cla-bot
Copy link

cla-bot bot commented Aug 23, 2023

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Kotaro Noguchi.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email email@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@knogu knogu force-pushed the feature/implement-embedded-input-function branch from 9fa4b77 to 4a7e7ba Compare August 23, 2023 14:04
@cla-bot cla-bot bot added the cla-signed label Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Throw an ERROR when the Python file includes "input()" command
1 participant