PM, Nitin Pawar wrote:
> You may want to try a spilt if you are getting 8 different elements then it
> will give you a list of those elements
>
> On Tue, Nov 9, 2010 at 3:21 PM, Costin Gamenț
> wrote:
>>
>> Thank you for your timely response. Yes, I am sure "i" an
Thank you for your timely response. Yes, I am sure "i" and "j" are
from the same iteration. I should point out that "i" actually has 8
elements and that str(i) gives a nice printout.
On Tue, Nov 9, 2010 at 11:33 AM, Stefan Behnel wrote:
> Costin Gamenț, 09.11.201
Hi, I am trying to read a string as csv, but I encountered an odd
problem. Here's my code:
csvfile = csv.reader(datastr.split('\n'), delimiter=';')
r = ''
for i in csvfile:
for j in i:
print j
print i[0]
the "print j"
Thank you all for your answers and your patience. As soon as I can,
I'll update my code and read up on the subject. If I still can't get
it working, I'll bother you again.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks a lot. I'll try give it a go and see if it helps.
On Sun, Aug 8, 2010 at 6:28 PM, Tim Harig wrote:
> It is not so much using __init__() that makes the difference as it what
> scope the variables are assigned to. If you define them as you where, then
> the variables are associated with the