What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » unicode in python

unicode in python
Author: Message:
Jarrod
Veteran Member
*****

Avatar
woot simpson

Posts: 1304
Reputation: 20
– / Male / Flag
Joined: Sep 2006
O.P. RE: unicode in python
do you mean
quote:
Originally posted by Jarrod

     def __str__(self):
        if self.cards:
            rep = ""
            for card in self.cards:
                rep += str(card) + " "


to

    def __str__(self):
        if self.cards:
            rep = ""
            for card in self.cards:
                rep += repr(card) + " "
?
------------------
i replaced all the strs with repr s but no luck


This post was edited on 04-02-2008 at 06:39 AM by Jarrod.

[Image: 5344.png]
[Image: sig.png]

A.k.a. The Glad Falconer














04-02-2008 06:15 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
unicode in python - by Jarrod on 04-01-2008 at 08:31 AM
RE: unicode in python - by somelauw on 04-01-2008 at 12:16 PM
RE: unicode in python - by Jarrod on 04-02-2008 at 06:15 AM
RE: unicode in python - by somelauw on 04-02-2008 at 11:58 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On