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

2010-02-17 Thread Dan Villiom Podlaski Christiansen
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?

2010-10-03 Thread Dan Villiom Podlaski Christiansen
;>> 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,