the-wondersome-wag

The Wondersome Wag :: A high-performance, scalable, server-side, reactive blogging application :: python & duckframework :: managed by uv ============================================================================

:black_nib: :green_book: :: Links woodford’s engineer: woodFordR woodford’s organization : the-woodford-den ————————————————————————————-


class Quote:
    def __init__(self, author: str, content: str):
        self.content = content
        self.author = author


    @classmethod
    def from_nonsense(cls, data_str: str):
        author, content = data_str.split(",") 
        return cls(author, content)


wiseman = Quote("Alan Turing", "sometimes it is the people no one imagines \
    anything of who do the things no one can imagine.")

idiot = Quote.from_nonsense("Sam, You can leave because I am lazy.")

print(f"\"{idiot.content}\" --{idiot.author}")