Last active
February 10, 2022 05:01
-
-
Save david-shiko/4832cebfe32a062dbde6b391cb018756 to your computer and use it in GitHub Desktop.
Common python notes
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
@contextmanager can be used to define a factory function for with statement context managers, | |
without needing to create a class or separate __enter__() and __exit__() methods. | |
Mongodb (2022 year) still don't work with dates without time. So datetime.date() will fail opposed to datetime.utcnow(). That's all for today. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment