for line3 in myips matching too longer matches.

2019-06-26 Thread Chris Roberts
### CODE: elif line1.rstrip(‘\n’) in line2.strip(‘\n’): for line3 in myips: print “###” print “line1 is %s” % line1.rstrip(‘\n’) print “line2 is %s” % line2.strip(‘\n’) ### OUTPUT: line1 is 10.10.168.2 line2 is

Re: Python... feeding an instance as an argument into a new instance.

2017-09-03 Thread Chris Roberts
On Saturday, September 2, 2017 at 6:34:59 PM UTC-4, Chris Roberts wrote: > Perhaps someone here could help me to get this into perspective. > Somehow when we start to feed an instance as the argument in a new instance. > my head explodes.. > in this case... > a = Foo() > b = Ba

Python... feeding an instance as an argument into a new instance.

2017-09-02 Thread Chris Roberts
Perhaps someone here could help me to get this into perspective. Somehow when we start to feed an instance as the argument in a new instance. my head explodes.. in this case... a = Foo() b = Bar(a) So... a is a 'Foo instance' with properties and methods. b is a 'Bar instance' Since b is using

Re: Python, convert an integer into an index?

2015-09-23 Thread Chris Roberts
6:21 PM, Laura Creighton wrote: > In a message of Tue, 22 Sep 2015 14:43:55 -0700, Chris Roberts writes: > > > > > >(How do I make it into an index? ) > >Preferably something fairly easy to understand as I am new at this. > > > >results = 134523 #(Integ

Python, convert an integer into an index?

2015-09-22 Thread Chris Roberts
(How do I make it into an index? ) Preferably something fairly easy to understand as I am new at this. results = 134523 #(Integer) Desired: results = [1, 2, 3, 4, 5, 2, 3] #(INDEX) Somehow I see ways to convert index to list to int, but not back again. Thanks, crzzy1 -- https://mail