[python] [meta] Is the type of python a type?

Python type and C type

Speaking of python types, numeric types, sequence types, instance types, etc. I don't really care about it because I don't need a declaration, but there are types.

On the other hand, in C language, int type, char type, float type, etc. I don't want to remember this because I have to be aware of type declaration and type conversion.

By the way, when comparing these two, do you feel uncomfortable to call them the same "type"? The type of python is an object, which is responsible for both storing data and processing it. On the other hand, the C language type simply stores data. Thanks to that, I have to manually delete the memory.

It may be so if you are told that "python just omits XX type objects", It feels a little strange to call both of them with the same name, which are treated differently so far.

Isn't there a name that expresses this area well? If you call them the same type, you don't have to change the names of "variable" and "instance". In the first place, if all objects are objects, is it necessary to separate them into XX types?

In other words, he was confused when teaching python to juniors who can only write C language.

Recommended Posts

[python] [meta] Is the type of python a type?
Different from the import type of python. from A import B meaning
The story of blackjack A processing (python)
the zen of Python
Get the caller of a function in Python
Make a copy of the list in Python
A note about the python version of python virtualenv
This is the only basic review of Python ~ 1 ~
This is the only basic review of Python ~ 2 ~
[Python] A rough understanding of the logging module
Output in the form of a python array
This is the only basic review of Python ~ 3 ~
A discussion of the strengths and weaknesses of Python
[Python] Determine the type of iris with SVM
What is the XX file at the root of a popular Python project?
Check if the string is a number in python
[Python] A program that counts the number of valleys
Cut a part of the string using a Python slice
Python --Check type of values
About the ease of Python
How to write a list / dictionary type of Python3
Python points from the perspective of a C programmer
Python list is not a list
Basics of Python learning ~ What is a string literal? ~
Tasks at the start of a new python project
Zip 4 Gbyte problem is a story of the past
What is a recommend engine? Summary of the types
Why is the first argument of [Python] Class self?
A reminder about the implementation of recommendations in Python
About the features of Python
[Python] Make sure the received function is a user-defined function
[Python] A program that compares the positions of kangaroos.
The image is a slug
What is a python map?
Python Note: The mystery of assigning a variable to a variable
The Power of Pandas: Python
[Python] How to deal with the is instance error "is instance () arg 2 must be a type or tuple of types"
Get the value of a specific key in a list from the dictionary type in the list with Python
How to check in Python if one of the elements of a list is in another list
I thought about why Python self is necessary with the feeling of a Python interpreter
Find out the apparent width of a string in python
A simple Python implementation of the k-nearest neighbor method (k-NN)
I just changed the sample source of Python a little.
Consideration for Python decorators of the type that passes variables
[Note] Import of a file in the parent directory in Python
What is the default TLS version of the python requests module?
A beginner's summary of Python machine learning is super concise.
Initial setting of Mac ~ Python (pyenv) installation is the fastest
Find the eigenvalues of a real symmetric matrix in Python
[Data science memorandum] Confirmation of the contents of DataFrame type [python]
A Python script that compares the contents of two directories
Is there a secret to the frequency of pi numbers?
A record of patching a python package
[Python] What is a zip function?
[Python] What is a with statement?
The story of Python and the story of NaN
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
Is the probability of precipitation correct?
A brief summary of Python collections
[Python] What is @? (About the decorator)