[issue26255] symtable.Symbol.is_referenced() returns false for valid use

2016-02-01 Thread Luke Schubert
New submission from Luke Schubert: If the following function is saved in listcomp.py: def encode(inputLetters): code = {'C':'D', 'F':'E'} return set(code[x] for x in inputLetters) and the following code is used to create a symtable for this function: import symtable if __name__ ==

[issue26255] symtable.Symbol.is_referenced() returns false for valid use

2016-02-01 Thread SilentGhost
Changes by SilentGhost : -- components: +Extension Modules, Library (Lib) nosy: +benjamin.peterson ___ Python tracker ___

[issue26255] symtable.Symbol.is_referenced() returns false for valid use

2016-02-01 Thread Xiang Zhang
Changes by Xiang Zhang <18518281...@126.com>: -- nosy: +xiang.zhang ___ Python tracker ___ ___

[issue26255] symtable.Symbol.is_referenced() returns false for valid use

2016-02-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: The genexp implicitly creates a nested function in which *code* is referenced. -- resolution: -> not a bug status: open -> closed ___ Python tracker