Attempting to use the Python interface in version 2.72 to select objects using the bpy.ops.object.select_pattern() function. When passing no parameters the function properly selects all objects, but when passing any additional parameters I receive errors. For example the line bpy.ops.object.select_pattern('*') throws the following error
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "C:\Program Files\Blender Foundation\Blender\2.72\scripts\modules\bpy\ops.py", line 186, in __call__
ret = op_call(self.idname_py(), C_dict, kw, C_exec, C_undo)
TypeError: Calling operator "bpy.ops.object.select_pattern" error, expected a string enum in ('INVOKE_DEFAULT', 'INVOKE_REGION_WIN', 'INVOKE_REGION_CHANNELS', 'INVOKE_REGION_PREVIEW', 'INVOKE_AREA', 'INVOKE_SCREEN', 'EXEC_DEFAULT', 'EXEC_REGION_WIN', 'EXEC_REGION_CHANNELS', 'EXEC_REGION_PREVIE)
the following line bpy.ops.object.select_pattern('*',True,True) throws the following
Traceback (most recent call last):
File "<blender_console>", line 1, in <module>
File "C:\Program Files\Blender Foundation\Blender\2.72\scripts\modules\bpy\ops.py", line 185, in __call__
C_dict, C_exec, C_undo = BPyOpsSubModOp._parse_args(args)
File "C:\Program Files\Blender Foundation\Blender\2.72\scripts\modules\bpy\ops.py", line 142, in _parse_args
raise ValueError("1-3 args execution context is supported")
ValueError: 1-3 args execution context is supported