Re: The Case Against Python 3

2016-11-26 Thread Nathan Ernst
You're right. Didn't look closely enough at it in my phone. Still don't think i'd recommend this in a general solution, though. You effectively have to white-list code snippets. Not very useful. On Nov 26, 2016 7:51 PM, "Michael Torrie" wrote: > On 11/26/2016 06:26 PM, Nathan Ernst wrote: > > Su

Re: how do i fix this invalid arguement error

2016-11-26 Thread Chris Angelico
On Sun, Nov 27, 2016 at 1:24 PM, Cameron Simpson wrote: > I thought //192.168.0.1/foo/... was a network share, getting "foo" from host > 192.168.0.1. Disclaimer: not a Windows guy. But I've certainly using UNIXy > systems implementing this syntax, and thought I'd seen an equivalent in > Windows la

Re: how do i fix this invalid arguement error

2016-11-26 Thread Cameron Simpson
On 26Nov2016 12:55, Dennis Lee Bieber wrote: On Sat, 26 Nov 2016 08:12:46 -0800 (PST), junko...@gmail.com declaimed the following: with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun 2016-11-25-11-11.csv','r') as f: [...] Second... does Python open() accept web add

Re: The Case Against Python 3

2016-11-26 Thread Michael Torrie
On 11/26/2016 06:26 PM, Nathan Ernst wrote: > Sure, what if the input used a double quote instead of single, cursory > glance looks like it might vulnerable. Either a single quote or a double quote would not pass the sanitizer. Or am I misunderstanding you? -- https://mail.python.org/mailman/list

Re: The Case Against Python 3

2016-11-26 Thread Nathan Ernst
Sure, what if the input used a double quote instead of single, cursory glance looks like it might vulnerable. (Not trying to be argumentative here) On Nov 26, 2016 7:21 PM, "Steve D'Aprano" wrote: > On Sun, 27 Nov 2016 11:25 am, Chris Angelico wrote: > > > On Sun, Nov 27, 2016 at 11:13 AM, Stev

Re: The Case Against Python 3

2016-11-26 Thread Steve D'Aprano
On Sun, 27 Nov 2016 11:25 am, Chris Angelico wrote: > On Sun, Nov 27, 2016 at 11:13 AM, Steve D'Aprano > wrote: >> So-called f-strings haven't even hit the already been implicated in a >> code-injection vulnerability: >> >> http://bugs.python.org/issue28563 >> >> I feel kind of vindicated here,

Re: The Case Against Python 3

2016-11-26 Thread Chris Angelico
On Sun, Nov 27, 2016 at 11:13 AM, Steve D'Aprano wrote: > So-called f-strings haven't even hit the already been implicated in a > code-injection vulnerability: > > http://bugs.python.org/issue28563 > > I feel kind of vindicated here, because when so-called f-strings were first > proposed I asked

Re: The Case Against Python 3

2016-11-26 Thread Steve D'Aprano
On Sat, 26 Nov 2016 07:01 pm, Ian Kelly wrote: > When I read that Python 3.6 would include f-strings, I turned to the > coworker sitting next to me and said, "Oh my god, Python is adding yet > another new syntax for string formatting." It's getting to be a joke. f-strings are not merely string fo

Re: how do i fix this invalid arguement error

2016-11-26 Thread Steve D'Aprano
On Sun, 27 Nov 2016 03:12 am, junko...@gmail.com wrote: > import csv > with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun > 2016-11-25-11-11.csv','r') as f: \f inserts a FORMFEED character, ASCII code 12. \n inserts a LINEFEED character, or newline, ASCII code 10. I believe that

Re: how do i fix this invalid arguement error

2016-11-26 Thread Terry Reedy
On 11/26/2016 12:55 PM, Dennis Lee Bieber wrote: On Sat, 26 Nov 2016 08:12:46 -0800 (PST), junko...@gmail.com declaimed the following: import csv with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun 2016-11-25-11-11.csv','r') as f: reader=csv.reader(f) for row in reader:

how do i fix this invalid arguement error

2016-11-26 Thread junkone1
import csv with open('\\192.168.0.1\fe18cb0618cabd41\ninjatrader$EURUSDTestRun 2016-11-25-11-11.csv','r') as f: reader=csv.reader(f) for row in reader: print(row) File "C:/Users/Suresh/PycharmProjects/untitled/test.py", line 2, in with open('\\192.168.0.1\fe18cb0618cabd41\

Re: The Case Against Python 3

2016-11-26 Thread Tim Chase
On 2016-11-26 01:01, Ian Kelly wrote: > When I read that Python 3.6 would include f-strings, I turned to the > coworker sitting next to me and said, "Oh my god, Python is adding > yet another new syntax for string formatting." It's getting to be a > joke. Pretty soon Python will have one string-fo

Re: The Case Against Python 3

2016-11-26 Thread Ian Kelly
On Fri, Nov 25, 2016 at 1:29 AM, Mark Summerfield wrote: > The article has a section called: > > "Too Many Formatting Options" > > He's right! The % formatting was kept to help port old code, the new > .format() which is far more versatile is a bit verbose, so finally they've > settled on f-

Re: Python turtle: How to change icons

2016-11-26 Thread Terry Reedy
On 11/25/2016 10:33 PM, qrious wrote: Hello All, I would like to change two graphical icons related to turtle graphics using Python: a) One that shows up at the top left corner of the canvas window as in below. I believe this is coming from tk itself. https://s22.postimg.org/tkjaxmh41/image