diff options
author | Brett Cannon <brett@python.org> | 2016-09-05 22:33:46 (GMT) |
---|---|---|
committer | Brett Cannon <brett@python.org> | 2016-09-05 22:33:46 (GMT) |
commit | 3cebf9387279d8b21369f55e205392199ad9b1a2 (patch) | |
tree | 3ab40b5c47ee4876a46d2ca6920b402a0e63cd16 /Doc | |
parent | 625cb379f7e77457ca5be94e175d4b71a1d8989f (diff) | |
download | cpython-3cebf9387279d8b21369f55e205392199ad9b1a2.zip cpython-3cebf9387279d8b21369f55e205392199ad9b1a2.tar.gz cpython-3cebf9387279d8b21369f55e205392199ad9b1a2.tar.bz2 |
Implement the frame evaluation API aspect of PEP 523.
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/whatsnew/3.6.rst | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Doc/whatsnew/3.6.rst b/Doc/whatsnew/3.6.rst index 031bf79..085bca3 100644 --- a/Doc/whatsnew/3.6.rst +++ b/Doc/whatsnew/3.6.rst @@ -97,6 +97,34 @@ Windows improvements: New Features ============ +.. _pep-523: + +PEP 523: Adding a frame evaluation API to CPython +================================================= + +While Python provides extensive support to customize how code +executes, one place it has not done so is in the evaluation of frame +objects. If you wanted some way to intercept frame evaluation in +Python there really wasn't any way without directly manipulating +function pointers for defined functions. + +:pep:`523` changes this by providing an API to make frame +evaluation pluggable at the C level. This will allow for tools such +as debuggers and JITs to intercept frame evaluation before the +execution of Python code begins. This enables the use of alternative +evaluation implementations for Python code, tracking frame +evaluation, etc. + +This API is not part of the limited C API and is marked as private to +signal that usage of this API is expected to be limited and only +applicable to very select, low-level use-cases. + +.. seealso:: + + :pep:`523` - Adding a frame evaluation API to CPython + PEP written by Brett Cannon and Dino Viehland. + + .. _pep-519: PEP 519: Adding a file system path protocol |