On Jan 30, 2017 11:32 PM, "Gregory Ewing" <greg.ew...@canterbury.ac.nz>
wrote:
> That's the thing I find most frustrating about both C# and Java,
> the lack of anything like Python's "from ... import ...". You get
> a choice of either effectively doing "import *" on the contents
> of a whole class and polluting your namespace, or Fully.Qualifying.
> Every.Little.Thing.

I'm not sure about C#, but this is certainly not true in Java. Importing a
class adds exactly one name to your namespace, just as in Python, which is
the unqualified name of the class. Java also has "static import" which lets
you individually import specific static methods or fields from a class.
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to