Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'cache': 0.07; 'context': 0.07; 'subject:code': 0.07; 'kumar': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'suggest': 0.14; '>on': 0.16; 'caveat': 0.16; 'dictionary,': 0.16; 'gur': 0.16; 'hostname': 0.16; 'message-id:@4ax.com': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'skipping': 0.16; 'subject:post': 0.16; 'timeout': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'entered': 0.20; 'command': 0.22; 'input': 0.22; 'entries': 0.24; 'errors.': 0.24; 'form:': 0.24; 'skip': 0.24; 'stopping': 0.24; 'url:home': 0.24; 'visible': 0.24; 'post': 0.26; 'header:X -Complaints-To:1': 0.27; 'host': 0.29; 'code': 0.31; 'you?': 0.31; 'skip:c 30': 0.32; 'announce': 0.33; 'mac': 0.33; 'updated': 0.34; 'but': 0.35; 'false': 0.36; 'entry': 0.36; 'charset:us-ascii': 0.36; 'hi,': 0.36; 'january': 0.37; 'searching': 0.37; 'e.g.': 0.38; 'handle': 0.38; 'to:addr:python-list': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'subject:Can': 0.60; 'show': 0.63; 'provide': 0.64; 'afraid': 0.65; 'here': 0.66; 'press': 0.70; '100': 0.79; '192.168.0.1': 0.84; 'thing,': 0.91; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Can post a code but afraid of plagiarism Date: Fri, 24 Jan 2014 09:01:22 -0500 Organization: IISS Elusive Unicorn References: <14e7775c-2a79-46eb-8f25-d9ac7fc1eb01@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-108-79-218-96.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 6.00/32.1186 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 232 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1390572085 news.xs4all.nl 2965 [2001:888:2000:d::a6]:33786 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:64684 On Thu, 23 Jan 2014 23:14:13 -0800 (PST), indar kumar declaimed the following: >On Saturday, January 18, 2014 3:21:42 PM UTC-7, indar kumar wrote: >> Hi, >> >> >> >> I want to show a code for review but afraid of plagiarism issues. Kindly, suggest how can I post it for review here without masking it visible for public > You can stop repeating that caveat for one thing, and provide some context of what/who you are replying to. >Yes now I want to search for an ip that user has input but skipping the key which user has input. e.g. user entered PC1 and 192.168.0.1. Now I want to scan through config_database to see if this ip is already in it. But PC1 192.168.0.1 is added to config_database before searching so I want to skip PC1 key during searching so that I can see if this Ip is not already associated with any other host. And what is stopping you? You don't know how to process all the entries in the main dictionary, or you don't know how to skip an entry when you find it? -=-=-=-=- (more non-Python) /* Aba-guernqrq rzhyngvba bs Argjbex NEC genssvp */ argjbex. = "" argjbex.0 = 0 /* ahzore bs qrsvarq ubfgf */ qb sberire fnl " " fnl " " fnl "Ragre pbasvthengvba punatr va gur sbez:" fnl " ubfganzr ZNP VC gvzrbhg" cnefr chyy ubfganzr ubfgZNP ubfgVC ubfgGvzrbhg vs ubfganzr = "" gura qb qb u = 1 gb argjbex.0 fnl "Ubfg " argjbex.u.ubfg argjbex.u.znp argjbex.u.vc argjbex.u.gvzrbhg fnl "Pnpur" qb n = 1 gb argjbex.u.pnpur.0 fnl " " argjbex.u.pnpur.n.znp argjbex.u.pnpur.n.vc raq fnl " " raq rkvg raq pnyy NECCebor ubfganzr ubfgZNP ubfgVC vs inyvq gura qb pnyy hcqngr ubfganzr ubfgZNP ubfgVC ubfgGvzrbhg pnyy NECNaabhapr ubfganzr ubfgZNP ubfgVC raq ryfr qb pnyy erzbir ubfganzr raq raq NECCebor: cebprqher rkcbfr argjbex. inyvq cnefr net ua uz uv fnl " " fnl "NEC Cebor: " uz " ss:ss:ss:ss:ss:ss 0.0.0.0 " uv qb u = 1 gb argjbex.0 vs argjbex.u.ubfg <> ua gura vs argjbex.u.vc = uv gura qb inyvq = 0 erghea raq raq inyvq = 1 erghea hcqngr: cebprqher rkcbfr argjbex. cnefr net ua uz uv ug qb u = 1 gb argjbex.0 vs argjbex.u.ubfg = ua gura qb fnl "Ubfg " ua " hcqngrq" argjbex.u.znp = uz argjbex.u.vc = uv argjbex.u.gvzrbhg = ug erghea raq raq u = argjbex.0 + 1 fnl "Ubfg " ua " nqqrq gb argjbex" argjbex.u.ubfg = ua argjbex.u.znp = uz argjbex.u.vc = uv argjbex.u.gvzrbhg = ug argjbex.u.pnpur. = "" argjbex.u.pnpur.0 = 0 argjbex.0 = u erghea NECNaabhapr: cebprqher rkcbfr argjbex. cnefr net ua uz uv fnl " " fnl "NEC Naabhapr " ua uz " 0:0:0:0:0:0 " uv uv qb u = 1 gb argjbex.0 vs argjbex.u.ubfg <> ua gura qb arj = 1 qb n = 1 gb argjbex.u.pnpur.0 vs argjbex.u.pnpur.n.znp = uz be argjbex.u.pnpur.n.vc = uv gura qb fnl "Ubfg " argjbex.u.ubfg " hcqngrq " uz uv argjbex.u.pnpur.n.znp = uz argjbex.u.pnpur.n.vc = uv arj = 0 raq raq vs arj gura qb n = argjbex.u.pnpur.0 + 1 fnl "Ubfg " argjbex.u.ubfg " nqqrq " uz uv argjbex.u.pnpur.n.znp = uz argjbex.u.pnpur.n.vc = uv argjbex.u.pnpur.0 = n raq raq raq erghea erzbir: cebprqher rkcbfr argjbex. cnefr net ua fnl "Ubfg " ua " erzbirq sebz argjbex" uy = 0 qb u = 1 gb argjbex.0 vs argjbex.u.ubfg = ua gura uy = u raq vs uy <> 0 gura qb qb ub = (uy + 1) gb argjbex.0 uq = ub - 1 argjbex.uq. = argjbex.ub. raq ur = argjbex.0 argjbex.ur. = "" argjbex.0 = ur - 1 raq erghea -=-=-=-=- Does not have an independent look-up command but does have to do look-ups to handle updates and errors. C:\Users\Wulfraed\Documents>arp.rx Enter configuration change in the form: hostname MAC IP timeout me 2:1:3:4:6:5 192.168.0.1 50 ARP Probe: 2:1:3:4:6:5 ff:ff:ff:ff:ff:ff 0.0.0.0 192.168.0.1 Host me added to network ARP Announce me 2:1:3:4:6:5 0:0:0:0:0:0 192.168.0.1 192.168.0.1 Enter configuration change in the form: hostname MAC IP timeout you 1:2:3:4:5:6 192.168.10.10 50 ARP Probe: 1:2:3:4:5:6 ff:ff:ff:ff:ff:ff 0.0.0.0 192.168.10.10 Host you added to network ARP Announce you 1:2:3:4:5:6 0:0:0:0:0:0 192.168.10.10 192.168.10.10 Host me added 1:2:3:4:5:6 192.168.10.10 Enter configuration change in the form: hostname MAC IP timeout them 6:5:4:3:2:1 10.10.0.10 100 ARP Probe: 6:5:4:3:2:1 ff:ff:ff:ff:ff:ff 0.0.0.0 10.10.0.10 Host them added to network ARP Announce them 6:5:4:3:2:1 0:0:0:0:0:0 10.10.0.10 10.10.0.10 Host me added 6:5:4:3:2:1 10.10.0.10 Host you added 6:5:4:3:2:1 10.10.0.10 Enter configuration change in the form: hostname MAC IP timeout false a:b:c:d:e:f 192.168.0.1 10 ARP Probe: a:b:c:d:e:f ff:ff:ff:ff:ff:ff 0.0.0.0 192.168.0.1 Host false removed from network Enter configuration change in the form: hostname MAC IP timeout me a:b:c:d:e:f 192.168.0.1 10 ARP Probe: a:b:c:d:e:f ff:ff:ff:ff:ff:ff 0.0.0.0 192.168.0.1 Host me updated ARP Announce me a:b:c:d:e:f 0:0:0:0:0:0 192.168.0.1 192.168.0.1 Host you added a:b:c:d:e:f 192.168.0.1 Host them added a:b:c:d:e:f 192.168.0.1 Enter configuration change in the form: hostname MAC IP timeout Host me a:b:c:d:e:f 192.168.0.1 10 Cache 1:2:3:4:5:6 192.168.10.10 6:5:4:3:2:1 10.10.0.10 Host you 1:2:3:4:5:6 192.168.10.10 50 Cache 6:5:4:3:2:1 10.10.0.10 a:b:c:d:e:f 192.168.0.1 Host them 6:5:4:3:2:1 10.10.0.10 100 Cache a:b:c:d:e:f 192.168.0.1 Press ENTER key to exit... -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/