Re: Default .py program and Edit with IDLE problem

2017-08-18 Thread Ben Iannitelli
Hi Kevi, Just to clarify your situation: 1. Which operating system? 2. You still have all of the .py files that you yourself wrote? Sincerely, -Ben I. -- https://mail.python.org/mailman/listinfo/python-list Python-list Info Page

Re: i got error while writing data to file

2017-03-13 Thread Ben Iannitelli
Hello again, It seems I was a little too quick to hit "send". Option #2 of the two possible solutions I offered is not right. Here's what it should be (unless the formatting gets garbled): with open('E:/amadown2py-master/reviews1.csv', 'r',encoding='UTF8') as csvfile: with

Re: i got error while writing data to file

2017-03-13 Thread Ben Iannitelli
Hi Madhu, I don't know much about web scraping but I can explain why your output is so much smaller than your input: you keep writing over your output file. The way I see it you have two options: 1. Where you wrote "mode='wt'", change "wt" to "at". The replacement "at" appends your output

Re: How an editor can help with block nesting (was Re: How coding in Python is bad for you)

2017-01-25 Thread Ben Iannitelli
On Wed, Jan 25, 2017 at 6:31 AM, Ben Bacarisse wrote: In Python the editor could, for example, highlight the block you are typing in, so as soon as you leave the body of the 'if' it would stop being marked and the containing code would be

RE: My code won't work if I double click the saved file

2015-08-01 Thread Ben Iannitelli
On 29Jul2015 00:20, john johnreysec...@gmail.com wrote: I have windows 8 running on my computer and I think I downloaded python 2 and 3 simultaneously or I think my computer has built in python 2 and I downloaded python 3. John, Sorry to back-track this conversation, but would you mind