[Tutor] Another way to strip?

Danny Yoo dyoo at hashcollision.org
Thu Jan 19 19:42:03 EST 2017


On Jan 19, 2017 4:36 PM, "ad^2" <adsquaired at gmail.com> wrote:

Hello all,

I'm looking for a cleaner more elegant way to achieve stripping out a file
name from a list which contains a path and file extension.



Would os.path.split help here?
https://docs.python.org/3.6/library/os.path.html#os.path.split


More information about the Tutor mailing list