This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author qb-cea
Recipients Kevin.Norris, bronger, elguavas, keithy, paul.moore, pitrou, projetmbc, qb-cea
Date 2018-03-28.00:30:35
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1522197038.85.0.467229070634.issue24132@psf.upfronthosting.co.za>
In-reply-to
Content
Hi all,

I made a pull request proposing a fix for this issue. There is still quite a lot to be done:
 - I exposed some variables (and probably methods too) that used to be hidden;
 - I did not update the documentation;
 - I did not add a proper test.

I will try to fix those by the end of the week.

The patch mainly consists of two things:
 - having Path (resp. PurePath) be a variable pointing at either (Pure)PosixPath or (Pure)WindowsPath, depending on the platform (like Kevin Norris suggested);
 - introducing two new abstract classes _PurePath and ConcretePath from which PurePosixPath, PureWindowsPath and PosixPath, WindowsPath classes inherit;
 - removing the _Flavor classes, and redistributing their method to platform-specific classes.

Ideally I would like _PurePath to become a public class, but I could not come up with a proper name. Any feedback is more than welcome =]
History
Date User Action Args
2018-03-28 00:30:39qb-ceasetrecipients: + qb-cea, paul.moore, pitrou, bronger, elguavas, Kevin.Norris, projetmbc, keithy
2018-03-28 00:30:38qb-ceasetmessageid: <1522197038.85.0.467229070634.issue24132@psf.upfronthosting.co.za>
2018-03-28 00:30:38qb-cealinkissue24132 messages
2018-03-28 00:30:36qb-ceacreate