Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Terry Reedy
Martin v. Löwis wrote: I really need to know the exact sequence of actions done to this folder. One possible explanation is that you installed alpha4, then upgraded to beta1. .0a3 to .0a4 to .0b1. I do not know how to run 2to3 and do not remember trying to do so. pickle.load(...) failed say

Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Martin v. Löwis
>> What did you do, > Nothing relevant You didn't even install Python? If so, how did the files get into \Program Files\Python30? I really need to know the exact sequence of actions done to this folder. One possible explanation is that you installed alpha4, then upgraded to beta1. Another explana

Re: [Python-3000] re.LOCALE

2008-06-29 Thread Martin v. Löwis
> Another question, about re.LOCALE. Its utility is dubious, and it's never used > in the stdlib (apart from the re tests themselves). What should we do: > - drop it entirely > - only allow it on bytes patterns (it doesn't make sense on unicode strings) > - leave it as-is > ? I suggest to drop

Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Terry Reedy
Martin v. Löwis wrote: Terry Reedy wrote: WinXP 3.0 specifically .0b1 lib2to3 has grammar3.0.0.alpha.4.pickle What do you mean by "has"? The standard sense of 'directory has file' Directory of C:\Program Files\Python30\Lib\lib2to3 06/19/2008 10:57 PM . 06/19/2008 10:57 P

[Python-3000] re.LOCALE

2008-06-29 Thread Antoine Pitrou
Another question, about re.LOCALE. Its utility is dubious, and it's never used in the stdlib (apart from the re tests themselves). What should we do: - drop it entirely - only allow it on bytes patterns (it doesn't make sense on unicode strings) - leave it as-is ?

Re: [Python-3000] Regular expressions, py3k and unicode

2008-06-29 Thread Antoine Pitrou
Mark Dickinson gmail.com> writes: > > In any case, it seems to me that having something like re.ASCII > would be useful. Should an inline flag "(?a)" also be introduced to mirror the existing "(?u)" to set the unicode flag inside a pattern? ___ Pyth

Re: [Python-3000] 2to3: update? doc?

2008-06-29 Thread Martin v. Löwis
Terry Reedy wrote: > WinXP 3.0 > lib2to3 has grammar3.0.0.alpha.4.pickle What do you mean by "has"? What did you do, what happened, what did you expect to happen instead? The MSI file should have installed no .pickle files whatsoever. > was nothing updated for the beta? > or did grammar3.0.0.bet

[Python-3000] 2to3: update? doc?

2008-06-29 Thread Terry Reedy
WinXP 3.0 lib2to3 has grammar3.0.0.alpha.4.pickle was nothing updated for the beta? or did grammar3.0.0.beta.a.pickle only make 2.6b1? I cannot find any doc in the libref (it would belong, I believe, in Development Tools). Intentional? Not done yet? tjr __

Re: [Python-3000] xrange is still present in idlelib/EditorWindow.py

2008-06-29 Thread Terry Reedy
nirinA raseliarison wrote: Exception in Tkinter callback Traceback (most recent call last): File "/root/Py3kb1/lib/python3.0/tkinter/__init__.py", line 1409, in __call__ return self.func(*args) File "/root/Py3kb1/lib/python3.0/idlelib/MultiCall.py", line 165, in handler r = l[i]

Re: [Python-3000] Regular expressions, py3k and unicode

2008-06-29 Thread Antoine Pitrou
Mark Dickinson gmail.com> writes: > > Is there a quick way to convert a general Unicode digit to its > ascii equivalent? Having to run str(int(c)) on each numeric character > sounds painful, and the Decimal constructor doesn't need to > be any slower right now. In C it looks like PyUnicode_Enco

Re: [Python-3000] Regular expressions, py3k and unicode

2008-06-29 Thread Mark Dickinson
On Sun, Jun 29, 2008 at 12:36 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > > Indeed. On the other hand it already works properly for ints and floats, > so perhaps Decimal shouldn't refuse unicode digits like it currently > does: Maybe. The IBM standard doesn't seem to say whether other Unicode

[Python-3000] xrange is still present in idlelib/EditorWindow.py

2008-06-29 Thread nirinA raseliarison
Exception in Tkinter callback Traceback (most recent call last): File "/root/Py3kb1/lib/python3.0/tkinter/__init__.py", line 1409, in __call__ return self.func(*args) File "/root/Py3kb1/lib/python3.0/idlelib/MultiCall.py", line 165, in handler r = l[i](event) File "/root/Py3kb1/li

Re: [Python-3000] Regular expressions, py3k and unicode

2008-06-29 Thread Antoine Pitrou
Le dimanche 29 juin 2008 à 12:05 +0100, Mark Dickinson a écrit : > Might this have some unintended consequences? For example, one > would then get the following undesirable behaviour from the decimal > module, using inputs with Unicode fullwidth digits. > > >>> Decimal('\uff11') > Decimal('1') >

Re: [Python-3000] Regular expressions, py3k and unicode

2008-06-29 Thread Mark Dickinson
On Sat, Jun 28, 2008 at 9:45 PM, Antoine Pitrou <[EMAIL PROTECTED]> wrote: > Wouldn't it be more natural that, at least when the pattern is a str object > rather a bytes object, the re.UNICODE be implied by default? Might this have some unintended consequences? For example, one would then get the

Re: [Python-3000] Regular expressions, py3k and unicode

2008-06-29 Thread Antoine Pitrou
Nick Coghlan gmail.com> writes: > > Would there be any reason (I do not know) to replace that with an > > re.ASCII flag to have the reverse effect (assuming there is not now)? > > I'd be inclined to have it implied by the type of the argument - a str > argument implies re.UNICODE is set, a byte