Re: [Python-mode] running Python tests

2011-03-15 Thread Yaroslav Halchenko
Hi Andreas,

Thank you for the invitation -- unfortunately I am already overloaded
with other projects so would not be able to provide adequate time to
python-mode.  Moreover my elisp knowledge is quite basic :-/

FWIW I use python-mode together with rope to get me some quick
navigation facilities (haven't actually used it for refactoring ;) )

 Pymacs seems broken.

With which version?  I recall fixing something to make rope work back
again after some not so recent upgrade -- now all seems to be fine with

GNU Emacs 23.2.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
ii  pymacs  0.23-1.1interface 
between Emacs Lisp and Python
ii  python-rope 0.9.2-1 Python 
refactoring library
ii  python-ropemacs 0.6c2-4 Emacs mode 
for Python refactoring


On Tue, 15 Mar 2011, Andreas Röhler wrote:
 thanks pointing to it.

 BTW what about joining the team, make a notice as a blueprint, push
 up your branch, propose for merge etc?

 We still need a lot of stuff - reasonable auto-completion,
 refactoring, pydb etc.

 Pymacs seems broken.

 Definitly we should have a specification.
-- 
=--=
Keep in touch www.onerussian.com
Yaroslav Halchenko www.ohloh.net/accounts/yarikoptic
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


[Python-mode] Fw: [Branch ~python-mode-devs/python-mode/python-mode] Rev 402: py-goto-beginning-of-tqs-lp:735328-test with py-bug-numbered-tests.el added

2011-03-15 Thread Barry Warsaw
Hi Andreas.  Did you really mean to commit a directory listing as a .el file?
;)

-Barry

Begin forwarded message:

Date: Tue, 15 Mar 2011 11:11:16 -
From: nore...@launchpad.net
To: Barry Warsaw ba...@canonical.com
Subject: [Branch ~python-mode-devs/python-mode/python-mode] Rev 402: 
py-goto-beginning-of-tqs-lp:735328-test with py-bug-numbered-tests.el added



revno: 402
committer: Andreas Roehler andreas.roeh...@online.de
branch nick: python-mode
timestamp: Tue 2011-03-15 11:08:05 +0100
message:
py-goto-beginning-of-tqs-lp:735328-test with py-bug-numbered-tests.el added
added:
  py-bug-numbered-tests.el


--
lp:python-mode
https://code.launchpad.net/~python-mode-devs/python-mode/python-mode

Your team python-mode.el developers is subscribed to branch lp:python-mode.
To unsubscribe from this branch go to 
https://code.launchpad.net/~python-mode-devs/python-mode/python-mode/+edit-subscription
=== added file 'py-bug-numbered-tests.el'
--- py-bug-numbered-tests.el	1970-01-01 00:00:00 +
+++ py-bug-numbered-tests.el	2011-03-15 10:08:05 +
@@ -0,0 +1,46 @@
+  /home/speck/arbeit/emacs/python-modes/python-mode-components:
+  insgesamt 1704
+  -rw-r--r--  1 speck users   4545 20. Aug 2010  string-strip.el
+  -rw-r--r--  1 speck users   7354 24. Dez 14:36 sh-beg-end.el
+  drwxr-xr-x  3 speck users   4096  7. Jan 18:07 website
+  -rw-r--r--  1 speck users   3274  7. Jan 18:07 pycomplete.py
+  -rw-r--r--  1 speck users364  7. Jan 18:07 INSTALL
+  -rw-r--r--  1 speck users  85097  7. Jan 18:07 doctest-mode.el
+  drwxr-xr-x  6 speck users   4096  7. Jan 18:07 .bzr
+  -rw-r--r--  1 speck users424 10. Jan 12:12 python-mode-fixed-examples.py
+  -rw-r--r--  1 speck users935 13. Jan 11:27 README
+  -rw-r--r--  1 speck users   1566 13. Jan 11:28 pycomplete.el
+  -rw-r--r--  1 speck users   1554 29. Jan 17:16 test-triple-strings.py
+  -rw-r--r--  1 speck users 92  5. Feb 13:22 ToDo
+  -rw-r--r--  1 speck users799  9. Feb 10:56 NEWS
+  -rw-r--r--  1 speck users  15987 23. Feb 08:40 python-components-help.el
+  -rw-r--r--  1 speck users   2520 23. Feb 08:40 py-bug-numbered-tests-example.el
+  -rw-r--r--  1 speck users   8978 23. Feb 08:40 python-components-imenu.el
+* -rw-r--r--  1 speck users  21907 23. Feb 08:40 python-components-shell.el
+  -rw-r--r--  1 speck users  10614 23. Feb 08:44 python-components-extensions.el
+  -rw-r--r--  1 speck users   8142 23. Feb 08:45 python-components-pdb.el
+  -rw-r--r--  1 speck users   6792 23. Feb 13:30 python-components-skeletons.el
+  -rw-r--r--  1 speck users  21925  2. Mär 19:40 misc-utils.el
+  -rw-r--r--  1 speck users   3742  6. Mär 08:53 python-modes-test
+  -rw-r--r--  1 speck users930  6. Mär 13:00 vorlage-py-bug-numered-tests.el
+  -rw-r--r--  1 speck users188  6. Mär 16:11 indentation-with-backslash-line-continuation-629916-exec-buffer.txt
+  -rw-r--r--  1 speck users237  6. Mär 16:11 .bzrignore
+  -rw-r--r--  1 speck users  18052  7. Mär 18:31 beg-end.el
+  -rw-r--r--  1 speck users  20571  8. Mär 17:48 python-components-edit.el
+  -rwx--  1 speck users   1966  9. Mär 16:59 test-python-mode-components
+* -rw-r--r--  1 speck users  58208  9. Mär 20:25 python-components-mode.el
+  -rw-r--r--  1 speck users   2911  9. Mär 21:49 highlight-indentation.el
+  -rw-r--r--  1 speck users  22333 11. Mär 08:46 ar-comment-lor.el
+  -rw-r--r--  1 speck users  18972 11. Mär 21:16 python-components-intern.el
+  -rw-r--r--  1 speck users 130637 12. Mär 10:10 thingatpt-utils-base.el
+  -rw-r--r--  1 speck users 949711 12. Mär 10:11 thing-at-point-utils.el
+  -rw-r--r--  1 speck users   4870 12. Mär 10:13 thingatpt-highlight.el
+  -rw-r--r--  1 speck users  99233 12. Mär 10:13 thingatpt-python-expressions.el
+  -rw-r--r--  1 speck users  26723 12. Mär 10:42 python-components-move.el
+  -rw-r--r--  1 speck users  20557 12. Mär 12:02 python-components-test.elc
+  -rw-r--r--  1 speck users  15669 12. Mär 12:25 py-bug-numbered-tests.el
+  -rw-r--r--  1 speck users  14115 12. Mär 12:26 py-bug-numbered-tests.elc
+  drwxr-xr-x 21 speck users   4096 13. Mär 17:41 ..
+  -rw-r--r--  1 speck users  21880 13. Mär 18:17 python-components-test.el
+  drwxr-xr-x  5 speck users   4096 14. Mär 10:57 .
+  drwxr-xr-x  2 speck users   4096 14. Mär 22:29 RCS




signature.asc
Description: PGP signature
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] Fw: [Branch ~python-mode-devs/python-mode/python-mode] Rev 402: py-goto-beginning-of-tqs-lp:735328-test with py-bug-numbered-tests.el added

2011-03-15 Thread Andreas Röhler

Am 15.03.2011 17:23, schrieb Barry Warsaw:

Hi Andreas.  Did you really mean to commit a directory listing as a .el file?
;)

-Barry


OMG, seems something swapped over...
Sorry and thanks.

It's okay at my home board BTW, no magic. Just got the wrong buffer when 
saving.


Andreas




Begin forwarded message:

Date: Tue, 15 Mar 2011 11:11:16 -
From: nore...@launchpad.net
To: Barry Warsawba...@canonical.com
Subject: [Branch ~python-mode-devs/python-mode/python-mode] Rev 402: 
py-goto-beginning-of-tqs-lp:735328-test with py-bug-numbered-tests.el added



revno: 402
committer: Andreas Roehlerandreas.roeh...@online.de
branch nick: python-mode
timestamp: Tue 2011-03-15 11:08:05 +0100
message:
 py-goto-beginning-of-tqs-lp:735328-test with py-bug-numbered-tests.el added
added:
   py-bug-numbered-tests.el


--
lp:python-mode
https://code.launchpad.net/~python-mode-devs/python-mode/python-mode

Your team python-mode.el developers is subscribed to branch lp:python-mode.
To unsubscribe from this branch go to 
https://code.launchpad.net/~python-mode-devs/python-mode/python-mode/+edit-subscription



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


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


[Python-mode] apropos py-bug-numbered-tests

2011-03-15 Thread Andreas Röhler

Hi Barry,

test concerning last bug report
`goto-beginning-of-tqs-lp:735328-test' should go
through with python-mode.el, some others too, but not
all.

To tackle remaining bugs, would
change some lisp of python-mode.el towards more common
forms. For example `py-save' now is as macro
`ignore-errors' available.

Also `py-point' forms IMHO rather obfuscate the code. Did
see the explanation for it, but don't think it pays.

Do I have green light for such a clean up?

Would commit every logical step, so it should be easy to
revert, should some mistake occur.

Andreas

--
https://code.launchpad.net/~a-roehler/python-mode/python-mode-components
https://code.launchpad.net/s-x-emacs-werkstatt/
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] running Python tests

2011-03-15 Thread m h
On Tue, Mar 15, 2011 at 6:48 AM, Yaroslav Halchenko
li...@onerussian.com wrote:
 Hi Andreas,

 Thank you for the invitation -- unfortunately I am already overloaded
 with other projects so would not be able to provide adequate time to
 python-mode.  Moreover my elisp knowledge is quite basic :-/

 FWIW I use python-mode together with rope to get me some quick
 navigation facilities (haven't actually used it for refactoring ;) )

 Pymacs seems broken.

The emacs-for-python and emacs-starter-kit at
https://github.com/gabrielelanaro/ both seem to have good rope support
out of the box and were working with python-mode.el.  (I'm trying out
the new python.el and it works that too).

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


Re: [Python-mode] apropos py-bug-numbered-tests

2011-03-15 Thread Barry Warsaw
On Mar 15, 2011, at 07:47 PM, Andreas Röhler wrote:

To tackle remaining bugs, would
change some lisp of python-mode.el towards more common
forms. For example `py-save' now is as macro
`ignore-errors' available.

The question is cross-Emacsen compatibility, and also compatibility with older
Emacsen.  E.g. how far back does ignore-errors support and does it work with
XEmacs?

Also `py-point' forms IMHO rather obfuscate the code. Did
see the explanation for it, but don't think it pays.

I do like py-point a lot.  Code was more verbose without it, so I do think it
helps, and should be pretty easy to understand.  OTOH, I guess you're doing
the most work on the code now, so you get to decide.  However I wouldn't
necessarily recommend ripping it all out (IOW, if it ain't broke, don't fix
it).

Do I have green light for such a clean up?

I'll leave it up to you, with the above caveats.

Would commit every logical step, so it should be easy to
revert, should some mistake occur.

Maybe getting the tests working first would be a good idea?  That way, you
have some baseline to prove that your changes aren't breaking the code.  What
do you think?

-Barry


signature.asc
Description: PGP signature
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] apropos py-bug-numbered-tests

2011-03-15 Thread Barry Warsaw
On Mar 15, 2011, at 09:55 PM, Andreas Röhler wrote:

Listen, Barry: the code is intrinsic for me to an extend, that I don't know
how to fix the remaining bugs mentioned. All these bugs are absent in the
components branch, because it's simplified from the scratch - more or less...

Tried to backport some solution and could resolve some issues. But again and
again going trapped into some wire.

Obviously no one else could solve that over the years also. That's not a
surprise. We are in some labyrinth, before some gordic knots.

OTOH it's a pleasure for me to see solutions from different sides, python.el,
components- and python-mode. So if you permit, will try to range things
still.

Tell if cannot bear it any longer :-)

Do what you need to do!  And remember that some code in python-mode.el is
*ancient* so I'm not surprised if better and cleaner ways of doing things are
now possible.

-Barry



signature.asc
Description: PGP signature
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


[Python-mode] r401 is broken

2011-03-15 Thread Barry Warsaw
Hi Andreas,

r401 broke TAB indentation in Emacs 23.  In the attached file, set the cursor
at the end of line 48, then hit return and tab.  Point does not indent.

Cheers,
-Barry

# Copyright (C) 2011 by the Free Software Foundation, Inc.
#
# This file is part of GNU Mailman.
#
# GNU Mailman is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation, either version 3 of the License, or (at your option)
# any later version.
#
# GNU Mailman is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# GNU Mailman.  If not, see http://www.gnu.org/licenses/.

Testing i18n template search and interpolation.

from __future__ import absolute_import, unicode_literals

__metaclass__ = type
__all__ = [
'test_suite',
]


import os
import shutil
import tempfile
import unittest

from zope.component import getUtility

from mailman.config import config
from mailman.interfaces.languages import ILanguageManager
from mailman.testing.layers import ConfigLayer
#from mailman.utilities.i18n import find, make

from mailman.Utils import findtext



class TestFind(unittest.TestCase):
layer = ConfigLayer

def setUp(self):
getUtility(ILanguageManager).add('xx', 'utf-8', 'Xlandia')
self.template_dir = tempfile.mkdtemp()
config.push('template config', \
[paths.testing]
template_dir: {0}
.format(self.template_dir))
# Populate global tempdir with a few fake templates.
self.xx = os.path.join(self.template_dir, 'xx')
os.mkdir(self.xx)
with open(os.path.join(self.xx, 'nosub.txt'), 'w') as fp:
print  fp, \
This is a template without substitutions.


def tearDown(self):
config.pop('template config')
shutil.rmtree(self.template_dir)

def test_find_global_template(self):
text, filename = findtext('nosub.txt', lang='xx')
self.assertEqual(text, 'This is a template without substitutions.')
self.assertEqual(filename, os.path.join(self.xx, 'nosub.txt'))



def test_suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(TestFind))
return suite


signature.asc
Description: PGP signature
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode


Re: [Python-mode] r401 is broken

2011-03-15 Thread Andreas Röhler

Am 15.03.2011 22:21, schrieb Barry Warsaw:

Hi Andreas,

r401 broke TAB indentation in Emacs 23.  In the attached file, set the cursor
at the end of line 48, then hit return and tab.  Point does not indent.

Cheers,
-Barry




there was a typo, done now.
Will see again tomorrow.
___
Python-mode mailing list
Python-mode@python.org
http://mail.python.org/mailman/listinfo/python-mode