Is the unicode string valid in a Python 3 identifier.
(i)
| 59 | |
| 60 | |
| 61 | def test_ident(i): |
| 62 | """Is the unicode string valid in a Python 3 identifier.""" |
| 63 | # Some characters are not valid at the start of a name, but we still want to |
| 64 | # include them. So prefix with 'a', which is valid at the start. |
| 65 | return ("a" + i).isidentifier() |
| 66 | |
| 67 | |
| 68 | assert test_ident("α") |
no outgoing calls
no test coverage detected
searching dependent graphs…