[New-bugs-announce] [issue3641] Builtin ascii() function from future_builtins includes leading "u" of unicode strings

tav report at bugs.python.org
Fri Aug 22 02:19:55 CEST 2008


New submission from tav <tav at espians.com>:

Perhaps I misunderstood the intended behaviour of the ascii() builtin in 
the future_builtins module, but the following behaviour is unexpected:

  >>> from __future__ import unicode_literals
  >>> from future_builtins import ascii

  >>> test = 'hello'

  >>> ascii(test)
  "u'hello'"

Surely the leading 'u' should not be there?

After all, this is a future builtin we are importing -- when all 
'strings' are unicode by default?

----------
components: Library (Lib)
messages: 71708
nosy: tav
severity: normal
status: open
title: Builtin ascii() function from future_builtins includes leading "u" of unicode strings
type: behavior
versions: Python 2.6

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3641>
_______________________________________


More information about the New-bugs-announce mailing list