Page MenuHome

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


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) triaged this task as Needs Information from User priority.

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
(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.Wed, Aug 14, 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.