Skip to content

Conversation

@dcbaker
Copy link
Member

@dcbaker dcbaker commented Dec 19, 2025

Based on #15380

This regressed pandas in the master branch, so we should continue to allow this, but with a warning that will hopefully help others.

@dcbaker dcbaker added this to the 1.11 milestone Dec 19, 2025
@dcbaker dcbaker requested a review from jpakkane as a code owner December 19, 2025 17:49
We now have two different uses where `''` used to be accepted because of
python truthiness, but never should have been. This allows us to easily
replace that value.
This is how it was treated < 1.10, and we should maintain that
compatibility. I've added a converter function that repalces `['']` with
`[]`. I don't entirely love this solution, but there are issues with
other approaches.

If we drop the call to listify, then we give up the ability to have
nested lists, or we have to accept object and hand roll all of the
validation. I don't really want to do either of those, and I think it's
incredibly unlikley that anyone will pass `['']` to link_args, as they'd
end up with the same build error reported in the issue.

Fixes: mesonbuild#15376
@dcbaker dcbaker force-pushed the submit/link-with-empty-string-behavior branch from 449776d to 99d8176 Compare December 19, 2025 17:54
…ring values

This was reported as breaking pandas. Just like the `link_args`
behavior, this wasn't intended, but is a result of a leaky Python
abstraction ('' is falsy, and thus being caught in a falsy comparison,
such as `if not value: ...`).

This marks link_with and link_whole as being broken in the same way. I
have only marked this for build_targets, as I don't think it applies
elsewhere.
@dcbaker dcbaker force-pushed the submit/link-with-empty-string-behavior branch from 99d8176 to b059daa Compare December 19, 2025 19:35
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.

1 participant