[PyKDE] Re: QString vs PyString

Matej Cepl cepl at surfbest.net
Fri Jun 3 19:40:33 BST 2005


James Emerton wrote:
> This all leads me to thinking about the strategies used whenan API
> targeting one language is wrapped for some other language with
> different idioms and culture.  In many cases, utility types (such as
> QString, QDate[Time]) have fully capable couterparts native to the
> environment in which the developer is using.  What is the advantage to
> wrapping these types, as opposed to mapping them to native types?

And why do you have to use QString at all? Cannot you just use Python's
native strings/unicode strings? Read more about the relationship between
Python's and Qt-string machinery read
        http://www.opendocs.org/pyqt/index.lxp?lxpwrap=c2029%2ehtm

Best,

        Matej

-- 
Matej Cepl, http://www.ceplovi.cz/matej
GPG Finger: 89EF 4BC6 288A BF43 1BAB  25C3 E09F EF25 D964 84AC
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
 
It would be very good idea.
   -- Gandhi, when asked what he thinks about Western
      civilization?





More information about the PyQt mailing list