> > I think Guido might have made things a
> > bit harder to separate out than you
> > anticipate, unless I misread you. It
> > appears that modules and classes are
> > also imported into the same namespace
> > as everything else in python.
>
> Yeah, I had that pointed out in private
> mail. At this point I'm a half-step away
> from going fully unified.

Doooo it.... doooo it....

> One thing though:
> > To expand (but to make the output more
> > compact), my earlier program:
> >
> > #!/usr/bin/env python
> > import os as a
> > print a         # <module 'os' from
> >                 # '/usr/lib/python2.3/os.pyc'>
> > class a:
> >     pass
> > print a         # __main__.a
> > def a():
> >     pass
> > print a         # <function a at 0x401e0b54>
> > a = 7
> > print a         # 7
>
> What happens if you then do something
> like "import foo" and the foo
> module has a "class a:" definition in it?

Well I would assume it would say
<class 'a' from 'a.pyc'>
(or however python inspects classes)

Anyway, *not* unifying would make things tricky for
languages that want unification. Going the other way,
however, is fairly simple. Unify away :)


                
__________________________________
Do you Yahoo!?
Yahoo! Mail - You care about security. So do we.
http://promotions.yahoo.com/new_mail

Reply via email to