On Sun, Oct 13, 2019 at 09:53:41PM -0400, David Mertz wrote: [in response to my comment]
> > (don't you have an IDE with a refactor command for that?^1 ) > > ^1 I don't, so I'm not entirely unsympathetic to this argument. > > > > I really don't! > > It would be cool to have some keystrokes that identified everything that > might be affected is I changed 'foo' from a list to a set... but it seems > subtle. Everywhere foo might occur in call chains through every renaming as > a formal parameter or otherwise. I'm not an expert, but I understand that "Change variable name" is a well-known, and solved, problem for refactoring tools. Certainly Martin Fowler's books act as if it's just a menu command away. If (generic) you change change variable names, it can change attribute names, and if it can do that, it can change method names too, so I expect this is a solved problem for people who have sufficiently advanced IDEs and/or refactoring tools. Bicyle Repairman hasn't had an update for 16 years, but it claims to be able to rename methods. https://pypi.org/project/bicyclerepair/ So all you need do is downgrade your work projects to Python 2.3, and your problems are all solved! *wink* -- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/HBQFXZDAN55BYU3ZFIK45QBNFZQISIY4/ Code of Conduct: http://python.org/psf/codeofconduct/