PEP suggestion: Uniform way to indicate Python language version

Marko Rauhamaa marko at pacujo.net
Mon Aug 22 08:05:03 EDT 2016


rocky <rocky at gnu.org>:

> A slightly different but related problem is noting the Python dialect
> at the package-level.

I don't know what if anything is needed support this idea, but one
option would be to just use "import":

    import python3_5_17

That would require Python and modules to install such empty modules to
indicate that they support the given API.


Marko



More information about the Python-list mailing list