Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/stdnum/in_/pan.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve validation and docstrings of Indian numbersGaurav Chauhan2021-10-021-30/+43
| | | | | | | | | This ensures that an Aadhaar cannot be a palindrome and checks the serial part of the PAN to not be all zeros. It also updates some descriptions of PAN holder types and renames the card_holder_type to just holder_type. Closes https://github.com/arthurdejong/python-stdnum/pull/279
* Use an internal isdigits() function instead of str.isdigit()Arthur de Jong2019-04-291-3/+2
| | | | | | | | | | | The problem with the latter is that it will also accept all kinds of unicode digits that are not the ASCII 0-9 digits causing all kinds of problems in check digit calculations. Some of these unicode characters are also considered digits by int() but some are not (such as the SUPERSCRIPT TWO unicode character). Closes https://github.com/arthurdejong/python-stdnum/issues/96
* Add Indian PANsrikanthlogic2018-01-011-0/+120
Closes https://github.com/arthurdejong/python-stdnum/pull/57