Re: Strange tab completion oddity with enums?

2019-10-08 Thread Peter Otten
Piet van Oostrum wrote: > Chris Angelico writes: > >> I'm not sure what's going on here, and it's probably not actually >> enum-specific, but that's where I saw it. >> >> If you create a plain class and have an attribute with an annotation, >> you can see that: >> > class Foo: >> ...

Re: Strange tab completion oddity with enums?

2019-10-08 Thread Piet van Oostrum
Chris Angelico writes: > I'm not sure what's going on here, and it's probably not actually > enum-specific, but that's where I saw it. > > If you create a plain class and have an attribute with an annotation, > you can see that: > class Foo: > ... spam: "ham" = 1 > ... Foo.__a >

Re: Strange tab completion oddity with enums?

2019-10-07 Thread Peter Otten
Chris Angelico wrote: >> Looks like everything starting with an underscore (except class, doc, and >> module) is suppressed, probably to suppress some noise... >> > > That's why dir() shows what it does, but tab completion seems to have > some other source, as it's able to find a lot of other

Re: Strange tab completion oddity with enums?

2019-10-07 Thread Chris Angelico
On Mon, Oct 7, 2019 at 6:00 PM Peter Otten <__pete...@web.de> wrote: > > Chris Angelico wrote: > > > I'm not sure what's going on here, and it's probably not actually > > enum-specific, but that's where I saw it. > > > > If you create a plain class and have an attribute with an annotation, > > you

Re: Strange tab completion oddity with enums?

2019-10-07 Thread Peter Otten
Chris Angelico wrote: > I'm not sure what's going on here, and it's probably not actually > enum-specific, but that's where I saw it. > > If you create a plain class and have an attribute with an annotation, > you can see that: > class Foo: > ... spam: "ham" = 1 > ... Foo.__a >

Strange tab completion oddity with enums?

2019-10-06 Thread Chris Angelico
I'm not sure what's going on here, and it's probably not actually enum-specific, but that's where I saw it. If you create a plain class and have an attribute with an annotation, you can see that: >>> class Foo: ... spam: "ham" = 1 ... >>> Foo.__a Foo.__abstractmethods__ Foo.__annotations__