Skip to content

Tab completion invokes property #3053

@dhalbert

Description

@dhalbert

Hitting tab to auto-complete a property name invokes the property.

testtab.py:

class C:
    @property
    def oops(self):
        print("OOPS!")

in REPL:

Adafruit CircuitPython 5.4.0-beta.1-37-g2b652e1d1-dirty on 2020-06-19; Adafruit Metro M4 Express with samd51j19
>>> import testtab
>>> c = testtab.C()
>>> c.oops
OOPS!
>>> c.oo<TAB>OOPS!     # <TAB> is where I hit the tab key
ps

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions