python 2 coercion

From: Holger Joukl (Holger.Joukl_at_LBBW.de)
Date: 08/31/04


To: python-list@python.org
Date: Tue, 31 Aug 2004 17:14:25 +0200

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.



Relevant Pages

  • Re: Re: python 2.3.3 setup.py: why adding sys.prefix to include_dir, libdir? [LBBW: checked]
    ... ### my target installation directoris put into library_dirs/include_dirs. ... 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 ... unauthorized copying and transmission is forbidden. ...
    (comp.lang.python)
  • Re: AOP and metaclasses [LBBW: checked]
    ... Maybe you could use another approach, taken from the python cookbook, ... the idea behind metaclasses, I cant find a way to use AOP in a dynamic ... Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde, ... unauthorized copying and transmission is forbidden. ...
    (comp.lang.python)
  • Re: Re: Memory Leak [LBBW: checked]
    ... At least if their refcount goes to zero (you do not hand a reference to ... 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 ... unauthorized copying and transmission is forbidden. ...
    (comp.lang.python)
  • Re: Re: Problem with threads and signals
    ... Sebastian wrote: ... the shutdown function does not get called, it seems the signal gets lost ... Empfänger sind oder falls diese E-Mail irrtümlich an Sie adressiert wurde, ... unauthorized copying and transmission is forbidden. ...
    (comp.lang.python)
  • Re: Urgent:help needed
    ... lib-dynload/are with the extension of .sl.I found at a FAQ,may be read ... 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 ... unauthorized copying and transmission is forbidden. ...
    (comp.lang.python)