ipython / ipython/traitlets

Make `c.` optional in config file ?

Offen
#370 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement needs-info question
Vorherrschende Sprache
Python
Sterne
653
Forks
217
Ø Merge
2 T. 21 Std.
Gemergte PRs (30 T.)
2

Beschreibung

Or at least gracefully warn if missing, but still work ? Better than "Undefined variable `Foo`" maybe

That would require changing the `__main__` namespace and overwrite `__setattr__` to accept anything that start with an uppercase, and set it on the `c` object.

We could probably warn (did you forget `c.`) ? Or just make `c.` optional.

Thoughts ?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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