[Doc-SIG] Sort order in pythondoc
Dinu C. Gherman
gherman@darwin.in-berlin.de
Thu, 08 Jul 1999 13:08:36 +0200
Konrad Hinsen wrote:
>
> Unfortunately, I don't see any way to do this, because it seems that
> the source code order is lost after a module is imported. Or maybe
> not, I am not an expert on Python internals. Does anyone know a
> trick how this information could be recovered?
It should be possible if you believe the reference manual,
where in chapter "3.2 - The standard type hierarchy", where
you can read under "Internal types" -> "Code objects" (second
paragraph):
"""
[...]
co_filename is the filename from which the code was compiled;
co_firstlineno is the first line number of the function;
co_lnotab is a string encoding the mapping from byte code
offsets to line numbers (for detais see the source code of
the interpreter)
[...]
"""
;-)
I will have the same problem very soon in a somewhat similar
situation... Let us know how you did it! ;-)
Dinu
--
Dinu C. Gherman : Women inspire us to great things and
: prevent us from achieving them. (Dumas)
................................................................
LHS International AG : http://www.lhsgroup.com
8050 Zurich : http://www.zurich.ch
Switzerland : http://pgp.ai.mit.edu
: mobile://49.172.3060751
......................:.........................................
Vote against SPAM on http://www.politik-digital.de/spam