1.1 --- a/lib/builtins.py Fri Feb 16 00:50:41 2007 +0100
1.2 +++ b/lib/builtins.py Sun Feb 18 00:37:57 2007 +0100
1.3 @@ -31,6 +31,8 @@
1.4 return self.__add__(other)
1.5
1.6 class bool:
1.7 + __atomic__ = 1
1.8 +
1.9 def __bool__(self):
1.10 return self
1.11
1.12 @@ -70,6 +72,8 @@
1.13 pass
1.14
1.15 class float:
1.16 + __atomic__ = 1
1.17 +
1.18 def __iadd__(self, other):
1.19 if isinstance(other, int):
1.20 return float()
1.21 @@ -283,6 +287,8 @@
1.22 return self != 0
1.23
1.24 class int:
1.25 + __atomic__ = 1
1.26 +
1.27 def __iadd__(self, other):
1.28 if isinstance(other, int):
1.29 return int()
1.30 @@ -477,6 +483,8 @@
1.31 return bool()
1.32
1.33 class long:
1.34 + __atomic__ = 1
1.35 +
1.36 def __iadd__(self, other):
1.37 if isinstance(other, int):
1.38 return long()
1.39 @@ -586,6 +594,8 @@
1.40 return self != 0
1.41
1.42 class none:
1.43 + __atomic__ = 1
1.44 +
1.45 def __bool__(self):
1.46 return False
1.47
1.48 @@ -593,6 +603,8 @@
1.49 return "None"
1.50
1.51 class str:
1.52 + __atomic__ = 1
1.53 +
1.54 def __init__(self, x=None):
1.55 x.__str__()
1.56
1.57 @@ -725,19 +737,19 @@
1.58 pass
1.59
1.60 class AttributeError(Exception):
1.61 - pass
1.62 + __atomic__ = 1
1.63
1.64 class IndexError(Exception):
1.65 - pass
1.66 + __atomic__ = 1
1.67
1.68 class StopIteration(Exception):
1.69 - pass
1.70 + __atomic__ = 1
1.71
1.72 class TypeError(Exception):
1.73 - pass
1.74 + __atomic__ = 1
1.75
1.76 class NotImplementedType:
1.77 - pass
1.78 + __atomic__ = 1
1.79
1.80 # General functions.
1.81