This material was presented to the Omaha Python User Group on 2/28/2019
Have you ever wondered how Python works? In this presentation we will uncover the "magic" behind the scenes in Python. Join us as we discover how:
- Objects are created and destroyed;
- To give meaningful descriptions to your objects;
- Common mathematical symbols are implemented in Python;
- Python evaluates equity and inequity and;
- You, the user, can alter Python's builtin behavior.
After this presentation you will leave with three key pieces of information:
- A greater understanding of how Python works;
- When and how to override Python's magic methods and;
- Additional resources to learn more about magic methods.
- Clone this repository.
- Create a virtual environment and activate it:
python -m venv /path/to/ENV
source ENV/bin/activate
- Install the the requitred libraries in your virtual environment:
pip install -r requirements.txt
To open as a Jubyter Notebook:
jupyter notebook
To display as a slideshow:
jupyter nbconvert 'Python 3 Magic Methods.ipynb' --to slides --post serve
Official Documentation: https://docs.python.org/3/reference/datamodel.html#special-method-names