Glen D souza <[email protected]> wrote:
> i have a approach, it may not be best
>
> fld = [ ]
> for data in shlex.split(ln):
> fld.append(data)
>
It's certainly simple! :-)
I (OP) have actually done something quite similar:-
fld = shlex.split(ln)
fld.append(999)
fld.append(999)
It means I can test for '999' as when read from ln they are text
fields and it's text I have created so (unless I get *very* confused)
it will never be 999.
--
Chris Green
ยท
--
https://mail.python.org/mailman/listinfo/python-list