Skip to content

Adding a default parameter to builtin map filter#985

Merged
davidism merged 2 commits intopallets:masterfrom
bkiu:557-map-default
Jul 22, 2019
Merged

Adding a default parameter to builtin map filter#985
davidism merged 2 commits intopallets:masterfrom
bkiu:557-map-default

Conversation

@bkiu
Copy link
Copy Markdown
Contributor

@bkiu bkiu commented May 6, 2019

Working on issue #557 to add a default parameter for the map filter.

This required adding a parameter to make_attrgetter, which is also used by many other functions. A default parameter could also be used in other filters as well, like join or sum.

Tests also written and passed.

Written at sprints at Pycon2019

@davidism
Copy link
Copy Markdown
Member

davidism commented Jul 22, 2019

Hey, really sorry about this, but I merged #1018 before I realized this PR was earlier. They ended up looking pretty much identical, but there's a few things in this one that I think make the other a bit cleaner, so I'm going to rebase and merge this one too.

@davidism davidism added this to the 2.11.0 milestone Jul 22, 2019
@davidism davidism merged commit c5f1fd3 into pallets:master Jul 22, 2019
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Nov 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants