Re: [Python-3000] [Python-Dev] Issues with PEP 3101 (string formatting)

2007-06-25 Thread Jim Jewett
On 6/24/07, Paul Moore <[EMAIL PROTECTED]> wrote: > Count me as +0 on allowing a.b, and -1 on allowing a.b > unless b contains leading underscores. FWIW, I do want to allow a.b, because it means I can more easily pass locals(), instead of creating a one-use near-boilerplate dictionary, such as {"

[Python-3000] Bug(s) in 2to3

2007-06-25 Thread James Thiele
After checking out subversion repository of 2to3 yesterday I found two cases where refactor.py failed. It didn't like this line: example.py:322:print h.iterkeys().next() throwing: AttributeError: 'DelayedStrNode' object has no attribute 'set_prefix' The attached file "dict_ex.py" is a short

Re: [Python-3000] Bug(s) in 2to3

2007-06-25 Thread Collin Winter
On 6/25/07, James Thiele <[EMAIL PROTECTED]> wrote: > After checking out subversion repository of 2to3 yesterday I found two > cases where refactor.py failed. I'll fix this. Thanks for the bug report. Collin Winter ___ Python-3000 mailing list Python-30

[Python-3000] Fix for Lib/pydoc.py in p3yk

2007-06-25 Thread Alexandre Vassalotti
Hi, I found two small bugs in pydoc.py. The patch is rather simple, so I doubt I have to explain it. Note, I removed the -*- coding: -*- tag, since the encoding of pydoc.py is actually utf-8, not Latin-1 (at least, that's what Emacs told me). -- Alexandre Index: Lib/pydoc.py

Re: [Python-3000] Fix for Lib/pydoc.py in p3yk

2007-06-25 Thread Georg Brandl
Alexandre Vassalotti schrieb: > Hi, > > I found two small bugs in pydoc.py. The patch is rather simple, so I doubt > I have to explain it. You've submitted this before; I've already committed it to SVN. > Note, I removed the -*- coding: -*- tag, since > the encoding of pydoc.py is actually utf-8

Re: [Python-3000] StringIO/BytesIO in io.py doesn't over-seek properly

2007-06-25 Thread Alexandre Vassalotti
On 6/23/07, Guido van Rossum <[EMAIL PROTECTED]> wrote: On 6/23/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > I agree with this. I will try to write a patch to fix io.BytesIO. Great! I got the patch (it's attached to this email). The fix was simpler than I thought. I would like to wri

Re: [Python-3000] Fix for Lib/pydoc.py in p3yk

2007-06-25 Thread Alexandre Vassalotti
On 6/25/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Alexandre Vassalotti schrieb: > > I found two small bugs in pydoc.py. The patch is rather simple, so I doubt > > I have to explain it. > > You've submitted this before; I've already committed it to SVN. > Really??? I don't remember this ... My

Re: [Python-3000] Fix for Lib/pydoc.py in p3yk

2007-06-25 Thread Alexandre Vassalotti
On 6/25/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: > On 6/25/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > > You've submitted this before; I've already committed it to SVN. > > Really??? I don't remember this ... My last patch was against pdb.py, > not pydoc.py Nevermind, I just found out

Re: [Python-3000] [Python-Dev] Python 3000 Status Update (Long!)

2007-06-25 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, Josiah Carlson <[EMAIL PROTECTED]> wrote: > ...one could make the argument that TOOTDI says that literals and > generators + constructors are the only reasonable options. > Comprehensions save perhaps 5 characters over the constructor method, > and may be a bit fas

Re: [Python-3000] Fix for Lib/pydoc.py in p3yk

2007-06-25 Thread Alexandre Vassalotti
Meanwhile, I found another division/range combination that could be problematic. I attached an updated patch. -- Alexandre On 6/25/07, Alexandre Vassalotti <[EMAIL PROTECTED]> wrote: Hi, I found two small bugs in pydoc.py. The patch is rather simple, so I doubt I have to explain it. Note, I re

Re: [Python-3000] [Python-Dev] Python 3000 Status Update (Long!)

2007-06-25 Thread Josiah Carlson
"Russell E. Owen" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Josiah Carlson <[EMAIL PROTECTED]> wrote: > > > ...one could make the argument that TOOTDI says that literals and > > generators + constructors are the only reasonable options. > > Comprehensions save perhaps 5 char