mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
Merge pull request #311 from gutworth/py3-doc
Indexing bytes is the problem not slicing.
This commit is contained in:
commit
fc81854934
@ -237,9 +237,9 @@ sometimes necessary::
|
||||
|
||||
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
|
||||
~~~~~~~~~~
|
||||
|
Loading…
Reference in New Issue
Block a user