[New-bugs-announce] [issue28560] Implement `PurePath.startswith` and `PurePath.endswith`

Ram Rachum report at bugs.python.org
Sat Oct 29 17:59:33 EDT 2016


New submission from Ram Rachum:

Today I had to check whether a path object started with `/foo`. The nicest way I could think of was `str(p).startswith('/foo')`. What do you think about implementing `p.startswith('/foo')`?

----------
components: Library (Lib)
messages: 279699
nosy: cool-RR, pitrou
priority: normal
severity: normal
status: open
title: Implement `PurePath.startswith` and `PurePath.endswith`
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue28560>
_______________________________________


More information about the New-bugs-announce mailing list