Re: [pygccxml-development] Another performance tweak
Brought to you by:
mbaas,
roman_yakovenko
|
From: Roman Y. <rom...@gm...> - 2006-08-27 19:43:24
|
On 8/27/06, Allen Bierbaum <al...@vr...> wrote:
> Roman Yakovenko wrote:
>
> > On 8/27/06, Allen Bierbaum <al...@vr...> wrote:
> >
> >> I had trouble putting it into goodies as an override because it looks
> >> like the method comes in through multiple module aliases. In other
> >> words I haven't found a way to override all the of the uses of the
> >> method.
> >
> >
> > Well, global variable will do the job :-(. Can you implement it?
> >
> How would a global variable fix a symbol alias issue?
def create_identifier_smart( ... )
...
def create_identifier_quick( ... )
...
CREATE_IDENTIFIER_USE_SMART = True
def create_identifier( ... ):
if CREATE_IDENTIFIER_USE_SMART:
...
else:
...
Or another solution is to add function in the same module as create_identifier
def setup_create_identifier( ... ):
replace the reference of create_identifier with another one
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|