aio-libs / aio-libs/multidict

Enhancement: `to_dict` method

オープン
#783 コメント 4 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
492
フォーク
129
平均マージ
14時間 28分
マージ済み PR(30日)
35

説明

Hi there,

Thanks for this library. I'd like to ask for a convenience method that output a dict of a multidict - with lists for multi-values. Currently I have this:

```python
def dict(self) -> Dict[str, List[Any]]:
"""

Returns:
A dict of lists
"""
return {k: self.getall(k) for k in set(self.keys)}
```

While this works, its not very performant.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。