|
Meta tags:
description=Fixes #160900.
Ensure fnmatch.filter() and fnmatch.filterfalse() normalize every name with os.path.normcase(), including on POSIX. This lets path-like objects such as pathlib.Path work consistently across platforms. Add regression tests for both functions.
Issue: gh-160900;
Headings (most frequently used words):
uh, oh, navigation, gh, 160900, support, path, like, objects, in, fnmatch, filters, 160980, footer, diff, view, menu, repository, there, are, no, files, selected, for, viewing, filter, by, extension,
Text of the page (most frequently used words):
path (44), test (33), self (32), file (31), #fnmatch (29), #filter (26), 2026 (25), and (25), names (22), the (21), monikadvorackova (21), filterfalse (20), for (20), this (19), nov (18), github (16), name (16), that (15), line (15), pat (15), like (14), def (14), typeerror (14), assertraises (14), 160900 (13), expand (13), hidden (12), characters (12), unicode (12), support (12), applied (11), objects (11), show (11), all (10), reload (10), func (10), diff (10), import (10), match (10), open (9), while (8), comments (8), loading (8), number (8), bidirectional (8), python (8), normcase (8), you (7), suggestion (7), cannot (7), suggestions (7), from (7), code (7), changes (7), next (7), library (7), rst (7), assertequal (7), pathlib (7), result (7), sign (7), not (6), please (6), change (6), there (6), page (6), review (6), learn (6), more (6), about (6), view (6), issue (6), down (6), class (6), filters (6), security (5), merge (5), resolved (5), was (5), error (5), what (5), below (5), news (5), ruby (5), string (5), lib (5), return (5), filename (5), files (5), main (5), into (5), fix (5), pathlike (5), commits (5), your (5), can (4), pull (4), add (4), original (4), contains (4), text (4), may (4), interpreted (4), compiled (4), differently (4), than (4), appears (4), editor (4), reveals (4), desktop (4), delete (4), edit (4), misc (4), deletions (4), module (4), fnmatchcase (4), posix (4), function (4), branch (4), 160980 (4), copilot (4), community (3), navigation (3), request (3), marked (3), batch (3), commit (3), retry (3), 007288 (3), else (3), other (3), tcl (3), perl (3), conversation (3), test_fnmatch (3), additions (3), append (3), list (3), optimize (3), posixpath (3), _compile_pattern (3), picnixz (3), functions (3), str (3), bytes (3), pattern (3), with (3), are (3), doc (3), hide (3), whitespace (3), restore (3), merged (3), account (3), quality (3), another (3), tab (3), window (3), refresh (3), session (3), developers (3), changelog (3), customer (3), enterprise (3), grade (3), features (3), build (3), contact (2), status (2), privacy (2), terms (2), footer (2), single (2), one (2), viewing (2), toggle (2), allow (2), accept (2), object (2), term (2), addition (2), ignorecase (2), test_case (2), test_mix_bytes_str_pathlike (2), test_mix_bytes_str (2), actual (2), comment (2), thread (2), itertools (2), nop (2), away (2), loop (2), construct (2), those (2), elements (2), iterable (2), translate (2), added (2), versionchanged (2), note (2), iso (2), 8859 (2), encoded (2), unless (2), stated (2), otherwise (2), refer (2), see (2), mod (2), glob (2), selected (2), changed (2), apply (2), split (2), unified (2), failed (2), load (2), jump (2), types (2), nbsp (2), extension (2), revert (2), unintended (2), follow (2), edits (2), spacing (2), document (2), oct (2), select (2), tree (2), insights (2), projects (2), actions (2), repository (2), cpython (2), signed (2), universe (2), training (2), integrations (2), stories (2), center (2), documentation (2), business (2), fixes (2), products (2), secret (2), perform, action, time, share, personal, information, manage, cookies, docs, inc, right, now, check, back, later, queued, multi, pending, reviews, has, been, outdated, must, existing, order, create, valid, applying, deleted, lines, supported, only, per, subset, closed, invalid, because, were, made, annotations, notes, oops, something, went, wrong, test_filterfalse_pathlike, assertlistequal, 349, 363, test_filterfalse, test_filter_pathlike, 324, 325, test_filter, warnings, unittest, cases, none, __all__, functools, versionadded, 100, 105, but, implemented, efficiently, same, vice, versa, documented, mix, strings, either, patterns, period, special, matched, pathname, expansion, uses, some, aren, visible, classic, conversations, clear, viewed, 8cc1fc7, remove, redundant, fspath, calls, 584ec30, normalize, 6fe66e6, update, aa6ccbf, ab8c256, 53e8cd0, 9ab64b5, ebbadfc, 99c9daf, fast, de8ce43, preserve, optimization, fac71d6, address, b55db66, e968f2f, 5df7949, mixed, e32415c, c2f1cb1, filtering, ed77e0a, entry, feb3718, 0478814, hold, shift, click, range, checks, already, clicking, agree, our, occasionally, send, related, emails, statement, service, free, its, maintainers, have, question, project, new, items, requests, issues, message, dismiss, alert, switched, accounts, out, appearance, settings, search, pricing, event, talks, workshops, partners, company, forum, events, webinars, blog, resource, connect, resources, premium, advanced, ons, trust, why, evaluate, industries, government, manufacturing, financial, services, healthcare, industry, nonprofits, startups, team, enterprises, stage, businesses, source, latest, improvements, across, place, developer, articles, sponsors, trending, repos, explore, customize, certifications, scanning, leak, prevention, protection, vulnerability, detection, remediation, secure, cloud, development, environments, codespaces, analysis, enforcement, automation, ship, coding, agent, tasks, automated, work, hosting, collaboration, platform, menu, skip, content,
|