Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

trip.wrap_file() undocumented behavior wrt to sync file object #3379

Copy link
Copy link

Description

@Nikratio
Issue body actions

Hello,

Looking at https://trio.readthedocs.io/en/stable/reference-io.html#trio.wrap_file, it is not clear to me if:

  • Closing the returned async file object will also close the sync file object that I passed in
  • Whether this will happen automatically when the async file object is garbage collected
  • If I can continue to use the sync file object at the same time.

It'd be great if that could be clarified!

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.