Re: [Tutor] eval func with floating...

2011-08-23 Thread Troels Emtekær Linnet
Thats because you do integer division. Do either: float(15)/8 15/float(8) 15.0/8 15/8.0 Just be sure, that either 15 or 8 is a float, and not both an integer. Best Troels 2011/8/16 simulacrx > hi; > --- > check=(1,2,3,4,5,6,7,8,9,"/","*","-","+","(",")","[","]") > > whi

[Tutor] Python mechanize: Auto follow meta refresh?

2011-08-09 Thread Troels Emtekær Linnet
k it is because I got exception error. # mechanize._response.httperror_seek_wrapper: HTTP Error refresh: The HTTP server returned a redirect error that would lead to an infinite loop. # The last 30x error message was: # OK and I stop after this exception error. Is there a way to pro

Re: [Tutor] Basic web form interaction with http://propka.ki.ku.dk/

2011-08-06 Thread Troels Emtekær Linnet
ownside, is of course the "waiting" time for the server response. Best Troels Troels Emtekær Linnet Karl-Liebknecht-Straße 53, 2 RE <http://maps.google.dk/> 04107 Leipzig, Tyskland Mobil: +49 1577-8944752 2011/8/6 Mateusz Koryciński > Hi, > > Have You tried somethi

[Tutor] Basic web form interaction with http://propka.ki.ku.dk/

2011-08-06 Thread Troels Emtekær Linnet
Dear Python users. I am an semi-experienced in python, but totally new on the web interactions. I have been working with scripts to the protein program Pymol, which can be extended with python script. I hope that some of you can help me with an interaction script to http://propka.ki.ku.dk/. I hop