Re: Re: Re: porting unittest.py to Prothon.
Serge Orlov <[email protected]> Thu, 24 Jun 2004 17:33:46 +0400
| Newsgroups | gmane.comp.lang.prothon.devel |
|---|---|
| Message-ID | <[email protected]> |
Greg Ewing wrote: > Serge Orlov <[email protected]>: >> How do I do "from math import *"? I hope you don't suggest >> writing >> math.sin(x) + math.cos(y) > What's wrong with: > from math import sin, cos > z = sin(x) + cos(y) Nothing's wrong. I rarely use it. I feel that I mostly don't need it, but when I need it I need it badly. What if I use 15 functions from math? Mark said it's a bad feature, but what exactly bad about it? Of course importing every object from module is not a good idea, I think explicit declaration of objects to export is needed, but what else is wrong about from module import * ? -- Serge