Re: [Tutor] collections.Callable functionality

2017-03-06 Thread Peter Otten
ramakrishna reddy wrote: > Can you please explain the functionality of collections.Callable ? If > possible with a code snippet. That's a pretty exotic beast that you stumbled upon. >>> from collections.abc import Callable You can use it to check if an object is callable, i. e. works like a fu

Re: [Tutor] collections.Callable functionality

2017-03-06 Thread Alan Gauld via Tutor
On 06/03/17 03:07, ramakrishna reddy wrote: > Can you please explain the functionality of collections.Callable ? If > possible with a code snippet. First of all, do you understand the concept of callable in Python? Any object that can be used like a function is callable. You might have a mixed co

[Tutor] collections.Callable functionality

2017-03-05 Thread ramakrishna reddy
Hi, Can you please explain the functionality of collections.Callable ? If possible with a code snippet. I could not find a good explanation on google. Thanks, Ram. ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: h