File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 25
25
26
26
# Add any Sphinx extension module names here, as strings. They can be extensions
27
27
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
28
- extensions = ['sphinx.ext.ifconfig' , 'sphinx.ext.todo' ]
28
+ extensions = ['sphinx.ext.ifconfig' , 'sphinx.ext.todo' , 'sphinx.ext.intersphinx' ]
29
29
30
30
# Add any paths that contain templates here, relative to this directory.
31
31
templates_path = ['_templates' ]
260
260
#epub_tocdup = True
261
261
262
262
todo_include_todos = True
263
+
264
+ intersphinx_mapping = {
265
+ 'python' : ('http://docs.python.org/' , None ),
266
+ }
Original file line number Diff line number Diff line change @@ -37,6 +37,13 @@ will not need that variable, use ``_``:
37
37
filename = ' foobar.txt'
38
38
basename, _, ext = filename.rpartition()
39
39
40
+ .. note ::
41
+
42
+ "``_ ``" is commonly used as an alias for the :func: `~gettext.gettext `
43
+ function. If your application uses (or may someday use) :mod: `gettext `,
44
+ you may want to avoid using ``_ `` for ignored variables, as you may
45
+ accidentally shadow :func: `~gettext.gettext `.
46
+
40
47
Create a length-N list of the same thing
41
48
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
42
49
You can’t perform that action at this time.
0 commit comments