In [2]: import collections In [3]: collections.Counter.fromkeys Out[3]: <bound method type.fromkeys of <class 'collections.Counter'>> In [4]: f = collections.Counter.fromkeys In [5]: f Out[5]: <bound method type.fromkeys of <class 'collections.Counter'>>