Re: _unquote

2019-08-04 Thread Jon Ribbens via Python-list
ncode('utf-8') > return _unquote(res) > --- > > I'm very confused on the `_unquote' used above? What's the meaning of > it? I cannot find its definition from the python's shipped packages. It isn't from Python's library. You need to look

_unquote

2019-08-04 Thread Hongyi Zhao
Hi, See the following code excerpted from https://github.com/shichao-an/ homura/blob/master/homura.py: --- def unquote(s): res = s if not PY3: if isinstance(res, six.text_type): res = s.encode('utf-8') return _unquote(res) --- I'm very confused on