Ciao, I have this function:
def lockup_info(refer): info = [] amb = CONN.db.xxxx.find({"reference": refer} for a in amb: print a How can I pass this value { "$exists": False } and tell python to not consider it as a string? var = '{ "$exists": False }' lockup_info(var) The code above doesn't work. A variable so defined is considered a string. Thanks -- https://mail.python.org/mailman/listinfo/python-list