Re: Vim 7.3: Python3 support

2010-08-13 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > On 08.12.2010 22:43:06 > b...@moolenaar.net wrote : > > > Can you please also write some text for the help about this? > > I'll change the E999 to a valid number, we should have a tag in the help > > file that explains the message. > > In my yesterday's patch I have cha

Re: Vim 7.3: Python3 support

2010-08-13 Fir de Conversatie Roland Puntaier
On 08.12.2010 22:43:06 b...@moolenaar.net wrote : > Can you please also write some text for the help about this? > I'll change the E999 to a valid number, we should have a tag in the help > file that explains the message. In my yesterday's patch I have changed the E999 line in if_python.c and if

Re: Vim 7.3: Python3 support

2010-08-13 Fir de Conversatie Bram Moolenaar
Dominique Pelle wrote: > Bram Moolenaar wrote: > > > I'll change the E999 to a valid number, we should have a tag in the help > > file that explains the message. > > Should each translator update the E999 in src/po/*.po files to the new > value or can it be done automatically? > > Here are the

Re: Vim 7.3: Python3 support

2010-08-12 Fir de Conversatie Dominique Pellé
Bram Moolenaar wrote: > I'll change the E999 to a valid number, we should have a tag in the help > file that explains the message. Should each translator update the E999 in src/po/*.po files to the new value or can it be done automatically? Here are the po file which already contain E999: $ cd

Re: Vim 7.3: Python3 support

2010-08-12 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > On 12.08.2010 06:33:07 > James Vega wrote: > > > On Tue, Aug 10, 2010 at 11:15:41PM +0200, Bram Moolenaar wrote: > > > A configure check would help to decide whether everything works without > > > RTLD_GLOBAL global. If it does, then the current solution is best. If >

Re: Vim 7.3: Python3 support

2010-08-12 Fir de Conversatie Roland Puntaier
On 12.08.2010 06:33:07 James Vega wrote: > On Tue, Aug 10, 2010 at 11:15:41PM +0200, Bram Moolenaar wrote: > > A configure check would help to decide whether everything works without > > RTLD_GLOBAL global. If it does, then the current solution is best. If > > it doesn't it might be better to s

Re: Vim 7.3: Python3 support

2010-08-11 Fir de Conversatie James Vega
On Tue, Aug 10, 2010 at 11:15:41PM +0200, Bram Moolenaar wrote: > A configure check would help to decide whether everything works without > RTLD_GLOBAL global. If it does, then the current solution is best. If > it doesn't it might be better to switch to the other solution: do use > RTLD_GLOBAL b

Re: Vim 7.3: Python3 support

2010-08-10 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > There are no differences apart from :py3 <-> :py[thon], and the discussed > consequences, > and the possible restrictions in python functionality, if both versions > are enabled, as discussed in this thread. > > I had a look at the current documentation. You already me

Re: Vim 7.3: Python3 support

2010-08-10 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > > What do you suggest we do when RTLD_GLOBAL is needed? Disallow building > > with two versions of Python? Or restrict use at runtime, as it is now? > > We could add an option to switch using RTLD_GLOBAL on/off, but it's > > really ugly. I would rather tell users to bu

Re: Vim 7.3: Python3 support

2010-08-10 Fir de Conversatie Roland Puntaier
On 08.09.2010 22:02:48 b...@moolenaar.net wrote: > > I would opt for the following: > > > > If only one, Python 2.x xor Python 3.x, is configured (and if > > DYNAMIC_PYTHON), then use RTLD_GLOBAL: > > #define load_dll(n) dlopen((n), RTLD_LAZY|RTLD_GLOBAL) > > > > If both are configured u

Re: Vim 7.3: Python3 support

2010-08-10 Fir de Conversatie Roland Puntaier
On 08.09.2010 22:02:50 b...@moolenaar.net wrote: > James Vega wrote: > > On Mon, Aug 9, 2010 at 9:49 AM, Roland Puntaier > > wrote: > > > On Mon, 09 Aug 2010 13:49:43 > > > Andy Kittner wrote: > > >> > > I made the test in Vim 7.3: After removing RTLD_GLOBAL there wasno > > >> > > crash > > >> >

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie Bram Moolenaar
James Vega wrote: > On Mon, Aug 9, 2010 at 9:49 AM, Roland Puntaier > wrote: > > On Mon, 09 Aug 2010 13:49:43 > > Andy Kittner wrote: > >> > > I made the test in Vim 7.3: After removing RTLD_GLOBAL there wasno > >> > > crash > >> > > any more. > >> > > >> > If I'm not mistaken this flag was add

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > On Mon, 09 Aug 2010 13:49:43 > Andy Kittner wrote: > > > > I made the test in Vim 7.3: After removing RTLD_GLOBAL there wasno > > > > crash > > > > any more. > > > > > > If I'm not mistaken this flag was added to make "import termios" work. > > > Or something like tha

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie James Vega
On Mon, Aug 9, 2010 at 9:49 AM, Roland Puntaier wrote: > On Mon, 09 Aug 2010 13:49:43 > Andy Kittner wrote: >> > > I made the test in Vim 7.3: After removing RTLD_GLOBAL there wasno >> > > crash >> > > any more. >> > >> > If I'm not mistaken this flag was added to make "import termios" work. >> >

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie Roland Puntaier
On Mon, 09 Aug 2010 13:49:43 Andy Kittner wrote: > > > I made the test in Vim 7.3: After removing RTLD_GLOBAL there wasno crash > > > any more. > > > > If I'm not mistaken this flag was added to make "import termios" work. > > Or something like that. > > The issue was that at least on some sys

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie Andy Kittner
On Mon, 09 Aug 2010 12:58:20 +0200 Bram Moolenaar wrote: > > Roland Puntaier wrote: ... snip... > > > > I made the test in Vim 7.3: After removing RTLD_GLOBAL there was no crash > > any more. > > If I'm not mistaken this flag was added to make "import termios" work. > Or something like that.

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie James Vega
On Mon, Aug 09, 2010 at 12:58:20PM +0200, Bram Moolenaar wrote: > > Roland Puntaier wrote: > > > Hello Bram, > > > > sorry about my late response, first I was on holiday, then I was quite > > busy. > > > > I compared the vim7.3d sources to my original ones on Saturday. > > Most of the function

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > Hello Bram, > > sorry about my late response, first I was on holiday, then I was quite > busy. > > I compared the vim7.3d sources to my original ones on Saturday. > Most of the functions are basically the same, > but I spotted a relevant difference: > > I had: > #defi

Re: Vim 7.3: Python3 support

2010-08-09 Fir de Conversatie Roland Puntaier
...@moolenaar.net schrieb am 06.08.2010 21:16:39: > Von: Bram Moolenaar > An: Roland Puntaier > Kopie: vim_dev@googlegroups.com > Datum: 06.08.2010 21:16 > Betreff: Re: Vim 7.3: Python3 support > Gesendet von: b...@moolenaar.net > > > Roland - > > You have been quiet for a wh

Re: Vim 7.3: Python3 support

2010-08-06 Fir de Conversatie James Vega
On Fri, Aug 6, 2010 at 3:16 PM, Bram Moolenaar wrote: > Roland - > > You have been quiet for a while.  I still have the workaround that in > one Vim session one can only use either :python or :py3 to avoid > problems mixing the shared library.  Is there a better solution? As far as I know, the on

Re: Vim 7.3: Python3 support

2010-08-06 Fir de Conversatie Bram Moolenaar
Roland - You have been quiet for a while. I still have the workaround that in one Vim session one can only use either :python or :py3 to avoid problems mixing the shared library. Is there a better solution? I hope you can come up with something really soon, since we are getting very close to t

Re: Vim 7.3: Python3 support

2010-07-27 Fir de Conversatie Roland Puntaier
Hi Bram, That's good news to me. I'll check the sources and look into the crash as soon as possible. Roland b...@moolenaar.net schrieb am 25.07.2010 14:24:18: > Von: Bram Moolenaar > An: Roland Puntaier > Kopie: vim_dev@googlegroups.com > Datum: 25.07.2010 14:24 >

Vim 7.3: Python3 support

2010-07-25 Fir de Conversatie Bram Moolenaar
Roland - The Python 3 support has been included in Vim 7.3b. Please take a look and verify recent changes didn't cause trouble. We did encounter one serious problem: On Unix, when using this sequence of commands, Vim crashes: :python print "hello" :py3 print("hello") :p

Re: Planning Vim 7.3: Python3 support?

2010-07-19 Fir de Conversatie Bram Moolenaar
James Vega wrote: > On Sat, Jul 17, 2010 at 3:28 PM, Bram Moolenaar wrote: > > > > Roland Puntaier wrote: > > > >> > No, Python 3.x is considered as another language. =A0So most Python 2.= > x > >> > scripts will not work under Python 3.x. > >> > >> The patch has > >> =A0 =A0 =A0 =A0 :py3 > >> f

Re: Planning Vim 7.3: Python3 support?

2010-07-19 Fir de Conversatie Bram Moolenaar
James Vega wrote: > On Mon, Jul 19, 2010 at 10:18 AM, James Vega wrote: > > On Sat, Jul 17, 2010 at 3:28 PM, Bram Moolenaar wrote: > >> > >> Roland Puntaier wrote: > >> > >>> > No, Python 3.x is considered as another language. Â So most Python 2.x > >>> > scripts will not work under Python 3.x.

Re: Planning Vim 7.3: Python3 support?

2010-07-19 Fir de Conversatie James Vega
On Mon, Jul 19, 2010 at 10:18 AM, James Vega wrote: > On Sat, Jul 17, 2010 at 3:28 PM, Bram Moolenaar wrote: >> >> Roland Puntaier wrote: >> >>> > No, Python 3.x is considered as another language.  So most Python 2.x >>> > scripts will not work under Python 3.x. >>> >>> The patch has >>>        

Re: Planning Vim 7.3: Python3 support?

2010-07-19 Fir de Conversatie James Vega
On Sat, Jul 17, 2010 at 3:28 PM, Bram Moolenaar wrote: > > Roland Puntaier wrote: > >> > No, Python 3.x is considered as another language.  So most Python 2.x >> > scripts will not work under Python 3.x. >> >> The patch has >>         :py3 >> for Python 3.x >> and legacy >>         :py[thon] >> fo

Re: Planning Vim 7.3: Python3 support?

2010-07-17 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > > No, Python 3.x is considered as another language. So most Python 2.x > > scripts will not work under Python 3.x. > > The patch has > :py3 > for Python 3.x > and legacy > :py[thon] > for Python 2.x. > > Python 3.x is treated as another language. > B

Re: Planning Vim 7.3: Python3 support?

2010-05-16 Fir de Conversatie Andy Kittner
Hi, On Thu, Apr 29, 2010 at 03:22:51PM +0200, Roland Puntaier wrote: [..] The patch has :py3 for Python 3.x and legacy :py[thon] for Python 2.x. Python 3.x is treated as another language. Both Python 2.x and Python 3.x can be supported at the same time, if vim is configured acco

Re: Planning Vim 7.3: Python3 support?

2010-04-29 Fir de Conversatie Roland Puntaier
vim_dev@googlegroups.com schrieb am 29.04.2010 14:59:57: > "Edward L. Fox" > Gesendet von: vim_dev@googlegroups.com > > > On Thu, Apr 29, 2010 at 20:27, Bram Moolenaar wrote: > > > > Thanks. I didn't hear about anybody using the patch. That might mean > > it works without problems. Or tha

Re: Planning Vim 7.3: Python3 support?

2010-04-29 Fir de Conversatie Edward L. Fox
On Thu, Apr 29, 2010 at 20:27, Bram Moolenaar wrote: > > Roland Puntaier wrote: > >> since I had to set up windows I updated the patch for the python3 support >> to vim trunk 7.2.411. >> It is attached. > > Thanks.  I didn't hear about anybody using the patch.  That might mean > it works without p

Re: Planning Vim 7.3: Python3 support?

2010-04-29 Fir de Conversatie Bram Moolenaar
Roland Puntaier wrote: > since I had to set up windows I updated the patch for the python3 support > to vim trunk 7.2.411. > It is attached. Thanks. I didn't hear about anybody using the patch. That might mean it works without problems. Or that nobody uses it... Who tested the Python 3 suppo