[issue42516] Add function to get caller's name

2021-06-11 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue42516] Add function to get caller's name

2021-05-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.o

[issue42516] Add function to get caller's name

2020-11-30 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue42516] Add function to get caller's name

2020-11-30 Thread Steve Dower
Change by Steve Dower : -- components: +Interpreter Core stage: -> test needed type: -> enhancement versions: +Python 3.10 ___ Python tracker ___

[issue42516] Add function to get caller's name

2020-11-30 Thread Steve Dower
New submission from Steve Dower : We have a lot of stdlib code that looks like: try: nm_tpl.__module__ = sys._getframe(2).f_globals.get('__name__', '__main__') except (AttributeError, ValueError): pass While technically it handles sys._getframe being missing, it would