Guido van Rossum added the comment:

As I explained in issue 17947, I think that any Python implementation worth its 
salt should be able to implement sys.get_calling_module_name() (*), at least 
for the case where the caller is top-level code in a module body.  That is a 
much weaker requirement than being able to implement sys._getframe().  We 
should just add this to CPython 3.4 and require that conforming implementations 
support it, at least in the stated context (top-level caller).

(*) Please pick a somewhat shorter name for it.

----------
assignee: gvanrossum -> 

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17963>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to