Fix is_simple_callable with variable args, kwargs by rpkilby · Pull Request #4622 · encode/django-rest-framework (original) (raw)
@rpkilby: Can you just explain this call to me, just for my sanity? 🙂
I'm expecting any(iterable) — it looks like bool or bool or generator, so why isn't it this:
>>> a = True
>>> b = True
>>> def c():
... yield True
... yield False
>>> all(a or b or c())
TypeError: 'bool' object is not iterable
Sorry for being slow. Thanks!