Phillip J. Eby <[EMAIL PROTECTED]> wrote: >> - ctime() is documented to be unportable: it has different semantics >> on UNIX and Windows. I believe the class should abstract from these >> details. > > Note that this is the opposite of normal Python policy: Python does > not attempt to create cross-platform abstractions, but instead > chooses to expose platform differences. The Path class > shouldn't abstract this > any more than the original *path modules do.
I don't follow. One thing is to provide an interface which totally abstracts from low-level details. Another is to provide a function which holds different results depending on the operating system. I'm fine to have different functions available for different purposes on different platforms, I'm not fine with having a single function which does different things. Do you have any other example? Giovanni Bajo _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com