How to convert a MultiDict to nested dictionary

前端 未结 3 1579
不思量自难忘°
不思量自难忘° 2021-01-04 15:25

I would like to convert a POST from Webob MultiDict to nested dictionary. E.g.

So from a POST of:

\'name=Kyle&phone.number=1234&phone.type=ho         


        
3条回答
  •  一向
    一向 (楼主)
    2021-01-04 16:00

    If you have formencode installed or can install it, checkout out their variabledecode module

提交回复
热议问题