Chapter 4

  1. There are, in total, three possible levels of severity indicated in the top-right corner of the editor: errors (), warnings (), and nothing detected (). It is generally good practice to address any problems in your code if the severity is either error or warning before using it or committing it to GitHub.
  1. Some of the most common problems in Python code detected by PyCharm are dead code, unused declarations, unresolved references, and PEP 8 style suggestions. Each of these problems can be addressed with various simple and convenient commands in PyCharm.
  2. The approach of code completion support from JetBrains' products in general, and not just PyCharm, is smart code completion, which only looks for the most applicable and most likely APIs to suggest in the pop-up list. Additionally, the logic that's used by code completion in PyCharm can be customized by users so that they have particular behaviors that fit individual needs.

    Finally, JetBrains always looks to improve its code completion logic by collecting data regarding runtime types, if allowed by users. This allows PyCharm's code completion to be always evolving and accommodate the changing needs of Python programmers.
  3. The following are common code completion options in PyCharm that can prove useful for Python programmers:
  1. Common cases in which code completion support from PyCharm does not work are listed here:
  1. In PyCharm, programmers can perform the following refactoring tasks via convenient shortcuts:
  1. Three main aspects of working with Python documentation in PyCharm are listed here: