Docstrings
Gerrit Holl
gerrit.holl at pobox.com
Sat Feb 12 15:24:39 EST 2000
More information about the Python-list mailing list
Sat Feb 12 15:24:39 EST 2000
- Previous message (by thread): Docstrings
- Next message (by thread): Docstrings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
David C. Ullrich wrote on 950355148: > > http://www.python.org/doc/current/ref/types.html#l2h-97 > > > > Callable types > > These are the types to which the function call operation (see > > section 5.3.4, ``Calls'') can be applied: > > > > User-defined functions > > [stuff about user-defined functions, including __doc__.] > > > > So this applies to all callable objects, I thought. > > The indentation would seem to suggest it applies to user-defined > functions. In any case, I don't see what you're confused about - the > part you quote says that various things _do_ have __doc__ attributes, > it says nothing to the effect that these are the _only_ things with > __doc__ attributes. Various other things do - nothing in the docs > says otherwise. But I want some sort of definition: what types may contain doc strings? Strings, lists, dictionaries and all numeric types obviously may not. regards, Gerrit. -- Homepage: http://www.nl.linux.org/~gerrit -----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com Version: 3.12 GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O !M !V PS+ PE? Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y -----END GEEK CODE BLOCK----- moc.edockeeg.www//:ptth
- Previous message (by thread): Docstrings
- Next message (by thread): Docstrings
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list