The array data from forms in python (Pyramid)

Hi.
Tell me how to obtain the analogue of the following in python:
HTML
<input type="text" name="someinput[]" value="1">
<input type="text" name="someinput[]" value="2">
<input type="text" name="someinput[]" value="3">

PHP
$_POST['someinput'] - array (1, 2, 3)

PS full Form and PHP code is deliberately omitted.
October 8th 19 at 02:10
4 answers
October 8th 19 at 02:12
Solution
RTFM: Request -> MultiDict

request.POST.getall('foobar') — returns all values with the name foobar
October 8th 19 at 02:14
And according to what law, these parameters must be shahriyari in the array? This behavior is exclusively the lot of PHP and/or libraries that handle url parameters, not more than.
October 8th 19 at 02:16
request.POST is a MultiDict
to obtain all values for the key so request.POST.getall('someinput[]')
October 8th 19 at 02:18
Thank you all, the solution suggested above.
Pre-addressed to the search engine and found only on this variant, it seemed too complicated, so asked the question.

Find more questions by tags PyramidPythonHTML