1.1 --- a/micropython/rsvp.py Sat Jan 24 02:41:59 2009 +0100
1.2 +++ b/micropython/rsvp.py Sun Jan 25 02:56:16 2009 +0100
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 RSVP instruction classes.
1.6
1.7 -Copyright (C) 2007, 2008 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2007, 2008, 2009 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -19,13 +19,15 @@
1.13 this program. If not, see <http://www.gnu.org/licenses/>.
1.14 """
1.15
1.16 -from micropython.data import Attr
1.17 +from micropython.data import Attr, Const
1.18
1.19 def name(attr):
1.20 if isinstance(attr, Attr):
1.21 return attr.name or "<unnamed>"
1.22 + elif isinstance(attr, Const):
1.23 + return attr
1.24 else:
1.25 - return attr or "<unnamed>"
1.26 + return attr.full_name() or "<unnamed>"
1.27
1.28 class Instruction:
1.29