pathlib's relative_to should behave like os.path.relpath

domragusa · GitHub

BPO

40358

Nosy

@pitrou

,

@eryksun

,

@ammaraskar

,

@CuriousLearner

,

@CAM-Gerlach

,

@barneygale

,

@domragusa

,

@bowiechen

PRs

bpo-40358: add strict parameter to pathlib.PurePath.relative_to #19807

gh-84538: add strict argument to pathlib.PurePath.relative_to #19813

Files

relative_to.patch

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more detailsGitHub fields:

assignee=Noneclosed_at=Nonecreated_at=<Date2020-04-22.00:03:03.148>labels= ['type-feature', 'library', '3.11'] title="pathlib's relative_to should behave like os.path.relpath"updated_at=<Date2022-02-22.23:57:02.772>user='https://github.com/domragusa'bugs.python.org fields:

activity=<Date2022-02-22.23:57:02.772>actor='terry.reedy'assignee='none'closed=Falseclosed_date=Nonecloser=Nonecomponents= ['Library (Lib)'] creation=<Date2020-04-22.00:03:03.148>creator='d.ragusa'dependencies= [] files= ['49095'] hgrepos= [] issue_num=40358keywords= ['patch'] message_count=11.0messages= ['366958', '367037', '367041', '367047', '367490', '367697', '367723', '370254', '393696', '393777', '408249'] nosy_count=10.0nosy_names= ['pitrou', 'python-dev', 'eryksun', 'ammar2', 'Socob', 'CuriousLearner', 'CAM-Gerlach', 'barneygale', 'd.ragusa', 'bowiechen'] pr_nums= ['19807', '19813'] priority='normal'resolution=Nonestage='patch review'status='open'superseder=Nonetype='enhancement'url='https://bugs.python.org/issue40358'versions= ['Python 3.11']