Re: [Pyparsing] parsing with operatorPrecedence takes too much time
Brought to you by:
ptmcg
From: Paul M. <pt...@au...> - 2008-04-03 12:08:30
|
Ralf - Thanks! I can make this patch easily in the next release. Is there any harm in just defining this function for all versions, instead of conditionalizing for v2.6? -- Paul -----Original Message----- From: pyp...@li... [mailto:pyp...@li...] On Behalf Of Ralf Schmitt Sent: Thursday, April 03, 2008 6:26 AM To: Paul McGuire Cc: pyp...@li... Subject: Re: [Pyparsing] parsing with operatorPrecedence takes too much time > > 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 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Pyparsing-users mailing list Pyp...@li... https://lists.sourceforge.net/lists/listinfo/pyparsing-users |