<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/compile.c, branch v2.1.1</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>Backport Tim's checkin 2.201:</title>
<updated>2001-06-27T14:04:03+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-06-27T14:04:03+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=671e257d8d46e6e696435d3f029f4538dea93456'/>
<id>671e257d8d46e6e696435d3f029f4538dea93456</id>
<content type='text'>
SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.
</pre>
</div>
</content>
</entry>
<entry>
<title>Backport Jeremy's checkin 2.198:</title>
<updated>2001-05-23T12:11:35+00:00</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-05-23T12:11:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f7844d0623b050a01127649529d2022e5603c112'/>
<id>f7844d0623b050a01127649529d2022e5603c112</id>
<content type='text'>
Fix 2.1 nested scopes crash reported by Evan Simpson

The new test case demonstrates the bug.  Be more careful in
symtable_resolve_free() to add a var to cells or frees only if it
won't be added under some other rule.

XXX Add new assertion that will catch this bug.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix 2.1 nested scopes crash reported by Evan Simpson

The new test case demonstrates the bug.  Be more careful in
symtable_resolve_free() to add a var to cells or frees only if it
won't be added under some other rule.

XXX Add new assertion that will catch this bug.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make some private symbols static.</title>
<updated>2001-04-14T17:55:09+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-04-14T17:55:09+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=f68d8e52e7ce833d123de034a4f123ec710a639f'/>
<id>f68d8e52e7ce833d123de034a4f123ec710a639f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Warn when assigning to __debug__ instead of raising an error.</title>
<updated>2001-04-09T16:07:59+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-04-09T16:07:59+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=a830b3859baafd78964f98c7587b3bd7da6ba6ae'/>
<id>a830b3859baafd78964f98c7587b3bd7da6ba6ae</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make it illegal to assign to __debug__ as per Guido's request.</title>
<updated>2001-03-23T14:08:38+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-23T14:08:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=897b82123d3b446778a1ef7537404cd8df1da9c9'/>
<id>897b82123d3b446778a1ef7537404cd8df1da9c9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Set the line number correctly for a nested function with an exec or</title>
<updated>2001-03-22T03:57:58+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-22T03:57:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=2e2cded1b56cc5488f49d395b46131fd995b02bc'/>
<id>2e2cded1b56cc5488f49d395b46131fd995b02bc</id>
<content type='text'>
import *.  Mark the offending stmt rather than the function def line.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
import *.  Mark the offending stmt rather than the function def line.
</pre>
</div>
</content>
</entry>
<entry>
<title>Make error messages clearer for illegal combinations of nested</title>
<updated>2001-03-22T03:51:05+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-22T03:51:05+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=280e6bd742a50cf7f00739c7904f1b5aa66bdad9'/>
<id>280e6bd742a50cf7f00739c7904f1b5aa66bdad9</id>
<content type='text'>
functions and import */exec.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
functions and import */exec.
</pre>
</div>
</content>
</entry>
<entry>
<title>If a code object is compiled with nested scopes, define the CO_NESTED flag.</title>
<updated>2001-03-22T02:32:48+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-22T02:32:48+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=061d106a0f56c5b4171ad8c56ecfaa6cefb27385'/>
<id>061d106a0f56c5b4171ad8c56ecfaa6cefb27385</id>
<content type='text'>
Add PyEval_GetNestedScopes() which returns a non-zero value if the
code for the current interpreter frame has CO_NESTED defined.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add PyEval_GetNestedScopes() which returns a non-zero value if the
code for the current interpreter frame has CO_NESTED defined.
</pre>
</div>
</content>
</entry>
<entry>
<title>Update PyNode_CompileSymtable() to understand future statements</title>
<updated>2001-03-21T19:01:33+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-21T19:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=ded4bd776f25d892e5dbdc642f3b92aacd43dae1'/>
<id>ded4bd776f25d892e5dbdc642f3b92aacd43dae1</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix PyFrame_FastToLocals() and counterpart to deal with cells and</title>
<updated>2001-03-21T16:43:47+00:00</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-21T16:43:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=220ae7c0bf2054ad01f58e1cf669ac069eb9a574'/>
<id>220ae7c0bf2054ad01f58e1cf669ac069eb9a574</id>
<content type='text'>
frees.  Note there doesn't seem to be any way to test LocalsToFast(),
because the instructions that trigger it are illegal in nested scopes
with free variables.

Fix allocation strategy for cells that are also formal parameters.
Instead of emitting LOAD_FAST / STORE_DEREF pairs for each parameter,
have the argument handling code in eval_code2() do the right thing.

A side-effect of this change is that cell variables that are also
arguments are listed at the front of co_cellvars in the order they
appear in the argument list.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
frees.  Note there doesn't seem to be any way to test LocalsToFast(),
because the instructions that trigger it are illegal in nested scopes
with free variables.

Fix allocation strategy for cells that are also formal parameters.
Instead of emitting LOAD_FAST / STORE_DEREF pairs for each parameter,
have the argument handling code in eval_code2() do the right thing.

A side-effect of this change is that cell variables that are also
arguments are listed at the front of co_cellvars in the order they
appear in the argument list.
</pre>
</div>
</content>
</entry>
</feed>
