[Tutor] What does '>>' pr '>' do?
Bob Gailer
ramrom@earthling.net
Wed Mar 12 15:42:02 2003
--=======780C31AF=======
Content-Type: multipart/alternative; x-avg-checked=avg-ok-4B3B7BC2; boundary="=====================_35565931==.ALT"
--=====================_35565931==.ALT
Content-Type: text/plain; x-avg-checked=avg-ok-4B3B7BC2; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 8bit
At 09:21 PM 3/12/2003 +0100, Francois Granger wrote:
>At 12:46 -0700 12/03/2003, in message Re: [Tutor] What does '>>' pr '>'
>do?, Bob Gailer wrote:
>>Content-Type: text/plain; x-avg-checked=avg-ok-4B3B7BC2;
>>charset=us-ascii; format=flowed
>>Content-Transfer-Encoding: 8bit
>>
>>At 10:32 AM 3/12/2003 -0800, Gerardo Arnaez wrote:
>>>'pipr' info into a file.
>>>I think it was either '>' or '>>' but can not find it in documentation
>>
>>I think this refers to things you can do in the WIndows command line or
>>the *ux shell. Example
>>
>>someprompt>python foo.py > somefile.txt
>>
>>directs any stdout from the python program to somefile.txt. >> does same
>>except appends to somefile.txt
>
>I think that it refers to this:
>
>http://python.org/peps/pep-0214.html
Its even in the documentation!
print_stmt ::= "print" ( [<Booleans.htm#tok-expression>expression (","
<Booleans.htm#tok-expression>expression)* [","]]
| ">>" <Booleans.htm#tok-expression>expression [(","
<Booleans.htm#tok-expression>expression)+ [","]] )
Bob Gailer
mailto:ramrom@earthling.net
303 442 2625
--=====================_35565931==.ALT
Content-Type: text/html; x-avg-checked=avg-ok-4B3B7BC2; charset=us-ascii
Content-Transfer-Encoding: 8bit
<html>
<body>
At 09:21 PM 3/12/2003 +0100, Francois Granger wrote:<br><br>
<blockquote type=cite class=cite cite>At 12:46 -0700 12/03/2003, in
message Re: [Tutor] What does '>>' pr '>' do?, Bob Gailer
wrote:<br>
<blockquote type=cite class=cite cite>Content-Type: text/plain;
x-avg-checked=avg-ok-4B3B7BC2; charset=us-ascii; format=flowed<br>
Content-Transfer-Encoding: 8bit<br><br>
At 10:32 AM 3/12/2003 -0800, Gerardo Arnaez wrote:<br>
<blockquote type=cite class=cite cite>'pipr' info into a file.<br>
I think it was either '>' or '>>' but can not find it in
documentation</blockquote><br>
I think this refers to things you can do in the WIndows command line or
the *ux shell. Example<br><br>
someprompt>python foo.py > somefile.txt<br><br>
directs any stdout from the python program to somefile.txt. >> does
same except appends to somefile.txt</blockquote><br>
I think that it refers to this:<br><br>
<a href="http://python.org/peps/pep-0214.html" eudora="autourl">http://python.org/peps/pep-0214.html</a><br>
</blockquote><br>
Its even in the documentation!
<dl>
<dd>p<a name="tok-print_stmt"></a>rint_stmt ::=
"print" (
<font size=4>[</font><a href="Booleans.htm#tok-expression">expression</a>
("," <a href="Booleans.htm#tok-expression">expression</a>)* <font size=4>[</font>","<font size=4>]]</font>
<dd> | ">>" <a href="Booleans.htm#tok-expression">expression</a> <font size=4>[</font>("," <a href="Booleans.htm#tok-expression">expression</a>)+ <font size=4>[</font>","<font size=4>]]</font> )<x-sigsep><p></x-sigsep>
</dl>Bob Gailer<br>
<a href="mailto:ramrom@earthling.net" eudora="autourl">mailto:ramrom@earthling.net</a><br>
303 442 2625<br>
</body>
</html>
--=====================_35565931==.ALT--
--=======780C31AF=======
Content-Type: text/plain; charset=us-ascii; x-avg=cert; x-avg-checked=avg-ok-4B3B7BC2
Content-Disposition: inline
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.459 / Virus Database: 258 - Release Date: 2/25/2003
--=======780C31AF=======--