What is the numerical type builtins about?

Asked

Viewed 95 times

3

I read in the book Python for Developers: Approaches Python 3.3 the following excerpt:

In addition to the numeric type builtins of the interpreter, in the library Python standard there are several modules dedicated to implementing other types and mathematical operations.

What is this numerical type builtins?

2 answers

4


Built-in are the built-in Python libraries, you can see all the existing ones on official documentation

Standard libraries can be used without installing any external modules. For example, to use regular expressions in python you can use the re module:

import re

Nothing external language has been installed, but the module is present.

Transcribing builtin can be 'embedded'. So they are libraries/modules embedded in the language itself.

1

It is an attack on the Portuguese language. But perhaps it is a culpable attack, because it may be the author’s lack of linguistic knowledge.

Built-in is an English expression that is usually translated as "embedded(a)". It means that something about what you talk about is mounted or built into something bigger. For example, a cabinet built into a wall, or the hydraulic steering of a car.

In computing it is common to find another spelling, builtin, which has the same meaning. In this case, it can also be translated as "shipped", "delivered", "made available" etc. depending on the context.

What Luiz Eduardo Borges meant by the excerpt in the question is that there is a numerical type that is shipped/delivered together with Python - this type is part of the Python implementation. So, if you have the Python interpreter installed, you can already use this type without downloading anything else.

There are modules to the part that introduce new types and mathematical operations that are not part of Python. To work with these types, you need to use libraries that are not shipped/delivered together with Python, and so these types are not builtin.

TL;DR: this part of the Wikipedia:

a built-in type is a data type for which the Programming language provides built-in support

In a very free translation:
"An embedded type is a type of data for which the programming language is supported without needing anything else".

Browser other questions tagged

You are not signed in. Login or sign up in order to post.