[Python-ideas] Why operators are useful

Greg Ewing greg.ewing at canterbury.ac.nz
Sat Mar 16 19:45:19 EDT 2019


Richard Damon wrote:
> Rémi, I believe, is assuming in their example that by defining the field
> of mathematics being used, there is at least an implicit definition (if
> not actually explicit as such a statement would typically be preceded by
> definitions) definition of the types of the variables.

In Python, we have such implicit definitions in the form
of comments, and inferences from the way things are used.

> when looking at a piece of code you
> don't necessarily know the types of the objects being used

And if you look at an equation from a mathematics text without
the context in which it appears, you won't always know what
it means either.

-- 
Greg


More information about the Python-ideas mailing list