Don't you just love writing this sort of thing :)

James Mills prologic at shortcircuit.net.au
Wed Dec 3 20:16:37 EST 2008


uggh no!

On Thu, Dec 4, 2008 at 11:07 AM, Lawrence D'Oliveiro
<ldo at geek-central.gen.new_zealand> wrote:
> for \
>        Entry \
>    in \
>        sorted \
>          (
>            f for f in os.listdir(PatchesDir) if PatchDatePat.search(f) != None
>          ) \
> :
>    Patch = (open, gzip.GzipFile)[Entry.endswith(".gz")](os.path.join(PatchesDir, Entry), "r")
>    ... read from Patch ...
>    Patch.close()
> #end for
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
--
-- "Problems are solved by method"



More information about the Python-list mailing list