Message290049
| Author |
vstinner |
| Recipients |
eric.snow, ncoghlan, serhiy.storchaka, vstinner |
| Date |
2017年03月23日.14:51:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1490280671.25.0.454529433701.issue29881@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
3rd round of the API:
static PyObject *assertion_error = NULL;
...
if (_PY_ONCEVAR_INIT(assertion_error,
PyUnicode_InternFromString("AssertionError"))) {
return 0;
}
...
(Not the best example, _Py_IDENTIFIER() would be more appropriate here ;-))
--
I just added a second commit to remove the next field from _Py_Identifier and reuse _PyOnceVar_Set() in _PyUnicode_FromId(). |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2017年03月23日 14:51:11 | vstinner | set | recipients:
+ vstinner, ncoghlan, eric.snow, serhiy.storchaka |
| 2017年03月23日 14:51:11 | vstinner | set | messageid: <1490280671.25.0.454529433701.issue29881@psf.upfronthosting.co.za> |
| 2017年03月23日 14:51:11 | vstinner | link | issue29881 messages |
| 2017年03月23日 14:51:11 | vstinner | create |
|