Using instance as __doc__
mwilson at the-wire.com
Thu Jun 5 19:00:23 CEST 2003
In article <5SKdnbYwob4BVkOjXTWcpw at comcast.com>,
"Terry Reedy" <tjreedy at udel.edu> wrote:
>"Seo Sanghyeon" <unendliche at hanmail.net> wrote in message
>news:45e6545c.0306041804.4ea5e07c at posting.google.com...
>> So... Python throws out __doc__ if it is not a real string. Why not
>> something like "doc = str(doc)" instead? Yeah, quite useless,
>> I have no idea of possible use cases. But if there is some hidden
>> for not to use str() on instance __doc__, please enlighten me.
>Probably no one ever thought to do so. And developers are reluctant
>to penalize 99.999% of uses for the .001% that might do something
>wierd like this
Looks like somebody's trying to internationalize doc strings.
More information about the Python-list