Re: Recent Spam problem

2017-07-24 Thread skybuck2000
I see two solutions: 1. We build new architecture or adept current one so it's more like a blockchain, have to calculate some hash before being able to post and upload and such. or 2. We counter-attack by installing a special tool, so we all denial of service attack the source of the message,

Re: Python 3 removes name binding from outer scope

2017-07-24 Thread Rustom Mody
On Tuesday, July 25, 2017 at 12:04:45 PM UTC+5:30, Ben Finney wrote: > Ethan Furman writes: > > > Something like: > > > > try: > > > > except ZeroDivisionError as dead_exc: > > exc = dead_exc > > > > > > print(text_template.format(exc=exc) >

Re: Python 3 removes name binding from outer scope

2017-07-24 Thread Ben Finney
Ethan Furman writes: > Something like: > > try: > > except ZeroDivisionError as dead_exc: > exc = dead_exc > > > print(text_template.format(exc=exc) That strikes me as busy-work; the name in the ‘except’ clause already *has* the object, and

Re: Python 3 removes name binding from outer scope

2017-07-24 Thread Paul Rubin
Ben Finney writes: > How can I stop Python from deleting a name binding, when that name is > used for binding the exception that is caught? Use sys.exc_info() -- https://mail.python.org/mailman/listinfo/python-list

Re: Recent Spam problem

2017-07-24 Thread Paul Rubin
Rustom Mody writes: > Since spammers are unlikely to be choosy about whom they spam: > Tentative conclusion: Something about the USENET-ML gateway is more leaky > out here than elsewhere It could be a sort-of DOS attack by some disgruntled idiot. I wonder if the email address in those spam posts

Recent Spam problem

2017-07-24 Thread Rustom Mody
Of late there has been an explosion of spam Thought it was only a google-groups (USENET?) issue and would be barred from the mailing list. But then find its there in the mailing list archives as well Typical example: https://mail.python.org/pipermail/python-list/2017-July/724085.html What gives

Re: Python 3 removes name binding from outer scope

2017-07-24 Thread Rustom Mody
On Tuesday, July 25, 2017 at 7:12:44 AM UTC+5:30, Ben Finney quoted Thomas Jefferson's : > The cost of education is trivial compared to the cost of ignorance. An interesting standard of “trivial”… given… UK has risen to more than £100 billion for the first time https://www.theguardian.com/mon

how to group by function if one of the group has relationship with another one in the group?

2017-07-24 Thread Ho Yeung Lee
from itertools import groupby testing1 = [(1,1),(2,3),(2,4),(3,5),(3,6),(4,6)] def isneighborlocation(lo1, lo2): if abs(lo1[0] - lo2[0]) == 1 or lo1[1] == lo2[1]: return 1 elif abs(lo1[1] - lo2[1]) == 1 or lo1[0] == lo2[0]: return 1 else: return 0 groupda = g

Re: Python 3 removes name binding from outer scope

2017-07-24 Thread Steve D'Aprano
On Tue, 25 Jul 2017 11:41 am, Ben Finney wrote: > Howdy all, > > How can I stop Python from deleting a name binding, when that name is > used for binding the exception that is caught? When did this change in > behaviour come into Python? > > > I am writing code to run on both Python 2 and Pytho

Re: Python 3 removes name binding from outer scope

2017-07-24 Thread Ethan Furman
On 07/24/2017 06:41 PM, Ben Finney wrote: How can I stop Python from deleting a name binding, when that name is used for binding the exception that is caught? When did this change in behaviour come into Python? I am writing code to run on both Python 2 and Python 3:: exc = None try:

Python 3 removes name binding from outer scope

2017-07-24 Thread Ben Finney
Howdy all, How can I stop Python from deleting a name binding, when that name is used for binding the exception that is caught? When did this change in behaviour come into Python? I am writing code to run on both Python 2 and Python 3:: exc = None try: 1/0 text_template

Re: Script to replace contents inside the files

2017-07-24 Thread Peter Otten
Kunal Jamdade wrote: > I have thousands of html files inside a folder. I want to replace the > filename present inside another files. Say for ex:- fileName :- > 'abcd1234.html' is found inside another file say file2.html. Then I want > to remove the last 4 digits of the fileName i.e,. 'abcd1234.ht

Case Solution: Amazon and Future Group Rethinking the Alliance Strategy by Meeta Dasgupta

2017-07-24 Thread Case Solution & Analysis
Case Solution and Analysis of Amazon and Future Group: Rethinking the Alliance Strategy by Meeta Dasgupta is available at a lowest price, send email to casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution. Case Study ID: 9B16M108 / W16382 Get Case Study Solution and Anal

Case Solution: Vibrance Kegel Device Capturing Mindshare by Doreen Kum

2017-07-24 Thread Case Solution & Analysis
Case Solution and Analysis of Vibrance Kegel Device: Capturing Mindshare by Doreen Kum is available at a lowest price, send email to casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution. Case Study ID: 9B16A021 / W16387 Get Case Study Solution and Analysis of Vibrance Ke

Case Solution: Rajghat Power House The Economy or the Environment by Veena Keshav Pailwar

2017-07-24 Thread Case Solution & Analysis
Case Solution and Analysis of Rajghat Power House: The Economy or the Environment by Veena Keshav Pailwar is available at a lowest price, send email to casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution. Case Study ID: 9B16M089 / W16385 Get Case Study Solution and Anal