Created
September 7, 2022 10:38
-
-
Save DJWOMS/d54f4bcc0b4481112bcf6dfc7061fba7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Comment(object): | |
def __init__(self, email, content, created=None): | |
self.email = email | |
self.content = content | |
self.created = created or datetime.datetime.now() | |
comment = Comment(email='djwoms@example.com', content='My content') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment