I noticed that with my current version of Maya 2008 Extension 2, when I do (for instance)
maya.cmds.ls(sl=True)
when I have nothing selected, it returns
[]
I seem to remember it returning 'None', and sure enough, when I fired up Maya 8.5, that's what it does. Totally out of idle curiosity, but does anyone know what it returns in normal (ie, non-extension 2) Maya 2008?
PS - Huzzah to alias for changing this behavior. Now, if only they can get other commands that return lists of things to behave similarly (ie, listRelatives) so that we don't need special case code when we simply want to iterate over the results of such commands...