Importing public symbols and simultainiously privatizing them, is too noisy
17 Mar
2016
17 Mar
'16
12:50 a.m.
Has anyone else found this to be too syntactically noisy? from module import Foo as _Foo, bar as _bar That is horrifically noisy IMO. The problem is, how do we remove the noise without sacrificing intuitiveness? My first idea was to do this: from module import_private Foo, bar And while it's self explanatory, it's also too long. So i thought... from module _import Foo, bar I'm leaning more towards the latter, but i'm not loving it either. Any ideas?
2646
Age (days ago)
2934
Last active (days ago)
17 comments
9 participants
participants (9)
-
Abe Dillon
-
Andrew Barnert
-
Ben Finney
-
Chris Angelico
-
Chris Barker
-
David Wilson
-
Eric Snow
-
Rick Johnson
-
Steven D'Aprano