Re: [Python-Dev] __file__ is not always an absolute path
10 loops, best of 3: 11 usec per loop For maximum reproducibility, I used the stock Python 2.6.1 included in Mac OS X 10.6.2. In other 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 sm
Re: [Python-Dev] os.path.normcase rationale?
;>> F_GETPATH = 50 >>> >>> if exists('/tmp/å'): ... remove('/tmp/å') ... >>> open('/tmp/å', 'w').close() >>> f = open(b'/tmp/A\xcc\x8a') >>> >>> a = f.name >>> b = fcntl(f,