[docs] [issue32500] PySequence_Length() raises TypeError on dict type

Vedran Čačić report at bugs.python.org
Wed Jun 20 23:33:31 EDT 2018

Vedran Čačić <vedgar at gmail.com> added the comment:

I don't believe this. Are you seriously saying that it is ok to tell the user "object of type 'dict' has no len()" when of course it does? Please change the error message so it does not so blatantly lie. Yes, I understand the underlying issue, but the common user doesn't need to understand it, and they shouldn't be lied to.

nosy: +veky

Python tracker <report at bugs.python.org>

More information about the docs mailing list