mirror of https://github.com/python/cpython
fix a couple nits with my use of ReST
This commit is contained in:
parent
d61888b60a
commit
a2a07bce89
12
Misc/NEWS
12
Misc/NEWS
|
@ -170,7 +170,7 @@ Core and builtins
|
|||
precedes B in the list at the start, A precedes B after the sort too),
|
||||
although the language definition does not guarantee stability. A
|
||||
potential drawback is that list.sort() may require temp space of
|
||||
len(list)*2 bytes (\*4 on a 64-bit machine). It's therefore possible
|
||||
len(list)*2 bytes (``*4`` on a 64-bit machine). It's therefore possible
|
||||
for list.sort() to raise MemoryError now, even if a comparison function
|
||||
does not. See <http://www.python.org/sf/587076> for full details.
|
||||
|
||||
|
@ -610,8 +610,8 @@ C API
|
|||
coercion if both arguments have the same type but this type has the
|
||||
CHECKTYPES flag set. This is to better support proxies.
|
||||
|
||||
- The type of tp_free has been changed from "void (*)(PyObject \*)" to
|
||||
"void (*)(void \*)".
|
||||
- The type of tp_free has been changed from "``void (*)(PyObject *)``" to
|
||||
"``void (*)(void *)``".
|
||||
|
||||
- PyObject_Del, PyObject_GC_Del are now functions instead of macros.
|
||||
|
||||
|
@ -1341,7 +1341,7 @@ Windows
|
|||
- The signal module now supports SIGBREAK on Windows, thanks to Steven
|
||||
Scott. Note that SIGBREAK is unique to Windows. The default SIGBREAK
|
||||
action remains to call Win32 ExitProcess(). This can be changed via
|
||||
signal.signal(). For example: ::
|
||||
signal.signal(). For example::
|
||||
|
||||
# Make Ctrl+Break raise KeyboardInterrupt, like Python's default Ctrl+C
|
||||
# (SIGINT) behavior.
|
||||
|
@ -1707,7 +1707,7 @@ C API
|
|||
|
||||
- Note that PyLong_AsDouble can fail! This has always been true, but no
|
||||
callers checked for it. It's more likely to fail now, because overflow
|
||||
errors are properly detected now. The proper way to check: ::
|
||||
errors are properly detected now. The proper way to check::
|
||||
|
||||
double x = PyLong_AsDouble(some_long_object);
|
||||
if (x == -1.0 && PyErr_Occurred()) {
|
||||
|
@ -2041,7 +2041,7 @@ Core
|
|||
Iterating over a file generates its lines.
|
||||
|
||||
- The following functions were generalized to work nicely with iterator
|
||||
arguments: ::
|
||||
arguments::
|
||||
|
||||
map(), filter(), reduce(), zip()
|
||||
list(), tuple() (PySequence_Tuple() and PySequence_Fast() in C API)
|
||||
|
|
Loading…
Reference in New Issue