Re: [PyQt] QHostAddress is missing a method
On Mittwoch, 27. Juli 2011, Phil Thompson wrote: > On Wed, 27 Jul 2011 18:57:53 +0200, Detlev Offenbach > > wrote: > > On Dienstag, 26. Juli 2011, Phil Thompson wrote: > >> On Sat, 16 Jul 2011 18:11:04 +0200, Detlev Offenbach > >> > >> wrote: > >> > Hello, > >> > > >> > I think the QHostAddress mappings are missing the method > >> > >> "toIPv6Address". > >> > >> > If I > >> > am right, would it be possible to add it? > >> > >> What's the most useful way to represent it? Would anything be better > > than > > >> the obvious 16 byte string? > >> > >> Phil > >> ___ > >> PyQt mailing listPyQt@riverbankcomputing.com > >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > > > The Qt docs say: > > > > Returns the IPv6 address as a Q_IPV6ADDR structure. The structure > > consists > > > of > > 16 unsigned characters. > > > > So in Python it should return a list (or tuple if it should be > > immutable) > > > of > > 16 integers. > > Are you suggesting a list because that is the closest equivalent in > Python? If so I would disagree. > > Or are you suggesting a list because of how you want to use the value? I should have thought a second longer. A 16 int tuple would be best (as you already implemented). Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QHostAddress is missing a method
On Sat, 16 Jul 2011 18:11:04 +0200, Detlev Offenbach wrote: > Hello, > > I think the QHostAddress mappings are missing the method "toIPv6Address". > If I > am right, would it be possible to add it? Tonight's snapshot. Implemented a 16-tuple of ints - using a str/bytes conflicts with the QString signatures. Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QHostAddress is missing a method
On Wed, 27 Jul 2011 18:57:53 +0200, Detlev Offenbach wrote: > On Dienstag, 26. Juli 2011, Phil Thompson wrote: >> On Sat, 16 Jul 2011 18:11:04 +0200, Detlev Offenbach >> >> wrote: >> > Hello, >> > >> > I think the QHostAddress mappings are missing the method >> >> "toIPv6Address". >> >> > If I >> > am right, would it be possible to add it? >> >> What's the most useful way to represent it? Would anything be better than >> the obvious 16 byte string? >> >> Phil >> ___ >> PyQt mailing listPyQt@riverbankcomputing.com >> http://www.riverbankcomputing.com/mailman/listinfo/pyqt > > The Qt docs say: > > Returns the IPv6 address as a Q_IPV6ADDR structure. The structure consists > of > 16 unsigned characters. > > So in Python it should return a list (or tuple if it should be immutable) > of > 16 integers. Are you suggesting a list because that is the closest equivalent in Python? If so I would disagree. Or are you suggesting a list because of how you want to use the value? Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QHostAddress is missing a method
On Dienstag, 26. Juli 2011, Phil Thompson wrote: > On Sat, 16 Jul 2011 18:11:04 +0200, Detlev Offenbach > > wrote: > > Hello, > > > > I think the QHostAddress mappings are missing the method > > "toIPv6Address". > > > If I > > am right, would it be possible to add it? > > What's the most useful way to represent it? Would anything be better than > the obvious 16 byte string? > > Phil > ___ > PyQt mailing listPyQt@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt The Qt docs say: Returns the IPv6 address as a Q_IPV6ADDR structure. The structure consists of 16 unsigned characters. So in Python it should return a list (or tuple if it should be immutable) of 16 integers. Regards, Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
Re: [PyQt] QHostAddress is missing a method
On Sat, 16 Jul 2011 18:11:04 +0200, Detlev Offenbach wrote: > Hello, > > I think the QHostAddress mappings are missing the method "toIPv6Address". > If I > am right, would it be possible to add it? What's the most useful way to represent it? Would anything be better than the obvious 16 byte string? Phil ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[PyQt] QHostAddress is missing a method
Hello, I think the QHostAddress mappings are missing the method "toIPv6Address". If I am right, would it be possible to add it? Regards, Detlev -- Detlev Offenbach det...@die-offenbachs.de ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt