Re: [Python-ideas] Security: remove "." from sys.path?

2017-06-02 Thread Niki Spahiev
On 1.06.2017 19:46, Chris Angelico wrote: On Fri, Jun 2, 2017 at 2:30 AM, Victor Stinner wrote: Perl 5.26 succeeded to remove the current working directory from the default include path (our Python sys.path):

Re: [Python-ideas] Data Classes

2017-05-19 Thread Niki Spahiev
On 19.05.2017 04:37, Eric V. Smith wrote: On 5/18/17 2:26 PM, Sven R. Kunze wrote: On 17.05.2017 23:29, Ivan Levkivskyi wrote: the idea is to write it into a PEP and consider API/corner cases/implementation/etc. Who's writing it? Guido, Hynek, and I met today. I'm writing up our notes, and

[Python-ideas] array.array.index() and Sequence ABC

2017-11-06 Thread Niki Spahiev
Hello, I noticed that array.index() method takes single argument in python 3.6, while Sequence protocol specifies 2 optional arguments after the first. example from list: L.index(value, [start, [stop]]) -> integer -- return first index of value. I propose adding start and stop arguments to

Re: [Python-ideas] Verbatim names (allowing keywords as names)

2018-05-16 Thread Niki Spahiev
On 16.05.2018 16:05, Andrés Delfino wrote: IMHO, it would be much easier to learn and understand if keywords can only be used by escaping them, instead of depending where they occur. There can be 2 escape characters '\' and '.' Niki ___

Re: [Python-ideas] Combine f-strings with i18n

2018-09-17 Thread Niki Spahiev
On 14.09.2018 12:33, Chris Angelico wrote: On Fri, Sep 14, 2018 at 7:02 PM, Hans Polak wrote: I have recently updated my code to use the more pythonic f-string instead of '{}'.format() Well there's your problem right there. Don't change your string formatting choice on that basis. F-strings