mirror of
https://github.com/python/cpython.git
synced 2025-08-27 12:16:04 +00:00
Hide list comp variables and support set comprehensions
This commit is contained in:
parent
6ef6306dd6
commit
650f0d06d3
29 changed files with 2006 additions and 1323 deletions
|
@ -2282,10 +2282,8 @@ class Context(object):
|
|||
_ignored_flags = []
|
||||
if not isinstance(flags, dict):
|
||||
flags = dict([(s,s in flags) for s in _signals])
|
||||
del s
|
||||
if traps is not None and not isinstance(traps, dict):
|
||||
traps = dict([(s,s in traps) for s in _signals])
|
||||
del s
|
||||
for name, val in locals().items():
|
||||
if val is None:
|
||||
setattr(self, name, _copy.copy(getattr(DefaultContext, name)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue