Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 65c5fb6

Browse filesBrowse files
committed
Update docs/writing/style.rst
rpartition() takes a seperator as argument
1 parent d3218d4 commit 65c5fb6
Copy full SHA for 65c5fb6

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎docs/writing/style.rst

Copy file name to clipboardExpand all lines: docs/writing/style.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ will not need that variable, use ``__``:
286286
.. code-block:: python
287287
288288
filename = 'foobar.txt'
289-
basename, __, ext = filename.rpartition()
289+
basename, __, ext = filename.rpartition('.')
290290
291291
.. note::
292292

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.