__name__ is not always defined

Apparently doctests are one of those cases.
Improve List documentation