Re: Python Documentation Standards

2006-03-17 Thread Colin J. Williams
Steven Bethard wrote: > Colin J. Williams wrote: > >> Doc strings provide us with a great opportunity to illuminate our code. >> >> In the example below, __init__ refers us to the class's documentation, >> but the class doc doesn't help much. > > > It doesn't? > > >>> print list.__doc__ > list

Re: Python Documentation Standards

2006-03-16 Thread Duncan Booth
Steven Bethard wrote: > Colin J. Williams wrote: >> Doc strings provide us with a great opportunity to illuminate our code. >> >> In the example below, __init__ refers us to the class's documentation, >> but the class doc doesn't help much. > > It doesn't? > > >>> print list.__doc__ > list() ->

Re: Python Documentation Standards

2006-03-16 Thread Steven Bethard
Colin J. Williams wrote: > Doc strings provide us with a great opportunity to illuminate our code. > > In the example below, __init__ refers us to the class's documentation, > but the class doc doesn't help much. It doesn't? >>> print list.__doc__ list() -> new list list(sequence) -> new list i

Python Documentation Standards

2006-03-16 Thread Colin J. Williams
Doc strings provide us with a great opportunity to illuminate our code. In the example below, __init__ refers us to the class's documentation, but the class doc doesn't help much. Are there any guideline which cover such things? PEP 8 has general advice