Message39365
Logged In: YES
user_id=498191
oop's your right.
I thought that the for loop was only a reminiscence of the time when the string module was coded in python. In fact it seems that things are a little more complex than I intended :(
But if we replace:
if i<1 or p[i-1]=='/':
by:
if i<0 or i<p.rfind('/'):
We should win in performances without breaking current behavior, or am I missing something else?
About the behavior change proposal:
My opinion is that the 'leading dot means hidden' is a quite strong convention in unixes (and no, not only for the ls utility).
But this is not true on other os (at least on Mac and Windows). So, if cross platform predictability is important (and I think it is), I agree it is probably better to not try to change this. |
|
Date |
User |
Action |
Args |
2007-08-23 15:11:50 | admin | link | issue536120 messages |
2007-08-23 15:11:50 | admin | create | |
|