Re: [PyQt] Missing method for QByteArray and Python3?

2010-01-10 Thread Phil Thompson
On Sat, 9 Jan 2010 18:33:32 +0100, detlev det...@die-offenbachs.de wrote: Hi, really often I have this kind of code in my application when it comes to converting a QByteArray to s string under Python 3.1. s = bytes(QByteArray).decode() In Python 2 one could use s =

Re: [PyQt] Missing method for QByteArray and Python3?

2010-01-10 Thread detlev
On Sonntag, 10. Januar 2010, Phil Thompson wrote: On Sat, 9 Jan 2010 18:33:32 +0100, detlev det...@die-offenbachs.de wrote: Hi, really often I have this kind of code in my application when it comes to converting a QByteArray to s string under Python 3.1. s = bytes(QByteArray).decode()

Re: [PyQt] Missing method for QByteArray and Python3?

2010-01-10 Thread Phil Thompson
On Sun, 10 Jan 2010 14:05:36 +0100, detlev det...@die-offenbachs.de wrote: On Sonntag, 10. Januar 2010, Phil Thompson wrote: On Sat, 9 Jan 2010 18:33:32 +0100, detlev det...@die-offenbachs.de wrote: Hi, really often I have this kind of code in my application when it comes to

Re: [PyQt] Missing method for QByteArray and Python3?

2010-01-10 Thread detlev
On Sonntag, 10. Januar 2010, Phil Thompson wrote: On Sun, 10 Jan 2010 14:05:36 +0100, detlev det...@die-offenbachs.de wrote: On Sonntag, 10. Januar 2010, Phil Thompson wrote: On Sat, 9 Jan 2010 18:33:32 +0100, detlev det...@die-offenbachs.de wrote: Hi, really often I have this

[PyQt] Missing method for QByteArray and Python3?

2010-01-09 Thread detlev
Hi, really often I have this kind of code in my application when it comes to converting a QByteArray to s string under Python 3.1. s = bytes(QByteArray).decode() In Python 2 one could use s = unicode(QByteArray) to get the same result. Did I miss something or could QByteArray get a