Feature Requests item #1720992, was opened at 2007-05-17 18:36
Message generated for change (Comment added) made by aflag
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1720992&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Juan Manuel Borges CaƱo (juanmabc3)
Assigned to: Nobody/Anonymous (nobody)
Summary: automatic imports

Initial Comment:
I don't need to declare a variable but I need to declare a module, i.e import 
module, can this be done automatically?, so time.strftime requires import time 
automatically in the spirit of the python language, it saves typing and 
synchronization of the imports with the changes of the source code

----------------------------------------------------------------------

Comment By: Rafael Cunha de Almeida (aflag)
Date: 2007-06-28 00:35

Message:
Logged In: YES 
user_id=856271
Originator: NO

I don't think this is a very good idea, if you'll be using the module name
all the time, then you might as well simple import it. Besides, I think it
could lead to confusion. You may have an object named fo in your script and
if you mistakenly type foo a module will get imported and you won't
understand anything. Specially if the module is something you don't even
know about in your PYTHONPATH.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1720992&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to