strip string

This commit is contained in:
Mylloon 2024-05-06 15:58:40 +02:00
parent c7a388d894
commit 52a55985f1
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -18,22 +18,22 @@ class System:
substitutions: list[tuple[str, str]],
interpretations: list[tuple[str, str]],
):
self.name = name
self.name = name.strip()
"""System name"""
self.base = base
self.base = map(str.strip, base)
"""Set used"""
self.axiom = axiom
self.axiom = axiom.strip()
"""Axiom used at the start of iterations"""
self.substitutions = substitutions
self.substitutions = [(m.strip(), s.strip()) for m, s in substitutions]
"""
Substitution for each member of the base,
represented as a couple (member, substitution)
"""
self.interpretations = interpretations
self.interpretations = [(m.strip(), i.strip()) for m, i in interpretations]
"""
Interpretation for each member of the base,
represented as a couple (member, interpretation)