A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2008-April/078737.html below:

[Python-Dev] Known doctest bug with unicode?

[Python-Dev] Known doctest bug with unicode? [Python-Dev] Known doctest bug with unicode?Atul Varma varmaa at gmail.com
Fri Apr 18 16:17:47 CEST 2008
Can you provide an example that fails?  This seems to work on my end, for
instance:

  >>> mydict = { u'\u2026' : 'ellipsis' }
  >>> mydict[u'\u2026']
  'ellipsis'

- Atul

On Fri, Apr 18, 2008 at 7:12 AM, Jeroen Ruigrok van der Werven <
asmodai at in-nomine.org> wrote:

> Is it a known doctest bug that when you have a dict with Unicode key
> values
> that doctest dies with a KeyError?
>
> When I excute my code from the regular python interpreter it works as
> expected.
>
> --
> Jeroen Ruigrok van der Werven <asmodai(-at-)in-nomine.org> / asmodai
> $B%$%'%k!<%s(B $B%i%&%U%m%C%/(B $B%t%!%s(B $B%G%k(B $B%&%'%k%t%'%s(B
> http://www.in-nomine.org/ | http://www.rangaku.org/
> Whenever you meet difficult situations dash forward bravely and
> joyfully...
> _______________________________________________
> Python-Dev mailing list
> Python-Dev at python.org
> http://mail.python.org/mailman/listinfo/python-dev
> Unsubscribe:
> http://mail.python.org/mailman/options/python-dev/varmaa%40gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20080418/25d0e2d8/attachment.htm 
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4