Skip to content

Stringifiable and TextFile #6

@logicplace

Description

@logicplace

Depends on: #4

TextFile is the stringifiable version of BinaryFile

Stringifiable subclasses must implement the methods:

  • stringify(self) -> str
  • parse(self, string: str)

Any keyword-only arguments defined in these are keys to pull, like in calculations.

While it would be nice if parse accepted a buffer instead, and read until it was done (rather than necessarily the whole thing), I don't think this is reasonably possible to do. If a method of making it reasonable is discovered, it would be nice, though!! Thus, neither of these have alternative prototypes, but still need to be decorated to handle the key pulling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions