On Monday 20 March 2017, Andi Vajda wrote:

Not reentrant? static const should be as good as a #define IMO. In doubt
you could avoid the variable and use  "sizeof(hash) * 2" two times
where we need it.

%lx is for long but Py_hash_t can be longer. %jx/PRIxMAX  is the biggest
possible for uintmax_t.