@@ -26,7 +26,7 @@ has a separate root directory for each drive, referred to as :samp:`{C:\\}`, and
2626so on. Because of these differences, files have different path names on
2727different operating systems. A file named :samp: `{ C:\\ DATA\\ MYFILE } ` on Windows
2828could be :samp: `{ /DATA/MYFILE } ` on Linux and macOS. Python provides functions
29- and constants that allow you to perform common pathname manipulations without
29+ and variables that allow you to perform common pathname manipulations without
3030having to worry about such syntactical details. With a little care, you can
3131write your Python programs to run correctly regardless of the underlying file
3232system.
@@ -109,12 +109,12 @@ Relative pathnames
109109
110110 .. note ::
111111 ``os.getcwd() `` is used as a function call without arguments to make it
112- clear that the returned value is not a constant, but changes when you
113- change the value of the current working directory. In the example
114- above, the result is the home directory on one of my Linux machines. On
115- Windows machines, additional backslashes would be added to the path:
116- ``C:\\Users\\Veit ``, because Windows uses the backslash ``\ `` as a path
117- separator, but it has a different meaning in
112+ clear that the returned value is not a :term: ` constant ` , but changes
113+ when you change the value of the current working directory. In the
114+ example above, the result is the home directory on one of my Linux
115+ machines. On Windows machines, additional backslashes would be added to
116+ the path: ``C:\\Users\\Veit ``, because Windows uses the backslash ``\ ``
117+ as a path separator, but it has a different meaning in
118118 :doc: `/types/strings/index `.
119119
120120 To display the contents of the current directory, you can enter the
@@ -244,7 +244,7 @@ operating system-specific syntax.
244244 >>> os.path.expandvars("$HOME/python-basics-tutorial")
245245 '/home/veit/python-basics-tutorial'
246246
247- Useful constants and functions
247+ Useful variables and functions
248248~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
249249
250250:data: `python3:os.name `
0 commit comments