Re: Beware, my computer was infected.

2012-02-20 Thread Jerry Zhang
By the way, i like 1.exe, can i have it? 在 2012年2月18日 上午6:01,Jugurtha Hadjar 写道: > On 16/02/2012 01:34, Jugurtha Hadjar wrote: > >> Hello gentlemen, >> >> I'm writing these words to give you a heads up. My computer has recently >> been infected with "1.exe", and I am doing what I can to contain i

The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
Greetings: As you know, there are several kinds of relationships between classes in the UML -- dependency, association, aggregation, composition. Q1. Is there any article or code example on its implementation in python? Q2. For example, in composition model, the container object may be responsible

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
/10 Chris Angelico > On Fri, Nov 11, 2011 at 12:15 AM, Jerry Zhang > wrote: > > For example, in composition model, the container object may be > responsible > > for the handling of embedded objects' lifecycle. What is the python > pattern > > of such implementatio

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
2011/11/10 Chris Angelico > On Fri, Nov 11, 2011 at 12:58 AM, Jerry Zhang > wrote: > > Cls_a: > > def __init__(self): > > self.at1 = 1 > > Cls_b: > > def __init__(self): > > self.com1 = Cls_a() > > def __del__(se

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
2011/11/10 Jerry Zhang > > > 2011/11/10 Chris Angelico > >> On Fri, Nov 11, 2011 at 12:58 AM, Jerry Zhang >> wrote: >> > Cls_a: >> > def __init__(self): >> > self.at1 = 1 >> > Cls_b: >> > def __ini

Re: Agent-based modeling

2011-11-10 Thread Jerry Zhang
2011/11/10 Virgil Stokes > Python seems like a good language to use for agent-based modeling. > However, before starting to work on a Python package for this, I would be > very interested in knowing about any existing Python code for agent-based > modeling. > I am assuming you are talking about

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
2011/11/11 Tim Wintle > On Thu, 2011-11-10 at 22:25 +0800, Jerry Zhang wrote: > > > > > > 2011/11/10 Chris Angelico > > On Fri, Nov 11, 2011 at 12:58 AM, Jerry Zhang > > wrote: > > > Cls_a: > > > def

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
2011/11/11 Christian Heimes > Am 10.11.2011 17:09, schrieb Tim Wintle: > >> Meanwhile, I have a ZODB running, which stores all the living > >> objects. > > > > The ZODB is append only and stores all objects. Deleting references to > > an object (which would causes deletion of standard python obje

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
2011/11/11 Benjamin Kaplan > On Thu, Nov 10, 2011 at 1:06 PM, Jerry Zhang > wrote: > > > > > > I just did an example code to describe what i am looking for. > > > /*--

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
2011/11/11 Terry Reedy > On 11/10/2011 9:31 AM, Jerry Zhang wrote: > > Unfortunately there is a difference between composition and >>aggregation in my real word, and my application really care this >>since it is trying to simulate this real world model, so m

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
2011/11/11 Chris Angelico > On Fri, Nov 11, 2011 at 10:14 AM, Chris Kaynor > wrote: > > Continuing this OT discussion, would it be a brain transplant, or a > > full body transplant? > > It's just a rebinding. You don't move the body, you just bind your > name to a new body. It's perfectly legal

Re: Working with databases (ODBC and ORMs) in Python 3.2

2011-11-10 Thread Jerry Zhang
2011/11/11 tkp...@hotmail.com > We are in the process of trying to decide between Python 2.7 and 3.2 > with a view to making a 5-10 year commitment to the right platform, > and would appreciate some guidance on how best to connect to SQL > databases in 3.2. ceODBC 2.01 provides an ODBC driver for

Re: The python implementation of the "relationships between classes".

2011-11-10 Thread Jerry Zhang
d code. What i am looking for is the Code_one example, i thought many OOP application designer may have met this issue, so a good Code_one reference is the best choice to start this project. 2011/11/11 Jerry Zhang > > > 2011/11/11 Chris Angelico > >> On Fri, Nov 11, 2011 at 10:14