On Wednesday, June 13, 2018 at 11:04:39 AM UTC-4, T Berger wrote:
> Sorry for this basic question, but to change my code if it's failed the PEP8 
> test, what code do I use to open my program and make changes? Obviously, I 
> should still be in bash, but then what?
> 
> Thanks,
> 
> Tamara

I did make the changes in IDLE, but I thought I must be in the wrong place. The 
line of code I got in terminal was:
/Users/TamaraB/Desktop/mymodules/vsearch.py:1:25: E231 missing whitespace after 
':'
def search4vowels(phrase:str)->set:

I thought the 1:25: E231 couldn't be referring to anything in my text editor. 
But now I see that 1:25 refers to the first line, 25th spot (I suppose the 25 
refers to the spot BEFORE which I'm supposed to add white space. I don't know 
what the E231 refers to, but it doesn't seem helpful.

And, no, I'm not going to make these picayune changes that actually make the 
code harder to read. Adding a white space between "phrase:" and "str" just 
splits apart a conceptual unit in a complicated line of code. I was just doing 
this exercise in my workbook.

Thanks,

Tamara 
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to