[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Martin v. Löwis
Martin v. Löwis added the comment: I agree that this shouldn't be added to Python. At a minimum, it is clear that there is too much opposition to such a feature that the bug tracker is an inappropriate medium to discuss it. If you want to pursue this idea, discuss it on python-ideas, and, if th

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Not being able to figure out where a name came from easily is worse than having to type out the import statement. This feature would negatively impact readability of Python source significantly. -- nosy: +exarkun _

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
Andrea Corbellini added the comment: Well, writing every time 'from X import Y' looks to me uncomfortable. But of course what I'm asking is not essential :-) ___ Python tracker ___ __

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread STINNER Victor
STINNER Victor added the comment: Please, don't do that! Why not using "from framework import debug"? Working example: "from logging import debug". I hate namespace polution and all global symbols. -- nosy: +haypo ___ Python tracker

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
Changes by Andrea Corbellini : -- type: -> feature request ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5082] Let frameworks to register attributes as builtins

2009-01-27 Thread Andrea Corbellini
New submission from Andrea Corbellini : Most of the Python frameworks have some functions and classes that are widely used. For example a 'log.debug' function will be used in almost all modules. It is inconvenient to write 'import log' every time. It would be useful to have a special place (a di