<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Christian Ebert wrote:
<blockquote cite="mid:20090210140932.GB699@krille.blacktrash.org"
type="cite">
<blockquote type="cite">
<pre wrap="">But I would be glad to see a better solution :-)
</pre>
</blockquote>
<pre wrap=""><!---->
Some script that extracts only the docstrings of the functions
that are listed in cmdtable?
</pre>
</blockquote>
Does python have some sort of attribute mechanism?<br>
<br>
We could do something like:<br>
<br>
[public]<br>
def commit( ...<br>
<br>
what about starting non-public-api docstrings with a quote char (or
something else, perhaps just a space?):<br>
<blockquote type="cite">
<pre wrap=""> def utcdate(date):
''''Returns hgdate in cvs-like UTC format.'''
</pre>
</blockquote>
The extra quote shouldn't be a problem from pyshell but it would make
it very easy to know if a docstring is made for public usage or not. Is
there a PEP for this somewhere?<br>
</body>
</html>