From: pin Date: Tue, 9 Feb 2010 12:51:52 +0000 (+0000) Subject: __repr__ dissociƩ de __str__ X-Git-Url: https://scm.cri.mines-paristech.fr/git/minwii.git/commitdiff_plain/27f0459072ce2077d73bc95e95b4dc52af86147c __repr__ dissociƩ de __str__ git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@18 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/songs/musicxmltosong.py b/src/songs/musicxmltosong.py index 068017f..91feeae 100755 --- a/src/songs/musicxmltosong.py +++ b/src/songs/musicxmltosong.py @@ -173,7 +173,8 @@ class Note(object) : def __str__(self) : return (u'%5s %2s %2d %4s' % (self.nom, self.name, self.midi, round(self.duration, 2))).encode('utf-8') - __repr__ = __str__ + def __repr__(self) : + return self.name.encode('utf-8') def addDuration(self, note) : self._duration = self.duration + note.duration