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

Can't open standard input stream #313

Closed
hoosierEE opened this issue Mar 31, 2023 · 1 comment
Closed

Can't open standard input stream #313

hoosierEE opened this issue Mar 31, 2023 · 1 comment
Assignees
Labels
stdlib Standard library feature

Comments

@hoosierEE
Copy link

example.py:

f = open(0)

Error:

codon build example.py
example.py:1:5-12: error: 'int' does not match expected type 'str'

This works in Python3. For example: python3 example.py < file.txt.

@arshajii arshajii self-assigned this Apr 3, 2023
@inumanag inumanag added the stdlib Standard library feature label Jul 26, 2023
@inumanag
Copy link
Contributor

Fixed in #604.

inumanag added a commit that referenced this issue Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Standard library feature
Projects
None yet
Development

No branches or pull requests

3 participants