On 30/04/2007 9.11, Mark Summerfield wrote:
But I agree with the general point that using "import *" is reasonable when you have a large library like PyQt4---providing that library has sensible export behaviour. For example, I _assume_ that the PyQt4 libraries will only export things with names matching /Q[A-Z]\w+/ and would expect anything that didn't have such a name either not to be exported or to have a special prefix such as "qt" to avoid unpleasant surprises.
Well, I had always assumed this as well, but it looks like we were both wrong :) The QTextStream non member functions (http://doc.trolltech.com/4.2/qtextstream.html#related-non-members) are not qualified in any way, and, worse, there are two named "hex" and "oct".
Anyway, not that I care specifically: I'm going to prod the trolls about this issue (it's really unconvenient in C++ as well).
-- Giovanni Bajo _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
