Does This Scare You?

Chris Angelico rosuav at gmail.com
Sun Aug 21 20:44:38 EDT 2016


On Mon, Aug 22, 2016 at 10:38 AM, eryk sun <eryksun at gmail.com> wrote:
> To me it's scary that this check misses cases because it's trying to
> be cross-platform instead of simply relying on GetFullPathName to do
> the work.

"Trying to be" cross-platform? The point of these path modules is to
*be* cross-platform. I can't call Windows APIs on my Linux box (short
of messing around with VMs or Wine or something, which are
dependencies that Python doesn't need). So yes, these *are*
cross-platform, and that's not scary, that's deliberate design.

ChrisA



More information about the Python-list mailing list