solde(): handle absence de solde

Et __float__ pour les attributs
This commit is contained in:
Daniel STAN 2015-04-20 17:37:43 +02:00
parent 5a158d7c5c
commit 9738d29d66
2 changed files with 4 additions and 1 deletions

View file

@ -471,6 +471,9 @@ class floatAttr(Attr):
def __unicode__(self):
return unicode(self.value)
def __float__(self):
return self.value
class boolAttr(Attr):
__slots__ = ()
python_type = bool