Re: [Python-Dev] os.path.normcase rationale?

2010-10-03 Thread Dan Villiom Podlaski Christiansen
/A\xcc\x8a') a = f.name b = fcntl(f, F_GETPATH, b'\0' * 1024).rstrip(b'\0') a, b (b'/tmp/A\xcc\x8a', b'/private/tmp/\xc3\xa5') a.decode('utf-8'), b.decode('utf-8') ('/tmp/Å', '/private/tmp/å') -- Dan Villiom Podlaski Christiansen dan...@gmail.com smime.p7s Description: S/MIME

Re: [Python-Dev] __file__ is not always an absolute path

2010-02-17 Thread Dan Villiom Podlaski Christiansen
words ‘os.getcwd()’ is more than fifty times as slow as a regular function call when using Mac OS X. -- Dan Villiom Podlaski Christiansen dan...@gmail.com smime.p7s Description: S/MIME cryptographic signature ___ Python-Dev mailing list Python-Dev