Regex on a Dictionary

Steven D'Aprano steve+comp.lang.python at pearwood.info
Tue Feb 13 12:06:05 EST 2018


On Tue, 13 Feb 2018 05:11:20 -0800, Stanley Denman wrote:

> I am trying to performance a regex on a "string" of text that python
> isinstance is telling me is a dictionary.

Please believe Python when it tells you that something is a dictionary. 
Trust me, the interpreter knows. It doesn't matter how much you want 
something to be a string, if it is not a string, it isn't a string.



-- 
Steve




More information about the Python-list mailing list