Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new PyList::try_new method #1677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

messense
Copy link
Member

PyList::new requires a infallible iterator which is sometimes awkward to use.

Is this new API desirable?

@davidhewitt
Copy link
Member

While I agree that our collection interfaces can definitely be made more user-friendly, I think we should take a bit of time to design something new before adding too many new functions.

I think this loosely combines well with the changes proposed in #1667 as something we can experiment with for 0.15, if you're ok with waiting for it for a bit?

@messense
Copy link
Member Author

While I agree that our collection interfaces can definitely be made more user-friendly, I think we should take a bit of time to design something new before adding too many new functions.

I think this loosely combines well with the changes proposed in #1667 as something we can experiment with for 0.15, if you're ok with waiting for it for a bit?

No problem, it’s not blocking anything.

@davidhewitt davidhewitt added this to the 0.15 milestone Jul 7, 2021
@davidhewitt davidhewitt modified the milestones: 0.15, 0.16 Nov 7, 2021
@davidhewitt davidhewitt modified the milestones: 0.16, 0.17 Feb 26, 2022
@davidhewitt davidhewitt modified the milestones: 0.17, 0.18 Jul 3, 2022
@davidhewitt davidhewitt modified the milestones: 0.18, 0.19 Dec 27, 2022
@davidhewitt davidhewitt removed this from the 0.19 milestone Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants