Am 23.01.2012 05:50, schrieb François Pinard:
[ ... ]
Hi, Andreas (hello, Barry!)

I'm revisiting this under a new angle, as I now intend to try using
Emacs for Python development for a while, to see how it goes.  I used to
use Vim for a few years, and more recently, Wing IDE, which by the way,
is nice.  Except that it requires some stunts to adapt it to my needs
(while Vim or Emacs are more customizable), and the maintainers, who are
quite responsive on the average, are reluctant to recognize a few bugs
as such, so I sometimes feel stuck.  Free software has virtues! :-)

Org mode brought me back to Emacs for many things, and one thing leading
to another, here I am, a possibly fresh, reborn python-mode.el user.



Hi François,

really good news!

While completion now might be done alternatively, Pymacs based py-complete feels faster.
Relates also to the other proceedings. Always in favor of Pymacs :)

It seems that one problem you met is that Pymacs installs a Python
package, having only pymacs.py besides __init__.py, while you prefer a
single pymac.py file.  I thought that people might want to install their
Pymacs specific files within that package.  There are alternate means,
like specifying within Emacs an extra load-path for Python modules.  As
I have no evidence that the Pymacs package is used as such, maybe that
__init__.py is overkill.  I should ask Pymacs users.  Cc:ed! :-).

Another problem you might have with Pymacs is that it is now
pre-processed, there is no more a "single pymacs.py fits all".  Python 3
and Jython introduced incompatible syntax to the point a single file may
not be stretched to do for all cases, even through 2to3 (the needed
stunts would become just too ugly).

Earlier today, I compared the Pymacs copy within python-mode.el trunk
with mine, and the python-mode.el lags slightly, nothing important yet.
But it might become a problem, as we cannot have two copies of Pymacs at
once in the same Emacs session.  Another problem is that python-mode
freezes a particular pre-processing of pymacs.py, which is good for most
recent Python 2.x versions, but not as universal as one would hope.

If I understand correctly, I think that's the best way to go.
python-mode.el itself shouldn't require pymacs,

Agree.  Nonetheless it was always required, as pycomplete relied on
it.  That changed only recently. Basic completion with M-TAB now works
out from python-mode.el alone.

I do not understand python-mode.el enough yet to see how it uses Pymacs.
If Pymacs launches a pymacs-helper, and if Emacs launches an "inferior
Python shell", and M-x pdb its own as well, I presume that all these
Python processes do not inter-operate nicely, while they should, at
least if they all execute the same pieces of Python code.  Moreover, in
my case, these "pieces" may sometimes be fairly big packages.  While
Pymacs may be useful to attempt completion or inspection, and other
things, *not* having it around reduces the size of the above puzzle.


What about to maintain and release a one-file Python-mode and a fule scale integrated project? I.e having two download-files. In earlier times that happened AFAIK.

We may take a Pymacs-branch which contains a synced python-mode.el
I'll remove the mini-Pymacs install from python-mode.el

[ ... ]


It might worth aiming that python-mode's Pymacs and the Pymacs under Git
be almost kept in sync.  If some (simple) changes on my side could make
this easier without hurting other Pymacs users, let's ponder them.

It would not be much fun, I guess, if python-mode has to repeat the
configuration and make machinery of the Pymacs distribution, while I do
not see how it could be avoided without creating problems here or there.
Expecting users to explicitly, separately install Pymacs is no fun
either.  I do not know where lies the wiser wisdom!

François

P.S. Feel free to copy this discussion on the python-mode mailing list
if you think it would be a good thing to do.


A question around Make:

If we provide the next Python-mode/Pymacs release using Make as Pymacs does, the top directory should contain only the minimal requiring, i.e, INSTALL, README etc.

Cheers,

Andreas




_______________________________________________
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode

Reply via email to