Python ਦੇ ਬਿਲਟ-ਇਨ ਦੀ ਹਵਾਲਾ-ਸੂਚੀ¶
Python ਵਿੱਚ ਕਈ ਬਿਲਟ-ਇਨ ਫੰਕਸ਼ਨ ਅਤੇ ਕਲਾਸਾਂ ਸ਼ਾਮਲ ਹਨ।
ਬਿਲਟ-ਇਨ ਕਲਾਸਾਂ ਵਿੱਚ ਉਹ ਡਾਟਾ ਕਿਸਮਾਂ ਸ਼ਾਮਲ ਹਨ ਜਿਨ੍ਹਾਂ ਨੂੰ ਆਮ ਤੌਰ 'ਤੇ ਕਿਸੇ ਭਾਸ਼ਾ ਦੇ "ਮੂਲ ਹਿੱਸੇ" ਦਾ ਭਾਗ ਮੰਨਿਆ ਜਾਂਦਾ ਹੈ, ਜਿਵੇਂ ਕਿ ਨੰਬਰ ਅਤੇ ਸੂਚੀਆਂ। ਇਨ੍ਹਾਂ ਕਿਸਮਾਂ ਲਈ, Python ਭਾਸ਼ਾ ਦਾ ਮੂਲ ਹਿੱਸਾ ਲਿਟਰਲਾਂ ਦਾ ਰੂਪ ਨਿਰਧਾਰਤ ਕਰਦਾ ਹੈ ਅਤੇ ਉਨ੍ਹਾਂ ਦੇ ਅਰਥਾਂ 'ਤੇ ਕੁਝ ਪਾਬੰਦੀਆਂ ਲਗਾਉਂਦਾ ਹੈ, ਪਰ ਉਨ੍ਹਾਂ ਦੇ ਅਰਥਾਂ ਨੂੰ ਪੂਰੀ ਤਰ੍ਹਾਂ ਪਰਿਭਾਸ਼ਿਤ ਨਹੀਂ ਕਰਦਾ।
ਬਿਲਟ-ਇਨ ਵਿੱਚ ਫੰਕਸ਼ਨ ਅਤੇ ਅਪਵਾਦ ਵੀ ਸ਼ਾਮਲ ਹਨ --- ਅਜਿਹੇ ਆਬਜੈਕਟ ਜਿਨ੍ਹਾਂ ਨੂੰ ਸਾਰੇ Python ਕੋਡ ਵਿੱਚ import ਸਟੇਟਮੈਂਟ ਦੀ ਲੋੜ ਤੋਂ ਬਿਨਾਂ ਵਰਤਿਆ ਜਾ ਸਕਦਾ ਹੈ। ਇਨ੍ਹਾਂ ਵਿੱਚੋਂ ਕੁਝ ਮੂਲ ਭਾਸ਼ਾ ਦੁਆਰਾ ਪਰਿਭਾਸ਼ਿਤ ਕੀਤੇ ਗਏ ਹਨ, ਪਰ ਕਈ ਮੂਲ ਅਰਥ-ਵਿਵਸਥਾ ਲਈ ਲਾਜ਼ਮੀ ਨਹੀਂ ਹਨ ਅਤੇ ਇੱਥੇ ਸਿਰਫ਼ ਉਨ੍ਹਾਂ ਦਾ ਵਰਣਨ ਕੀਤਾ ਗਿਆ ਹੈ।
See also
ਬਿਲਟ-ਇਨ ਤੋਂ ਇਲਾਵਾ, Python ਇੱਕ ਵਿਸ਼ਾਲ ਸਟੈਂਡਰਡ ਲਾਇਬ੍ਰੇਰੀ ਵੀ ਪ੍ਰਦਾਨ ਕਰਦਾ ਹੈ ਜਿਸ ਨੂੰ ਇੰਪੋਰਟ ਕੀਤਾ ਜਾ ਸਕਦਾ ਹੈ। ਵੇਖੋ The Python standard library।
- Built-in Types
- Truth Value Testing
- Boolean Operations ---
and,or,not - Comparisons
- Numeric Types ---
int,float,complex - Boolean Type -
bool - Iteration-related types
- Sequence Types ---
list,tuple,range - Text and Binary Sequence Type Methods Summary
- Text Sequence Type ---
str - Binary Sequence Types ---
bytes,bytearray,memoryview - Set Types ---
set,frozenset - Mapping types ---
dict,frozendict - Context Manager Types
- Type Annotation Types --- Generic Alias, Union
- Other Built-in Types
- Special Attributes
- Integer string conversion length limitation
- Built-in Constants
- ਬਿਲਟ-ਇਨ ਫੰਕਸ਼ਨ
- ਬਿਲਟ-ਇਨ ਐਕਸੈਪਸ਼ਨ
- Thread Safety Guarantees
- Time complexity of operations on built-in types