Re: [Python-Dev] Add __reversed__ methods for dict

2018-05-25 Thread Ramsey D'silva
I am also in agreement.

On Fri, May 25, 2018, 13:49 Guido van Rossum  wrote:

> OK, +1
>
> On Fri, May 25, 2018 at 10:26 AM, Raymond Hettinger <
> raymond.hettin...@gmail.com> wrote:
>
>>
>>
>> > On May 25, 2018, at 9:32 AM, Antoine Pitrou 
>> wrote:
>> >
>> > It's worth nothing that OrderedDict already supports reversed().
>> > The argument could go both ways:
>> >
>> > 1. dict is similar to OrderedDict nowadays, so it should support
>> >   reversed() too;
>> >
>> > 2. you can use OrderedDict to signal explicitly that you care about
>> >   ordering; no need to add anything to dict.
>>
>> Those are both valid sentiments :-)
>>
>> My thought is that guaranteed insertion order for regular dicts is brand
>> new, so it will take a while for the notion settle in and become part of
>> everyday thinking about dicts.  Once that happens, it is probably
>> inevitable that use cases will emerge and that __reversed__ will get added
>> at some point.  The implementation seems straightforward and it isn't much
>> of a conceptual leap to expect that a finite ordered collection would be
>> reversible.
>>
>> Given that dicts now track insertion order, it seems reasonable to want
>> to know the most recent insertions (i.e. looping over the most recently
>> added tasks in a task dict).  Other possible use cases will likely
>> correspond to how we use the Unix tail command.
>>
>> If those use cases arise, it would be nice for __reversed__ to already be
>> supported so that people won't be tempted to implement an ugly workaround
>> using popitem() calls followed by reinsertions.
>>
>>
>> Raymond
>>
>> .
>>
>> ___
>> 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/guido%40python.org
>>
>
>
>
> --
> --Guido van Rossum (python.org/~guido)
> ___
> 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/ramseydsilva%40gmail.com
>
___
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] Hello World

2017-01-22 Thread Ramsey D'silva
Hello World,

I am a python developer that has lurked beyond my box.

Nice to meet all of you'll. I'm excited to learn and hopefully contribute
someday.

Best Regards,
Ramsey

https://linkedin.com/in/ramseydsilva
___
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


Re: [Python-Dev] Hello World

2017-01-23 Thread Ramsey D'silva
Thank you Brett. I will be doing as much reading as I can before seeking a
mentor. I have also subscribed to that mailing list.

On Mon, Jan 23, 2017 at 2:59 PM, Brett Cannon  wrote:

> In case you haven't already done so, Ramsey, please consider reading
> https://cpython-devguide.readthedocs.io if you want to contribute to the
> project. You can also subscribe to the core-mentorship mailing list which
> is specifically for people who want to help out but haven't done to
> previously.
>
> On Sun, 22 Jan 2017 at 18:53 Ramsey D'silva 
> wrote:
>
>> Hello World,
>>
>> I am a python developer that has lurked beyond my box.
>>
>> Nice to meet all of you'll. I'm excited to learn and hopefully contribute
>> someday.
>>
>> Best Regards,
>> Ramsey
>>
>> https://linkedin.com/in/ramseydsilva
>> ___
>> 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/
>> brett%40python.org
>>
>
___
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


Re: [Python-Dev] Hello World

2017-01-23 Thread Ramsey D'silva
Thank you!

On Mon, Jan 23, 2017 at 4:12 PM, Raymond Hettinger <
raymond.hettin...@gmail.com> wrote:

>
> > On Jan 22, 2017, at 6:31 PM, Ramsey D'silva 
> wrote:
> >
> > Nice to meet all of you'll. I'm excited to learn and hopefully
> contribute someday.
>
> Welcome aboard.
>
>
> Raymond
___
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