Python regexp exclude problem

2011-06-01 Thread Lutfi Oduncuoglu
Hello, I am trying to write a script for adding ip address to a list. Those ip addresses coming thorough from our edge router. I have a line in may script like if any(s not in z2 for s in('144.122.','188.38','193.140.99.2','213.161.144.166','92.45.88.242')): os.system( echo

if statement multiple or

2011-05-06 Thread Lutfi Oduncuoglu
Hi, I am trying to write a script and I realised that I need to use something like if ('a' or 'b' or 'c') not in line: print line But it does not work for. What may be the problem Thanks, Lutfi -- http://mail.python.org/mailman/listinfo/python-list

TypeError: an integer is required

2009-11-22 Thread Lutfi Oduncuoglu
Hello, I am a newbie on oython and I am taking the error at subject my code is below, I am trying to develop a qgis plugin and lines begin with # is the thing that I tried. Thus sys.stdout gives the type error. When I comment that line it turns an error like below. What may be the problem? thanks