Skip to content

Conversation

@mgeier
Copy link
Member

@mgeier mgeier commented Jan 22, 2026

Pure input/output streams only use one of data/out respectively, so we have to take care whether they even exist before we delete them.

Fixes #621.

@jared-v-hoyt
Copy link

jared-v-hoyt commented Jan 23, 2026

Can we do the same thing with the following?

self.pop("data", None)
self.pop("out", None)

Not sure if there's a need to import contextlib here.

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.

object has no attribute 'out'

2 participants