python 2 coercion

H

Holger Joukl

Dear python list,
What happens (on the C level) if the python interpreter executes
a statement like
if <some strange extension type> == None:
....

Just a hint to the "entry point" would be great... What function/method
is called for the two operands?
I guess it is s.th. like PyObject_Compare or a type objects
tp_compare method, but am a bit lost.

Problem is I need to get an older number extension to work with python
2.3.4.
It worked with 1.5.2, and everything still seems to work except for ==
comparison.
I suspect that somewhere on the way some coercion is tried but does not
work,
but fail to see the steps that lead to this situation.

Thanks,
Holger

Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der angegebene
Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde,
verständigen Sie bitte den Absender sofort und löschen Sie die E-Mail
sodann. Das unerlaubte Kopieren sowie die unbefugte Übermittlung sind nicht
gestattet. Die Sicherheit von Übermittlungen per E-Mail kann nicht
garantiert werden. Falls Sie eine Bestätigung wünschen, fordern Sie bitte
den Inhalt der E-Mail als Hardcopy an.

The contents of this e-mail are confidential. If you are not the named
addressee or if this transmission has been addressed to you in error,
please notify the sender immediately and then delete this e-mail. Any
unauthorized copying and transmission is forbidden. E-Mail transmission
cannot be guaranteed to be secure. If verification is required, please
request a hard copy version.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,190
Members
46,740
Latest member
AdolphBig6

Latest Threads

Top