Re: access to the namespace of a function from within its invocation

2007-07-13 Thread Bruno Desthuilliers
Poor Yorick a écrit : > In the example below, the attribute "data" is added to a function > object. "me" can be used to get the function when it is invoked using > an identifier that matches the "co_name" attribute of function's code > object. Can anyone conjure an example of accessing fun2.da

Re: access to the namespace of a function from within its invocation

2007-07-12 Thread John Nagle
Poor Yorick wrote: > In the example below, the attribute "data" is added to a function > object. There are these things called "classes" which might be useful in this situation. Python has some gratitious semantics that come with implementations in which everything is a dictionary. Do