[Tutor] [tutor] how to get the fileextention?

emilia12 at mail.bg emilia12 at mail.bg
Thu Jul 20 10:19:46 CEST 2006


Hi,

is this the right (shortest) way to get the file extention
(under MS WIN)?


def getext(fname):
    ext = fname.split('.').pop()
    return ext

Regards,
Emily

-----------------------------

B2B портал за продуктите на HP
Цени, спецификации, on-line поръчки, доставка.
Регистрирайте се на http://hp.most.bg



More information about the Tutor mailing list