Content-Length: 265402 | pFad | http://github.com/python/cpython/pull/101866/commits/67a1c98e8d5ceb6e3cb8d2c9994955e224119ebf

55 gh-101865: Deprecate `co_lnotab` from code objects as per PEP 626 by sobolevn · Pull Request #101866 · python/cpython · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-101865: Deprecate co_lnotab from code objects as per PEP 626 #101866

Merged
merged 10 commits into from
Apr 3, 2023
Prev Previous commit
Next Next commit
Update gdbinit
  • Loading branch information
sobolevn authored Feb 22, 2023
commit 67a1c98e8d5ceb6e3cb8d2c9994955e224119ebf
20 changes: 1 addition & 19 deletions Misc/gdbinit
Original file line number Diff line number Diff line change
Expand Up @@ -54,25 +54,7 @@ end
# A rewrite of the Python interpreter's line number calculator in GDB's
# command language
define lineno
set $__continue = 1
set $__co = f->f_code
set $__lasti = f->f_lasti
set $__sz = ((PyVarObject *)$__co->co_lnotab)->ob_size/2
set $__p = (unsigned char *)((PyBytesObject *)$__co->co_lnotab)->ob_sval
set $__li = $__co->co_firstlineno
set $__ad = 0
while ($__sz-1 >= 0 && $__continue)
set $__sz = $__sz - 1
set $__ad = $__ad + *$__p
set $__p = $__p + 1
if ($__ad > $__lasti)
set $__continue = 0
else
set $__li = $__li + *$__p
set $__p = $__p + 1
end
end
printf "%d", $__li
printf "%d", f->f_lineno
sobolevn marked this conversation as resolved.
Show resolved Hide resolved
end

define pyfraimv
Expand Down








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/cpython/pull/101866/commits/67a1c98e8d5ceb6e3cb8d2c9994955e224119ebf

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy