Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #61801

Re: Python Script

Path csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'from:addr:yahoo.co.uk': 0.04; 'subject:Python': 0.06; 'notice,': 0.07; 'http': 0.09; 'lawrence': 0.09; 'okay': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'def': 0.12; 'assume': 0.14; 'language.': 0.14; '10:05': 0.16; 'created.': 0.16; 'exist.': 0.16; 'issue?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'retrieving': 0.16; 'script,': 0.16; 'spacing': 0.16; 'prevent': 0.16; 'thursday,': 0.16; 'language': 0.16; 'wrote:': 0.18; 'variable': 0.18; 'solution.': 0.20; 'thanks.': 0.20; '>>>': 0.22; 'header:User-Agent:1': 0.23; 'instance,': 0.24; 'pointer': 0.24; 'url:moin': 0.24; "haven't": 0.24; 'question': 0.24; 'script': 0.25; 'post': 0.26; 'somewhere': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'asked': 0.31; 'code': 0.31; 'url:wiki': 0.31; 'aims': 0.31; 'gary': 0.31; 'probably': 0.32; 'figure': 0.32; 'another': 0.32; 'url:python': 0.33; 'proceed': 0.33; 'trouble': 0.34; 'skip:_ 10': 0.34; 'problem': 0.35; "can't": 0.35; 'december': 0.35; 'but': 0.35; 'method': 0.36; 'similar': 0.36; 'url:org': 0.36; 'project': 0.37; 'being': 0.38; 'implement': 0.38; 'follows:': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'does': 0.39; '12,': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'called': 0.40; 'how': 0.40; 'even': 0.60; 'read': 0.60; 'above,': 0.60; 'is.': 0.60; 'mentioned': 0.61; 'show': 0.63; 'our': 0.64; 'charset:windows-1252': 0.65; 'email,': 0.69; 'fact,': 0.69; 'repeat': 0.74; 'yourself': 0.78; 'actually,': 0.84; 'gladly': 0.91; '2013': 0.98
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Python Script
Date Fri, 13 Dec 2013 08:38:35 +0000
References <89929063-4c26-4e97-8f28-c53f1c538d1d@googlegroups.com> <mailman.4008.1386873346.18130.python-list@python.org> <9fbff74e-5c5e-406c-b6ce-12dba738a697@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host host-78-147-21-173.as13285.net
User-Agent Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <9fbff74e-5c5e-406c-b6ce-12dba738a697@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.4052.1386924007.18130.python-list@python.org> (permalink)
Lines 59
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386924007 news.xs4all.nl 2885 [2001:888:2000:d::a6]:44455
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61801

Show key headers only | View raw


On 13/12/2013 06:21, Amimo Benja wrote:
> On Thursday, December 12, 2013 9:35:23 PM UTC+3, Gary Herron wrote:
>> On 12/12/2013 10:05 AM, Amimo Benja wrote:
>>
>>> I have an issue with a Python script that I will show as follows:
>>
>>> http://codepad.org/G8Z2ConI
>>
>>>
>>
>>> Assume that you have three (well defined) classes: AirBase and VmNet, . VmNet has got a method that is called recursively each time an HTTP response is received. The variable recordTuple needs to be built independently for each instance of VmNet that is created. However, the mentioned variable is being overwritten across every instance, so if you try to get it from vmnet_instance_y, you would get exactly the same than retrieving it from vmnet_instance_x.
>>
>>>
>>
>>> • What is the code issue? I need to use this script in a project and I don't know how to proceed.
>>
>>>
>>
>>> Actually, the script aims to follow the principle don't repeat yourself (DRY). As you may notice, VmNet and AirBase does not have def __init__(self), so self.recordTupleBase does not probably exist. Additionally, many other subclasses, similar to VmNet, can implement the recursive method using that recordTupleBase.
>>
>>>
>>
>>> * I will gladly appreciate any help thanks....
>>
>>
>>
>> You haven't actually asked a question here.  You say you don't know how
>>
>> to proceed with "a project", but we don't know what that project is.  In
>>
>> fact, I can't even figure out if your trouble is with the script, or
>>
>> with using the script in this unknown project.
>>
>>
>>
>> Also, if you repost, please include the script in the email, not as a
>>
>> pointer to somewhere else.
>>
>>
>>
>>
>>
>> Gary Herron
>
> Okay Gary... I will put that into consideration when post another problem or solution.
>

Before you repost would you please read and action this 
https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the 
double line spacing above, thanks.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Python Script Amimo Benja <amimobenja08@gmail.com> - 2013-12-12 10:05 -0800
  Re: Python Script Gary Herron <gary.herron@islandtraining.com> - 2013-12-12 10:35 -0800
    Re: Python Script Amimo Benja <amimobenja08@gmail.com> - 2013-12-12 22:21 -0800
      Re: Python Script Mark Lawrence <breamoreboy@yahoo.co.uk> - 2013-12-13 08:38 +0000
  Re: Python Script Terry Reedy <tjreedy@udel.edu> - 2013-12-12 13:55 -0500
    Re: Python Script Amimo Benja <amimobenja08@gmail.com> - 2013-12-12 22:21 -0800
  Re: Python Script MRAB <python@mrabarnett.plus.com> - 2013-12-12 18:59 +0000
    Re: Python Script Amimo Benja <amimobenja08@gmail.com> - 2013-12-12 22:26 -0800

csiph-web