Skip to content

pythontk v0.8.76

Choose a tag to compare

@m3trik m3trik released this 01 Jul 02:52
  • IterUtils.filter_list gains opt-in inline negation via negate_prefix (2026-06-30). A single query stream can now carry both includes and excludes: when negate_prefix is set (e.g. "!"), any string inclusion pattern beginning with that prefix is stripped of it and moved to the exclude set — so inc="*keep*, !*drop*" keeps items matching *keep* while dropping any matching *drop*. The split happens after delimiter splitting (composes with multi-pattern strings) and before the empty-filter early-exit (a query of only-negated terms still excludes); a bare marker with no remainder is dropped. Default None is a strict no-op — a literal leading prefix is still matched verbatim, so every existing caller is unaffected. Motivated by uitk's filter line-edit, which now exposes !term inline exclusion in its single-field filters (see uitk CHANGELOG 2026-06-30). Tests: test_iter.py (+4: inline exclude, only-negated, off-by-default literal match, bare-marker dropped).