mpalmer@... wrote:
>So then=20
>
>print >> a,b,c
>
>is equivalent to
>
>self.writeln(a,b,c)
> =20
>
well, no
print >>stream, 'string', var1, var2, whatever
is equivalent to
stream.write('string')
stream.write(str(var1))
stream.write(str(var2))
stream.write(str(whatever))
stream.write('\n')
in other words
self.writeln(a,b,c)
looks like
print >>self, a, b, c
in this syntax, note the >>self and we presume that write converts=20
arguments to strings (like response.write does) also, .write method of=20
webware response class can take multiple arguments, some other streams=20
do not, so this syntax is even more useful w/ them.
--=20
=D0=BC=D0=B0=D0=BB=D1=8E=D0=BA [ m@... // ICQ: 39027534 ]
|