Re: re documentation bug?

2011-03-07 Thread MRAB
On 08/03/2011 03:01, Tycho Andersen wrote: Consider the following session: Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. import re p = re.compile("foo") re.sub(p, "bar", "foobaz", flags=re.IGNORECASE

re documentation bug?

2011-03-07 Thread Tycho Andersen
Consider the following session: Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56) [GCC 4.4.5] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> p = re.compile("foo") >>> re.sub(p, "bar", "foobaz", flags=re.IGNORECASE) Traceback (most recent call las

Re: documentation bug? (format spec mini language)

2010-05-12 Thread Alan G Isaac
On 5/11/2010 5:05 PM, Terry Reedy wrote: http://bugs.python.org/issue8691 Thanks! Alan -- http://mail.python.org/mailman/listinfo/python-list

Re: documentation bug? (format spec mini language)

2010-05-11 Thread Terry Reedy
On 5/11/2010 3:19 PM, MRAB wrote: Alan G Isaac wrote: The documentation at http://docs.python.org/py3k/library/string.html#format-specification-mini-language '<' Forces the field to be left-aligned within the available space (This is the default.) The conflicting example:: >>> format(3.2,'10

Re: documentation bug? (format spec mini language)

2010-05-11 Thread Alan G Isaac
On 5/11/2010 3:19 PM, MRAB wrote: You usually want numbers to be right-aligned so that the decimal points line up when writing a columns of them. Yes. I'm not questioning the wisdom of the implementation, just the documentation of it. Thanks, Alan -- http://mail.python.org/mailman/listinfo/

Re: documentation bug? (format spec mini language)

2010-05-11 Thread MRAB
Alan G Isaac wrote: The documentation at http://docs.python.org/py3k/library/string.html#format-specification-mini-language '<' Forces the field to be left-aligned within the available space (This is the default.) The conflicting example:: >>> format(3.2,'10.5f') '

Re: Documentation bug: Python console behaviour changed

2005-07-20 Thread Claudio Grondi
>> 'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. >> Usually means you have a readline package installed. Right. Readline uninstalled, Ctrl-Z works again. By the way: After trying to take over readline support from Gary Bishop, I have inbetween given up trying to fix readline behaviour

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread John Machin
Kay Schluehr wrote: > > Peter Hansen schrieb: > >>Kay Schluehr wrote: >> >>>The documentation of the Python console behaviour is not correct >>>anymore for Python 2.4.1. At least for the Win2K system I'm working on >>>'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. >>> >>>The Python int

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Claudio Grondi
"Lucas Raab" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Peter Hansen wrote: > > Kay Schluehr wrote: > > > >> The documentation of the Python console behaviour is not correct > >> anymore for Python 2.4.1. At least for the Win2K system I'm working on > >> 'Ctrl-Z' does not s

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Rocco Moretti
Tim Golden wrote: > Usually means you have a readline package installed: Should the readline package be twiddled to change the "quit" string in builtins to document the correct behavior? -- http://mail.python.org/mailman/listinfo/python-list

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Kay Schluehr
Peter Hansen schrieb: > Kay Schluehr wrote: > > The documentation of the Python console behaviour is not correct > > anymore for Python 2.4.1. At least for the Win2K system I'm working on > > 'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. > > > > The Python interpreter tells me instead

RE: Documentation bug: Python console behaviour changed

2005-07-19 Thread Tim Golden
[Lucas Raab] | Peter Hansen wrote: | > Kay Schluehr wrote: | > | >> The documentation of the Python console behaviour is not correct | >> anymore for Python 2.4.1. At least for the Win2K system | I'm working on | >> 'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. | >> | >> The Python in

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Lucas Raab
Peter Hansen wrote: > Kay Schluehr wrote: > >> The documentation of the Python console behaviour is not correct >> anymore for Python 2.4.1. At least for the Win2K system I'm working on >> 'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. >> >> The Python interpreter tells me instead: >> >

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Peter Hansen
Kay Schluehr wrote: > The documentation of the Python console behaviour is not correct > anymore for Python 2.4.1. At least for the Win2K system I'm working on > 'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. > > The Python interpreter tells me instead: > > quit > > 'Use Ctrl-Z p

Re: Documentation bug: Python console behaviour changed

2005-07-19 Thread Simon Dahlbacka
My console follows documentation: C:\tmp\GspRegTestApp>c:\Python24\python ActivePython 2.4.1 Build 245 (ActiveState Corp.) based on Python 2.4.1 (#65, Mar 30 2005, 09:33:37) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> ^Z C:\tmp