Re: [Pyparsing] parsing with operatorPrecedence takes too much time
Brought to you by:
ptmcg
From: Ralf S. <sc...@gm...> - 2008-04-03 11:25:34
|
> > python 2.6 won't let you call hash() on an object which implements it's > own __eq__, but doesn't implement __hash__. This is something you might like > to fix in an upcoming release.. > I will try to fix that issue and will send you a patch... > I'm now using the following workaround: if sys.version_info>=(2,6): ParserElement.__hash__ = lambda self: hash(id(self)) - ralf |