Python standard library: built-in functions callable (object), pythoncallable

Source: Internet
Author: User

Python standard library: built-in functions callable (object), pythoncallable

If the object parameter is an object that can be called, True is returned; otherwise, False is returned. However, it should be noted that when an object can be called, it does not mean that the execution will be successful when the object is called, but it will not be successful when the object cannot be called. If a class object is a class object, whether or not this class is reloaded is determined by the _ call _ () method. If this method is reloaded, the value is True.

Example:

# Callable () function a = 'abc' def f (a): pass print (callable (a), callable (f ))

The output result is as follows:

False True



Cai junsheng QQ: 9073204 Shenzhen


Python built-in functions

I am also learning python. How can I discuss it together?

If python has built-in functions, is there external functions?

Python built-in function built-in function refers to the built-in function in the standard library. These functions do not belong to any class or module and can be called directly. They can be considered an integral part of the python language. Similar to keywords.
Abs ()
Dict ()
Help ()
Min ()
Setattr ()

All ()
Dir ()
Hex ()
Next ()
Slice ()

Any ()
Divmod ()
Id ()
Object ()
Sorted ()

Ascii ()
Enumerate ()
Input ()
Oct ()
Staticmethod ()

Bin ()
Eval ()
Int ()
Open ()
Str ()

Bool ()
Exec ()
Isinstance ()
Ord ()
Sum ()

Bytearray ()
Filter ()
Issubclass ()
Pow ()
Super ()

Bytes ()
Float ()
Iter ()
Print ()
Tuple ()

Callable ()
Format ()
Len ()
Property ()
Type ()

Chr ()
Frozenset ()
List ()
Range ()
Vars ()

Classmethod ()
Getattr ()
Locals ()
Repr ()
Zip ()

Compile ()
Globals ()
Map ()
Reversed ()
_ Import __()

Complex ()
Hasattr ()
Max ()
Round ()

Delattr ()
Hash ()
Memoryview ()
Set ()

Static methods in other modules in the standard library are not built-in functions.

User-Defined extended functions are not built-in.
==================
However, in other languages and environments, built-in functions have different meanings.
Built-in functions do not have a unique specificity in concept. They are compound words. It is best to understand them as "built-in functions"... the rest of the text>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.