Skip to content

Instantly share code, notes, and snippets.

View olance's full-sized avatar

Olivier Lance olance

View GitHub Profile
@olance
olance / parse_nested_query.py
Last active August 29, 2015 14:02 — forked from john1king/parse_nested_query.py
Parses a query string to obtain a params dict as it's done in Rails using Rack's Utils lib.
# This is a port from https://github.com/rack/rack/blob/master/lib/rack/utils.rb from john1king,
# forked to be fixed, completed & documented
import re
import urllib
class RangeError(Exception):
pass