[New-bugs-announce] [issue21253] Difflib

Nina Zakharenko report at bugs.python.org
Wed Apr 16 17:54:46 CEST 2014


New submission from Nina Zakharenko:

When difflib.compare() is used on two moderately large sequences with little or no common elements, a RuntimeError: maximum recursion depth exceeded occurs. 

This error became apparent when testing another bug (see: issue 19217) in the AssertEquals() method of the unit test library.

A sample program to reproduce this issue in 3.4 is attached. To repo in 2.7 remove the list() wrapper from the range call.

----------
components: Library (Lib)
files: diff_bug34.py
messages: 216479
nosy: gregory.p.smith, nnja, r.david.murray
priority: normal
severity: normal
status: open
title: Difflib
type: crash
versions: Python 2.7, Python 3.4
Added file: http://bugs.python.org/file34911/diff_bug34.py

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


More information about the New-bugs-announce mailing list