Can see a reason for that to fail. Does it just say syntax error?
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/284cbc26-51e7-4fcd-9e5f-ddbbc4eba3d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1nHA1uO4fgSkyBo57qCgmmojASRxHkfMqrqLE8yoXb7A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1nHA1uO4fgSkyBo57qCgmmojASRxHkfMqrqLE8yoXb7A%40mail.gmail.com.
Aaand of course, couldn't resist playing instead of cooking dinner for myself. Trying this:print r"what does %s do?"and I get:what does {'1': u'False'} do?Bah.
On 19 Jun 2014, at 11:52, Justin Israel <justin...@gmail.com> wrote:
Can see a reason for that to fail. Does it just say syntax error?
On Jun 18, 2014 3:38 PM, "Brian Eyre" <brian...@googlemail.com> wrote:
Hi,
I was getting intermittent syntax errors from code entered into the popup menu of a shelf button, and have narrowed it down to an issue with using '%' in string formatting. Example:
text = 'working'
print 'why is this command not %s'%text
I'm wondering if this is a known issue, or if anyone has a solution?
Cheers!
Brian.--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/284cbc26-51e7-4fcd-9e5f-ddbbc4eba3d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d8bc1841-61ef-4b6a-a212-aed4dec53620%40googlegroups.com.
print "what does {0} do?".format('some thing')