| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
array.array() error message now reuses array.typecodes, instead of maintaining an hardcoded list of valid type codes.
|
Example: import array
array.array('v')Output: Traceback (most recent call last):
File "/home/vstinner/python/main/x.py", line 2, in <module>
array.array('v')
~~~~~~~~~~~^^^^^
ValueError: bad typecode (must be: b, B, u, w, h, H, i, I, l, L, q, Q, e, f, d, Zf, Zd)
|
Sorry, something went wrong.
|
Merged, thanks for the review. I wrote this change since recently, I noticed that 3 type codes were missing from this error message. I fixed the error message, but with this change it's no longer neeeded (it's always up to date). |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
array.array() error message now reuses array.typecodes, instead of maintaining an hardcoded list of valid type codes.