InsightSoftwareConsortium / InsightSoftwareConsortium/ITKSphinxExamples

Use idiomatic Python throughout the examples

Offen
#199 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Jupyter Notebook
Sterne
59
Forks
70
Ø Merge
1 T. 15 Std.
Gemergte PRs (30 T.)
12

Beschreibung

To improve example readability and improve familiarity to Pythonistas, we should use idiomatic Python throughout the examples. In the past we had tried to keep the C++ and Python similar, but it is evident that this is less useful than idiomatic Python that people will use in practice.

This means:

- Using `snake_case` instead of `camelCase` for variable names
- Not using type declarations, unless required
- Using the Pythonic functional interface to filters when possible
- Not hardcoding types or dimensions when possible

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.