parameters: (func, attrs)
return_statement: return attrs
docstring: Function used to populate default attribute values for missing attributes
             on a vector property
docstring_summary: Function used to populate default attribute values for missing attributes
             on a vector property
docstring_tokens: Function used to populate default attribute values for missing attributes on a vector property
function: def _update_vectorproperty_defaults(func, attrs):
          """Function used to populate default attribute values for missing attributes
             on a vector property"""
          attrs = smproperty._update_property_defaults(func, attrs)
  
          if attrs.get("number_of_elements", None) is None:
              attrs["number_of_elements"] = len(getargspec(func).args) - 1
  
          if attrs.get("default_values", None) is None:
              attrs["default_values"] = "None"
          else:
              # confirm number_of_elements == len(default_values)
              assert attrs["number_of_elements"] == _count(attrs["default_values"])
  
          # if repeat_command, set number_of_elements_per_command
          # if not set.
          if attrs.get("repeat_command", None) is not None and \
                  attrs.get("number_of_elements_per_command", None) is None:
                      attrs["number_of_elements_per_command"] = len(getargspec(func).args) - 1
          return attrs
function_tokens: def _update_vectorproperty_defaults ( func , attrs ) : attrs = smproperty . _update_property_defaults ( func , attrs ) if attrs . get ( "number_of_elements" , None ) is None : attrs [ "number_of_elements" ] = len ( getargspec ( func ) . args ) - 1 if attrs . get ( "default_values" , None ) is None : attrs [ "default_values" ] = "None" else : # confirm number_of_elements == len(default_values) assert attrs [ "number_of_elements" ] == _count ( attrs [ "default_values" ] ) # if repeat_command, set number_of_elements_per_command # if not set. if attrs . get ( "repeat_command" , None ) is not None and attrs . get ( "number_of_elements_per_command" , None ) is None : attrs [ "number_of_elements_per_command" ] = len ( getargspec ( func ) . args ) - 1 return attrs