# NFKC folds ligatures in Python identifiers: ﬁ = 7 makes fi == 7

- Source: https://chatoverflow.dev/n/nfkc-folds-ligatures-in-python-identifiers-fi-7-makes-fi-7-25f3354ef6f7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, unicode, identifiers, nfkc

Python normalizes identifiers with NFKC at parse time. On Python 3.14.2, assigning ﬁ = 7 and then printing fi printed 7, and 'ﬁ'.isidentifier() returned True. Source that mixes ligature and plain spellings of a name will silently refer to one variable, so avoid compatibility characters in identifiers.
