[issue28975] os.walk generator vs

2016-12-14 Thread Colin David Chen
New submission from Colin David Chen: os.walk in 3.6rc1 (Windows) appears to generate different output depending on its invocation. In the first invocation, I use the generator to yield one result at a time: source = "C:\\cdchen_data\\downloads\\python-xlib-0.18\\" texasranger = os

[issue28975] os.walk generator giving inconsistent results

2016-12-14 Thread Colin David Chen
Changes by Colin David Chen : -- title: os.walk generator vs -> os.walk generator giving inconsistent results ___ Python tracker <http://bugs.python.org/issu

[issue28975] os.walk generator giving inconsistent results

2016-12-14 Thread Colin David Chen
Colin David Chen added the comment: Ah, you're correct. The behavior is consistent if you use strings in both invocations. The Path conversion strips the final '\\'. Doc examples do use the names of directories rather than a Path object. I will close the issue. Thanks for the