[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] QtProperty docstrings
From: Javier_Santacruz_López-Cepero <jsl () taric ! es>
Date: 2015-10-26 10:43:47
Message-ID: CABxWrkujXNT+EQWHJ2xp7=9tZpqyGCMhDT7xUqM+0RjQ=ftNEQ () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
You're right, its perfectly ok, I was checking against the instance object
instead of the class, sorry for the noise.
Widget.prop.__doc__
'from docstring'
Thanks
2015-10-26 10:15 GMT+01:00 Phil Thompson <phil@riverbankcomputing.com>:
> On 26 Oct 2015, at 8:43 a.m., Javier Santacruz L=C3=B3pez-Cepero <jsl@tar=
ic.es>
> wrote:
> >
> > Hi Phil,
> >
> >
> > Thank you for the fix! :)
> >
> > However, I've got to install PyQt 5.5.1 and got the following behaviour=
;
> When repeating my previous example, I get indeed a docstring, but its
> always the same and it comes from the standard docstring `str.__doc__`.
>
> ...which is what you would expect. In your previous example you were
> printing the docstring of the property, ie. Widget.prop.__doc__. In this
> example you are printing the docstring of the *value* of the property, ie=
.
> w.prop.__doc__ which is a str.
>
> Phil
[Attachment #5 (text/html)]
<div dir="ltr">You're right, its perfectly ok, I was checking against the \
instance object instead of the class, sorry for the noise.<br><div><br> \
Widget.prop.__doc__<br> 'from \
docstring'<br><br></div><div>Thanks<br></div><div><br><br><br></div><div \
class="gmail_extra"><br><div class="gmail_quote">2015-10-26 10:15 GMT+01:00 Phil \
Thompson <span dir="ltr"><<a href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>></span>:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><span>On 26 Oct 2015, at 8:43 a.m., Javier Santacruz \
López-Cepero <<a href="mailto:jsl@taric.es" target="_blank">jsl@taric.es</a>> \
wrote:<br> ><br>
> Hi Phil,<br>
><br>
><br>
> Thank you for the fix! :)<br>
><br>
> However, I've got to install PyQt 5.5.1 and got the following behaviour; \
When repeating my previous example, I get indeed a docstring, but its always the same \
and it comes from the standard docstring `str.__doc__`.<br> <br>
</span>...which is what you would expect. In your previous example you were printing \
the docstring of the property, ie. Widget.prop.__doc__. In this example you are \
printing the docstring of the *value* of the property, ie. w.prop.__doc__ which is a \
str.<br> <span><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div></div>
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic