Maxwell Ballenger added the comment:
Thank you Victor, sounds great!
--
___
Python tracker
<https://bugs.python.org/issue44466>
___
___
Python-bugs-list mailin
New submission from Maxwell Ballenger :
I have been working on debugging a segfault. When faulthandler catches the
fault, it makes a printout like this:
Current thread 0x7f4fa62b2700 (most recent call first):
File "/usr/lib/python3.6/site-packages/tornado/ioloop.py", li
Maxwell Ballenger added the comment:
Use case: I want to see if a Path is a descendent of /tmp.
if filepath.parents[-2] == Path('tmp'):
turns into
if filepath.parents[len(filepath.parents)-2] == Path('tmp'):
--
nosy: +maxballenger
__