summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Doc/howto/curses.rst2
-rw-r--r--Doc/library/mmap.rst4
-rw-r--r--Doc/library/stdtypes.rst2
3 files changed, 4 insertions, 4 deletions
diff --git a/Doc/howto/curses.rst b/Doc/howto/curses.rst
index 2d964c393c..71e640cb34 100644
--- a/Doc/howto/curses.rst
+++ b/Doc/howto/curses.rst
@@ -426,7 +426,7 @@ quirks, and provide complete lists of all the functions, attributes, and
Because the curses API is so large, some functions aren't supported in the
Python interface, not because they're difficult to implement, but because no one
has needed them yet. Feel free to add them and then submit a patch. Also, we
-don't yet have support for the menus or panels libraries associated with
+don't yet have support for the menu library associated with
ncurses; feel free to add that.
If you write an interesting little program, feel free to contribute it as
diff --git a/Doc/library/mmap.rst b/Doc/library/mmap.rst
index 09ec73b094..a6e9bdc855 100644
--- a/Doc/library/mmap.rst
+++ b/Doc/library/mmap.rst
@@ -99,10 +99,10 @@ memory but does not update the underlying file.
import mmap
# write a simple example file
- with open("hello.txt", "w") as f:
+ with open("hello.txt", "wb") as f:
f.write("Hello Python!\n")
- with open("hello.txt", "r+") as f:
+ with open("hello.txt", "r+b") as f:
# memory-map the file, size 0 means whole file
map = mmap.mmap(f.fileno(), 0)
# read content via standard file methods
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 3417970dcb..deebda7afc 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -861,7 +861,7 @@ string functions based on regular expressions.
found.
-.. method:: str.format(format_string, *args, **kwargs)
+.. method:: str.format(*args, **kwargs)
Perform a string formatting operation. The *format_string* argument can
contain literal text or replacement fields delimited by braces ``{}``. Each