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
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
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
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
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/
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')
'
>> '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
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
"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
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
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
[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
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:
>>
>
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
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
15 matches
Mail list logo