Raymond Hettinger added the comment:

> check parameters before compute the result is simple

Handling the general case (all sequences and all operators) isn't really 
simple.  It also involves doing more computations and making more assumptions 
than we want to do in this code (it is not a great place to be  running code 
that could raise exceptions, trigger GC, etc).

I admire your inclination to "fix" this but doing so makes it slower and more 
fragile.  This code has worked well for a long time and we should be reluctant 
to muck with it just to handle an arcane case that has a trivially easy 
work-around.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21074>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to