Docstrings and class Attributes

Steven D'Aprano steve+comp.lang.python at pearwood.info
Wed Aug 10 19:37:06 EDT 2011


John Pinner wrote:

> On Aug 9, 1:36 am, Ben Finney <ben+pyt... at benfinney.id.au> wrote:
>> Ethan Furman <et... at stoneleaf.us> writes:
>> > So if property docstrings are so hard to get to, what's the point in
>> > having them?
>>
>> Why would you expect there be a special point to them?
>>
>> Men, like all primates of any sex, have nipples.
>>
>> Properties, like any function in Python, have docstrings.
> 
> So are you saying that men's nipples are pointless?
> 
> You could be correct, except in cold weather maybe.

Groan.

However, off-topic but interesting, there is at least one species of bat
where the males are known to routinely lactate and feed baby bats.

http://en.wikipedia.org/wiki/Male_lactation

So just because a feature is an accident of history, doesn't mean that a use
can't be found for it.



-- 
Steven




More information about the Python-list mailing list