Re: dynamic class instantiation

2006-02-02 Thread Ognen Duzlevski
Kent Johnson <[EMAIL PROTECTED]> wrote: > Ognen Duzlevski wrote: > > Can you suggest a better approach or did you already do that and I just > > missed > > it? :) > With the above definitions, an equivalent class is created by calling > page = classFactory(

Re: dynamic class instantiation

2006-02-01 Thread Ognen Duzlevski
Volker Grabsch <[EMAIL PROTECTED]> wrote: > Ognen Duzlevski wrote: > > Kent Johnson <[EMAIL PROTECTED]> wrote: > >> Ognen Duzlevski wrote: > >> > Say I got "page" as a string. How do I go about > >> > instantiating a class from thi

Re: dynamic class instantiation

2006-01-31 Thread Ognen Duzlevski
Kent Johnson <[EMAIL PROTECTED]> wrote: > Ognen Duzlevski wrote: > > Say I got "page" as a string. How do I go about > > instantiating a class from this piece of information? To make it > > more obvious how do I create the page() class based on the "

Re: dynamic class instantiation

2006-01-30 Thread Ognen Duzlevski
Larry Bates <[EMAIL PROTECTED]> wrote: > > Now I want to use something like xml.dom.minidom to "parse" the > > .xml file into a set of classes defined according to the "language > > definition" file. The parse() method from the xml.dom.minidom > > package will return a document instance and I ca

dynamic class instantiation

2006-01-30 Thread Ognen Duzlevski
Hi, I have a "language definition" file, something along the lines of: page :: name : simple caption : simple function : complex function :: name : simple code : simple component :: name : simple type : simple dataset : complex

Re: import Excel csv - files

2005-11-30 Thread Ognen Duzlevski
Hi, Larry Bates <[EMAIL PROTECTED]> wrote: > You should actually explain what you mean by "export". > Excel has a Save As HTML that would save everything out to HTML > or you can do Save As .CSV. Hard to tell what you want. > I suspect that to get to the cell comments you will need to > go thro

Re: Comparing lists - somewhat OT, but still ...

2005-10-16 Thread Ognen Duzlevski
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Sun, 16 Oct 2005 15:16:39 +0200, Christian Stapfer wrote: > > It turned out that the VAX compiler had been > > clever enough to hoist his simple-minded test > > code out of the driving loop. > Optimizations have a tendency to make a complete me

Re: Python's Performance

2005-10-11 Thread Ognen Duzlevski
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Alex Stapleton wrote > > Except it is interpreted. > except that it isn't. Python source code is compiled to byte code, which > is then executed by a virtual machine. if the byte code for a module is up > to date, the Python runtime doesn't even look a