[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libvir] [PATCH 3/3] Python cygvirtmod.dll -> libvirtmod.dll



Daniel Veillard wrote:
  hum, I think it would also require a change to the python C file
to rename the entry point too, otherwise a simple
   try:
       import libvirtmod
   except:
       import cygvirtmod

might have done it.

I would use

    try:
        import libvirtmod
    except:
        import cygvirtmod as libvirtmod

as this avoids namespace problems with the rest of the code in the file.

- David


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]