Nikhil <[EMAIL PROTECTED]> writes:
> or a string iterable ? How can I do that. I have lots of '\r\n'
> characters in the string which I think can be easier if it were made
> into a list and I can easily see if the required value (its a numeral)
> is present in it or not after some position or after some characters'
> position.
What problem are you trying to solve?
Are you aware that Python file objects are already iterable, yielding
one line of text per iteration?
input_file = open("foo.txt")
for line in input_file:
do_stuff(line)
--
\ "I'd take the awe of understanding over the awe of ignorance |
`\ any day." -- Douglas Adams |
_o__) |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list