GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • [Python-Dev] ''.join in 1.6
  • [Python-Dev] SOAP
  • [ date ]
  • [ thread ]
  • [ subject ]
  • [ author ]

This view

  • Original page
  • New address

GeezerVison is showing mail.python.org — [Python-Dev] ''.join in 1.6

[Python-Dev] ''.join in 1.6

David Ascher [email protected]
Wed, 19 Jan 2000 12:54:03 -0800

  • Previous message: [Python-Dev] ''.join in 1.6
  • Next message: [Python-Dev] SOAP
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

Gerrit Holl

> Currently, I would join it this way into a tab-delimeted string:
> s = string.join(l, '\t')
>
> In 1.6, I should do it this way:
> '\t'.join(s)
>
> I think it would be better to have that method on the *list*:
> s.join('\t')
>
> That's more clear, isn't it?

As Tim pointed out when they were discussed, the clearest way to express it
with the new methods is to do:

tab = '\t'

tab.join(s)

Similarly

space = ' '
space.join(s)

etc.

--david ascher




  • Previous message: [Python-Dev] ''.join in 1.6
  • Next message: [Python-Dev] SOAP
  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.