Message93488
As every type is an instance of `type`, every type also has a
`__call__` attribute which means ``hasattr(type(x), '__call__')`` is
always true. `callable()` checks whether `tp_call` is set on the type,
which cannot be done in Python directly. |
|
Date |
User |
Action |
Args |
2009-10-03 10:25:31 | Trundle | set | recipients:
+ Trundle, georg.brandl, ncoghlan, benjamin.peterson, ezio.melotti, milko.krachounov |
2009-10-03 10:25:31 | Trundle | set | messageid: <1254565531.58.0.936255809067.issue7006@psf.upfronthosting.co.za> |
2009-10-03 10:25:30 | Trundle | link | issue7006 messages |
2009-10-03 10:25:30 | Trundle | create | |
|