mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
correctly lookup __trunc__ and __floor__
This commit is contained in:
parent
6e73b19747
commit
8bb9cde6c0
3 changed files with 17 additions and 20 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import builtins
|
||||
import sys
|
||||
import types
|
||||
import math
|
||||
import unittest
|
||||
|
||||
from copy import deepcopy
|
||||
|
|
@ -1578,6 +1579,8 @@ order (MRO) for bases """
|
|||
("__exit__", run_context, swallow, set(), {"__enter__" : iden}),
|
||||
("__complex__", complex, complex_num, set(), {}),
|
||||
("__format__", format, format_impl, set(), {}),
|
||||
("__floor__", math.floor, zero, set(), {}),
|
||||
("__trunc__", math.trunc, zero, set(), {}),
|
||||
]
|
||||
|
||||
class Checker(object):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue