[Tutor] pythonic

2018-03-29 Thread Pat Martin
Hello all, I have written the following program. It generates a template for Pelican web site static generator. It works just fine, it generates the template and then I put the info in it to customize. But I was wondering, is this the "right" way to do it in python? #!/usr/bin/env python3

Re: [Tutor] Problem with testing - container

2018-03-29 Thread Albert-Jan Roskam
Op 29 mrt. 2018 21:06 schreef "Shall, Sydney" : > > I have a problem with a specific test, I think. > > I use a Mac with OS X 10.13.3 > I use Anaconda with Python 3.5 > > I have been writing tests for a Class that I have written. I am not > finished yet, but there are

Re: [Tutor] Turtle color question

2018-03-29 Thread Peter Otten
Roger Lea Scherer wrote: > I've tried everything I can think of but cannot get the pencolor to > change. (Although the arrow drawing the boxes changes color.) I've placed > it in places I didn't even think it would work. The arrow draws what looks > like the boxes I expect, but the color looks

Re: [Tutor] XML parsing

2018-03-29 Thread Peter Otten
Asif Iqbal wrote: > On Thu, Mar 29, 2018 at 3:56 AM, Peter Otten <__pete...@web.de> wrote: > >> Asif Iqbal wrote: >> >> > I am trying to extract all the *template-name*s, but no success yet >> > >> > Here is a sample xml file >> > >> > http://tail-f.com/ns/rest;> >> > http://networks.com/nms;>

Re: [Tutor] XML parsing

2018-03-29 Thread Asif Iqbal
On Thu, Mar 29, 2018 at 3:56 AM, Peter Otten <__pete...@web.de> wrote: > Asif Iqbal wrote: > > > I am trying to extract all the *template-name*s, but no success yet > > > > Here is a sample xml file > > > > http://tail-f.com/ns/rest;> > > http://networks.com/nms;> > > ALLFLEX-BLOOMINGTON >

[Tutor] Problem with testing - container

2018-03-29 Thread Shall, Sydney
I have a problem with a specific test, I think. I use a Mac with OS X 10.13.3 I use Anaconda with Python 3.5 I have been writing tests for a Class that I have written. I am not finished yet, but there are already nearly 400 tests. The tests run and return OK. [After cleaning up many silly

[Tutor] Turtle color question

2018-03-29 Thread Roger Lea Scherer
I've tried everything I can think of but cannot get the pencolor to change. (Although the arrow drawing the boxes changes color.) I've placed it in places I didn't even think it would work. The arrow draws what looks like the boxes I expect, but the color looks the same as the background. So I

Re: [Tutor] XML parsing

2018-03-29 Thread Peter Otten
Asif Iqbal wrote: > I am trying to extract all the *template-name*s, but no success yet > > Here is a sample xml file > > http://tail-f.com/ns/rest;> > http://networks.com/nms;> > ALLFLEX-BLOOMINGTON > post-staging > full-mesh > ALLFLEX > http://networks.com/nms;> >

[Tutor] XML parsing

2018-03-29 Thread Asif Iqbal
I am trying to extract all the *template-name*s, but no success yet Here is a sample xml file http://tail-f.com/ns/rest;> http://networks.com/nms;> ALLFLEX-BLOOMINGTON post-staging full-mesh ALLFLEX http://networks.com/nms;> advanced-plus 1000 true