New submission from Jelle Zijlstra <jelle.zijls...@gmail.com>:

sys._getframe() has to create frame objects, which is relatively expensive. 
Usually the calling function object should be enough.

See https://github.com/faster-cpython/ideas/discussions/238

----------
assignee: Jelle Zijlstra
components: Interpreter Core
messages: 411833
nosy: Jelle Zijlstra, Mark.Shannon
priority: normal
severity: normal
status: open
title: Add sys._getfunc
type: enhancement
versions: Python 3.11

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

Reply via email to