3 ms·
Python's stdlib docs could improve in places (I'm looking at you lib2to3), but a lot of the modules do include examples (see http://docs.python.org/library/coll
by MichaelSalib 16y ago
Python's stdlib docs could improve in places (I'm looking at you lib2to3), but a lot of the modules do include examples (see http://docs.python.org/library/collections.html#module-collections http://docs.python.org/library/collections.html#module-colle... for an, um, example). My sense is that you see heavy examples in newer modules rather than older modules because of the rise of doc string tests.
But the real reason I wanted to comment: stop dir()ing through modules! Install ipython and learn to use ? and ??. Life will be so much easier.
- larrik 16y agoI've been using DreamPie recently, but I'll check out IPython. Thanks! Edit: Checking it out now (actually already had it installed, thanks Ubuntu!), the ? and ?? things are just awesome.