Yes, you're right. The problem is, when you use the first one, you may cause
a 'name pollution' to the current namespace.

read this: http://bytebaker.com/2008/07/30/python-namespaces/

cheers,

Chao

2011/7/19 Alex Ter-Sarkissov <ater1...@gmail.com>

> this is probably  silly question, I've seen in this in one of the
> tutorials:
>
> from tkinter import *
> import tkinter.messagebox
>
> given that * implies importing the whole module, why would anyone bother
> with importing a specific command on top of it?
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>


-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 77 30; Fax:01.69.08.77.16
************************************************************************************
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to