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

Issue DEBUG-only failure if STL wrappers attempt to allocate size of -1 #1243

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

Issue DEBUG-only failure if STL wrappers attempt to allocate size of -1 #1243

wants to merge 1 commit into from

Conversation

steven-johnson
Copy link
Contributor

Not sure if this is the best way to approach this issue, from either code or design point of view. The intent here is that if user code omits a len definition for a sequence-like object, we fail with a helpful error message, rather than just "bad_alloc".

Not sure if this is the best way to approach this issue, from either code or design point of view. The intent here is that if user code omits a __len__ definition for a sequence-like object, we fail with a helpful error message, rather than just "bad_alloc".
@jagerman
Copy link
Member

Seems reasonable to me. Can you add a test case for this to the PR?

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