Dolda2000 GitWeb
/
wrw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'python3' of git.dolda2000.com:/srv/git/r/wrw into python3
[wrw.git]
/
wrw
/
env.py
diff --git
a/wrw/env.py
b/wrw/env.py
index
6c7e859
..
ed313a3
100644
(file)
--- a/
wrw/env.py
+++ b/
wrw/env.py
@@
-10,8
+10,8
@@
class stack(object):
class environment(object):
__slots__ = ["parent", "map"]
class environment(object):
__slots__ = ["parent", "map"]
- def __init__(self, parent
=
None):
- self.parent =
None
+ def __init__(self, parent
=
None):
+ self.parent =
parent
self.map = weakref.WeakKeyDictionary()
def get(self, var):
self.map = weakref.WeakKeyDictionary()
def get(self, var):
@@
-74,7
+74,7
@@
class binding(object):
class var(object):
__slots__ = ["__weakref__"]
class var(object):
__slots__ = ["__weakref__"]
- def __init__(self, default
=
None):
+ def __init__(self, default
=
None):
if default is not None:
root.map[self] = default
if default is not None:
root.map[self] = default