New to Python - block grouping (spaces)
steve+comp.lang.python at pearwood.info
Mon Apr 20 12:30:03 CEST 2015
On Monday 20 April 2015 12:43, Rustom Mody wrote:
> You've a 10-file python project in which you want to replace function 'f'
> by function 'longname'
> How easy is it?
About a thousand times easier than the corresponding situation:
You have ten PDF files in which you want to replace the word "f" with the
You have identified a weakness in the current Python ecosystem. Our
automated refactoring tools are currently quite weak and primitive. I'm only
aware of one, Bicycle Repair Man, which as far as I know is no longer under
active development. But I think the reason for that is not because Python is
text based. Java is also text based and it has powerful refactoring tools.
In Python's case:
- Python projects tend to be smaller and less enterprisey than Java
- Python syntax is easier to read (less cruft) and therefore manual
refactoring is simpler, compared to Java.
More information about the Python-list