mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
revert 65897
This commit is contained in:
parent
768008c6e2
commit
b71caf186a
4 changed files with 13 additions and 16 deletions
|
|
@ -128,8 +128,8 @@ class Function(SymbolTable):
|
|||
__globals = None
|
||||
|
||||
def __idents_matching(self, test_func):
|
||||
return frozenset(ident for ident in self.get_identifiers()
|
||||
if test_func(self._table.symbols[ident]))
|
||||
return tuple([ident for ident in self.get_identifiers()
|
||||
if test_func(self._table.symbols[ident])])
|
||||
|
||||
def get_parameters(self):
|
||||
if self.__params is None:
|
||||
|
|
@ -164,7 +164,7 @@ class Class(SymbolTable):
|
|||
d = {}
|
||||
for st in self._table.children:
|
||||
d[st.name] = 1
|
||||
self.__methods = frozenset(d)
|
||||
self.__methods = tuple(d)
|
||||
return self.__methods
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue