Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #45758 > unrolled thread
| Started by | Carlos Nepomuceno <carlosnepomuceno@outlook.com> |
|---|---|
| First post | 2013-05-23 02:49 +0300 |
| Last post | 2013-05-23 02:49 +0300 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
RE: file I/O and arithmetic calculation Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-23 02:49 +0300
| From | Carlos Nepomuceno <carlosnepomuceno@outlook.com> |
|---|---|
| Date | 2013-05-23 02:49 +0300 |
| Subject | RE: file I/O and arithmetic calculation |
| Message-ID | <mailman.1980.1369266640.3114.python-list@python.org> |
---------------------------------------- > From: oscar.j.benjamin@gmail.com [...] > > Do you find this code easy to read? I wouldn't write something like > this and I certainly wouldn't use it when explaining something to a > beginner. > > Rather than repeated list comprehensions you should consider using a > single loop e.g.: > > for filename in filenames: > # process each file > > This will make the code a lot simpler. > > > Oscar Indeed, but for that you can use Pascal. List comprehensions it's what Python does best! The code is pretty obvious to me, I mean there's no obfuscation at all.
Back to top | Article view | comp.lang.python
csiph-web