pombreda / pymel

Automatically exported from code.google.com/p/pymel
0 stars 0 forks source link

add default to MelGlobals.get() #273

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
like dict.get(), it would be nice to pass MelGlobals.get() a default value that 
it returns if the key (variable) does not exist.  one problem with this is that 
MelGlobals.get() already takes a kwarg 'type', so the default would have to be 
used like so:

melGloblas.get('myvar', default=2)

Original issue reported on code.google.com by chad...@gmail.com on 17 Apr 2012 at 6:10