Skip to content

Commit

Permalink
Fix two more instances of codegen.c and change gcc->unix
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
mstimberg committed Jul 7, 2021
1 parent 0b76afa commit d70fa01
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs_sphinx/advanced/preferences.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ Accessing and setting preferences
Preferences can be accessed and set either keyword-based or attribute-based.
The following are equivalent::

prefs['codegen.cpp.compiler'] = 'gcc'
prefs.codegen.cpp.compiler = 'gcc'
prefs['codegen.cpp.compiler'] = 'unix'
prefs.codegen.cpp.compiler = 'unix'

Using the attribute-based form can be particulary useful for interactive
work, e.g. in ipython, as it offers autocompletion and documentation.
In ipython, ``prefs.codegen.c?`` would display a docstring with all
the preferences available in the ``codegen.c`` category.
In ipython, ``prefs.codegen.cpp?`` would display a docstring with all
the preferences available in the ``codegen.cpp`` category.

Preference files
----------------
Expand Down

0 comments on commit d70fa01

Please sign in to comment.