Acces Type information from notebook

#1

From a Jupyter notebook, I’d like to get a dictionary which has the information that are included in a given type (Primitive Fields, Reference Fields, Functions, …)

c3.grid(c3.TypeName) only display the dictionary in question but returns None.

How can I access it?

1 Like

#2

I don’t know about notebook, but you could go to console and run c3ShowType(TypeName)

0 Likes

#3

The answer to access that is to do it through c3.TypeName.__ fields __

0 Likes

#4

Actually c3.grid(.) should give you the answer. Do you have a specific type/valueType for which it doesn’t work?
Type.__fields__ is a private field and is extremely likely to change in the future.

0 Likes