Thanks Chuck/Patrick, -- and all points are well taken.
To avoid spending any longer beating on dead horse issues, forget my
opinion (as I gain understanding of what's being changed, I agree,
module namespace will likely be a better Pythonesque approach still
giving ample clarity), but I'd still like to understand what's being
planned overall, since I'm making a commitment to learning a GUI
development system that I'm now finding will be offered in a new format.
I tried searching the archives for material about the changes, but could
only find tidbits scattered thorough a number of emails (this would be
on the ActiveState website). I checked wxpython.org, and didn't see
anything jump out about a new format or any major changes in the works.
Is there a white paper, proposal, or general description of what's being
done to the libraries, or is it necessary to follow all the threads of
email on this user/list to put it all together? (if the latter, just
tell me to wait for the final release - I'm not THAT curious)
Is there a best source or two, where I (and other newcomers) can bring
ourselves up to speed? If so, could you share that with us? (I've only
been on this mailing list for a week, and obviously am still too sober
to know where everybody keeps things).
I can also appreciate how frustrating it must be to keep bringing
everyone like me up to date on things over and over. So a sincere
'thanks' for your patience (that goes for all of you who seem to be the
key players in providing wxPython).
Dan Cherry
路路路
-----Original Message-----
From: Chuck Esterbrook [mailto:ChuckEsterbrook@yahoo.com]
Sent: Sunday, June 01, 2003 4:46 PM
To: wxPython-users@lists.wxwindows.org
Subject: Re: [wxPython-users] Bug in __init__.py of the wx pkg + other
remarks
On Sunday 01 June 2003 07:05 am, Dan Cherry wrote:
To over emphasize the clarity point, would this mailing list become
Python-users@lists.windows.org, or possibly just users@lists.org?
If mailing lists had namespaces, then it would be something like
python.wx.users@lists.org.
Python *does* have namespaces which makes the prefixes redundant. And if
you want to know where a class comes from, you can just ask for its
module:
someClass.__module__
which you can then ask for its __path__
I already use wxPython without the prefixes and it works fine. Keep in
mind the prefix is still highly visible in the source:
old style: wxFrame
new style: wx.Frame
On Sunday 01 June 2003 08:16 am, Patrick K. O'Brien wrote:
On Sunday 01 June 2003 07:05 am, Dan Cherry wrote:
> Sorry to be a differ-begger, but I would be in favor of keeping the
> wx prefixes.
Then don't use the new wx package. It's your choice.
It's not much of a choice. I assume that the old style of wxFoo will be
first deprecated and then eventually eliminated. And using deprecated
features for new code is high undesireable for all the obvious reasons.
In any case, we should definitely axe the prefix and start using Python
like it's Python and not C++.
On Sunday 01 June 2003 08:23 am, Patrick K. O'Brien wrote:
> > The wxPython.wx module can't change, due to the need to support
> > existing apps. The new wx package will remain separate, as it is
> > now. I think this was just a simple typo on Chuck's part.
>
> wxPython.wx *can* change and does for me: At run time I simply run
> through the dir() of that module adding "Foo" for any "wxFoo". I
> even tried out the demo with this enhancement and everything works.
While technically correct, you are just muddying the waters. Any
Python namespace can be mangled.
I wasn't muddying the waters. You said "The wxPython.wx module can't
change, due to the need to support existing apps." and I was addressing
that statement. It's false.
The changed version I'm using *does* support existing apps as well as
"new ones".
It's all crystal clear-ly yours,
--
Chuck
http://ChuckEsterbrook.com
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org