[Python-ideas] Re: Sanitize filename (path part) 2nd try

2020-05-12 Thread Eryk Sun
On 5/11/20, Oleg Broytman wrote: > On Mon, May 11, 2020 at 09:12:52PM -, Steve Jorgensen > wrote: > >> When the platform is Windows, certainly, ":" should not be >> allowed, and perhaps colon should not be allowed at all. The meaning of ":name" is context dependent. If it occurs at the begin

[Python-ideas] Re: Sanitize filename (path part)

2020-05-12 Thread Barry Scott
> On 11 May 2020, at 23:24, Andrew Barnert wrote: > > On May 11, 2020, at 13:31, Barry Scott wrote: >> >> macOS and Unix version (I only use Unicode input so avoid the random bytes >> problems): > > But that doesn’t avoid the problem. If someone gives you a character whose > encoding on th

[Python-ideas] Re: Sanitize filename (path part) 2nd try

2020-05-12 Thread Barry Scott
> On 11 May 2020, at 22:38, Andrew Barnert wrote: > > On May 11, 2020, at 12:59, Barry Scott wrote: >> >> >>> On 11 May 2020, at 18:09, Andrew Barnert via Python-ideas >>> mailto:[email protected]>> wrote: >>> >>> More generally, what’s the use case for %-encoding filenames like this

[Python-ideas] Re: Sanitize filename (path part)

2020-05-12 Thread Andrew Barnert via Python-ideas
On May 12, 2020, at 01:32, Barry Scott wrote: > > >> On 11 May 2020, at 23:24, Andrew Barnert wrote: >> >>> On May 11, 2020, at 13:31, Barry Scott wrote: >>> >>> macOS and Unix version (I only use Unicode input so avoid the random bytes >>> problems): >> >> But that doesn’t avoid the probl

[Python-ideas] Re: Improve handling of Unicode quotes and hyphens

2020-05-12 Thread Stephen J. Turnbull
MRAB writes: > On 2020-05-11 09:21, Chris Angelico wrote: > > On Mon, May 11, 2020 at 6:09 PM Steve Barnes > > wrote: > >> Actually, in the case of the “wrong quotes” it puts the pointer > >> under the character before the space character or at the end of > >> the line (if you have a fixed

[Python-ideas] Re: [Suspected Spam]Re: Adding slice Iterator to Sequences (was: islice with actual slices)

2020-05-12 Thread Stephen J. Turnbull
Andrew Barnert writes: > On May 10, 2020, at 22:36, Stephen J. Turnbull > wrote: > > > > Andrew Barnert via Python-ideas writes: > > > >> A lot of people get this confused. I think the problem is that we > >> don’t have a word for “iterable that’s not an iterator”, > > > > I think pa