提交 9b03af26 编写于 作者: A Andy McCurdy

rst format fixes

上级 1a1559b8
......@@ -103,11 +103,11 @@ MSET, MSETNX and ZADD
^^^^^^^^^^^^^^^^^^^^^
These commands all accept a mapping of key/value pairs. In redis-py 2.X
this mapping could be specified as \*args or as \**kwargs. Both of these styles
caused issues when Redis introduced optional flags to ZADD. Relying on \*args
caused issues with the optional argument order, especially in Python 2.7.
Relying on \**kwargs caused potential collision issues of user keys with the
argument names in the method signature.
this mapping could be specified as ``*args`` or as ``**kwargs``. Both of these
styles caused issues when Redis introduced optional flags to ZADD. Relying on
``*args`` caused issues with the optional argument order, especially in Python
2.7. Relying on ``**kwargs`` caused potential collision issues of user keys with
the argument names in the method signature.
To resolve this, redis-py 3.0 has changed these three commands to all accept
a single positional argument named mapping that is expected to be a dict.
......
......@@ -36,6 +36,7 @@ setup(
version=__version__,
description='Python client for Redis key-value store',
long_description=long_description,
long_description_content_type='text/x-rst',
url='https://github.com/andymccurdy/redis-py',
author='Andy McCurdy',
author_email='sedrik@gmail.com',
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册