Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.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.069 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'subject:Python': 0.06; 'class,': 0.07; '__init__': 0.09; 'august,': 0.09; 'python': 0.11; 'def': 0.12; 'thread': 0.14; '"in': 0.16; '*always*': 0.16; 'ah,': 0.16; 'curious.': 0.16; 'eckhardt': 0.16; 'subject:Query': 0.16; 'thread,': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'all,': 0.19; 'thu,': 0.19; 'starts': 0.20; 'example': 0.22; 'handles': 0.22; 'print': 0.22; 'flows': 0.24; 'file.': 0.24; 'question': 0.24; 'query': 0.26; 'nicht': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'function': 0.29; 'skip:- 40': 0.29; 'said,': 0.30; "i'm": 0.30; 'url:mailman': 0.30; 'code': 0.31; 'that.': 0.31; 'file': 0.32; 'class': 0.32; 'run': 0.32; 'quite': 0.32; 'url:python': 0.33; 'cases': 0.33; 'actual': 0.34; 'date:': 0.34; 'skip:_ 10': 0.34; 'could': 0.34; 'basic': 0.35; 'created': 0.35; 'but': 0.35; 'there': 0.35; 'really': 0.36; 'described': 0.36; 'url:listinfo': 0.36; 'das': 0.36; 'url:org': 0.36; 'email addr:python.org': 0.37; 'represent': 0.38; 'problems': 0.38; '\xfcber': 0.38; 'to:addr:python-list': 0.38; 'subject:': 0.39; 'to:addr:python.org': 0.39; 'und': 0.40; 'url:mail': 0.40; 'worry': 0.60; 'most': 0.60; 'skip:t 30': 0.61; 're:': 0.63; 'email name:python-list': 0.65; 'thomas': 0.65; 'dont': 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; 'unsere': 0.68; ',the': 0.84; 'clearer': 0.84; 'huh?': 0.84; 'karl': 0.84; 'received:106.10.151': 0.84; 'received:106.10.166.60': 0.84; '2013,': 0.91; 'heute': 0.91 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 217770.27063.bm@omp1015.mail.sg3.yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1377158037; bh=J/zmKNEgbz0hZs3WgBL3Ex6oJMm0NCIlikG44NPYgtw=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=NYEx3W7A06sOJ8FU2b+iKrWo42u2Th7v0oEW0jsPAN1IRiTP5gkzr3zEIL7I8jqLRQUR1/Pc2Jv5s6Gs26ZaVTWKdTaipKZqFk9mzpiC1NL3QfBCzrPQuHGF1v544I9lskmABj8Pz0YjHmJSlBIRzAYYb3CmyGw01QjFls/M00Y= 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:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DYsn/oWduQzYjsRqITfVs4xqeHvLjvGeNLeRvBhXDO2tLkqDjgimUKYzO6HExL59knEp1PiIDkqeZ3OAulx2hl1Ng6GRvtszIyd0xIWEhp8gzeojbIHhOAxU4u3d8RdPqO2I3mcMJ5kPRJK43Qd3EHMzIak98ziEpxMk+lQjAYQ=; X-YMail-OSG: uAUedMMVM1my9Rci6YxcKiqqzJ8llv2qH1w0xc5_9pUP8IQ JQqs1XucjG4xPD_ERKeCaek9wLa6CGy0jWpsiGyWrB1v.Cm9cBHb9yzTPD3N s1rqA7HfUrBqZKK3VUtr3fae5Wcn4ItEjqC6mP7HxrgKDtrwqSBTTipvTBZZ C8j7.SZ_v_JV0mB0O28SFvGp2k_nljc3UzaezlUV7HYTFDN_2WMgOt__pGB5 bYzXbWzdZ3wZKMXX6eqY.O5ISDbmymOemJ9vg1A562rrhROv_d.gV.CGSP5r UiHwjxjrH9SDv3j8kv9_4SNZ8kHl6IQ2VwzFIi5winficiwexBrdQI5E3R2B Fyr8exKvtSbYINKml3ykhDHki17Hkek8fy70qVMVEn4O6k42AgOJx9XtZShx pYemfZiw9yJQDMQvRi7ggbeayseqy_x5yfSr7.29wllKBrL9i2JnXqeSpSfH QvGe7OjTBKCn.AAhrlhThTvHaIoGvQEbluVuuA2gbVscoRgribkcWngLh11r XyIgrp3HL9Ku2NYCuZPATNtlru_tsZjgJdC2z_OLpjD1aQ0pMMyHBDIbMwoM lwzPuSA-- X-Rocket-MIMEInfo: 002.001, SGkgYWxsLA0KDQpTb3JyeSBmb3Igbm90IGV4cGxhaW5pbmcgcXVlc3Rpb24gcHJvcGVybHkuSGVyZSBJdHMgbm90IGFib3V0IHRocmVhZGluZyBhbmQgZG9udCB3b3JyeSBhYm91dCBhbnkgaW5kZW50YXRpb25zLlBsZWFzZSBzZWUgYmVsb3cgZXhhbXBsZQ0KDQpjbGFzcyBDYWxsX0NvbnN0cnVjdG9yKCk6DQogICAgZGVmIF9faW5pdF9fKHNlbGYpOg0KICAgICAgICBwcmludCAiSW4gX19pbml0X18gIg0KICAgICAgIA0KY2xhc3MgVGVzdF9Db25zdHJ1Y3RvcihDYWxsX0NvbnN0cnVjdG9yKTogIA0KICAgIGQBMAEBAQE- X-Mailer: YahooMailClassic/294 YahooMailWebService/0.8.155.576 Date: Thu, 22 Aug 2013 15:53:57 +0800 (SGT) From: chandan kumar Subject: Re: Basic Python Query To: python-list@python.org, Johannes Bauer In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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: 81 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1377158191 news.xs4all.nl 15906 [2001:888:2000:d::a6]:55311 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:52818 Hi all, Sorry for not explaining question properly.Here Its not about threading and= dont worry about any indentations.Please see below example class Call_Constructor(): def __init__(self): print "In __init__ " =20 class Test_Constructor(Call_Constructor): =20 def method(self): print " In Test_Constructor Class" =20 ConstructInstance =3D Test_Constructor() =20 When an instace is created for Test_Constructor class ,The code flows start= s __init__ in Call_Constructor class.Whys is it like that. class Call_Constructor(): def __init__(self): print "In __init__ " =20 class Test_Constructor(Call_Constructor): =20 def __init__(self): print " In Test_Constructor Class" =20 ConstructInstance =3D Test_Constructor() But for the above case Code flows starts from Test_Constructor(). Whats is the difference for both cases described above. Best Regards, Chandan. -------------------------------------------- On Thu, 22/8/13, Johannes Bauer wrote: Subject: Re: Basic Python Query To: python-list@python.org Date: Thursday, 22 August, 2013, 12:28 AM =20 On 21.08.2013 11:11, Ulrich Eckhardt wrote: =20 > That said, there is never a need for deriving > from the Thread class, you can also use it to run a function without > that. That way is IMHO clearer because the threading.Thread instance is > not the thread, just like a File instance is not a file. Both just > represent handles for manipulating the actual thing. =20 Huh? That I find most curious. =20 I *always* derive from threading.Thread and really like the way that thread setup works (instanciate Thread handle, call start). Very intuitive, never had the problems with clarity that you mentioned. Could you elaborate on your suggestion? I don't seem to quite get it I'm afraid. =20 Best regards, Johannes =20 --=20 >> Wo hattest Du das Beben nochmal GENAU vorhergesagt? > Zumindest nicht =F6ffentlich! Ah, der neueste und bis heute genialste Streich unsere gro=DFen Kosmologen: Die Geheim-Vorhersage. - Karl Kaos =FCber R=FCdiger Thomas in dsa --=20 http://mail.python.org/mailman/listinfo/python-list