[Tutor] How to list/process files with identical character strings

Marc Tompkins marc.tompkins at gmail.com
Tue Jun 24 22:18:18 CEST 2014


On Tue, Jun 24, 2014 at 1:02 PM, Peter Otten <__peter__ at web.de> wrote:

> Sorting is probably the approach that is easiest to understand, but an
> alternative would be to put the files into a dict that maps the 8-char
> prefix to a list of files with that prefix:
>

I was debating the virtues of the two approaches, but figured I'd err on
the side of simplicity...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20140624/dff781db/attachment.html>


More information about the Tutor mailing list