New submission from Ran Benita :
The numbers.Real ABC requires the __ceil__ and __floor__ methods
(https://github.com/python/cpython/blob/v3.8.0/Lib/numbers.py#L178-L186),
however, the float type does not have them.
In regular Python, this is not a problem, because math.ceil() and math.floor
Ran Benita added the comment:
You can take it - thanks!
--
___
Python tracker
<https://bugs.python.org/issue38629>
___
___
Python-bugs-list mailing list
Unsub
New submission from Ran Benita :
One issue and one suggestion.
Issue:
The documentation of prepare() says:
> If any cycle is detected, CycleError will be raised
which is what happens. The documentation of static_order() says that
static_order() is equivalent to:
def static_order(s
Ran Benita added the comment:
Hmm I realize after the fact that since the equivalent code snippet (which is
actually the implementation) is a generator, then it is actually correct that
prepare() isn't called until it is iterated. So the documentation for this is
not incorrect.
Sti
New submission from Ran Benita :
The following program crashes with a segfault:
class Segfault:
def __getattr__(self, name):
self.unknown_attribute
instance = Segfault()
issubclass(instance, int) # int doesn't matter
Tested with Python 3.7, 3.8, 3.9rc2, and master in debug
Change by Ran Benita :
--
type: -> crash
___
Python tracker
<https://bugs.python.org/issue41909>
___
___
Python-bugs-list mailing list
Unsubscrib