From D

mensanator at aol.com mensanator at aol.com
Wed Jul 25 21:17:19 EDT 2007


On Jul 25, 8:00 pm, Ben Finney <bignose+hates-s... at benfinney.id.au>
wrote:
> "mensana... at aol.com" <mensana... at aol.com> writes:
> > On Jul 24, 6:08 pm, Steven D'Aprano
> > <st... at REMOVE.THIS.cybersource.com.au> wrote:
> > > Python already does:
> > > "hello-" "world" => "hello-world"
>
> > > Propose:
> > > 123 456 789 => 123456789
> > > 123.456 789 => 123.456789
>
> > So, spaces will no longer be delimiters?
>
> I don't see how you get that conclusion from Steven's proposal.

IDLE 1.2c1
>>> s = '123 456'
>>> s.split()
['123', '456']

The only way to get '123 456' would be to treat a space as a
non-delimiter. But what if those actually WERE two different numbers?

> If the
> latter implied that "spaces will no longer be delimiters", then surely
> the former must also imply that.
>
> The former already exists, spaces are still delimiters when syntax
> allows, so your conclusion is baseless.
>
> --
>  \       "I got food poisoning today. I don't know when I'll use it."  |
>   `\                                                  -- Steven Wright |
> _o__)                                                                  |
> Ben Finney





More information about the Python-list mailing list