A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/007655.html below:

[Python-Dev] SET_LINENO and python options

[Python-Dev] SET_LINENO and python options [Python-Dev] SET_LINENO and python optionsGuido van Rossum guido@beopen.com
Sun, 30 Jul 2000 09:02:38 -0500
> Hasn't backward compatibility already been broken for 2.0?  So why not
> break it a little more?  

Sure -- within reason.

> It always seemed odd to me that the current line number is always kept
> up to date, even though 99.999% of the time, no one will care.  Why
> not just keep a small table that holds the offset in the bytecode at
> which each line starts, and look it up when it's needed?

That already exists.  Search for co_lnotab, and for PyCode_Addr2Line().

--Guido van Rossum (home page: http://www.pythonlabs.com/~guido/)



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4