On Mon, Nov 22, 2010 at 10:54 AM, Éric Araujo <[email protected]> wrote: >> +.. function:: getgeneratorstate(generator) >> + >> + Get current state of a generator-iterator. >> + >> + Possible states are: >> + GEN_CREATED: Waiting to start execution. >> + GEN_RUNNING: Currently being executed by the interpreter. >> + GEN_SUSPENDED: Currently suspended at a yield expression. >> + GEN_CLOSED: Execution has completed. > > I wonder if those shouldn’t be marked up as :data: or something to make > them indexed.
The same definitions are in the docstrings, and they're just integer constants so I'm not sure why anyone would be looking them up directly. Still, if someone with greater Sphinx-fu thinks additional markup would be helpful, I have no problem with them adding it :) Cheers, Nick. -- Nick Coghlan | [email protected] | Brisbane, Australia _______________________________________________ Python-Dev mailing list [email protected] http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com
