[docs] [issue14824] reprlib documentation references string module

Jasper St. Pierre report at bugs.python.org
Fri May 18 22:39:12 CEST 2012

Jasper St. Pierre <jstpierre at mecheye.net> added the comment:

The documentation is just flat out wrong, actually:

    if ' ' in typename:
        parts = typename.split()
        typename = '_'.join(parts)

The documentation is claiming the inverse.

I don't know why we would ever have a space in a typename, ever (and if someone does awful hacks to get to that state, he should probably also do awful hacks to make reprlib work properly). It would be for the best if we could just remove this brain damage, but whatever.


Python tracker <report at bugs.python.org>

More information about the docs mailing list