Why does Python mix OO concepts and non OO concepts for operation s on basic types?

James T. Dennis jadestar at idiom.com
Mon Jun 10 19:19:13 EDT 2002


On Mon, Jun 10, 2002 at 05:00:30PM -0600, Bjorn Pettersen wrote:
>> From: James T. Dennis [mailto:jadestar at idiom.com] 
> > 
> Your wish is granted:
 
> >>> x = []
> >>> list.append(x, 5)
> >>> x
> [5]
> >>> str.join(' ', ['a', 'b', 'c'])
> 'a b c'
> >>>
> 
> not-that-I-would-ever-do-something-like-that'ly y'rs
> -- bjorn

 Doh!
 Thanks.

 should-have-tried-that-before-I-posted'ly y'rs
 Jim.






More information about the Python-list mailing list