Re: factory functions & methods

2009-03-11 Thread Aaron Brady
On Mar 11, 12:52 pm, Piet van Oostrum wrote: > > Aaron Brady (AB) wrote: > >AB> Hello, > >AB> I am creating a container.  I have some types which are built to be > >AB> members of the container.  The members need to know which container > >AB> they are in, as they call methods on it, such as

Re: factory functions & methods

2009-03-11 Thread Piet van Oostrum
> Aaron Brady (AB) wrote: >AB> Hello, >AB> I am creating a container. I have some types which are built to be >AB> members of the container. The members need to know which container >AB> they are in, as they call methods on it, such as finding other >AB> members. I want help with the synta

Re: factory functions & methods

2009-03-10 Thread Gabriel Genellina
En Sun, 08 Mar 2009 20:08:32 -0200, Aaron Brady escribió: Hello, I am creating a container. I have some types which are built to be members of the container. The members need to know which container they are in, as they call methods on it, such as finding other members. I want help with t

Re: factory functions & methods

2009-03-09 Thread Aaron Brady
On Mar 8, 5:45 pm, "andrew cooke" wrote: > Aaron Brady wrote: > > Hello, > > > I am creating a container.  I have some types which are built to be > > members of the container.  The members need to know which container > > they are in, as they call methods on it, such as finding other > > members.

Re: factory functions & methods

2009-03-08 Thread andrew cooke
andrew cooke wrote: > above is with 3.0. for some odd reason i thing the order of teh args to > MethodType may have changed recently, so be careful. sorry, no, had 2.6 running there... andrew -- http://mail.python.org/mailman/listinfo/python-list

Re: factory functions & methods

2009-03-08 Thread andrew cooke
Aaron Brady wrote: > Hello, > > I am creating a container. I have some types which are built to be > members of the container. The members need to know which container > they are in, as they call methods on it, such as finding other > members. I want help with the syntax to create the members. >

factory functions & methods

2009-03-08 Thread Aaron Brady
Hello, I am creating a container. I have some types which are built to be members of the container. The members need to know which container they are in, as they call methods on it, such as finding other members. I want help with the syntax to create the members. Currently, the container has to