[PyKDE] ANN: SIP/PyQt v3.2rc1

ian reinhart geiser geiseri at yahoo.com
Tue Apr 16 21:03:54 BST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tuesday 16 April 2002 03:50 pm, Phil Thompson wrote:
> ian reinhart geiser wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
[...]
> >
> > How much will this break when I upgrade if I am not using threads in my
> > wrapped code?   Are there issues with using Python21 instead of 2.2?
>
> Thinking about it, existing applications should be fine if you don't
> make the necessary changes. You also won't have a problem if you are
> using SIP but not PyQt.
>
Excellent, I am testing now and will report results.  I have non PyQt derived 
bindings and PyQt derived bindings so it should be very easy to locate bugs 
if there are any left in the QT C module.

> The change that's required is to surround all calls to C++ functions in
> the library being wrapped with
> Py_BEGIN_ALLOW_THREADS/Py_END_ALLOW_THREADS. There is a similar
> requirement for %VirtualCode using
> SIP_BLOCK_THREADS/SIP_UNBLOCK_THREADS. As usual, the best way to
> understand this is to study the PyQt code.
>
> The main person this is going to affect is Jim with PyKDE.
Hehe, yeah and me in a few days :P
I am trying to get some of the KParts/PyKDE stuff in more mainstream use in 
KDE.  Let me tell you its a trip... All Python or All C++ is good, when you 
start mixing the fun begins...

>
> > I know the conversion from 3.0 -> 3.1 messed me up pretty bad with my
> > build scripts.  Do I need to regenerate my bindings?  Will the
> > regenerated bindings break in new and interesting ways?  Is there a way
> > to backport the DLL and the QStringList changes to 3.1 to keep the bugs
> > to a minimum?
>
> You will need to regenerate your bindings.

Okay I did that, and I included the -D_SIP_MAKE_MODULE_DLL so I should be good 
to go.  

Thanks
- -ian reinhart geiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8vHWTPy62TRm8dvgRAoxTAJ9pC9HP2OOLra3E+bsEd1Ac6TwVowCgkOCm
w4cF8CEXwmrcSIg4bdvcz3U=
=RPmO
-----END PGP SIGNATURE-----


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





More information about the PyQt mailing list