Re: %%(%s)s mean in python

2014-10-29 Thread Thomas Rachel
Am 29.10.2014 07:02 schrieb [email protected]: What does %%(%s)s mean in Python? Weird question, as this has nothing to do with the code you just posted. In general, what comes up to my mind, is that it is a format string to build another format string. Example: metafmt = '%%

Re: %%(%s)s mean in python

2014-10-29 Thread Ned Batchelder
On 10/29/14 2:02 AM, [email protected] wrote: def fetchRecord(db, form): try: ... 34 lines deleted ... db.close() print(replyhtml % htmlize(fields)) Why did you paste all this code, it doesn't have the thing you are asking about. What does %%(%s)s mean in Python? It de

Re: %%(%s)s mean in python

2014-10-28 Thread satishmlmlml
also what does rowshtml += (rowhtml % ((fieldname,) * 3)) expand to? -- https://mail.python.org/mailman/listinfo/python-list

%%(%s)s mean in python

2014-10-28 Thread satishmlmlml
alue if 'action' in form else None if action == 'Fetch': fields = fetchRecord(db, form) elif action == 'Update': fields = updateRecord(db, form) else: fields = dict.fromkeys(fieldnames, '?') fields['key'] = 'Missing or invalid action!' db.close() print(replyhtml % htmlize(fields)) What does %%(%s)s mean in Python? -- https://mail.python.org/mailman/listinfo/python-list