Re: CML2 with python1

Pavel Machek (pavel@suse.cz)
Fri, 14 Dec 2001 12:50:18 +0000


Hi

> > But it _is_ entirely practical to run CML2 with a bog-standard python
> > 1.5 interpreter. I just did a search/replace for the python2-ism's like
> >
> > <x> += <y> => <x> = <x> + <y>, and
> > <string>.<op>(<arg>) => string.<op>(<string>, <arg>)
> >
> > Worked around some missing functionality in the older shlex and curses
> > modules and I can now use oldconfig, menuconfig, xconfig, and cmladvent
> > with CML2 and a python1 interpreter. It also still works fine with
> > python2 as well.
> >
> > http://ravel.coda.cs.cmu.edu/cml2-1.9.4-python1.patch (36K)
> >
> > 36K might sound like a lot, but given the fact that the CML python
> > sources totals about 280KB, it is a pretty small diff, and the whole
> > "but python2 isn't standard in distributions and the license is bad"
> > argument can be dropped and we can get on with life.
>
> It's a good try. But there are some important things missing from
> this patch -- notably the Textpad class, which is needed for doing
> popup queries correctly.
...
> I personally added the ncurses/Textpad/ascii features to the Python
> libraries shipped in 2.0, and I did it for a reason -- to support what
> 'make menuconfig' needs. Backporting to 1.5.2 is only going to give a
> partial, ugly subset of menuconfig. I don't think it's good enough.

Being able to at least make oldconfig on older distros is pretty important...

Pavel

-- 
Philips Velo 1: 1"x4"x8", 300gram, 60, 12MB, 40bogomips, linux, mutt,
details at http://atrey.karlin.mff.cuni.cz/~pavel/velo/index.html.

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/