mirror of
https://github.com/django/django.git
synced 2025-08-02 18:13:02 +00:00
Indexing bytes is the problem not slicing.
This commit is contained in:
parent
9eafb6592e
commit
c87b08d2a1
1 changed files with 2 additions and 2 deletions
|
@ -237,9 +237,9 @@ sometimes necessary::
|
||||||
|
|
||||||
value = value.encode('ascii', 'ignore').decode('ascii')
|
value = value.encode('ascii', 'ignore').decode('ascii')
|
||||||
|
|
||||||
Be cautious if you have to `slice bytestrings`_.
|
Be cautious if you have to `index bytestrings`_.
|
||||||
|
|
||||||
.. _slice bytestrings: http://docs.python.org/py3k/howto/pyporting.html#bytes-literals
|
.. _index bytestrings: http://docs.python.org/py3k/howto/pyporting.html#bytes-literals
|
||||||
|
|
||||||
Exceptions
|
Exceptions
|
||||||
~~~~~~~~~~
|
~~~~~~~~~~
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue