Python AttributeError: 'str' object has no attribute ...
https://stackoverflow.com/questions/4826160815.01.2018 · This is just a concatenation of two strings, so a string (the parenthesis don't matter): ('pyodbc.connect'+"('blah')") And string % (value, value) takes the left side string as a printf-style format string and inserts the given values in it. The result again is a string, so your conStr is just a string. A string that probably looks like a Python function call, but a string nonetheless.