[issue5109] array.array constructor very slow when passed an array object.

Alexander Belopolsky report at bugs.python.org
Tue Jan 11 23:07:55 CET 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

Committed in revision 87942.

@Georg: Yes, I ran coverage and all branches are covered.

@Meador: I don't think the old len calculation could handle the case of array object in initial.  In any case, I don't find the new code much more complicated than the old one.  To the contrary, a chain of simple if-else looks cleaner than the original 2-line boolean expression.

----------

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


More information about the Python-bugs-list mailing list