On Sun 01 May 2011 23:48, Mark H Weaver <m...@netris.org> writes: > on some systems (e.g. Windows NT) filenames are considered character > data, or at least so says PEP 383 > <http://www.python.org/dev/peps/pep-0383/>
Ah, interesting, I was blissfully ignorant; not the desired state when one is hacking file-name encoding :) Still, though, I think the basic point stands: copy what Racket does, because they actually do run well on windows and are happy with their abstraction. It's the sincerest form of flattery :) > Ideally, we should try to come up with a coherent story and set of > APIs for dealing with all of these data that are string-like, but > actually bytevectors on some systems. Environment variables and command-line arguments being the other ones that you mentioned; and yes, some common conventions here would be good. I still think, though, that path objects need their own data type. Peace, Andy -- http://wingolog.org/