Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Django actually has a special mechanism for dealing with ?value=&A&value=B

    values = request.GET.getlist("value")
    # values is now ["A", "B"]
We built it that way because we had seen the weird bugs that cropped up with the PHP solution, where passing ?q[]=x to a PHP application that expected ?q=x could result in an array passed to code that expected a string.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: