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

ANNOUNCE: Exscript 0.9.8
Re: function call
Re: Smart pointers and this
Re: HOWTO use a Factory
Re: Help getting to a derived class template given a pointer to a no-template base class
www.malopolaki.darmowefora.pl
gustowne meble katowice
osuszanie domow
SEO
odwiew.elblag.pl