[issue16527] (very) long list of elif causes segfault

Christian Heimes report at bugs.python.org
Thu Nov 22 00:50:51 CET 2012


Christian Heimes added the comment:

Nice catch! How did you notice the issue? I hope you didn't use thousands of elifs in some code. It's going to perform horrible slow with O(n).

I'll see if we can fix the problem easily. As this is clearly a pathological case I consider a patch as "nice to have" and not as "required". Nobody sane write a elif chain with nearly 25 thousands elif. ;)

----------
nosy: +christian.heimes

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16527>
_______________________________________


More information about the Python-bugs-list mailing list