官术网_书友最值得收藏!

Chapter 1. Current Status of Python

Python is good for developers.

No matter what operating system you or your customers are running, it will work. Unless you are coding platform-specific things, or using a platform-specific library, you can work on Linux and deploy on other systems, for example. However, that's not uncommon anymore (Ruby, Java, and many other languages work in the same way). Combined with the other qualities that we will discover throughout this book, Python becomes a smart choice for a company's primary development language.

This book is focused on the latest version of Python, 3.5, and all code examples are written in this version of the language unless another version is explicitly mentioned. Because this release is not yet widely used, this chapter contains some description of the current status quo of Python 3 to introduce readers to it, as well as some introductory information on modern approaches to development in Python. This chapter covers the following topics:

  • How to maintain compatibility between Python 2 and Python 3
  • How to approach the problem of environment isolation both on application and operating system level for the purpose of development
  • How to enhance the Python prompt
  • How to install packages using pip

A book always starts with some appetizers. So, if you are already familiar with Python (especially with the latest 3.x branch) and know how to properly isolate environments for development purposes, you can skip the first two sections of this chapter and just read the other sections quickly. They describe some tools and resources that are not essential but can highly improve productivity in Python. Be sure to read the section on application-level environment isolation and pip, though, as their installation is mandatory for the rest of the book.

主站蜘蛛池模板: 徐汇区| 西峡县| 阿尔山市| 桐城市| 辽阳县| 香河县| 仁怀市| 连江县| 江口县| 积石山| 东兰县| 淮安市| 普陀区| 汝阳县| 洛扎县| 曲阜市| 四子王旗| 始兴县| 阿瓦提县| 许昌市| 维西| 犍为县| 景谷| 天祝| 黄陵县| 安龙县| 罗江县| 高碑店市| 锦州市| 卢龙县| 孙吴县| 阿克苏市| 筠连县| 罗定市| 吴川市| 绥棱县| 梁平县| 乌兰浩特市| 灵璧县| 神池县| 贵德县|