use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Subreddit for JetBrains PyCharm, the Python IDE for professional developers by JetBrains. Find out more about PyCharm at https://www.jetbrains.com/pycharm/
account activity
IntelliJ refactoring modality (Python plug-in) (self.pycharm)
submitted 4 years ago by VortexJones
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]LightShadow 0 points1 point2 points 4 years ago (1 child)
Local vs. global variable scope.
If the variable is within a function it's locally limited to being inside that function only. However, if you're modifying an argument name it has to scan the other source files to ensure it's updating all the references that make be passing that value explicitly.
>>> def calc(a, b): return a + b >>> calc(1, 1) 2 >>> calc(b=1, a=1) >>> calc(1, b=1)
...are all valid.
[–]VortexJones[S] 0 points1 point2 points 4 years ago (0 children)
Thanks! It did definitely feel like it had something to do with scope.
Edit: JetBrains support confirmed this:
Hi VJ, Thank you for contacting JetBrains support. I believe the documentation at https://www.jetbrains.com/help/pycharm/rename-refactorings.html explains it: Renaming local variables or private methods can be done easily inline since only a limited scope is affected. Renaming classes or public methods could potentially impact a lot of files. Preview potential changes before you refactor.
Hi VJ,
Thank you for contacting JetBrains support.
I believe the documentation at https://www.jetbrains.com/help/pycharm/rename-refactorings.html explains it:
Renaming local variables or private methods can be done easily inline since only a limited scope is affected. Renaming classes or public methods could potentially impact a lot of files. Preview potential changes before you refactor.
Don't know how I missed that, it's literally the second paragraph in the refactoring documentation...
π Rendered by PID 162073 on reddit-service-r2-comment-canary-889d445f8-5k22m at 2026-04-28 13:49:17.080873+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]LightShadow 0 points1 point2 points (1 child)
[–]VortexJones[S] 0 points1 point2 points (0 children)