Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign up[Proposal] Use namedtuples in SndRcvList() #2746
Comments
|
This sounds super reasonable, LGTM. |


While teaching Scapy, I realized that it is difficult to understand which indices to use to iterate a response of type
SndRcvList().For example, to display the first answer, a user must do:
Beginners might do the following, which is more complex to understand:
Using a
namedtupleinstead of atupleinSndRcvList(), it is possible to simplify the access to the answer with.answerwhile maintaining[1]for backward compatibility:Do you think that this feature is interesting?