Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #102146 > unrolled thread

Duplicate Output

Started byGary Roach <gary719_list1@verizon.net>
First post2016-01-26 10:48 -0800
Last post2016-01-26 10:48 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python


Contents

  Duplicate Output Gary Roach <gary719_list1@verizon.net> - 2016-01-26 10:48 -0800

#102146 — Duplicate Output

FromGary Roach <gary719_list1@verizon.net>
Date2016-01-26 10:48 -0800
SubjectDuplicate Output
Message-ID<mailman.28.1453883934.2338.python-list@python.org>
Hi

Debian stretch OS
KDE Desktop
Code written with Kate
Run in command line with $python getFileNames.py

Code:

from os import walk
import subprocess

f = []
x = ""
for (dirpath, dirnames, filenames) in walk('.'):
     print(filenames)

This prints [<file list>][<duplicate file list>]

What am I doing wrong or how do I remove the duplicate list.

Gary R.

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web