Skip to content

Better differentiation between list and scalar properties #55

Description

@gilgamec

Perhaps I'm missing something obvious, but there doesn't appear to be anything in the API that can be used to easily see if a property is a list or scalar property. The best I can figure is to try reading a property as a scalar, then if it fails try to read it as a list and see if that works. Without parsing the error message, then, I have to try reading an int32, a uint32, and a double before trying the same as lists.

(Trying to read a list property as a scalar also results in an error message like

PLY parser: property values cannot be coerced to requested type double. Has type double

which should probably be changed to something more sensible.)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions