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

Fixes and improvements to SpooledBytesIO & SpooledStringIO #305

Merged
merged 1 commit into from
Dec 8, 2022

Conversation

bwatson-dk
Copy link
Contributor

  • Inherit from io.IOBase so instance & type checks are simpler
  • __eq__ and __ne__ no longer need to load both files completely into memory
  • __eq__ and __ne__ reset read-head in comparison errors
  • Some methods now raise a ValueError if the file is closed. This brings the implementations closer to StringIO and implementations from the io module
  • Added some additional unittests
  • Removed some Python 2.6 style format strings

- Inherit from IOBase so instance & type checks are simpler
- __eq__ and __ne__ no longer need to load both files completely into memory
- __eq__ and __ne__ reset read-head in comparison errors
- Some methods now raise a ValueError if the file is closed. This brings the implementations closer to StringIO and implementations from the io module
@mahmoud
Copy link
Owner

mahmoud commented Dec 8, 2022

Hey, these updates look great! Thanks for this!

@mahmoud mahmoud merged commit 6505c6b into mahmoud:master Dec 8, 2022
@induane induane deleted the iobase branch December 8, 2022 14:19
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.

3 participants