In the standard Python documentation, system calls appear as bold, fixed-width font. You can see t开发者_开发百科his in the asyncore section, when it mentions select()
or poll()
for example:
http://docs.python.org/py3k/library/asyncore.html
I checked the source code for asyncore, and it has no special markups for these functions, so I'm not sure how one convinces Sphinx to do this. Is there a simple directive I can add to index.rst to make this work like I want?
Where did you see that there is no special markup for the C function calls? When I looked at the latest source for this file it has :cfunc:'select'
, which I think is old style Sphinx markup for C code. For the latest way of doing it read up on The C Domain.
精彩评论