Unicode 7
Rustom Mody
rustompmody at gmail.com
Fri May 2 20:58:51 EDT 2014
On Friday, May 2, 2014 11:37:02 PM UTC+5:30, Peter Otten wrote:
> Rustom Mody wrote:
> > Just noticed a small thing in which python does a bit better than haskell:
> > $ ghci
> > let (fine, fine) = (1,2)
> > Prelude> (fine, fine)
> > (1,2)
> > In case its not apparent, the fi in the first fine is a ligature.
> > Python just barfs:
> Not Python 3:
> Python 3.3.2+ (default, Feb 28 2014, 00:52:16)
> [GCC 4.8.1] on linux
> Type "help", "copyright", "credits" or "license" for more information.
> >>> (fine, fine) = (1,2)
> >>> (fine, fine)
> (2, 2)
> No copy-and-paste errors involved:
> >>> eval("\ufb01ne")
> 2
> >>> eval(b"fine".decode("ascii"))
> 2
Aah! Thanks Peter (and Ned and Michael) — 2-3 confusion — my bad.
I am confused about the tone however:
You think this
>>> (fine, fine) = (1,2) # and no issue about it
is fine?
More information about the Python-list
mailing list