mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Update docs/writing/style.rst
rpartition() takes a seperator as argument
This commit is contained in:
@@ -286,7 +286,7 @@ will not need that variable, use ``__``:
|
|||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
filename = 'foobar.txt'
|
filename = 'foobar.txt'
|
||||||
basename, __, ext = filename.rpartition()
|
basename, __, ext = filename.rpartition('.')
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user