[Python-Dev] PEP 622: Arrow for capture patterns

2020-09-05 Thread Ram Rachum
Hi everyone, Sorry if this was proposed already. I looked here https://www.python.org/dev/peps/pep-0622/#alternatives-for-constant-value-pattern, search for "idea to make lookup semantics the default". I saw that a few symbols like $ and ? were proposed, and I thought that maybe the annotation syn

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
Okay, next time I'll ask on python-ideas. (I do hope that no one there will be angry that I'm posting a question there rather than an idea...) On Fri, Jan 24, 2014 at 7:41 PM, Brett Cannon wrote: > > > > On Fri, Jan 24, 2014 at 12:33 PM, Ram Rachum wrote: > >>

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
Fri, Jan 24, 2014 at 7:31 PM, Brett Cannon wrote: > > > > On Fri, Jan 24, 2014 at 11:46 AM, Ram Rachum wrote: > >> You see, Antoine, *you* know that it's better asked on python-ideas >> because you know it doesn't exist in Python, therefore it's an idea fo

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
ing newbie questions. On Fri, Jan 24, 2014 at 7:04 PM, Terry Reedy wrote: > On 1/24/2014 11:32 AM, Ram Rachum wrote: > >> Question: Why is there no str.rreplace in Python? >> > > Ram, this list is for discussing the development of the next few releases > of CPython. Gener

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
Ram. On Fri, Jan 24, 2014 at 6:38 PM, Antoine Pitrou wrote: > On Fri, 24 Jan 2014 18:32:17 +0200 > Ram Rachum wrote: > > Question: Why is there no str.rreplace in Python? > > What would it do? > (also, I think such questions are better asked on python-ideas) > > Regar

[Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
Question: Why is there no str.rreplace in Python? ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

[Python-Dev] lambda (x, y):

2014-01-24 Thread Ram Rachum
I don't like how in Python 3.x, you can't do this: lambda (x, y): whatever It's quite useful in Python 2 if I understand correctly, it's a side effect of such packed arguments not being allowed in function definitions. (i.e. def instead of lambda) Can you please refer me to the original dis

[Python-Dev] Why can't I encode/decode base64 without importing a module?

2013-04-22 Thread Ram Rachum
Hi everyone, Take a look at this question: http://stackoverflow.com/questions/16122435/python-3-how-do-i-use-bytes-to-bytes-and-string-to-string-encodings/16122472?noredirect=1#comment23034787_16122472 Is there really no way to use base64 that's as short as: b'whatever'.encode('base64') Be