Re: [SOLVED] for-loop: weird behavior

2012-05-07 Thread ferreirafm
The problem has been solved opening the file for iteration in the second loop. I didn't realized such Python behavior. Any comments are appreciated. Fred -- View this message in context: http://python.6.n6.nabble.com/SOLVED-for-loop-weird-behavior-tp4953214p4957597.html Sent from the P

Re: for loop: weird behavior

2012-05-04 Thread Terry Reedy
On 5/4/2012 4:33 PM, ferreirafm wrote: Hi there, I simply can't print anything in the second for-loop bellow: # #!/usr/bin/env python import sys filename = sys.argv[1] outname = filename.split('.')[0] + '_pdr.dat' begin = 'Distance distribution' end = 'R

for loop: weird behavior

2012-05-04 Thread ferreirafm
ance. Fred -- View this message in context: http://python.6.n6.nabble.com/for-loop-weird-behavior-tp4953214.html Sent from the Python - python-list mailing list archive at Nabble.com. -- http://mail.python.org/mailman/listinfo/python-list