[PyQt] got stuck translating webftpclient example to PyQt
Moritz Warning
moritzwarning at web.de
Tue Feb 4 08:49:54 GMT 2014
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/03/2014 10:18 PM, Hans-Peter Jansen wrote:
> Dear Moritz,
>
> On Sonntag, 2. Februar 2014 20:26:27 Moritz Warning wrote:
>>
>> ok, I have switched to unicode strings.
>> Thanks for the pointer.
>
> As an author of example code, you should adhere to a good coding style even
> more closely than under other circumstances.
>
> Therefore, you should indent with 4 spaces:
> http://www.python.org/dev/peps/pep-0008/#code-lay-out.
>
> Using * imports are considered harmful:
> http://docs.python.org/3.3/howto/doanddont.html
>
> For PyQt{4,5}, it's best practise to use:
>
> from PyQt4 import QtCore, QtNetwork, QtWebKit
>
>> Anyway, I looks like the cpp example (and for that reason my python port) is
>> broken anyway. I created a minimal example. But it did not give me a clue
>> and I haven't found other code to compare to, yet.
>>
>> Only a part of the expected content is displayed (the first 512 Bytes):
>> Minimal example that demonstrates the problem:
>>
>> https://github.com/mwarning/PyQt4-Examples/blob/minimal/webftpclient/main.py
>>
>> (in case someone is interested and/or knows the answer)
>
> I've glimpsed over it, and you're right: that's a blatant bug in either the
> example or Qt itself. While I didn't harvested much success in filing Qt bugs
> in the past, but it's still the best thing to do right now.
>
> Let us know about the outcome, please.
>
> Pete
>
It is probably the same bug that was reported here:
https://bugreports.qt-project.org/browse/QTBUG-27469
I tried to bisect the error, but failed to do so yet.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iQEcBAEBAgAGBQJS8KmyAAoJECHrh56PP4wpeysH/RZUKoDJQnEW9z6B8pT0obFU
by20mxOT8z6/e0rGlmSrqNmDcXvt5ix7idyOjNrXAVhFlnBl2yUMfiwwfZcMfXA6
Ogjwc8/W0HeUoTizR0G+fblw7QeGq4I9E/8T5J3y3ceizI3K4My2gsvqq7Wx5zvw
gQjm2JfL/7w1j4PvudPmFDMyeryl63tfXCh9+IR6dfFBBkC3SIl2khtvuw3MTEwL
HcHGvBqJMhaR/AURt/5Yrmo1+WY8gcKYw20kzkcwHvAmlMZUGLWPyvmyYgRWbTtL
2qAUpfxpT9CS02SQYoDXh854wu91h9REw0p21n/ZXcE0NnEmSE2DR77EvWWAgZI=
=jtin
-----END PGP SIGNATURE-----
More information about the PyQt
mailing list