New submission from Bogdan Opanchuk <b...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue6666> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com