parsing a file name

Chris Mellon arkanes at gmail.com
Fri Jan 12 13:31:54 EST 2007


On 12 Jan 2007 10:23:41 -0800, Paul Boddie <paul at boddie.org.uk> wrote:
> Chris Mellon wrote:
> >
> > I'm trying to think of a good reason to extract the version from the
> > filename instead of using RPM to get the real version from the
> > metadata and I can't come up with one.
>
> The inquirer doesn't have any RPM handling tools installed/available or
> is dealing with a lot of versioned filenames which might be a selection
> of different, arbitrary formats.
>
> Try harder! ;-)
>
> Paul

Well, the answer to the first is "get some", so that's not a good
reason. And the second would mean that they asked a question on c.l.p
without giving all the background information on the task they were
doing, and we know that never happens.



More information about the Python-list mailing list