Using instance as __doc__

Terry Reedy tjreedy at udel.edu
Thu Jun 5 00:48:23 EDT 2003


"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
use
> something like "doc = str(doc)" instead? Yeah, quite useless,
perhaps.
> I have no idea of possible use cases. But if there is some hidden
reason
> 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

tjr






More information about the Python-list mailing list