Terry J. Reedy <tjre...@udel.edu> added the comment:

https://docs.python.org/3/library/symtable.html#symtable.SymbolTable.has_exec
merely says "Return True if the block uses exec."  This never happens since
https://github.com/python/cpython/blob/3.8/Lib/symtable.py#L87
is "return False".  I presume 'exec' refers to 2.x statement, not the 3.x 
function.  The docstring on line 86 does say "Deprecated method."

Guido, you changed these lines in 2006, in 
2def557aba1aaa42b638f9bf95624b7e6929191c  I presume you left them for the 
benefit of ported 2.7 code.  Should the function be removed for 3.9 or left 
until 3.10?  Your commit message referred to 'dead EXEC related constants'.  Is 
there anything else that should be removed?

----------
nosy: +gvanrossum, terry.reedy
title: Remove deprecated SymbolTable.has_exec -> Remove deprecated 
symtable.SymbolTable.has_exec

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40208>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to