Current Path : /usr/local/share/examples/python2.5/parser/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/examples/python2.5/parser/source.py |
"""Exmaple file to be parsed for the parsermodule example. The classes and functions in this module exist only to exhibit the ability of the handling information extraction from nested definitions using parse trees. They shouldn't interest you otherwise! """ class Simple: "This class does very little." def method(self): "This method does almost nothing." return 1 class Nested: "This is a nested class." def nested_method(self): "Method of Nested class." def nested_function(): "Function in method of Nested class." pass return nested_function def function(): "This function lives at the module level." return 0