pep 308: why doing (almost) nothing suffices

Magnus Lie Hetland mlh at furu.idi.ntnu.no
Mon Mar 10 12:05:19 EST 2003


In article <mn0ba.2903$ES3.2330795 at kent.svc.tds.net>, Edward K. Ream wrote:
>> How about repr(s)?
>
>I don't think so.
>
>>>> s = 'a'
>>>> repr(s)
>"'a'"
>
>>>> s = "a"
>>>> repr(s)
>"'a'"

If the deal was that eval(s.quote()) == s then what's the problem?
After all, "a" == 'a'.

-- 
Magnus Lie Hetland               "Nothing shocks me. I'm a scientist." 
http://hetland.org                                   -- Indiana Jones




More information about the Python-list mailing list