Skip to content

Provide flush() and close() functions #13

Closed
@mgeier

Description

@mgeier

I think both actions should be easily available to the user.

Currently this is done in __del__() which might not be that obvious (and flushing cannot be done on its own).

__del__() and __exit__() could then just simply call close().

I don't know if __del__() is a bad thing because I don't understand all this circular-reference-business described there: http://docs.python.org/3.3/reference/datamodel.html#object.__del__

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions