5.1 Arithmetic conversions

When a description of an arithmetic operator below uses the phrase ``the numeric arguments are converted to a common type,'' the arguments are coerced using the coercion rules listed at the end of chapter 3. If both arguments are standard numeric types, the following coercions are applied:

Some additional rules apply for certain operators (e.g., a string left argument to the `%' operator). Extensions can define their own coercions.


Send comments on this document to python-docs@python.org.