[Python-Dev] Help with warnings not being raised

Jesus Cea jcea at jcea.es
Fri Nov 5 01:26:31 CET 2010


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

Hi all. I just committed r86180, but there is something I don't like.

If you read the tests I did (by hand)at
http://bugs.python.org/issue9675#msg120462 , python should show the
unraisable and THEN the "C API unavailable" warning, but it is not
showing the warning.

I don't know why.

I have committed the patch because it solves the original bug, but I am
pretty uncomfy not knowing what Python is not doing exactly what I want...

Any idea?.

Sorry for wasting your time with probably trivial stuff, but I need to
know... :-?

PS: I am using "PyErr_Warn()", that is deprecated, because this code
should work in Python 2.3 too. I tried "PyErr_WarnEx()" too, it didn't
work either.

- -- 
Jesus Cea Avion                         _/_/      _/_/_/        _/_/_/
jcea at jcea.es - http://www.jcea.es/     _/_/    _/_/  _/_/    _/_/  _/_/
jabber / xmpp:jcea at jabber.org         _/_/    _/_/          _/_/_/_/_/
.                              _/_/  _/_/    _/_/          _/_/  _/_/
"Things are not so easy"      _/_/  _/_/    _/_/  _/_/    _/_/  _/_/
"My name is Dump, Core Dump"   _/_/_/        _/_/_/      _/_/  _/_/
"El amor es poner tu felicidad en la felicidad de otro" - Leibniz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQCVAwUBTNNPN5lgi5GaxT1NAQKt9gP/VbS1Fycg7SBBy9nTFhvw7NOAOSnxM8Dt
B0Wq/I9Rnr+YOYGpCIvgVut8CuqT3oVRtRPeBnajjinEo7rcZSi79rQlcMcNq1VS
JwQELp9bd3Az5Xmbpf+FeKNBE8K+1bpezAcGHv/QTsPXSIsU+fTH1sKwXoj9S4Vg
CMUXTP9InkE=
=6LVa
-----END PGP SIGNATURE-----


More information about the Python-Dev mailing list