[Pyrex] C versus Python access

Robert Bradshaw robertwb at math.washington.edu
Thu Nov 1 23:08:56 CET 2007


On Nov 1, 2007, at 2:58 PM, Greg Ewing wrote:

> Robert Bradshaw wrote:
>> one could  maybe look at the traceback to detect where one was  
>> called from
>
> That sounds rather too hairy for my liking.

Yeah, I abandoned that idea pretty quick...

>> do you have any ideas?
>
> Not really. Perhaps you could look into how PyObjC deals with
> this. They must have encountered similar issues in the mapping
> between Python and ObjC methods.

I ended up creating a module-level global flag which, when set, skips  
the override dispatching code, as explained in my previous email, and  
that actually seems to work pretty well.

- Robert





More information about the Pyrex mailing list