@Justin : Might I suggest a minor change to your example function : using
the *format code* in the default argument would make it more readable
(especially in absence of any example usage)
so the signature becomes:
def uniqueNamePattern(base="whatever_{0}_whatever")
This improves readability for `base.format` used later.
- Alok
On Tue, Aug 23, 2016 at 2:40 PM, likage <[email protected]> wrote:
> Hi, was wondering if you could explain more on 'base='object' as I am not
> really understanding it... Not to mention about the base.format that you
> have used.
>
> Correct me if I am wrong but is that suppose to be the name of object?
>
> --
> 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/75146519-887f-492b-89c5-
> 0a3eba98d3b4%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/CAPaTLMSwuY%3D6_YeJeF05nz%3Dd7cJ2PEO50eW7FsD2iHgGYzp2-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.