With Google App Engine / Python ...
--The Python version of "Standard Environment" is 2.7.5 --The Python version of "Flexible Environment" is 2.7.9 (and 3.5.2)
(As of January 9, 2017)
I was a little addicted to it, so I made a personal note.
There are two types of Google App Engine, "Standard Environment" and "Flexible Environment". I will omit the details, but there is Free quota for launching instances for 28 hours a day in "Standard Environment", and it is used for a while. If so, you can use "Standard Environment" for free.
So what version of Python can be used in the Runtime of each environment? If you look at, "Flexible Environment" is written in Documentation, but ...
There was no document about "Standard Environment", so I spit out "sys.version_info" in the log and checked it.
sys.version_info(major=2, minor=7, micro=5, releaselevel='final', serial=0)
The Python version was 2.7.5.
(Added on 2018/03/24)
sys.version_info(major=2, minor=7, micro=12, releaselevel='final', serial=0)
So it seems that it has been updated to 2.7.12.
From here on, it's a personal addictive point.
When using hmac ...
If you want to compare the output of> digest () with an externally supplied digest in a validation routine, use compare_digest () instead of the == operator to reduce vulnerability to timing attacks. Is recommended.
However, this compare_digest () can be used after 2.7.7. Of course, using this method in the "Standard Environment" will result in an error.
Recommended Posts