Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

I have been given an excerpt of Python code. What does it do? [duplicate]

$
0
0
a, *_, b = config(    **{         k:int(v)         for k,v in self.request.GET.items()         if k in self.keys_allowed      })

This is the code exactly as I've been given it. I understand the last two lines, but can't find anything online that matches the format of a, *_, b = config, though I know the stuff inside the brackets is an anonymous function. Speaking of, k:int(v) doesn't even look like Python code. I would greatly appreciate any and all help in this regard. Thank you very much in advance!


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>