Skip to content

CPython compatibility: raise an error for operations on a closed file de... #551

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

Merged
merged 1 commit into from
May 3, 2014

Conversation

stinos
Copy link
Contributor

@stinos stinos commented May 3, 2014

...scriptor

In CPython any operations on a file that has been closed already reaises
a ValueError with message "I/O operation on closed file"

@pfalcon
Copy link
Contributor

pfalcon commented May 3, 2014

To help compilers at low optimization levels (ad just dumb compilers), can you please make sure check_fd_is_open() is empty macro at all if MICROPY_CPYTHON_COMPAT is not defined?

@stinos
Copy link
Contributor Author

stinos commented May 3, 2014

ok!

… descriptor

In CPython any operations on a file that has been closed already reaises
a ValueError with message "I/O operation on closed file"
@pfalcon
Copy link
Contributor

pfalcon commented May 3, 2014

Thanks, merged.

@stinos stinos deleted the closed-fd-err branch May 3, 2014 15:40
tannewt added a commit to tannewt/circuitpython that referenced this pull request Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants