4 ms·
I would definitely recommend sync'ing the python subversion tree and picking a few modules and reading through them. Doing so taught me some of the less obvious
by jnoller 18y ago
I would definitely recommend sync'ing the python subversion tree and picking a few modules and reading through them. Doing so taught me some of the less obvious things within the language, and also taught me a lot about the various dunder (__foo__) methods for objects.
Additionally, I'd recommend reading through the PEP documents (http://python.org/dev/peps/ http://python.org/dev/peps/) - there's a lot of great examples and rationales contained in those.
Finally, Doug hellmann has done an excellent job with his Python Module of the Week series (http://www.doughellmann.com/PyMOTW/ http://www.doughellmann.com/PyMOTW/) and a new project "The hazel tree" (http://www.thehazeltree.org/ http://www.thehazeltree.org/) is doing a great job at compiling the various examples, docs/etc together in one place.
- Jasber 18y agoThis was a major eye-opener for me as-well. I jumped into various python modules and was amazed at what I discovered. Like the easter-egg hidden away in "this.py": http://pastebin.com/f25f08f20 http://pastebin.com/f25f08f20 (Couldn't figure out how to get code formatting to work properly)