I
Size: a a a
I
I
I
In [4]: re.match(r'.*\.pd\.sdd$', dir_list[-1])
Out[4]: <_sre.SRE_Match object; span=(0, 14), match='U875423.pd.sdd'>
In [5]: re.match(r'.*\.pd\.sdd$', dir_list[-2])
I
I
In [6]: for file in dir_list:
...: if re.match(r'.*\.pd\.sdd$', file):
...: print('Gotcha!', file)
...:
Gotcha! U875423.pd.sdd
A
A
I
A
I
I
matches = filter(pd_sdd.match, dir_list)
I
I
A
JW
list_1 = [SomeShit(), ShitSome(), ShitShit()]
list_2 = [type ShitShit, type ShitSome, type SomeShit]
АР
list_1 = [SomeShit(), ShitSome(), ShitShit()]
list_2 = [type ShitShit, type ShitSome, type SomeShit]
JW
JW
АР
АР