Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by throwaway (5900) on 2005.11.05 10:17 (#44343)
    It wouldn't have helped with the fundamental issue in the example you mentioned (you probably got a "'module' object is not callable" error, there) but as far as working code is concerned, many modules contain useful examples in their test code. "help(StringIO)" tells you the file containing the StringIO module, and then you can read the "test()" function in there. In the same directory there is also a "test" subdirectory, which contains "test_StringIO.py". Those test files can also be worth looking at sometimes. (I agree, this is a poor substitute for working code in documentation.)

    When you close a block in emacs's python-mode, it briefly reports the text at the top of the block being closed. You may find this helpful for keeping track.