Super-rexex?
Aahz Maruch
aahz at netcom.com
Thu Dec 23 14:03:20 EST 1999
In article <1266159968-30845431 at hypernet.com>,
Gordon McMillan <gmcm at hypernet.com> wrote:
>Fred L. Drake, Jr. wrote:
>>
>> If that's it, there are a couple of ways to do it. The one that
>> probably makes the most sense is to change the systax of the file and
>> use the ConfigParser module to parse an .ini type file:
>>
>> Another, more painful approach, but which allows the specific
>> format you describe, would be to write your own parser for it. You
>> can use the tokenize module to help out with tokenization, but it's
>> up to you to do the actual parse. Chances are good John Aycock's
>> tools would really help out.
>
>Isn't that the kind of parsing that shlex is good at? I'm inclined to
>think that John's (highly capable, wonderful, etc. etc.) tools are bit
>more than is required here.
Uh-oh. Are we headed for TMTOWTDI?
--
--- Aahz (@netcom.com)
Androgynous poly kinky vanilla queer het <*> http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6
Eighth Virtual Anniversary -- 8 days and counting!
More information about the Python-list
mailing list