Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

module.__types__ is a tuple for primitive typedefs #124

Open
abhinav opened this issue Mar 30, 2016 · 0 comments
Open

module.__types__ is a tuple for primitive typedefs #124

abhinav opened this issue Mar 30, 2016 · 0 comments

Comments

@abhinav
Copy link
Contributor

abhinav commented Mar 30, 2016

For certain primitive typedefs, module.__types__ contains a tuple of types rather than a single class. For example,

In [2]: import thriftrw

In [3]: l = thriftrw.loader.Loader()

In [6]: m = l.loads('x', 'typedef i32 foo')

In [7]: m.__types__
Out[7]: ((int, long, numbers.Integral),)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant