[Python-ideas] site.py uses os.sep to determine platform

Random832 random832 at fastmail.com
Sun Feb 12 15:51:42 EST 2017


On Sun, Feb 12, 2017, at 07:26, Alex Walters wrote:
> On august 7th, 1998, Guido committed
> https://github.com/python/cpython/commit/d89fa0c5761254c970af72e5abcea420fd2
> 3e893 to python, adding the quit() and exit() built-ins.  He decided to
> determine the platform python was running on by checking os.sep.  I don't
> understand the rationale behind this choice in 1998, but I assume that
> there
> was one.

My guess would be that the rationale was to group Windows together with
DOS and OS/2.


More information about the Python-ideas mailing list