You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When importing a schema, it would be fairly simple to verify that the IDs are the correct length for the number of preceding zeros in their first byte. This would help developers working on new schemata. A badly structured ID could raise a meaningful exception, like: ValueError: Bad ID (0x2ABC): A class C EBML ID must be 3 bytes.
The optional schema is used to generate an unused ID. Similarly, exclude is a list of IDs, so the function can be used multiple times without updating the schema.
When importing a schema, it would be fairly simple to verify that the IDs are the correct length for the number of preceding zeros in their first byte. This would help developers working on new schemata. A badly structured ID could raise a meaningful exception, like:
ValueError: Bad ID (0x2ABC): A class C EBML ID must be 3 bytes
.Arguably related to #32.
The text was updated successfully, but these errors were encountered: