<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Include/symtable.h, branch v2.2.3</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/symtable.h?h=v2.2.3</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Include/symtable.h?h=v2.2.3'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2003-05-22T16:43:04Z</updated>
<entry>
<title>Backport fix for SF bug 734869 and sundry compiler cleanups.</title>
<updated>2003-05-22T16:43:04Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2003-05-22T16:43:04Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6c75479a80d9f6b0d408c11664b3a089f490c65e'/>
<id>urn:sha1:6c75479a80d9f6b0d408c11664b3a089f490c65e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove st_nested_scopes from struct symtable,</title>
<updated>2001-08-11T21:51:24Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-08-11T21:51:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1abf610b154cc727f219fd52b2c1f868584a6e7b'/>
<id>urn:sha1:1abf610b154cc727f219fd52b2c1f868584a6e7b</id>
<content type='text'>
because nested scopes are always enabled.

(Accidentally checked in one small change along this path yesterday,
wreaking havoc in the Windows build.)
</content>
</entry>
<entry>
<title>Merging the gen-branch into the main line, at Guido's direction.  Yay!</title>
<updated>2001-06-18T22:08:13Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-06-18T22:08:13Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5ca576ed0a0c697c7e7547adfd0b3af010fd2053'/>
<id>urn:sha1:5ca576ed0a0c697c7e7547adfd0b3af010fd2053</id>
<content type='text'>
Bugfix candidate in inspect.py:  it was referencing "self" outside of
a method.
</content>
</entry>
<entry>
<title>Set the line number correctly for a nested function with an exec or</title>
<updated>2001-03-22T03:57:58Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-22T03:57:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2e2cded1b56cc5488f49d395b46131fd995b02bc'/>
<id>urn:sha1:2e2cded1b56cc5488f49d395b46131fd995b02bc</id>
<content type='text'>
import *.  Mark the offending stmt rather than the function def line.
</content>
</entry>
<entry>
<title>add DEF_BOUND</title>
<updated>2001-02-28T23:03:39Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-28T23:03:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=99858b53fc47c98d04357e6a1c0aa5634a443415'/>
<id>urn:sha1:99858b53fc47c98d04357e6a1c0aa5634a443415</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Improved __future__ parser; still more to do</title>
<updated>2001-02-27T19:07:02Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-27T19:07:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4db62b1e14ed909d4bd574633a11c45455c76beb'/>
<id>urn:sha1:4db62b1e14ed909d4bd574633a11c45455c76beb</id>
<content type='text'>
Makefile.pre.in: add target future.o

Include/compile.h: define PyFutureFeaters and PyNode_Future()
                   add c_future slot to struct compiling

Include/symtable.h: add st_future slot to struct symtable

Python/future.c: implementation of PyNode_Future()

Python/compile.c: use PyNode_Future() for nested_scopes support

Python/symtable.c: include compile.h to pick up PyFutureFeatures decl
</content>
</entry>
<entry>
<title>Preliminary support for future nested scopes</title>
<updated>2001-02-27T04:23:34Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-27T04:23:34Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=29906eef3a56c43a4cd68a8706c75844b2384e59'/>
<id>urn:sha1:29906eef3a56c43a4cd68a8706c75844b2384e59</id>
<content type='text'>
compile.h: #define NESTED_SCOPES_DEFAULT 0 for Python 2.1
           __future__ feature name: "nested_scopes"

symtable.h: Add st_nested_scopes slot.  Define flags to track exec and
    import star.

Lib/test/test_scope.py: requires nested scopes

compile.c: Fiddle with error messages.

    Reverse the sense of ste_optimized flag on
    PySymtableEntryObjects.  If it is true, there is an optimization
    conflict.

    Modify get_ref_type to respect st_nested_scopes flags.

    Refactor symtable_load_symbols() into several smaller functions,
    which use struct symbol_info to share variables.  In new function
    symtable_update_flags(), raise an error or warning for import * or
    bare exec that conflicts with nested scopes.  Also, modify handle
    for free variables to respect st_nested_scopes flag.

    In symtable_init() assign st_nested_scopes flag to
    NESTED_SCOPES_DEFAULT (defined in compile.h).

    Add preliminary and often incorrect implementation of
    symtable_check_future().

    Add symtable_lookup() helper for future use.
</content>
</entry>
<entry>
<title>Relax the rules for using 'from ... import *' and exec in the presence</title>
<updated>2001-02-09T22:22:18Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-09T22:22:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=cb17ae8b19c35cc63e7daec871c025d903c49105'/>
<id>urn:sha1:cb17ae8b19c35cc63e7daec871c025d903c49105</id>
<content type='text'>
of nested functions.  Either is allowed in a function if it contains
no defs or lambdas or the defs and lambdas it contains have no free
variables.  If a function is itself nested and has free variables,
either is illegal.

Revise the symtable to use a PySymtableEntryObject, which holds all
the revelent information for a scope, rather than using a bunch of
st_cur_XXX pointers in the symtable struct.  The changes simplify the
internal management of the current symtable scope and of the stack.

Added new C source file: Python/symtable.c.  (Does the Windows build
process need to be updated?)

As part of these changes, the initial _symtable module interface
introduced in 2.1a2 is replaced.  A dictionary of
PySymtableEntryObjects are returned.
</content>
</entry>
<entry>
<title>Fix symbol table pass to generation SyntaxError exceptions that</title>
<updated>2001-02-02T20:01:10Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-02T20:01:10Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d'/>
<id>urn:sha1:5acc0c0cfc3b47ac993cb27e67b8e171a9d4f22d</id>
<content type='text'>
include the filename and line number.
</content>
</entry>
<entry>
<title>Move a bunch of definitions that were internal to compile.c to</title>
<updated>2001-02-02T18:19:15Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-02T18:19:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4b38da664c107bc08768235a66621429beef5444'/>
<id>urn:sha1:4b38da664c107bc08768235a66621429beef5444</id>
<content type='text'>
symtable.h, so that they can be used by external module.

Improve error handling in symtable_enter_scope(), which return an
error code that went unchecked by most callers. XXX The error handling
in symtable code is sloppy in general.

Modify symtable to record the line number that begins each scope.
This can help to identify which code block is being referred to when
multiple blocks are bound to the same name.

Add st_scopes dict that is used to preserve scope info when
PyNode_CompileSymtable() is called.  Otherwise, this information is
tossed as soon as it is no longer needed.

Add Py_SymtableString() to pythonrun; analogous to Py_CompileString().
</content>
</entry>
</feed>
