Skip to content

[Proposal] Use f-strings instead of % formatting #99

@MrClock8163

Description

@MrClock8163

Motivation

Currently the addon uses the % formatting, as that was the suggested solution by the Python style guide for Blender at the time the addon project was started.

https://projects.blender.org/blender/blender-developer-docs/commit/f5c02a5c42d5a6c7021efabe89aa88e7d707f8f0

The new guidelines require the use of the str.format method, mainly due to the easier translation solutions (but these are not really applicable to this project).

https://developer.blender.org/docs/handbook/guidelines/python/#conventions-for-core-scripts

Description

Changing the string formatting to use f-strings would improve code readability, and would make printing heavy parts of the code more concise.

The translation requirement doesn't apply to this codebase, so the f-string usage seems to be a better choice.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions