path.startswith(dir)?

Alex Martelli aleax at aleax.it
Sat May 11 13:25:15 EDT 2002


Magnus Lie Hetland wrote:
        ...
>   from os.path import *
> 
> or something to the top... And perhaps take a look at the question
> again? ;)
> 
> (Sorry for not being absolutely clear about this -- the os.path part
> was just so obvious to me.)

I'd be a happier man if "from bletch import *" just magically disappeared,
and so would other Pythonistas, including those who'd most rant and
rave about how indispensable it truly is (i.e., those most addicted to its
[ab]use).  Each time you get the urge to code "from bah import *", think
again.  You're better off not doing it.  Really.


Alex




More information about the Python-list mailing list