Thomas Heller <[EMAIL PROTECTED]> wrote:
>  I like the fact that currently unicode(x) is guarateed to return a
>  unicode instance, or raises a UnicodeDecodeError.  Same for str(x),
>  which is guaranteed to return a (byte) string instance or raise an
>  error.

I guess its analogous to this...

  >>> int(100000000000000L)
  100000000000000L

>  Wouldn't also a new function make the intent clearer?
> 
>  So I think I'm +1 on the text() built-in, and -0 on changing str.

Couldn't basestring() perform this function?  Its kind of what
basestring is for isn't it?

-- 
Nick Craig-Wood <[EMAIL PROTECTED]> -- http://www.craig-wood.com/nick
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to