Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker ndbeck...@gmail.com wrote: A bit nasty, since I see (and follow) lots of examples that say: from PyQt4.QtCore import * This redefines the builtin hex. Check the Roadmap. Appending a _ just to make an unpleasant style of

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Giovanni Bajo
On mer, 2009-01-07 at 09:26 +, Chris Withers wrote: Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker ndbeck...@gmail.com wrote: A bit nasty, since I see (and follow) lots of examples that say: from PyQt4.QtCore import * This redefines the builtin hex.

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Phil Thompson wrote: This has been discussed thousands of times and it starts getting annoying. Yes, it is annoying that all the example code continues to be in a form that confuses users trying to learn PyQt. *None* of the PyQt4 examples uses star imports. Hmmm, apologies then, must have

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Giovanni Bajo
On mer, 2009-01-07 at 10:33 +, Chris Withers wrote: However, like most people, I learn by example, and when the examples contain exclusively start imports, they are much less helpful than they could be. I don't understand you. Are you really saying that it's harder to understand that

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Adeodato Simó
* Giovanni Bajo [Wed, 07 Jan 2009 11:06:09 +0100]: Appending the underscore to those symbols is a perfect fix IMO. I realize this is a matter of preference, but I'd suggest using qbin() and qhex() rather than the underscore: I think it makes more sense for stuff that can be imported into the

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Phil Thompson
On Wed, 07 Jan 2009 10:33:00 +, Chris Withers ch...@simplistix.co.uk wrote: Giovanni Bajo wrote: On mer, 2009-01-07 at 09:26 +, Chris Withers wrote: Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker ndbeck...@gmail.com wrote: A bit nasty, since I see (and follow)

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Giovanni Bajo wrote: On mer, 2009-01-07 at 09:26 +, Chris Withers wrote: Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker ndbeck...@gmail.com wrote: A bit nasty, since I see (and follow) lots of examples that say: from PyQt4.QtCore import * This redefines the builtin

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Chris Withers
Neal Becker wrote: If the pyqt examples did not use *, and if you could import a useful enough subset without doing that, I'd agree. If the suggestion is to explicitly qualify everything, I don't think that's reasonable. Yes, python, well know for believing that implicit is better than

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Mark Summerfield
On 2009-01-07, Chris Withers wrote: Phil Thompson wrote: This has been discussed thousands of times and it starts getting annoying. Yes, it is annoying that all the example code continues to be in a form that confuses users trying to learn PyQt. *None* of the PyQt4 examples uses

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Sundance
Adeodato Simó wrote: If you see in the middle of a program hex_(foo), you may wonder where that came from, whereas qhex(foo) is going to be rather obvious. Greetings all, Might I humbly second this motion? I do understand the usual reservations about star-imports (being the kind of guy that

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-07 Thread Jim Bublitz
On Wednesday 07 January 2009 05:27:06 am Sundance wrote: Adeodato Simó wrote: If you see in the middle of a program hex_(foo), you may wonder where that came from, whereas qhex(foo) is going to be rather obvious. Greetings all, Might I humbly second this motion? I do understand the usual

[PyQt] PyQt4.Qtcore defines 'hex'

2009-01-06 Thread Neal Becker
A bit nasty, since I see (and follow) lots of examples that say: from PyQt4.QtCore import * This redefines the builtin hex. ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-06 Thread Phil Thompson
On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker ndbeck...@gmail.com wrote: A bit nasty, since I see (and follow) lots of examples that say: from PyQt4.QtCore import * This redefines the builtin hex. Check the Roadmap. Phil ___ PyQt mailing list

Re: [PyQt] PyQt4.Qtcore defines 'hex'

2009-01-06 Thread David Boddie
On Tue Jan 6 22:05:41 GMT 2009, Phil Thompson wrote: On Tue, 06 Jan 2009 14:19:50 -0500, Neal Becker ndbecker2 at gmail.com This redefines the builtin hex. Check the Roadmap. http://www.riverbankcomputing.com/software/pyqt/roadmap ...for those not following the site updates so closely.