Page MenuHome

bpy.types.UI_UL_list.filter_items_by_name is case sensitive
Closed, ResolvedPublic

Description

The documentation for bpy.types.UI_UL_list.filter_items_by_name says it's case-insensitive, but it uses fnmatch.fnmatchcase instead of fnmatch.fnmatch.

So either the function must change or the documentation must, I'm hoping for the former 😄

Event Timeline

Bastien Montagne (mont29) lowered the priority of this task from Needs Triage by Developer to Needs Information from User.Aug 14 2019, 10:55 AM

Eeeeh, default implementation (in C, actually, not in python) does use fnmatch case-insensitive matching... Not sure to what you are referring here?

Ah, this example uses it https://docs.blender.org/api/master/bpy.types.UIList.html#advanced-uilist-example-filtering-and-reordering
(and that indeed turns out to be case-sensitive...)

@Bastien Montagne (mont29): That should match the C implementation? Shall this be confirmed?

Philipp Oeser (lichtwerk) raised the priority of this task from Needs Information from User to Waiting for Developer to Reproduce.Aug 14 2019, 11:19 AM
Bastien Montagne (mont29) lowered the priority of this task from Waiting for Developer to Reproduce to Confirmed, Medium.

Ah OK, yes, thanks for finding this, will fix.