Gregory (Grisha) Trubetskoy
grisha at modpython.org
Sun Sep 15 16:41:19 EST 2002
Sorry, my mistake, you're right, it should be [-1:] of course :-) On Sun, 15 Sep 2002, Jack Diederich wrote: > > > > > Try changing that line in publicher.py to > > if func_path[:-1] == ".": > > > > (note : before -1) > > > > > If you just want the last char, and don't want it to fail on an empty string you mean > > if func_path[-1:] > > func_path[:-1] will give you everything but the last char > -- > __________________________________________________________ > Sign-up for your own FREE Personalized E-mail at Mail.com > http://www.mail.com/?sr=signup >
|