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 -~----------~----~----~----~------~----~------~--~---
