tensorly icon indicating copy to clipboard operation
tensorly copied to clipboard

Use f-strings instead of str.format()

Open bakhtos opened this issue 3 years ago • 1 comments

Closes #427 -All instances of using str.format() for printouts/error messages are changed to f-strings; -Certain f-strings utilize the property that putting '=' sign after expression prints first the expression and then the result, to avoid duplicate typing of things like f"len(list) = {len(list)}", which is now simply f"{len(list) = }". -requirements.txt now lists the minimal version of Python (3.6) to support f-strings.

bakhtos avatar Aug 03 '22 17:08 bakhtos

@bakhtos I enabled tests on here so you can find remaining syntax issues. These all look like pretty simple fixes.

aarmey avatar Aug 10 '22 17:08 aarmey

@bakhtos are you still working on this? It would be great to merge it for the next release!

JeanKossaifi avatar Oct 21 '22 06:10 JeanKossaifi