PEP 263 defines how to define Python source code encoding.
Normally, the first 2 lines of a Python file should start with:
#!/usr/bin/python
# -*- coding: <encoding name> -*-
But I have seen a lot of files starting with:
#!/usr/bin/python
# -*- encoding: <encoding name> -*-
-> encoding instead of coding.
So what is the correct way of declaring the file encoding ?
Is encoding permitted because the regex used is lazy ? Or is it just another form of declaring the file encoding ?
I'm asking this question because the PEP does not talk about encoding, it just talks about coding.