Skip to content

make auto_open default to stdin/stdout when path evaluates to False #48

Closed

Description

@golobor
No description provided.

Activity

  1. added a commit that references this issue on Apr 8, 2022
  2. agalitsyna commented on Apr 8, 2022

    @agalitsyna
    Member

    Resolved in b002dbe with some additional improvements, such as default to stdin/stdout when "-" found instead of path.

    How about transfer to this nice class, which might further simplify this?

    class PipedIO:
    def __init__(self, file_or_path, command, mode='r'):
    """
    An experimental class that reads/writes a file, piping the contents
    through another process.
    Parameters
    ----------
    file_or_path : file-like object or str
    A path to the input/output file or an already opened
    file-like object.

  3. locked and limited conversation to collaborators on Apr 20, 2022
  4. converted this issue into a discussion #127 on Apr 20, 2022
  5. added a commit that references this issue on Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions