Home

Paul Rubin wrote:
> Hmm, it's a pain that there's no clean way to get at the current
> module. PEP 3130 shows some icky and unreliable ways, e.g.
>
> func = getattr(sys.modules[__name__], 'f')
>
> PEP 3130's goal was to add a clean way to do this. Unfortunately it
> was rejected.

Yes, this is the essence of the problem. At least I'm not the only one
to have needed (or at least wanted) this.

James

previous
next

Re: QPicture and Qpainter PyQt4
Re: I earn $36800 a month with google adsense
Re: calling the function of one class from another class
Re: C Source Code Generator For Test Cases
Re: Filemaker interactions
Akogo
Krwinka
Mam Marzenie
Fundacja Hobbit
Kidprotect