LudovicRousseau / pyscard

pyscard smartcard library for python
http://pyscard.sourceforge.net/
GNU Lesser General Public License v2.1
383 stars 110 forks source link

Use Named tuples when possible #46

Open LudovicRousseau opened 7 years ago

LudovicRousseau commented 7 years ago

Use Named tuples https://docs.python.org/3/library/collections.html#namedtuple-factory-function-for-tuples-with-named-fields instead of tuples.

For example .transmit() could return a named tuple [response="", sw1=, sw2=].