[Biopython-dev] [Bug 2361] Test Suite Failures from Martel/Sax with egenix mxTextTools 3.0

bugzilla-daemon at portal.open-bio.org bugzilla-daemon at portal.open-bio.org
Thu Sep 13 12:36:51 UTC 2007


http://bugzilla.open-bio.org/show_bug.cgi?id=2361





------- Comment #23 from biopython-bugzilla at maubp.freeserve.co.uk  2007-09-13 08:36 EST -------
Follow up from egenix - I'm not sure quite what this means in Martel...

I asked:
> Do you have any suggested workarounds for using mxTextTools to parse
> data held in a string (rather than read from a handle to an opened file)?

And Marc-Andre Lemburg replied:
> I think I lost you there  :-) 
> 
> mxTextTools *does* work on Python strings and Unicode. It no longer works
> on objects that just expose the buffer API. We'll likely add support for
> that at some later stage, but for now, the Unicode support was more
> important to get right.
>
> You can easily convert a StringIO instance to a Python string using
> .getvalue() method.
> 
> For larger amounts of data, it's also a good idea to process the data
> in chunks. mxTextTools allows for this by returning the index of where
> it stopped parsing the input.


-- 
Configure bugmail: http://bugzilla.open-bio.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the Biopython-dev mailing list