python_for_scientists
python_for_scientists copied to clipboard
Python Open Courseware for Scientists and Engineers
Originally, I decided to leave `@property` out of the OOP lectures. They were getting too long, and I thought were at risk of being cluttered. In retrospect, I included `@staticmethod`,...
Originally, I decided to leave `@classmethod` out of the OOP lectures. They were getting too long, and I thought were at risk of being cluttered. In retrospect, I included `@staticmethod`,...
Either in the second [OOP lecture](https://github.com/theJollySin/python_for_scientists/blob/master/classes/07_object_oriented_programming_2/lecture_07.md), or in the ["More Examples" sub-lecture](https://github.com/theJollySin/python_for_scientists/blob/master/classes/07_object_oriented_programming_2/lecture_07_examples.md), we should allow for "true" multiple inheritance: ```python class Class1: def m(self): print("In Class1") class Class2(Class1): def m(self):...
Adds a small section about pytest. Addresses #81. I am looking for feedback before #87 is addressed.
The [VirtualEnv lecture](https://github.com/john-science/python_for_scientists/blob/main/classes/22_virtualenv/lecture_22.md) needs some love. At the very least, this lecture needs better support for Windows and Nix. Perhaps there should be two versions of the lecture?
Currently, we just have one unit testing lecture on the syllabus/home page: * Unit Tests - lecture_17.md But I think it would be better if we broke this up into...
PyTest is pretty common, and super powerful. And adding it shouldn't be too much work.
* [Python black](https://www.geeksforgeeks.org/python-code-formatting-using-black/) is a great automation tool for a lot of this stuff. Might as well mention it. * [Python ruff](https://github.com/charliermarsh/ruff) is a more standard linting tool. But it's...