<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div><blockquote type="cite" class=""><div class="">On 2 May 2019, at 16:57, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" class="">phil@riverbankcomputing.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">On 01/05/2019 13:02, Ümit Öztosun wrote:</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><blockquote type="cite" class="">On 1 May 2019, at 13:19, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com" class="">phil@riverbankcomputing.com</a>> wrote:<br class="">On 01/05/2019 10:55, Ümit Öztosun wrote:<br class=""><blockquote type="cite" class="">Hello,<br class="">I have encountered a weird problem using PyQt 5.12.1 and Qt 5.12. Take<br class="">the following script:<br class="">from PyQt5.QtCore import *<br class="">class A(QObject):<br class=""> flag = True<br class="">a = A()<br class="">print a.flag<br class="">This outputs QCborSimpleType.True. Boolean attribute somehow converted to<br class="">a QCborSimpleType. However, just changing the wildcard import corrects<br class="">output:<br class="">from PyQt5.QtCore import QObject<br class="">class A(QObject):<br class=""> flag = True<br class="">a = A()<br class="">print a.flag<br class="">Output is True this time.<br class="">I have tried various configurations, here are the wildcard import test<br class="">outputs: (Qt/Sip/PyQt all are compiled from source)<br class="">Ubuntu 18.04 / Qt-5.12.3 / sip-4.19.16 / PyQt5_gpl-5.12.1<br class="">=> QCborSimpleType.True<br class="">Ubuntu 18.04 / Qt-5.12.3 / sip-4.19.16 / PyQt5_gpl-5.12.2.dev1904191828<br class="">=> QCborSimpleType.True<br class="">MacOS 10.14.4 / Qt-5.12.3 / sip-4.19.16 / PyQt5_gpl-5.12.1<br class="">=> QCborSimpleType.True<br class="">Ubuntu 18.04 / Qt-5.11.3 / sip-4.19.16 / PyQt5_gpl-5.12.1<br class="">=> True<br class="">Problem only occurs while using Qt-5.12. Using Qt-5.11 brings things to<br class="">normal. AFAIK CBOR support was added in Qt 5.12 and this may be related:<br class=""><a href="https://doc.qt.io/qt-5/whatsnew512.html" class="">https://doc.qt.io/qt-5/whatsnew512.html</a><br class="">Any ideas?<br class=""></blockquote>Works fine for me (although I haven't tried it with Python v2). Weird things like this are usually build problems, mis-matched versions, old things lying around.<br class="">Phil<br class=""></blockquote>Hi Phil,<br class="">I have missed the important part; yes this was on Python 2.7. I have<br class="">spun up a new Ubuntu 18.04 VM for the tests, just to make sure build<br class="">is clean. I have build Sip-4.19.16 and PyQt5_gpl5.12.1 using Qt-5.12.3<br class="">for Python v3 after your response, and this build does not have the<br class="">mentioned problem. But Python v2 has it. Python versions used are<br class="">Python 2.7.15rc1 and Python 3.6.7.<br class=""></blockquote><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""><span style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; float: none; display: inline !important;" class="">Should be fixed in tonight's SIP snapshot.</span><br style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class=""></div></blockquote><div><br class=""></div>Hi Phil,</div><div><br class=""></div><div>I can confirm that on sip-4.19.17.dev1905021336 / PyQt5_gpl-5.12.1 / Qt-5.12.3 / Python 2.7.15 problem is fixed.</div><div><br class=""></div><div>Thanks for your help.</div><div><br class=""></div><div>Regards,</div><div>Ümit Öztosun</div><div><br class=""></div></body></html>