[Pythonmac-SIG] Rated X for (spot)
Nathan Heagy
nathan@vividworks.com
Tue, 7 Aug 2001 08:54:05 -0600 (CST)
Where are these available when using C or Java carbon? It would be nice if
the syntax were the same, such as
Java: Carbon.Res
Py: Carbon.Res
?
nathan
On Tue, 7 Aug 2001, Just van Rossum wrote:
> > At 21:45 +0200 8/6/2001, Just van Rossum wrote:
> > >Speaking of which: isn't this the right time to move the Mac modules to a
> > >package?! I think it's now or never. It's far too dangerous to have so many
> > >generic module names around, especially since we're invading an existing
> > >territory...
>
> John W Baxter wrote:
> > Seems like a good idea to me (if it can be done without breaking existing
> > code...and maybe even then: we have to learn "from __future__ import xxx"
> > sometime ;-) ).
>
> Maybe it could almost be as simple as this:
>
> Carbon/
> __init__.py # empty
> Evt.so # or Evt.carbon.slb of course
> Events.py
> Win.so
> Res.so
> Qd.so
> ..etc...
>
> Then either Carbon/ itself is on sys.path (b/w compatible) or the surrounding
> folder (forcing "from Carbon import Qd") or even both?
>
> It's a little tricky as under MacPython some of the Mac modules (Qd, Res, a
> bunch of others) aren't available as shared libs, but are part of PythonCore,
> but overall I think it's possible to privide a smooth transition path.
>
> Just
>
> _______________________________________________
> Pythonmac-SIG maillist - Pythonmac-SIG@python.org
> http://mail.python.org/mailman/listinfo/pythonmac-sig
>