Skip to content

Conversation

@davis68
Copy link
Contributor

@davis68 davis68 commented Oct 21, 2016

No description provided.

@valentina-s
Copy link
Contributor

Thanks! Seems also when writing to a file opened for read only, Python 3 returns an UnsupportedOperation Error. Could you make this change too? Apparently, in Python 3 IOError has been merged with OSError, so even if a function explicitly raised an IOError it returns an OSError message. For example, pandas.read_csv returns OSError.

@davis68
Copy link
Contributor Author

davis68 commented Nov 9, 2016

Here's a note expanding on your comment and attempting to clarify the situation in a general way, @valentina-s.

@valentina-s
Copy link
Contributor

Thanks!

@valentina-s valentina-s merged commit e902cd4 into swcarpentry:gh-pages Nov 10, 2016
zkamvar pushed a commit that referenced this pull request Apr 21, 2023
`FileNotFoundError` supersedes `IOError`
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