File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1088,7 +1088,7 @@ $-formatting to be used to build the actual "message" part which appears in the
10881088formatted log output in place of "%(message)s" or "{message}" or "$message".
10891089It's a little unwieldy to use the class names whenever you want to log
10901090something, but it's quite palatable if you use an alias such as __ (double
1091- underscore – not to be confused with _, the single underscore used as a
1091+ underscore --- not to be confused with _, the single underscore used as a
10921092synonym/alias for :func: `gettext.gettext ` or its brethren).
10931093
10941094The above classes are not included in Python, though they're easy enough to
@@ -1209,7 +1209,7 @@ do simply by adding new packages or modules and doing ::
12091209at module level). It's probably one too many things to think about. Developers
12101210could also add the filter to a :class: `~logging.NullHandler ` attached to their
12111211top-level logger, but this would not be invoked if an application developer
1212- attached a handler to a lower-level library logger – so output from that
1212+ attached a handler to a lower-level library logger --- so output from that
12131213handler would not reflect the intentions of the library developer.
12141214
12151215In Python 3.2 and later, :class: `~logging.LogRecord ` creation is done through a
Original file line number Diff line number Diff line change 1- :mod: `asyncio ` -- Asynchronous I/O, event loop, coroutines and tasks
2- ====================================================================
1+ :mod: `asyncio ` --- Asynchronous I/O, event loop, coroutines and tasks
2+ =====================================================================
33
44.. module :: asyncio
55 :synopsis: Asynchronous I/O, event loop, coroutines and tasks.
Original file line number Diff line number Diff line change 1- :mod: `importlib ` -- The implementation of :keyword: `import `
2- ===========================================================
1+ :mod: `importlib ` --- The implementation of :keyword: `import `
2+ ============================================================
33
44.. module :: importlib
55 :synopsis: The implementation of the import machinery.
Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ The useful mapping keys in a :class:`LogRecord` are given in the section on
561561 handled by a strptime format string (``'%Y-%m-%d %H:%M:%S' ``), and the
562562 part after the comma is a millisecond value. Because strptime does not
563563 have a format placeholder for milliseconds, the millisecond value is
564- appended using another format string, ``'%s,%03d' `` – and both of these
564+ appended using another format string, ``'%s,%03d' `` --- and both of these
565565 format strings have been hardcoded into this method. With the change,
566566 these strings are defined as class-level attributes which can be
567567 overridden at the instance level when desired. The names of the
Original file line number Diff line number Diff line change 1- :mod: `msvcrt ` -- Useful routines from the MS VC++ runtime
2- =========================================================
1+ :mod: `msvcrt ` --- Useful routines from the MS VC++ runtime
2+ ==========================================================
33
44.. module :: msvcrt
55 :platform: Windows
Original file line number Diff line number Diff line change 1- :mod: `selectors ` -- High-level I/O multiplexing
2- ===============================================
1+ :mod: `selectors ` --- High-level I/O multiplexing
2+ ================================================
33
44.. module :: selectors
55 :synopsis: High-level I/O multiplexing.
Original file line number Diff line number Diff line change 1- :mod: `winreg ` -- Windows registry access
1+ :mod: `winreg ` --- Windows registry access
22=========================================
33
44.. module :: winreg
Original file line number Diff line number Diff line change 11.. _tut-brieftourtwo :
22
33*********************************************
4- Brief Tour of the Standard Library -- Part II
5- *********************************************
4+ Brief Tour of the Standard Library --- Part II
5+ **********************************************
66
77This second tour covers more advanced modules that support professional
88programming needs. These modules rarely occur in small scripts.
You can’t perform that action at this time.
0 commit comments