Re: Using python heredoc to substitute the external file read by python script.

2016-03-28 Thread Ben Finney
I don't understand what you're trying to do. But I think you have fixed your problem: Hongyi Zhao writes: > It seems the above code will do the job for me. If I understand correctly this sentence, you now have a satisfactory solution. Good! -- \ “A man must consider what a rich realm

Re: Using python heredoc to substitute the external file read by python script.

2016-03-28 Thread Hongyi Zhao
On Mon, 28 Mar 2016 21:29:48 +1100, Ben Finney wrote: >> If I want to use python heredoc to substitute this external file for >> the above codes. Is this possible? > > What do you mean by “Python heredoc”? What Python feature are you > referring to? I find the following methods currently: impor

Re: Using python heredoc to substitute the external file read by python script.

2016-03-28 Thread Ben Finney
Hongyi Zhao writes: > If I want to use python heredoc to substitute this external file for > the above codes. Is this possible? What do you mean by “Python heredoc”? What Python feature are you referring to? -- \ “Anyone who puts a small gloss on [a] fundamental technology, | `\