why did string.py change in 1.6?

Andrew Dalke dalke at acm.org
Sat Apr 1 15:43:20 EST 2000


Fredrik Lundh wrote:
> python 1.6 has two string types.  the 'strop' module
> only supports one of them.

Ah, I get it.  The new string library allows both string
and unicode list elements and seperator; returning string
only if both terms are string.

My concern about performance disappears because I can get
the join method of the seperator, as in this hypothetical
example:

  join = "\t".join
  for i in range(data.shape[0]):
    print join(data[i])

Thanks!

                        Andrew
                        dalke at acm.org






More information about the Python-list mailing list