PEP 214 - Why not print >> string?
Aaron Swartz
me at aaronsw.com
Thu Jan 10 22:03:39 EST 2002
On 2002-10-01 1:53 PM, "Mark McEahern" <marklists at mceahern.com> wrote:
>> So
>> x = ''
>> print >> x, 3
>> print >> x, 3
>>
>> would cause x to be '3 3'? Or would it be '3\n3\n' ?
>>
>> What if I forgot to say x = '' first?
> Or what if you said x = 0 first?
I was thinking that it would be an error but your suggestion:
> string = `string` + `value`
is interesting.
--
[ "Aaron Swartz" ; <mailto:me at aaronsw.com> ; <http://www.aaronsw.com/> ]
More information about the Python-list
mailing list