Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52752
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <chandan_psr@yahoo.co.in> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.056 |
| X-Spam-Evidence | '*H*': 0.89; '*S*': 0.00; 'argument': 0.05; 'explicitly': 0.05; 'subject:Python': 0.06; '__name__': 0.09; 'def': 0.12; 'question.': 0.14; "'__main__':": 0.16; 'subject:Query': 0.16; '\xa0def': 0.16; '\xa0what': 0.16; 'code.': 0.18; 'all,': 0.19; 'module': 0.19; 'lets': 0.24; 'skip:\xa0 20': 0.24; 'holds': 0.26; "i'm": 0.30; 'code': 0.31; 'class': 0.32; 'skip:_ 10': 0.34; 'classes': 0.35; '8bit%:4': 0.38; 'to:addr :python-list': 0.38; 'does': 0.39; 'flow': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; '8bit%:6': 0.40; 'different': 0.65; 'between': 0.67; 'header:Reply-To:1': 0.67; 'from:addr:yahoo.co.in': 0.68; 'received:106': 0.68; 'received:106.10': 0.68; 'received:106.10.166': 0.68; 'received:bullet.mail.sg3.yahoo.com': 0.68; 'received:mail.sg3.yahoo.com': 0.68; 'received:sg3.yahoo.com': 0.68; 'respect': 0.70; ',the': 0.84; 'received:106.10.151': 0.84 |
| X-Yahoo-Newman-Property | ymail-3 |
| X-Yahoo-Newman-Id | 997264.80279.bm@omp1017.mail.sg3.yahoo.com |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1377067820; bh=YlXeLNJkfH754jtqFFhiLzq/F2XaMJclPSsFdokQQYU=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=sma62+PriKb6zdCADertfmx60Nc9C/IXmGNZaRWlLbHfAQ9w0YQA9GvhsCvS27Jnveujg5crgZPaaqv0NzvRIoL9HSqGs5+y1yoqcjqz1YRX9WLZeY9H1n8uSefS0SggcWSeGIiN2KmsTnEPpN63Y7To6GI+s+Y4e8OynSEr77g= |
| DomainKey-Signature | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=W2On3rZXCmtMNOnbVtYWOfedIVIvti3UiZQ4VpZlI0gAeOo4O9TWZb9sImx+o4kYiAUT7h8U/tzSLRW/BfBiLBV1TBXZvtdWEeiX7V2F1FLzPWLNi9dLwdoHDbqmn9+hcHtf+Q9gEdhD5ZmbpMf0bGcSdjyYoOX4N6/EpP2sZ9o=; |
| X-YMail-OSG | 62q2XesVM1mgomSd.UPfG45aQEdUUvIWTxfFMTP7TzuP22e 7WiWF77vA5LnGAS3h9ULPY9kRhFCMR.XEZUdRTNRymrfKxUa14zXVJXUkQme .1EwjFGxqFLu5m_9K0Sn36rlt.irCBoJ_8D7W2RxXZf.J5clhx6BX0p4aC67 BT.xTpuUspixBC.YTtPs4Gy1itq_qjXZHT0KW9c04qLxJL0MIAHEuO0Phoh1 ztelsn_p54ad53IdSRtWveigNgMM9MzyqVbpSq91LMLbUJgJ33C9YyjPpRlY ebrQ5hTmgb9okOoAx1zLHk14AhhZuwbMtkExUnQdiS4I6R3ruCU81S4vp4uL EmKjctNr6KpHmv1qJPs1MzdN.mUHOeQ7EdQ0gT3mnYWfSSFkIE19Xx6zWxDU 1GHdwPCbXe8zANm_L5qzbSg1VmFY1FrnWdvYlYN_4wAuQwCnL5MdxVcdZWLC Dqsic9DCJEvJkes9N3hKG7FTm7Laosc2k8jhOVT38WkpXA3NmjN.iw4WLbnH OfU0B_OUyW1fntGXM03UMHFE8KpWhWJarniOEE7P3uUTIt1ANVw-- |
| X-Rocket-MIMEInfo | 002.001, SGkgYWxsLAoKUGxlYXNlIHNlZSB0aGUgYmVsb3cgY29kZS4KCmNsYXNzIFRlc3QodGhyZWFkaW5nLlRocmVhZCk6IMKgIMKgCsKgIMKgIMKgIGRlZiBTdGFydFRocmVhZChzZWxmKToKwqAgwqAgwqAgwqBMb2NrID0gdGhyZWFkaW5nLkxvY2soKQrCoCDCoCDCoCDCoCBzZWxmLnN0YXJ0KCkgwqDCoAoKCmNsYXNzIFRlc3QxKHRocmVhZGluZy5UaHJlYWQpOgrCoCDCoCBkZWYgX19pbml0X18oc2VsZik6CsKgIMKgIMKgIMKgIHRocmVhZGluZy5UaHJlYWQuX19pbml0X18gKCBzZWxmICkKwqAgwqAgwqAgwqAgc2UBMAEBAQE- |
| X-Mailer | YahooMailWebService/0.8.155.576 |
| Date | Wed, 21 Aug 2013 14:50:20 +0800 (SGT) |
| From | chandan kumar <chandan_psr@yahoo.co.in> |
| Subject | Basic Python Query |
| To | Python <python-list@python.org> |
| MIME-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="-1197706417-1706084124-1377067820=:2408" |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | chandan kumar <chandan_psr@yahoo.co.in> |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.68.1377067974.19984.python-list@python.org> (permalink) |
| Lines | 154 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1377067974 news.xs4all.nl 15979 [2001:888:2000:d::a6]:44912 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:52752 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hi all, Please see the below code. class Test(threading.Thread): def StartThread(self): Lock = threading.Lock() self.start() class Test1(threading.Thread): def __init__(self): threading.Thread.__init__ ( self ) self.Lock = threading.Lock() self.start() if __name__ == '__main__': instance = Test() instance.StartThread() instance1= Test1() instance1.start() Please clarify the questions below with respect to above code 1.Difference between def StartThread(self) and def __init__(self): 2 instance = Test() ,when this is called ,the code flow goes inside the threading module ,But instance1= Test1() ,the code flow goes inside the class Test1 When we call the both classes in same way ,How does the flow is different for both. 3. Lets say self is passed explicitly for all the methods Like def method1(self) method2() def method2(self): method3() def method(self) method4() def method4(self) What does self holds in method4 ,Is it self argument from method1? Sorry i'm confused with self argument.Please clarify if its valid question. Best Regards, Chandan
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Basic Python Query chandan kumar <chandan_psr@yahoo.co.in> - 2013-08-21 14:50 +0800
Re: Basic Python Query Steven D'Aprano <steve@pearwood.info> - 2013-08-21 08:19 +0000
Re: Basic Python Query Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2013-08-21 11:11 +0200
Re: Basic Python Query Johannes Bauer <dfnsonfsduifb@gmx.de> - 2013-08-21 20:58 +0200
Re: Basic Python Query Fábio Santos <fabiosantosart@gmail.com> - 2013-08-21 23:50 +0100
Re: Basic Python Query Johannes Bauer <dfnsonfsduifb@gmx.de> - 2013-08-22 10:49 +0200
Re: Basic Python Query Ned Batchelder <ned@nedbatchelder.com> - 2013-08-21 20:06 -0400
Re: Basic Python Query Bob Martin <bob.martin@excite.com> - 2013-08-22 06:43 +0100
Re: Basic Python Query Ned Batchelder <ned@nedbatchelder.com> - 2013-08-22 09:45 -0400
Re: Basic Python Query Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-23 03:12 +0000
Re: Basic Python Query random832@fastmail.us - 2013-08-22 14:57 -0400
Re: Basic Python Query Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-08-22 18:22 -0400
Re: Basic Python Query random832@fastmail.us - 2013-08-23 01:08 -0400
Re: Basic Python Query Johannes Bauer <dfnsonfsduifb@gmx.de> - 2013-08-22 10:50 +0200
Re: Basic Python Query Fábio Santos <fabiosantosart@gmail.com> - 2013-08-22 09:46 +0100
Re: Basic Python Query Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2013-08-22 13:54 +0200
Re: Basic Python Query Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-23 03:28 +0000
Re: Basic Python Query Ulrich Eckhardt <ulrich.eckhardt@dominolaser.com> - 2013-08-23 09:12 +0200
Re: Basic Python Query Chris Angelico <rosuav@gmail.com> - 2013-08-24 01:50 +1000
csiph-web