D
Devin
So Python can have unicode variable names but you can't
"explode" (**myvariable) a dict with unicode keys? WTF?
-Devin
"explode" (**myvariable) a dict with unicode keys? WTF?
-Devin
Devin said:So Python can have unicode variable names but you can't
"explode" (**myvariable) a dict with unicode keys? WTF?
Martin v. Löwis said:That works fine for me.
The OP probably means
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: f() keywords must be strings
Peter
Devin said:Yes, that's exactly what I mean.
Oh. I read somewhere that UTF-8 variable names we're supported.
Hmm. Why did you say that Python can have unicode variable
names? In the version you are using, it can't. In Python
3.0, it can, but then, you can also use Unicode strings
as keys in **arguments, in Python 3.0.
Regards,
Martin
thought I even saw a colleague using Kanji.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.