This commit is contained in:
gwen
2012-11-20 09:15:29 +01:00
parent e13fec23fe
commit 60ef6cc2b4
3 changed files with 2 additions and 13 deletions

View File

@ -48,6 +48,8 @@ def parse_module(module):
# classes = [(cls, value) for cls, value in getattr(module, '__dict__').items() if value == types.ClassType]
classes = getmembers(module, isclass)
for name, obj in classes:
print module.__name__
print obj
write_source(module.__name__ + '.' + name, getsource(obj))
# methods = [(meth, value) for meth, value in getattr(obj, '__dict__').items() if type(value) == types.MethodType]
methods = getmembers(obj, ismethod)

View File

@ -7,7 +7,6 @@ Config API Details
:test cases: - :api:`test_config_api.py`
- :api:`test_config_big_example.py`
The handling of options is split into two parts: the description of
which options are available, what their possible values and defaults are
and how they are organized into a tree. A specific choice of options is