[issue33933] Error message says dict has no len

2018-06-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think this is an exact duplicate of issue32500. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> PySequence_Length() raises TypeError on dict type ___ Python tracker

[issue33933] Error message says dict has no len

2018-06-23 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue33933] Error message says dict has no len

2018-06-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: This probably doesn't warrant another tracker entry. Serhiy already had a PR for this and attached it to the original bug report for https://bugs.python.org/issue32500 . See https://github.com/python/cpython/pull/7846 My suggestion would be to just cha

[issue33933] Error message says dict has no len

2018-06-21 Thread Vedran Čačić
New submission from Vedran Čačić : Look at this: >>> import bisect >>> bisect.bisect({}, None) Traceback (most recent call last): File "", line 1, in bisect.bisect({}, None) TypeError: object of type 'dict' has no len() Of course, objects of type 'dict' do have len. The problem is that b