Re: [Python-Dev] itertools predicates

2016-11-02 Thread Terry Reedy
On 11/2/2016 6:03 PM, Francisco Couzo wrote: Some functions that take a predicate from itertools accept None as its predicate: list(itertools.filterfalse(None, range(10))) [0] list(itertools.groupby([0,0,1,1], None)) [(0, ), (1, )] While others don't: list(itertools.dropwhile(None,

[Python-Dev] itertools predicates

2016-11-02 Thread Francisco Couzo
Some functions that take a predicate from itertools accept None as its predicate: >>> list(itertools.filterfalse(None, range(10))) [0] >>> list(itertools.groupby([0,0,1,1], None)) [(0, ), (1, )] While others don't: >>> list(itertools.dropwhile(None, range(10))) Traceback (most recent call

Re: [Python-Dev] Implementing (parts of) copy module in C

2016-11-02 Thread Stephen J. Turnbull
Mark Lawrence via Python-Dev writes: > Surely patches related to any bugs, not just security related ones, will > be accepted until EOL in 2020? Maybe, since it is the last in the 2.x line -- ask the RM, not me. I shouldn't have said anything, my apologies. But that doesn't matter for this

Re: [Python-Dev] Implementing (parts of) copy module in C

2016-11-02 Thread Mark Lawrence via Python-Dev
On 02/11/2016 12:09, Terry Reedy wrote: On 11/2/2016 3:54 AM, Mark Lawrence via Python-Dev wrote: On 02/11/2016 06:23, Stephen J. Turnbull wrote: That is correct. This is clearly a feature, and 2.7 currently is accepting only security-related patches (broadly construed -- a sufficiently

Re: [Python-Dev] Implementing (parts of) copy module in C

2016-11-02 Thread Terry Reedy
On 11/2/2016 3:54 AM, Mark Lawrence via Python-Dev wrote: On 02/11/2016 06:23, Stephen J. Turnbull wrote: That is correct. This is clearly a feature, and 2.7 currently is accepting only security-related patches (broadly construed -- a sufficiently severe bug, such as a crash or infloop, is

Re: [Python-Dev] Implementing (parts of) copy module in C

2016-11-02 Thread Victor Stinner
Hi, 2016-11-01 22:56 GMT+01:00 Rasmus Villemoes : > I'm using (and contributing to) an application which spends a > significant part of its startup time calling copy.deepcopy, so I thought > I'd try to write a C extension to speed this up. Maybe you should consider

Re: [Python-Dev] Implementing (parts of) copy module in C

2016-11-02 Thread Mark Lawrence via Python-Dev
On 02/11/2016 06:23, Stephen J. Turnbull wrote: Rasmus Villemoes writes: > First, apologies if this isn't the appropriate list; I trust I'll be > nudged in the right direction. Given the relatively advanced state of patch, I doubt that this is the *wrong* list. However, you would probably

[Python-Dev] Implementing (parts of) copy module in C

2016-11-02 Thread Stephen J. Turnbull
Rasmus Villemoes writes: > First, apologies if this isn't the appropriate list; I trust I'll be > nudged in the right direction. Given the relatively advanced state of patch, I doubt that this is the *wrong* list. However, you would probably benefit from posting to python-l...@python.org to