s = f.readline()
if 'mystring' in s: print 'foundit'
if 'mystring' not in s: print 'not found'
if 'mystring' in s:
print 'processing'
this generates output:
not found
processing
so, it doesn't find the substring, but goes into processing code anyway.
This is using IronPython
--
http://mail.p
Thanks guys, I'm thinking it's a problem with IronPython. I'm switching to
PyScripter and will test tomorrow.
"Larry Hudson" wrote in message
news:ybmdnrfzz_3nvu_wnz2dnuvz_hgdn...@giganews.com...
Quin wrote:
s = f.readline()
if 'mystring' in s: print
e Holden" wrote in message
news:mailman.2272.1265774639.28905.python-l...@python.org...
Quin wrote:
Thanks guys, I'm thinking it's a problem with IronPython. I'm switching
to PyScripter and will test tomorrow.
I'd be very surprised to find that something as basic as this was wr
Well, now you know!
"Jean-Michel Pichavant" wrote in message
news:mailman.2286.1265797348.28905.python-l...@python.org...
Quin wrote:
Thanks guys, I'm thinking it's a problem with IronPython. I'm switching
to PyScripter and will test tomorrow.
I'm willing t
You know, Jack, that was the point of my original post: to determine why
things weren't working. Do you still want to bet money that it is? I can
screenshot you TD.
"Jean-Michel Pichavant" wrote in message
news:mailman.2288.1265799238.28905.python-l...@python.org...
Qu