Docstrings considered too complicated
Lie Ryan
lie.1296 at gmail.com
Wed Mar 3 08:09:20 EST 2010
On 03/03/2010 04:48 PM, Steven D'Aprano wrote:
> Or one can simply use *reason*: what justification is there for putting
> comments in strings at the top of the function? The only one I can see is
> if you are writing for an embedded device, you may want to remove doc
> strings to save memory -- and even that is implementation dependent.
Python already have a well-defined mechanism to remove docstrings with
the -O flag; there is really no other reason but plain ignorance and
inflexibility to think in other language than
<insert-your-first-language-here>.
More information about the Python-list
mailing list