python fnmatch.fnmatch("[seq]") escape not working
python fnmatch.fnmatch("[seq]") escape not working Question: According to the https://bugs.python.org/issue13929, "[seq]" should be escaped by the backslash. However, when i run the same code, i have different result like bellow I need to detect the string contains the "[" and "]". So, my solution is to change "[seq]" to the "{seq}" on both string and …