Skip to content

Add default to offset param of Python generated GetRootAs#6312

Merged
aardappel merged 1 commit intogoogle:masterfrom
rhofour:patch-2
Dec 7, 2020
Merged

Add default to offset param of Python generated GetRootAs#6312
aardappel merged 1 commit intogoogle:masterfrom
rhofour:patch-2

Conversation

@rhofour
Copy link
Contributor

@rhofour rhofour commented Dec 6, 2020

This seems like the most common case for this parameter so why not make it even easier.

@aardappel
Copy link
Collaborator

The downside is that users may not be aware there is such an argument, when dealing with buffers that were just constructed locally and may not start at 0. But yet, when receiving these from file or network it is likely 0.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants