Tips and Traps¶
Use
==(instead of the methodObject.equals) to compare objects is a common and tricky mistake for beginner.You cannot define an abstract static method. This is because "abstract" means that no functionality is implemented while "static" means that functionality exists even there is no object. The two conflict in concept.
Distributed Programming in Python
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
https://github.com/rq/rq
https://python-rq.org/
Measure Python Code Coverage
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Measure Python Code Coverage using coverage.py
pip3 install coverage
poetry run coverage run -m pytest
poetry run coverage report -m
poetry run coverage html
PyTest
$ pip install pytest-cov $ py.test …
Create a Date Range in Python
pandas.date_range¶
Hands on the tempfile Module in Python
This module creates temporary files and directories. It works on all supported platforms. TemporaryFile, NamedTemporaryFile, TemporaryDirectory, and SpooledTemporaryFile are high-level interfaces which provide automatic cleanup and can be used as context managers. mkstemp() and mkdtemp() are lower-level functions which require manual cleanup.
Python in Browser
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Life After JavaScript: A Tour of the Options
anvil.works allows users to develop and deploy full stack web apps with nothing but Python.
BRython is a Python 3 implementation for …