jorisvandenbossche commented on PR #43609: URL: https://github.com/apache/arrow/pull/43609#issuecomment-2284251379
Merged! > But it's not that simple. A `str` is sequence, so is a `dict`. We could add some helper function "is_list_like" that checks for iterables but excludes str/bytes and mappings (although for example in `pa.array(..)` we actually do accept a mapping and treat it as a sequence .. so you get an array of the keys, that's probably not really intentional though). Only, when you start doing specific checks instead of something generic, it can easily become a can of worms to decide which exact type to "support" in this checking or not .. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
