This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Manjusaka
Recipients Manjusaka, Scott Sanderson2, rhettinger, serhiy.storchaka
Date 2019-10-24.08:06:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1571904388.02.0.93583952696.issue38565@roundup.psfhosted.org>
In-reply-to
Content
I have already make a new function like this

static PyObject *
lru_cache_cache_parameters(lru_cache_object *self)
{
    PyObject *cache_parameters =  PyDict_New();
    PyDict_SetItemString(cache_parameters, "maxsize", PyLong_FromSsize_t(self->maxsize));
    PyDict_SetItemString(cache_parameters, "typed", self->typed == 0 ? Py_False : Py_True);
    return cache_parameters;
}
History
Date User Action Args
2019-10-24 08:06:28Manjusakasetrecipients: + Manjusaka, rhettinger, serhiy.storchaka, Scott Sanderson2
2019-10-24 08:06:28Manjusakasetmessageid: <1571904388.02.0.93583952696.issue38565@roundup.psfhosted.org>
2019-10-24 08:06:28Manjusakalinkissue38565 messages
2019-10-24 08:06:27Manjusakacreate