Use à Python 2 module with Python 3

Robert Kern robert.kern at gmail.com
Wed Mar 11 17:36:11 EDT 2015


On 2015-03-11 19:31, Michael Torrie wrote:
> On 03/11/2015 01:29 PM, Chris Warrick wrote:
>> On Wed, Mar 11, 2015 at 8:20 PM, Michael Torrie <torriem at gmail.com> wrote:
>>> My biggest complaint with PySide is that for historical reasons (looking
>>> at you, PyQt), it does not use pep8 naming conventions, which makes for
>>> some really ugly function and method names.
>>
>> This isn’t PyQt’s fault.  Both are more-or-less straight bindings to
>> the underlying C++ Qt library, which does not follow Python’s naming
>> conventions.
>
> Yes, but they could have simply converted the native Qt names to pep8.
> Particularly when the bindings are automatically generated.

It is *extremely* helpful to have the names be the same in both C++ and PySide 
as the documentation uses the C++ names, as well as every Googleable 
conversation about Qt on the internet. It would be unnecessarily crippling to 
change the names to satisfy a purely optional style guide.

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco




More information about the Python-list mailing list