Reloading modules

Steve Holden sholden at holdenweb.com
Fri Feb 22 07:45:14 EST 2002


"Delaney, Timothy" <tdelaney at avaya.com> wrote in message
news:mailman.1014332376.19219.python-list at python.org...
> > From: Oleg Broytmann [mailto:phd at phd.pp.ru]
> >
> > On Thu, Feb 21, 2002 at 12:02:08PM +0000, Michael Hudson wrote:
> > >     if file.endswith("c"):
> > >         file = file[:-1]
> >
> > if file.endswith("c"):
> >    file = file[:-1]
> > elif file.endswith("o"):
> >    file = file[:-1]
>
> if file[-1:] in ('c', 'o',):
>     file = file[:-1]
>
if file[-1] in "co":
    file = file[:-1]

not-that-there's-more-than-one-way-to-do-it-ly y'rs  - steve
--
Consulting, training, speaking: http://www.holdenweb.com/
Author, Python Web Programming: http://pydish.holdenweb.com/pwp/

"This is Python.  We don't care much about theory, except where it
intersects with useful practice."  Aahz Maruch on c.l.py







More information about the Python-list mailing list