Regarding coding style

Tim Lesher tlesher at gmail.com
Tue Mar 18 14:01:14 EDT 2008


On Mar 9, 2:04 am, "Ryan Ginstrom" <softw... at ginstrom.com> wrote:
> > On Behalf Of Grant Edwards
> > I think docstrings are a great idea.  What's needed is a way
> > to document the signature that can't get out-of-sync with
> > what the fucntion really expects.
>
> Like doctests? (I know, smart-ass response)
>
> Regards,
> Ryan Ginstrom

Not a smart-ass response at all--a _smart_ response.

Doctests are one of the few mechanisms I've ever seen that even
attempt to make this happen.

--
Tim Lesher
tlesher at gmail.com



More information about the Python-list mailing list