About 12,400,000 results
Open links in new tab
  1. python - What is a "callable"? - Stack Overflow

    Apr 7, 2017 · callable actually tells you if something is callable or not, while checking for __call__ tells you nothing; If an object o provides __getattribute__ or __getattr__, hasattr(o, '__call__') …

  2. what exactly is python typing.Callable? - Stack Overflow

    Jul 30, 2024 · typing.Callable is the type you use to indicate a callable. Most python types that support the operator are of the type collections.abc.Callable. Examples include functions, …

  3. multithreading - The difference between the Runnable and …

    Sep 19, 2018 · Difference between Runnable and callable as below-- 1) The run() method of runnable returns void, means if you want your thread return something which you can use …

  4. java - CompletableFuture from Callable? - Stack Overflow

    May 31, 2015 · * * @param callable a function returning the value to be used to complete the * returned CompletableFuture * @param executor the executor to use for asynchronous …

  5. javascript - Can you make an object 'callable'? - Stack Overflow

    Oct 12, 2013 · they are not callable. they contain functions, which are callable. also applies for the answer - they are objects with functions in it, not callable. But if you wanna really get creative …

  6. What is a callable object in C++? - Stack Overflow

    Feb 8, 2015 · The term "callable object" is broader: it also includes pointers to members (which can't be called with the normal function call syntax). Callable objects are the things that can be …

  7. What does it mean for a class to be callable? - Stack Overflow

    Leaving apart the mechanisms that mark functions as callable, Python classes have, as you know, special methods. The method that makes instances of a class callable is __call__. So, if …

  8. Why does TypeError: 'list' object is not callable appear? - Stack …

    You might as well be wondering what is a "callable", in which case you can read this post. list, being a class, is callable. Calling a class triggers instance construction and initialisation. An …

  9. What does "TypeError 'xxx' object is not callable" means?

    Mar 25, 2020 · A callable object can be a function or a class (that implements __call__ method). According to Python Docs: object.__call__(self[, args...]): Called when the instance is “called” …

  10. How to use Callable with void return type? - Stack Overflow

    Apr 1, 2014 · The latter provides a method to submit a Callable and returns a Future to get the result later (or wait for completion). If testA.abc() and testB.xyz() should be executed in …

Refresh