MatthieuDartiailh / pyclibrary

C parser and ctypes automation for python
http://pyclibrary.readthedocs.org
MIT License
66 stars 29 forks source link

How to loop over the tuple entries in <class 'pyclibrary.c_parser.Struct'> #57

Closed peregrineXamitpandit closed 3 years ago

peregrineXamitpandit commented 3 years ago

I was trying to get all the struct entries but once I tried to loop over the tuple of type- <class 'pyclibrary.c_parser.Struct'> I get only - members and pack, can anyone please share how to open up this to read through the entries in it ?

MatthieuDartiailh commented 3 years ago

I am not sure I understand what you are trying to do. Could you post a small code scnippet illustrating what you are trying to achieve. ?

peregrineXamitpandit commented 3 years ago

never mind! I was able to go through after reading the source code. :) thanks.