[Baypiggies] Frequently Argued Objections

Chad Netzer chad.netzer at gmail.com
Sat Jun 21 19:58:41 CEST 2008


On Sat, Jun 21, 2008 at 10:37 AM, Sean Perry <shaleh at speakeasy.net> wrote:

> *) the inconsistent standard library. Is it a function? A class? A method?
> CamelCase? To this day I despise " ".join(some_list). Give me string.join("
> ", some_list) any day. But then, my 1.5 heritage is showing.

$ python
Python 2.5 (r25:51918, Sep 19 2006, 08:49:13)
>>> a = list('1234')
>>> a
['1', '2', '3', '4']
>>> str.join(",", a)
'1,2,3,4'
>>> str.join("", a)
'1234'

Perhaps you knew about this, but in case you didn't...

Chad


More information about the Baypiggies mailing list