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/2003-February/033718.html below:

[Python-Dev] Code Generation Idea Was: Bytecode idea

[Python-Dev] Code Generation Idea Was: Bytecode idea [Python-Dev] Code Generation Idea Was: Bytecode ideaFred L. Drake, Jr. fdrake@acm.org
Wed, 26 Feb 2003 11:00:11 -0500
Skip Montanaro writes:
 > Hmmm...  Those code blocks would only be executed on older versions of the
 > interpreter.  Is there some way to use that knowledge to finesse the
 > problem?  It would be a real hack, but if the compiler recognized precisely
 > the above construct (or at least assignment in an except block guarded by
 > NameError), it could shut up about the assignment.

Another possibility would be that in a module containing *no*
assignments to True and False, references could be converted to
special byte codes.  Not quite the same, but allows for optimizations
at any rate.


  -Fred

-- 
Fred L. Drake, Jr.  <fdrake at acm.org>
PythonLabs at Zope Corporation



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