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 <[email protected]> wrote:
> Can see a reason for that to fail. Does it just say syntax error?
> On Jun 18, 2014 3:38 PM, "Brian Eyre" <[email protected]> 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 [email protected].
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1nHA1uO4fgSkyBo57qCgmmojASRxHkfMqrqLE8yoXb7A%40mail.gmail.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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/E1029AF4-8EF5-4FCD-B589-62B1CE3F2F19%40greenworm.net.
For more options, visit https://groups.google.com/d/optout.