mirror of
https://github.com/python/cpython.git
synced 2025-10-28 01:00:34 +00:00
Remove the delegation of `int` to the `__trunc__` special method: `int` will now only delegate to `__int__` and `__index__` (in that order). `__trunc__` continues to exist, but its sole purpose is to support `math.trunc`. --------- Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> |
||
|---|---|---|
| .. | ||
| compound_stmts.rst | ||
| datamodel.rst | ||
| executionmodel.rst | ||
| expressions.rst | ||
| grammar.rst | ||
| import.rst | ||
| index.rst | ||
| introduction.rst | ||
| lexical_analysis.rst | ||
| simple_stmts.rst | ||
| toplevel_components.rst | ||