Skip to content
#

cpython

Here are 115 public repositories matching this topic...

circuitpython
Technologicat
Technologicat commented Aug 20, 2019

We currently identify a set of arguments (for caching purposes), passed in as *args and **kwargs, using the following k as the key to a cache dictionary:

from operator import itemgetter
k = (args, tuple(sorted(kwargs.items(), key=itemgetter(0))))

(This functionality is only relevant for pure functions. Assume also that all relevant data is hashable.)

However, consid

Improve this page

Add a description, image, and links to the cpython topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the cpython topic, visit your repo's landing page and select "manage topics."

Learn more