[New-bugs-announce] [issue6666] List of dirs to ignore in trace.py is applied only for the first file

Bogdan Opanchuk report at bugs.python.org
Fri Aug 7 11:50:15 CEST 2009


New submission from Bogdan Opanchuk <bg at bk.ru>:

When creating a trace.Trace object or running trace.py one can specify
list of directories to ignore (ignoredirs or --ignore-dir
correspondingly). It is passed to trace.Ignore constructor, which stores
iterator to map(), applied to this list, in self._dirs. So, when
Ignore.names() execution passes to the block "for d in self._dirs:" for
the first time, iterator saves its state (in the end of the list) and
next times the code in this block is completely ignored. The result is
that 'ignoredirs' parameter does not actually work (except for the one
lucky file).

Proposed patch is attached.

----------
components: Library (Lib)
files: trace.diff
keywords: patch
messages: 91399
nosy: bogdan.opanchuk
severity: normal
status: open
title: List of dirs to ignore in trace.py is applied only for the first file
type: behavior
versions: Python 3.2
Added file: http://bugs.python.org/file14672/trace.diff

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


More information about the New-bugs-announce mailing list