[issue28593] Inconsistent itertools' predicate behaviour

2016-11-04 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
resolution:  -> rejected
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28593] Inconsistent itertools' predicate behaviour

2016-11-04 Thread Francisco Couzo

Francisco Couzo added the comment:

I think removing None as a valid predicate to filterfalse would make the API 
simpler, but I don't know if it's worth the API change, please do close the 
issue if you think it's not worth it.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28593] Inconsistent itertools' predicate behaviour

2016-11-04 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

Note that the predicate is optional argument in groupby but mandatory in 
dropwhile and takewhile. I suppose that filter and filterfalse accept None for 
historical reason (they precede bool).

--
nosy: +serhiy.storchaka

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28593] Inconsistent itertools' predicate behaviour

2016-11-04 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I think that the simpler signature is better, that the None argument isn't 
clear, and that there aren't use cases that warrant and API churn.

On your last post, it seemed that you were withdrawing the request.  Can this 
tracker item be closed now?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28593] Inconsistent itertools' predicate behaviour

2016-11-04 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
Removed message: http://bugs.python.org/msg280091

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28593] Inconsistent itertools' predicate behaviour

2016-11-04 Thread Raymond Hettinger

Raymond Hettinger added the comment:

I think that the simpler signature is better, that the None argument isn't 
clear, and that there aren't use cases that warrant and API churn.

On your last post, I seemed that you were withdrawing the request.  Can this 
tracker item be closed now?

--
assignee:  -> rhettinger
components: +Extension Modules
versions: +Python 3.7

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28593] Inconsistent itertools' predicate behaviour

2016-11-02 Thread Francisco Couzo

New submission from Francisco Couzo:

As per Terry's recommendation 
https://mail.python.org/pipermail/python-dev/2016-November/146791.html

Currently some functions in itertools (dropwhile and takewhile), don't accept 
None as a predicate, but filterfalse and groupby do.

I'd like your input, and I'm interested in writing a patch.

--
messages: 279960
nosy: franciscouzo, rhettinger
priority: normal
severity: normal
status: open
title: Inconsistent itertools' predicate behaviour
type: enhancement

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com