Re: [Tutor] Another way to strip?

2017-01-19 Thread Steven D'Aprano
On Thu, Jan 19, 2017 at 04:29:16PM -0500, ad^2 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. > > Ex. > > my_list = ['/var/tmp/02_80_5306__2017_01_19_08-36-57_4918_0.zip', > '/var

Re: [Tutor] Another way to strip?

2017-01-19 Thread Danny Yoo
On Jan 19, 2017 4:36 PM, "ad^2" 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 ___

Re: [Tutor] Another way to strip?

2017-01-19 Thread Alan Gauld via Tutor
On 19/01/17 21:29, ad^2 wrote: > 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. > > Ex. > > my_list = ['/var/tmp/02_80_5306__2017_01_19_08-36-57_4918_0.zip', > '/var/tmp/02_80_5309__2017_01_19_08-40-

[Tutor] Another way to strip?

2017-01-19 Thread ad^2
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. Ex. my_list = ['/var/tmp/02_80_5306__2017_01_19_08-36-57_4918_0.zip', '/var/tmp/02_80_5309__2017_01_19_08-40-30_4205_0.zip', '/var/tmp/02_80_53

Re: [Tutor] How can I run this test script using selenium while making connection and running the code I am facing issue Please see my code below

2017-01-19 Thread Alan Gauld via Tutor
On 19/01/17 02:29, Sarika Shrivastava wrote: > Yes I dont have issue with unittest framework but i dont have to reconized > my issue How can I resolve this issue ?? What is the issue? You haven't told us what is wrong. What happens? What did you expect to happen? Are there any error messages? If s

Re: [Tutor] How can I run this test script using selenium while making connection and running the code I am facing issue Please see my code below

2017-01-19 Thread Sarika Shrivastava
Yes I dont have issue with unittest framework but i dont have to reconized my issue How can I resolve this issue ?? So I need to use splinter??? On Thu, Jan 19, 2017 at 7:56 AM, Sarika Shrivastava wrote: > Yes I dont have issue with unittest framework but i dont have to reconized > my issue How