hi georg -- thanks for your response!

i thought it was just by chance too. however, below is an example list of
functions from one module that appeared in the (following) order, same as in
the module itself.

they are definitely not in alphabetical order!

perhaps i do not understand what is meant by ordering by type?

thanks your help,

elaine

---------
loadSV
saveSV
loadbinary
savebinary
loadHSV
saveHSV
savecolumns
loadHSVlist
appendHSV
appendcolumns
loadrowdata
typeinfer
infercoloring
inferdelimiter



On Thu, Sep 3, 2009 at 3:41 PM, Georg Brandl <[email protected]> wrote:

>
> elaine schrieb:
> > hi -- i am just resending my post from the other day, does anybody
> > understand the following difference about using autodocs to include
> > members of an automodule vs. an autoclass:
> >
> > the autodocs for the members (e.g. functions) of an automodule
> > correspond to their order in the code of that module, while the
> > autodocs for the members of an autoclass (e.g. methods) appear in
> > alphabetical order.
> >
> > i would like to have the members of an autoclass appear in the same
> > order as they are in the code of that class. can i do this
> > automatically? e.g. when using:
> >
> > .. autoclass:: class.name
> >       :members:
> >
> > please let me know if i am being unclear, thanks a bunch!
>
> Hi,
>
> I think that the first case (members in modules appearing in the
> source order) was just a coincidence.  Members are always sorted
> in alphabetical order (or, when selected, ordered by type first),
> because Python introspection doesn't let you find out the source
> order -- all members are in a dictionary, whether in a module or
> in a class.
>
> (Now that we have the ModuleAnalyzer, ordering by source order
> would be possible, but is not implemented.)
>
> Georg
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to