浏览代码

Updating examples for Python 3.6

Swaroop C H 8 年之前
父节点
当前提交
7e81e63034
共有 4 个文件被更改,包括 7 次插入7 次删除
  1. 1 1
      book.json
  2. 3 3
      first_steps.md
  3. 2 2
      installation.md
  4. 1 1
      stdlib.md

+ 1 - 1
book.json

@@ -5,7 +5,7 @@
         "contactUrl": "https://www.swaroopch.com/contact/",
         "downloadUrl": "https://www.gitbook.com/book/swaroopch/byte-of-python/details",
         "officialUrl": "https://python.swaroopch.com/",
-        "pythonVersion": "3.5.1",
+        "pythonVersion": "3.6.0",
         "sourceUrl": "https://github.com/swaroopch/byte-of-python",
         "vimBookUrl": "https://vim.swaroopch.com/"
     }

+ 3 - 3
first_steps.md

@@ -22,9 +22,9 @@ Here is an example of what you should be seeing, when using a Mac OS X computer.
 
 <!-- The output should match pythonVersion variable in book.json -->
 ```python
-> python3
-Python 3.5.1 (default, Jan 14 2016, 06:54:11)
-[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
+$ python3
+Python 3.6.0 (default, Jan 12 2017, 11:26:36)
+[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
 Type "help", "copyright", "credits" or "license" for more information.
 >>> print("Hello World")
 Hello World

+ 2 - 2
installation.md

@@ -44,7 +44,7 @@ For Windows 7 and 8:
 
 - Right click on Computer from your desktop and select `Properties` or click `Start` and choose `Control Panel` -> `System and Security` -> `System`. Click on `Advanced system settings` on the left and then click on the `Advanced` tab. At the bottom click on `Environment Variables` and under `System variables`, look for the `PATH` variable, select and then press `Edit`.
 - Go to the end of the line under Variable value and append `;C:\Python35` (please verify that this folder exists, it will be different for newer versions of Python) to the end of what is already there. Of course, use the appropriate folder name.
-- If the value was `%SystemRoot%\system32;` It will now become `%SystemRoot%\system32;C:\Python35` <!-- The directory should match pythonVersion variable in book.json -->
+- If the value was `%SystemRoot%\system32;` It will now become `%SystemRoot%\system32;C:\Python36` <!-- The directory should match pythonVersion variable in book.json -->
 - Click `OK` and you are done. No restart is required, however you may have to close and reopen the command line.
 
 ### Running Python prompt on Windows
@@ -72,7 +72,7 @@ You can see the version of Python on the screen by running:
 <!-- The output should match pythonVersion variable in book.json -->
 ```
 $ python3 -V
-Python 3.5.1
+Python 3.6.0
 ```
 
 NOTE: `$` is the prompt of the shell. It will be different for you depending on the settings of the operating system on your computer, hence I will indicate the prompt by just the `$` symbol.

+ 1 - 1
stdlib.md

@@ -18,7 +18,7 @@ Suppose we want to check the version of the Python software being used, the `sys
 ```python
 >>> import sys
 >>> sys.version_info
-sys.version_info(major=3, minor=5, micro=1, releaselevel='final', serial=0)
+sys.version_info(major=3, minor=6, micro=0, releaselevel='final', serial=0)
 >>> sys.version_info.major == 3
 True
 ```