Re: Create a new class on the fly

2007-06-04 Thread Josh West
Alex Martelli wrote: > > Thanks for snipping all the actual helpful stuff I posted, it makes SO > much easier for me to be snide! > > You can find a few examples of me demonstrating the subject of your > interest by searching for my name e.g. on video.google.com; searching > for my name on Amazon w

Re: Create a new class on the fly

2007-06-02 Thread Anton Vredegoor
Alex Martelli wrote: > You can find a few examples of me demonstrating the subject of your > interest by searching for my name e.g. on video.google.com; searching > for my name on Amazon will show some books using similar techniques, and > searching for my name on groups.google.com will find about

Re: Create a new class on the fly

2007-06-01 Thread Alex Martelli
py_genetic <[EMAIL PROTECTED]> wrote: > Alex, thanks for the advise: > > > > class PosRecords(tables.IsDescription): > > > > > class A(object): > > > self.__init__(self, args): > > > > This makes 0 sense; maybe you should learn elementary Python syntax well > > _before_ trying advanced stuff,

Re: Create a new class on the fly

2007-06-01 Thread py_genetic
Alex, thanks for the advise: > > class PosRecords(tables.IsDescription): > > > class A(object): > > self.__init__(self, args): > > This makes 0 sense; maybe you should learn elementary Python syntax well > _before_ trying advanced stuff, no? I accidently left that erroneous snippet in, howeve

Re: Create a new class on the fly

2007-05-30 Thread Alex Martelli
py_genetic <[EMAIL PROTECTED]> wrote: > Is this possible or is there a better way. I need to create a new > class during runtime to be used inside a function. The class > definition and body are dependant on unknows vars at time of exec, > thus my reasoning here. > > class PosRecords(tables.IsDe

Re: Create a new class on the fly

2007-05-30 Thread Steven D'Aprano
On Wed, 30 May 2007 17:44:06 -0700, py_genetic wrote: > > Is this possible or is there a better way. I need to create a new > class during runtime to be used inside a function. The class > definition and body are dependant on unknows vars at time of exec, > thus my reasoning here. You might wan