[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Feature request: make python's file-object and QFile interexchangable
From: Florian Bruhin <me () the-compiler ! org>
Date: 2015-10-19 20:16:35
Message-ID: 20151019201634.GQ29343 () tonks
[Download RAW message or body]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
[Attachment #2 (multipart/signed)]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
* Ilya Kulakov <kulakov.ilya@gmail.com> [2015-10-19 16:09:56 -0400]:
> Would be nice if one use QFile where one can use file-object.
I needed the same thing the other way around, i.e. using a file-like
object for a QIODevice - so I wrote a wrapper:
https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/utils/qtutils.py#L239-L383
https://github.com/The-Compiler/qutebrowser/blob/master/tests/unit/utils/test_qtutils.py#L523-L921
Maybe it's useful for someone :)
Florian
--
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
["signature.asc" (application/pgp-signature)]
[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