[New-bugs-announce] [issue29855] The traceback compounding of RecursionError fails to work with __get__

assume_away report at bugs.python.org
Sun Mar 19 19:37:32 EDT 2017


New submission from assume_away:

class Property:
    def __init__(self, getter):
        self.getter = getter

    def __get__(self, instance, cls):
        return self.getter(cls if instance is None else instance)

class MyClass:
    @Property
    def something(cls):
        return cls.something

Calling MyClass.something will show all 990+ RecursionError message.

----------
messages: 289867
nosy: assume_away
priority: normal
severity: normal
status: open
title: The traceback compounding of RecursionError fails to work with __get__
type: behavior
versions: Python 3.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue29855>
_______________________________________


More information about the New-bugs-announce mailing list