[Biopython-dev] ToEol in Martel

Brad Chapman chapmanb at arches.uga.edu
Tue Mar 27 14:04:35 EST 2001

> >  ToEol is apparently stripping leading white space?

> That's not what I get.  Here's my test:
[...Some convincing test results...]

This is just a random thought, but if Cayte is using the EventGenerator
class which I recently moved to Bio.ParserSupport, this *does* strip
whitespace before sending an event:

	# strip off whitespace and call the consumer
	callback_function = eval('self._consumer.' + name)
	info_to_pass = string.strip(self.info[name])

I guess whether I should do this or not is up for debate. I know Jeff has
some differing opinions (and a good example of why this can be bad), but I
took this approach since I was already dealing with enough of a mess with
GenBank that I didn't want to fight with whitespace as well... If this is
really a problem here, I can look at fixing it.


More information about the Biopython-dev mailing list