Skip to Main Content
Hands-On Application Development with PyCharm
book

Hands-On Application Development with PyCharm

by Quan Nguyen
September 2019
Beginner to intermediate content levelBeginner to intermediate
494 pages
13h
English
Packt Publishing
Content preview from Hands-On Application Development with PyCharm

Renaming

Before you start wondering—yes, simply renaming things in a program is still an aspect of refactoring. However, there is more subtlety in renaming than you might imagine. For example, say you'd like to rename a variable in a Python program. This process would be trivial if that variable was only used once or twice throughout the whole program, but if the program you are working with was large enough, and the variable is shared among many components of the program, renaming the variable might prove extremely difficult and time-consuming.

One potential solution is to use the find and replace functionality (which is commonly applicable in this case) to find all the locations in the program that contains that specific variable name and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

MASTERING PYCHARM

MASTERING PYCHARM

Nafiul Islam

Publisher Resources

ISBN: 9781789348262Supplemental Content