<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_scope.py, branch v2.1.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_scope.py?h=v2.1.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_scope.py?h=v2.1.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2001-05-23T13:26:29Z</updated>
<entry>
<title>Backport Jeremy's checkins (frameobject.c:2.50, test_scope.py:1.16,</title>
<updated>2001-05-23T13:26:29Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-05-23T13:26:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e98c5fd575990136755d05615ecba31c787f06d2'/>
<id>urn:sha1:e98c5fd575990136755d05615ecba31c787f06d2</id>
<content type='text'>
test_scope:1.8):

SF patch 419176 from MvL; fixed bug 418977
Two errors in dict_to_map() helper used by PyFrame_LocalsToFast().
</content>
</entry>
<entry>
<title>Backport Jeremy's checkin 1.15:</title>
<updated>2001-05-23T12:15:17Z</updated>
<author>
<name>Thomas Wouters</name>
<email>thomas@python.org</email>
</author>
<published>2001-05-23T12:15:17Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=77307359bf7b3548828a7e7735f544ca4f273d40'/>
<id>urn:sha1:77307359bf7b3548828a7e7735f544ca4f273d40</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>
</entry>
<entry>
<title>Change error message raised when free variable is not yet bound.  It</title>
<updated>2001-04-13T16:51:46Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-04-13T16:51:46Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c76770c68c40021322c221dd6bcd62bf98356a33'/>
<id>urn:sha1:c76770c68c40021322c221dd6bcd62bf98356a33</id>
<content type='text'>
now raises NameError instead of UnboundLocalError, because the var in
question is definitely not local.  (This affects test_scope.py)

Also update the recent fix by Ping using get_func_name().  Replace
tests of get_func_name() return value with call to get_func_desc() to
match all the other uses.
</content>
</entry>
<entry>
<title>Add tests for recent changes:</title>
<updated>2001-03-21T16:44:39Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-21T16:44:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5c7a2513ec277c6c4f5ab4f44b461aeb17a850c4'/>
<id>urn:sha1:5c7a2513ec277c6c4f5ab4f44b461aeb17a850c4</id>
<content type='text'>
- global stmt in class does not affect free vars in methods
- locals() works with free and cell vars
</content>
</entry>
<entry>
<title>Whitespace normalization.</title>
<updated>2001-03-16T08:29:48Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2001-03-16T08:29:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=30edd2387d5d5c1a266956434ebaed59ccfb923f'/>
<id>urn:sha1:30edd2387d5d5c1a266956434ebaed59ccfb923f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add test to verify that nested functions with free variables don't</title>
<updated>2001-03-13T02:01:12Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-03-13T02:01:12Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5b44a67bdb67545679a2e1bfcf482996f8d8abb5'/>
<id>urn:sha1:5b44a67bdb67545679a2e1bfcf482996f8d8abb5</id>
<content type='text'>
cause the free variables to leak.
</content>
</entry>
<entry>
<title>Test interaction of global and nested scopes -- thanks to Samuele Pedroni.</title>
<updated>2001-03-01T20:35:45Z</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2001-03-01T20:35:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9aa643cf6909170d31cfff955318ea7317234663'/>
<id>urn:sha1:9aa643cf6909170d31cfff955318ea7317234663</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add from __future__ import nested_scopes to strings passed to compile</title>
<updated>2001-02-27T20:23:58Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-27T20:23:58Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5941d191deaf2a0c8eab5ce75316067ed16dfb1a'/>
<id>urn:sha1:5941d191deaf2a0c8eab5ce75316067ed16dfb1a</id>
<content type='text'>
</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>Add test for syntax error on "x = 1 + 1".</title>
<updated>2001-02-19T15:35:26Z</updated>
<author>
<name>Jeremy Hylton</name>
<email>jeremy@alum.mit.edu</email>
</author>
<published>2001-02-19T15:35:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=4779399e9f4ff6fe7734fa9931aa6df82a98da24'/>
<id>urn:sha1:4779399e9f4ff6fe7734fa9931aa6df82a98da24</id>
<content type='text'>
Move check_syntax() function into test_support.
</content>
</entry>
</feed>
