
17 Dec
2007
17 Dec
'07
5:50 a.m.
Moo Cow writes:
When a non-python reader looks at the code (__init__.py), it seems to be trying out the divided directory
IDcode = IDcode.lower() subpath = IDcode[1:3] + os.sep + "pdb" + IDcode + ".ent"
Python has a "special" way of writing indices: The subsequence is formed excluding the final index, so s[1:3] means the second and third character of s (indices 1 and 2), but excluding the fourth at index 3. -Christoph -- | Christoph Best <cbest@rzg.mpg.de> http://www.rzg.mpg.de/~cbest | Max-Planck-Institut fuer Biochemie, Munich, Germany +49-89-8578 2634