Re: [pygccxml-development] Possible infinite loop bug
Brought to you by:
mbaas,
roman_yakovenko
From: Gustavo C. <gjc...@gm...> - 2008-08-25 22:58:06
|
2008/8/25 Roman Yakovenko <rom...@gm...> > On Mon, Aug 25, 2008 at 5:57 PM, Gustavo Carneiro <gjc...@gm...> > wrote: > > I just added this simple definition to PyBindGen's unit tests: > > > > std::map<std::string, int> get_map (); > > > > Afterwards, pygccxml (0.9.5) just enters what appears to be an inifinite > > loop when I call container_traits.element_type(). > > > > > > Traceback (most recent call last): > > File "../tests/foomodulegen-auto.py", line 51, in <module> > > main() > > ... > > KeyboardInterrupt > > Looks like a bug. I tested your example and everything works fine to > me, hovewer I tested it for current SVN. Sorry, I just discovered it's not a bug. It's not infinite recursion, just very slow :P It turns out that pygccxml.declarations.container_traits.xxx_traits.element_type() is rather slow and I was calling it more often than I should. Now, I am left with the old problem of distinguishing between sequence and mapping containers... </hint> -- Gustavo J. A. M. Carneiro INESC Porto, Telecommunications and Multimedia Unit "The universe is always one step beyond logic." -- Frank Herbert |