[Python-Dev] Re: Function suggestion: itertools.one()

2020-07-28 Thread Noam Yorav-Raphael
I'm sorry, I don't think I got that. I don't find a mailing list called itertools-ideas. Do you mean this should go to python-ideas? If so, I'm sorry for bothering python-dev, and I'll move this to python-ideas. I just read "The python-ideas list is for discussing more speculative design ideas" (h

[Python-Dev] Re: PEP 626: Precise line numbers for debugging and other tools.

2020-07-28 Thread Steve Dower
On 25Jul2020 2014, Jim J. Jewett wrote: But it sounds as though you are saying the benefit is irrelevant; it is just inherently too expensive to ask programs that are already dealing with internals and trying to optimize performance to make a mechanical change from: code.magic_attrname to:

[Python-Dev] Re: Function suggestion: itertools.one()

2020-07-28 Thread Brett Cannon
For ideas like this it is best to discuss them on python-ideas. I'll also mention that this idea has been brought up at least twice before: search for threads about itertools and single() or first() (if I remember correctly). On Mon, Jul 27, 2020 at 12:07 PM Noam Yorav-Raphael wrote: > Hi, > >

[Python-Dev] Re: Function suggestion: itertools.one()

2020-07-28 Thread Joao S. O. Bueno
On Tue, 28 Jul 2020 at 15:16, Brett Cannon wrote: > For ideas like this it is best to discuss them on python-ideas. > > I'll also mention that this idea has been brought up at least twice > before: search for threads about itertools and single() or first() (if I > remember correctly). > I think "

[Python-Dev] Re: Function suggestion: itertools.one()

2020-07-28 Thread Noam Yorav-Raphael
Thanks! I opened a new thread in python-ideas, here: https://mail.python.org/archives/list/python-id...@python.org/thread/6OLEL4XTUWXRI7ENODKEDOYFBRVDYKI7/ The "first" thread was very long, and was focused on a different function, first(). Perhaps a new thread, focused on one simple function in it

[Python-Dev] Re: PEP 626: Precise line numbers for debugging and other tools.

2020-07-28 Thread Jim J. Jewett
ah... we may have been talking past each other. Steve Dower wrote: > On 25Jul2020 2014, Jim J. Jewett wrote: > > But it sounds as though you are saying the benefit [of storing the line numbers in an external table, I thought, but perhaps Pablo Galindo Salgado and yourself were talking only of t