Re: [Tutor] implementing sed - termination error

2016-11-01 Thread cs
On 01Nov2016 20:18, bruce wrote: Running a test on a linux box, with python. Trying to do a search/replace over a file, for a given string, and replacing the string with a chunk of text that has multiple lines. From the cmdline, using sed, no prob. however, implementing sed, runs into issues, t

Re: [Tutor] Python code

2016-11-01 Thread Danny Yoo
On Nov 1, 2016 4:57 PM, "Haley Sandherr" wrote: > > Hello, I am new to python and need help with this question: > > Compose a function odd ( ) that takes three bool arguments and returns True if an odd number of arguments are True and False otherwise. Do you understand all of the terms in the que

Re: [Tutor] Python code

2016-11-01 Thread Alan Gauld via Tutor
On 01/11/16 21:28, Haley Sandherr wrote: > Hello, I am new to python and need help with this question: What kind of help? What exactly do you find difficult? > > Compose a function odd ( ) Can you define a function? Any function? > that takes three bool arguments Can you define a function th

Re: [Tutor] implementing sed - termination error

2016-11-01 Thread Alan Gauld via Tutor
On 02/11/16 00:18, bruce wrote: > Trying to do a search/replace over a file, for a given string, and > replacing the string with a chunk of text that has multiple lines. > > From the cmdline, using sed, no prob. however, implementing sed, runs > into issues, that result in a "termination error"

[Tutor] implementing sed - termination error

2016-11-01 Thread bruce
Hi Running a test on a linux box, with python. Trying to do a search/replace over a file, for a given string, and replacing the string with a chunk of text that has multiple lines. >From the cmdline, using sed, no prob. however, implementing sed, runs into issues, that result in a "termination e

Re: [Tutor] Python code

2016-11-01 Thread Steven D'Aprano
On Tue, Nov 01, 2016 at 05:28:34PM -0400, Haley Sandherr wrote: > Hello, I am new to python and need help with this question: > > Compose a function odd ( ) that takes three bool arguments and returns > True if an odd number of arguments are True and False otherwise. What part are you having tro

[Tutor] Python code

2016-11-01 Thread Haley Sandherr
Hello, I am new to python and need help with this question: Compose a function odd ( ) that takes three bool arguments and returns True if an odd number of arguments are True and False otherwise. ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] nosetests on travis-ci.org

2016-11-01 Thread Joaquin Alzola
>python-l...@python.org >also available on Usenet as comp.lang.python, as it tends to have people >with a much broader range of experience than here. But even there, >you'll probably be asked to come up with a minimum example that >demonstrates the problem: Also try on IRC chat.freenode.net Th