lifeless | sometimes I hate python | 03:54 |
---|---|---|
lifeless | >>> os.path.normpath('//home/robertc') | 03:54 |
lifeless | '//home/robertc' | 03:54 |
lifeless | >>> | 03:54 |
lifeless | robertc@lifeless-64:~$ pydoc os.path.normpath | 03:54 |
lifeless | Help on function normpath in os.path: | 03:54 |
lifeless | os.path.normpath = normpath(path) | 03:54 |
lifeless | Normalize path, eliminating double slashes, etc. | 03:54 |
nigelb | This works | 04:00 |
nigelb | >>> os.path.normpath('/home//nigel') | 04:00 |
nigelb | '/home/nigel' | 04:00 |
nigelb | But yeah, bug. | 04:01 |
lifeless | nigelb: deliberate | 04:18 |
lifeless | nigelb: but the docs do not tell you :< | 04:18 |
nigelb | lifeless: Katie Cunningham said this part of her pycon talk - The documentation always lies. Because developers write it and we lie. | 04:19 |
lifeless | nigelb: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap04.html#tag_04_11 | 04:22 |
lifeless | nigelb: 'A pathname that begins with two successive slashes may be interpreted in an implementation-defined manner, although more than two leading slashes shall be treated as a single slash.' | 04:22 |
nigelb | lifeless: Ha. | 04:23 |
nigelb | How much time did you spend searching for that? | 04:23 |
lifeless | to show you? < 120 seconds | 04:24 |
lifeless | after seeing the code? 0, I didn't care enough to do anything other than work around it. | 04:24 |
nigelb | heh | 04:26 |
lifeless | evil genius at work | 04:27 |
lifeless | second version can be good, this version just has to rock | 04:27 |
nigelb | I will admit to looking at LP source when I've gotten confused with the apidoc. It is vastly easier. | 04:27 |
=== almaisan-away is now known as al-maisan | ||
=== al-maisan is now known as almaisan-away | ||
=== almaisan-away is now known as al-maisan | ||
=== al-maisan is now known as almaisan-away | ||
wgrant | lifeless: You're around tomorow? | 06:39 |
wgrant | +r | 06:40 |
lifeless | wgrant: AFAIK yes | 06:40 |
nigelb | wgrant: I thought you were giving him a review. Bah. +r r+. | 06:40 |
wgrant | lifeless: Great. | 06:40 |
wgrant | lifeless: Will probably need a bit of live index creation. | 06:40 |
lifeless | anzac day is wednesday | 06:40 |
lifeless | stub is back too | 06:40 |
wgrant | I intend to enable BugTaskFlat for ~launchpad tomorrow | 06:40 |
wgrant | Ah, true. | 06:40 |
lifeless | sweet | 06:40 |
wgrant | Yeah, Anzac Day is Wed here too | 06:41 |
lifeless | so lets not enable stuff tuesday :) | 06:41 |
=== almaisan-away is now known as al-maisan | ||
=== al-maisan is now known as almaisan-away | ||
=== almaisan-away is now known as al-maisan | ||
=== al-maisan is now known as almaisan-away | ||
=== almaisan-away is now known as al-maisan | ||
=== al-maisan is now known as almaisan-away | ||
=== ajmitch_ is now known as ajmitch |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!