Re: What does this "See help(type(self)) for accurate signature." actually mean?

2026-03-16 Thread Jon Ribbens via Python-list
On 2026-03-15, Chris Green wrote: > I see this message in several places in the help() output for gpiod: > "See help(type(self)) for accurate signature.", but I can't work out > what I actually need to type into help() to get a result. > > So, for example, I say 'help("gpiod.line_settings")', I se

Re: What does this "See help(type(self)) for accurate signature." actually mean?

2026-03-16 Thread Left Right via Python-list
Yeah... that's not the best way to communicate it. From the output I can't tell if gpiod.line_settings is a type or an instance of type. Anyways. This message is "inherited", i.e. the author of the library didn't intend for it to show up, probably didn't even know you'll see it. And, in your specif

Re: What does this "See help(type(self)) for accurate signature." actually mean?

2026-03-16 Thread Chris Green
Lawrence D’Oliveiro wrote: > On Sun, 15 Mar 2026 09:05:08 +, Chris Green wrote: > > > I see this message in several places in the help() output for gpiod: > > "See help(type(self)) for accurate signature.", but I can't work out > > what I actually need to type into help() to get a result. > >

Re: What does this "See help(type(self)) for accurate signature." actually mean?

2026-03-16 Thread Jon Ribbens via Python-list
On 2026-03-16, Stefan Ram wrote: > Jon Ribbens wrote or quoted: >> I don't know why it says "type(self)", >>because help(foo) where 'foo' is an instance of a class 'xyz' >>seems to display the same as help(xyz) anyway. > >|Python 3.14 > >|>>> import types > >|>>> self = ty