Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #5976
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!selfless.tophat.at!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| 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; 'instance,': 0.05; 'constructor': 0.07; "shouldn't": 0.07; 'invocation': 0.09; 'def': 0.12; 'c++': 0.12; 'am,': 0.14; 'received:209.85.214.174': 0.14; 'received:mail-iw0-f174.google.com': 0.14; 'wrote:': 0.14; '(eg': 0.16; 'angelico': 0.16; 'dialog': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'invoking': 0.16; 'rantingrick': 0.16; 'mon,': 0.17; 'somewhere': 0.17; 'work,': 0.20; 'header:In- Reply-To:1': 0.21; 'subject:problem': 0.22; 'code': 0.24; "doesn't": 0.25; 'object': 0.26; "i'm": 0.27; 'message- id:@mail.gmail.com': 0.28; 'received:209.85.214': 0.28; 'class': 0.29; 'confusion': 0.30; 'returns,': 0.30; 'done': 0.32; 'opinion': 0.32; 'value.': 0.32; 'does': 0.33; 'to:addr:python- list': 0.33; 'generally': 0.33; 'things': 0.33; "i've": 0.33; '...': 0.34; 'chris': 0.34; 'weird': 0.35; 'received:google.com': 0.37; 'received:209.85': 0.37; 'opportunity.': 0.37; 'but': 0.38; 'subject:: ': 0.38; 'received:209': 0.39; 'to:addr:python.org': 0.39; 'really': 0.40; 'delete': 0.40; 'matter': 0.63; 'subject:program': 0.67; '12:03': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=LoXADX6CZPwEcXOVCePHv+yApTWxA8auIdmkim1QNbA=; b=HbtRKK7R3Cfqg53/e/k7+VTMM0lMD/Zgo9axErncffiUDO2RL3UzwdQYP7purvKliy mJ+mOjODUvGaGvgMSzbBN22pryN1T8kShTheGW1XAggkCEaYXivxAGvFRQ1IrUKD7xs5 CyLEIFB8U3JskPBxwUnnoy6QF8AEftL/CUtE0= |
| DomainKey-Signature | a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=I3y3VoiWFn7pmYGLmM7ou1P3HqaaQuGPM4jLHfeGpUtvrZ7vFMfkAsfQwRjWIfWTas NL5tc5h+SQTYz6462vc138RiJQWkDfOyP3gr0y264AsTRIgRBLkwBiBJaOBncyxd4/mc JXgTjBtNeTfPpmTBgoZvAC6PZvk/BM3YRc+1U= |
| MIME-Version | 1.0 |
| In-Reply-To | <5a309bd1-71e1-4c78-a304-24552b1c5da5@m40g2000vbt.googlegroups.com> |
| References | <9f91909a-ce08-47dd-81d3-e7cf2edad3b6@h12g2000pro.googlegroups.com> <ir7shb$dd8$1@solani.org> <fe3b6da7-4e9a-4226-bc6e-a271714c2df8@e17g2000prj.googlegroups.com> <5a309bd1-71e1-4c78-a304-24552b1c5da5@m40g2000vbt.googlegroups.com> |
| Date | Mon, 23 May 2011 00:25:06 +1000 |
| Subject | Re: TK program problem |
| From | Chris Angelico <rosuav@gmail.com> |
| To | python-list@python.org |
| Content-Type | text/plain; charset=ISO-8859-1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| 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.1915.1306074309.9059.python-list@python.org> (permalink) |
| Lines | 36 |
| NNTP-Posting-Host | 82.94.164.166 |
| X-Trace | 1306074309 news.xs4all.nl 49048 [::ffff:82.94.164.166]:56621 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:5976 |
Show key headers only | View raw
On Mon, May 23, 2011 at 12:03 AM, rantingrick <rantingrick@gmail.com> wrote: > ... was about as effective as the "orb of confusion" on Patrick... > *drool* > That sounds like a Dungeons and Dragons artifact item... invoking the orb of confusion is a standard action that does not provoke an Attack of Opportunity. > class MyDialog(blah): > blah,blah,blah > > def show_dialog(*args): > d = MyDialog(*args) > return d.result > > result = show_dialog() I don't really see why it shouldn't be valid to use the class itself in this way. Once the constructor returns, the object IS the return value. But then, my opinion may not be valid. I've done weird things in C++ where, for instance, the invocation of a modeless dialog is: new FoobarDialog(params); And somewhere it has an event (eg when the window is destroyed) that executes: delete this; I'm a little mad and generally silly, so my opinion doesn't matter (matter matter matter matter). But it did work, and the code was nice and clean! Chris Angelico
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 11:03 -0700
Re: TK program problem Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 13:20 -0600
Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 15:12 -0700
Re: TK program problem Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 16:33 -0600
Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 16:07 -0700
Re: TK program problem Ian Kelly <ian.g.kelly@gmail.com> - 2011-05-20 17:29 -0600
Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-20 16:34 -0700
Re: TK program problem rantingrick <rantingrick@gmail.com> - 2011-05-20 16:37 -0700
Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-21 17:07 -0700
Re: TK program problem Peter Otten <__peter__@web.de> - 2011-05-21 10:18 +0200
Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-21 17:03 -0700
Re: TK program problem Terry Reedy <tjreedy@udel.edu> - 2011-05-21 20:33 -0400
Re: TK program problem bvdp <bob@mellowood.ca> - 2011-05-21 19:20 -0700
Re: TK program problem Terry Reedy <tjreedy@udel.edu> - 2011-05-22 17:17 -0400
Re: TK program problem rantingrick <rantingrick@gmail.com> - 2011-05-22 07:03 -0700
Re: TK program problem Chris Angelico <rosuav@gmail.com> - 2011-05-23 00:25 +1000
csiph-web