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


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

RE: file I/O and arithmetic calculation

Started byCarlos Nepomuceno <carlosnepomuceno@outlook.com>
First post2013-05-23 02:49 +0300
Last post2013-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.


Contents

  RE: file I/O and arithmetic calculation Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-23 02:49 +0300

#45758 — RE: file I/O and arithmetic calculation

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-05-23 02:49 +0300
SubjectRE: 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. 		 	   		  

[toc] | [standalone]


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


csiph-web