What's the difference between running a script under command box and interpreter?

jfong at ms4.hinet.net jfong at ms4.hinet.net
Mon Nov 4 20:05:05 EST 2019


Grant Edwards於 2019年11月5日星期二 UTC+8上午12時41分24秒寫道:
> On 2019-11-04, Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> > Using
> >
> >    from module import *
> >
> > is often the worst thing one can do.
> 
> I agree 100%.
> 
> Unfortunately, most of the official standard library documentation is
> written assuming you do _exactly_that_.
> 
> Though it makes the documetnation more succinct, I think it encourages
> bad behavior and causes a lot of problems.
> 
> -- 
> Grant Edwards               grant.b.edwards        Yow! I wonder if I could
>                                   at               ever get started in the
>                               gmail.com            credit world?


I don't use this phrase in my files, but sometime I use it under REPL. 

I don't think it's bad showing in the document, at least it will teach someone who was bitten by this phrase something unique in Python:-)

--Jach


More information about the Python-list mailing list