[lkml]   [2001]   [Dec]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectCML2 with python1
    On Wed, Dec 05, 2001 at 03:29:54AM -0500, Eric S. Raymond wrote:
    > Cameron Simpson <>:
    > > ESR, is it practical to have CML2 transcribe a CML1 config file?
    > No, alas.

    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. (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.


    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:13    [W:0.022 / U:39.760 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site