Message153902
| Author |
vstinner |
| Recipients |
grahamd, gregory.p.smith, vstinner |
| Date |
2012年02月21日.21:44:15 |
| SpamBayes Score |
2.433858e-07 |
| Marked as misclassified |
No |
| Message-id |
<1329860656.17.0.646708603088.issue14071@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I'm not sure that it could work because many C functions use caches using static variables.
Just a random example:
int
_PyUnicode_HasNULChars(PyObject* s)
{
static PyObject *nul = NULL;
if (nul == NULL)
nul = PyUnicode_FromStringAndSize("0円", 1);
if (nul == NULL)
return -1;
return PyUnicode_Contains(s, nul);
}
If hash(nul) is computed in an interpreter, the same hash value will be used by all interpreters. If interpreters use a different hash secret, you will have a problem. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年02月21日 21:44:16 | vstinner | set | recipients:
+ vstinner, gregory.p.smith, grahamd |
| 2012年02月21日 21:44:16 | vstinner | set | messageid: <1329860656.17.0.646708603088.issue14071@psf.upfronthosting.co.za> |
| 2012年02月21日 21:44:15 | vstinner | link | issue14071 messages |
| 2012年02月21日 21:44:15 | vstinner | create |
|