Searched refs:with_name (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Lib/test/ |
D | test_pathlib.py | 545 self.assertEqual(P('a/b').with_name('d.xml'), P('a/d.xml')) 546 self.assertEqual(P('/a/b').with_name('d.xml'), P('/a/d.xml')) 547 self.assertEqual(P('a/b.py').with_name('d.xml'), P('a/d.xml')) 548 self.assertEqual(P('/a/b.py').with_name('d.xml'), P('/a/d.xml')) 549 self.assertEqual(P('a/Dot ending.').with_name('d.xml'), P('a/d.xml')) 550 self.assertEqual(P('/a/Dot ending.').with_name('d.xml'), P('/a/d.xml')) 551 self.assertRaises(ValueError, P('').with_name, 'd.xml') 552 self.assertRaises(ValueError, P('.').with_name, 'd.xml') 553 self.assertRaises(ValueError, P('/').with_name, 'd.xml') 554 self.assertRaises(ValueError, P('a/b').with_name, '') [all …]
|
/external/python/cpython3/Doc/library/ |
D | pathlib.rst | 542 .. method:: PurePath.with_name(name) 548 >>> p.with_name('setup.py') 551 >>> p.with_name('setup.py') 554 File "/home/antoine/cpython/default/Lib/pathlib.py", line 751, in with_name
|
/external/python/cpython3/Lib/ |
D | pathlib.py | 816 def with_name(self, name): member in PurePath
|
/external/python/cpython3/Misc/NEWS.d/ |
D | 3.5.0a1.rst | 3097 Disallow the construction of invalid paths using Path.with_name(). Original 5274 Add missing documentation for PurePath.with_name() and
|
/external/python/cpython3/Misc/ |
D | HISTORY | 1567 Path.with_name(). Original patch by Antony Lee. 2139 - Issue #20765: Add missing documentation for PurePath.with_name() and
|