Re: Why asci-only symbols?

2005-10-18 Thread Scott David Daniels
Bengt Richter wrote: on tracking the encodings of literal generated astrings The big problem you'll hit is figuring out how to use these strings. Which string ops preserve the encoding? Even the following is problematic: #-*- coding: utf-8 -*- name = 'Martin Löwis' brokenpart =

Re: Why asci-only symbols?

2005-10-18 Thread Martin v. Löwis
Bengt Richter wrote: Others reject it because of semantic difficulties: how would such strings behave under concatenation, if the encodings are different? I mentioned that in parts you snipped (2nd half here): This could also support s1+s2 to mean generate a concatenated string that has the

Re: Why asci-only symbols?

2005-10-17 Thread Martin v. Löwis
Bengt Richter wrote: Well, what will be assumed about name after the lines #-*- coding: latin1 -*- name = 'Martin Löwis' ? Are you asking what is assumed about the identifier 'name', or the value bound to that identifier? Currently, the identifier must be encoded in latin1 in this

Re: Why asci-only symbols?

2005-10-17 Thread Bengt Richter
On Tue, 18 Oct 2005 01:34:09 +0200, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= [EMAIL PROTECTED] wrote: Bengt Richter wrote: Well, what will be assumed about name after the lines #-*- coding: latin1 -*- name = 'Martin Löwis' ? Are you asking what is assumed about the identifier 'name',

Re: Why asci-only symbols?

2005-10-16 Thread Martin v. Löwis
Bengt Richter wrote: Perhaps string equivalence in keys will be treated like numeric equivalence? I.e., a key/name representation is established by the initial key/name binding, but values can be retrieved by equivalent key/names with different representations like unicode vs ascii or

Re: Why asci-only symbols?

2005-10-16 Thread Bengt Richter
On Sun, 16 Oct 2005 12:16:58 +0200, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= [EMAIL PROTECTED] wrote: Bengt Richter wrote: Perhaps string equivalence in keys will be treated like numeric equivalence? I.e., a key/name representation is established by the initial key/name binding, but

Re: Why asci-only symbols?

2005-10-15 Thread Bengt Richter
On Wed, 12 Oct 2005 10:56:44 +0200, =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= [EMAIL PROTECTED] wrote: Mike Meyer wrote: Out of random curiosity, is there a PEP/thread/? that explains why Python symbols are restricted to 7-bit ascii? No PEP yet; I meant to write one for several years now.

Re: Why asci-only symbols?

2005-10-12 Thread Martin v. Löwis
Mike Meyer wrote: Out of random curiosity, is there a PEP/thread/? that explains why Python symbols are restricted to 7-bit ascii? No PEP yet; I meant to write one for several years now. The principles would be - sources must use encoding declarations - valid identifiers would follow the

Why asci-only symbols?

2005-10-10 Thread Mike Meyer
Out of random curiosity, is there a PEP/thread/? that explains why Python symbols are restricted to 7-bit ascii? mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. --

Re: Why asci-only symbols?

2005-10-10 Thread jepler
I'm not aware of any PEPs on the subject, but google groups turns up some past threads. Here's one from February 2004: http://groups.google.com/group/comp.lang.python/browse_frm/thread/d5fcc1c8825a60dc/96856af647ce71d5 I didn't immediately find this message of Guido's that everyone's

Re: Why asci-only symbols?

2005-10-10 Thread Peter Hansen
Mike Meyer wrote: Out of random curiosity, is there a PEP/thread/? that explains why Python symbols are restricted to 7-bit ascii? And of equally random curiosity :-), what alternative(s) can you suggest would have been appropriate? (I note that Unicode, for example, dates from around the

Re: Why asci-only symbols?

2005-10-10 Thread Do Re Mi chel La Si Do
Hi ! I agree with you; I will adore capacity to call functions named in Unicode. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list