Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75657
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!weretis.net!feeder4.news.weretis.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <1248283536@qq.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | UNSURE 0.300 |
| X-Spam-Level | ** |
| X-Spam-Evidence | '*H*': 0.56; '*S*': 0.16; 'syntax': 0.04; 'subject:method': 0.09; 'def': 0.12; 'subject:python3': 0.16; 'syntaxerror:': 0.16; 'input': 0.22; 'error': 0.23; 'function': 0.29; '"",': 0.31; 'file': 0.32; 'class': 0.32; 'to:name:python- list': 0.33; 'method': 0.36; 'subject:?': 0.36; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'subject:back': 0.60; 'subject: ': 0.61; 'from:charset:utf-8': 0.61; 'back': 0.62; 'invalid': 0.68; 'from:addr:1248283536': 0.84; 'from:addr:qq.com': 0.84; 'message-id:@qq.com': 0.84; 'received:qq.com': 0.84; 'x-mailer:qqmail 2.x': 0.84; 'received:183': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=qq.com; s=s201307; t=1407117370; bh=U3IWY2GkEsrkrIAw7Ce2tEHLUb47ZZKYk6XghuO/tWE=; h=X-QQ-FEAT:X-QQ-SSF:X-HAS-ATTACH:X-QQ-BUSINESS-ORIGIN: X-Originating-IP:X-QQ-STYLE:X-QQ-mid:From:To:Subject:Mime-Version:Content-Type:Content-Transfer-Encoding:Date: X-Priority:Message-ID:X-QQ-MIME:X-Mailer:X-QQ-Mailer: X-QQ-SENDSIZE; b=ifxfck5E/sLAQK5S0HyF2pt/KRVOA8b0WYmGef3UUOEgfUsop9Ig4F1jIFfuGW5/y tN6ogb1ZNhzxdmuuoSUlgs06t1DSdnGuuFGf/zvMYOzuv025ozUu3NmgNCg0D4qDru ukJlT0ho491YeB2qYHhVFElLbBNS5wLPOH+2w94M= |
| X-QQ-FEAT | zBs7FPgiBoFSYtDiEBwTHVLp7VyG21/Ap1U8RuTIsMakpu0Y6Vtyk232JeawR K5PffuGgjBEnLtwOr9nA/DGY8Cj5S5hUQuIdyT6c3VihMCqkds089BTUNRh6bZPrbb3Ogsm y2tYtlg+HH6RakNjFUODzmd+rwIM04xA8R2aRTk= |
| X-QQ-SSF | 0000000A000000F000000000000000D |
| X-HAS-ATTACH | no |
| X-QQ-BUSINESS-ORIGIN | 2 |
| X-Originating-IP | 221.182.18.2 |
| X-QQ-STYLE | |
| X-QQ-mid | webmail603t1407117369t460666 |
| From | "水静流深" <1248283536@qq.com> |
| To | "python-list" <python-list@python.org> |
| Subject | how to call back a method in python3? |
| Mime-Version | 1.0 |
| Content-Type | multipart/alternative; boundary="----=_NextPart_53DEE839_0918BB60_6842E4BA" |
| Content-Transfer-Encoding | 8Bit |
| Date | Mon, 4 Aug 2014 09:56:09 +0800 |
| X-Priority | 3 |
| X-QQ-MIME | TCMime 1.0 by Tencent |
| X-Mailer | QQMail 2.x |
| X-QQ-Mailer | QQMail 2.x |
| X-QQ-SENDSIZE | 520 |
| X-QQ-Bgrelay | 1 |
| X-Mailman-Approved-At | Mon, 04 Aug 2014 05:02:08 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://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 | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.12616.1407121329.18130.python-list@python.org> (permalink) |
| Lines | 41 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1407121329 news.xs4all.nl 2920 [2001:888:2000:d::a6]:37806 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75657 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
I want to call back a function which is the method of a class .
def callback(self.do,x):
return(self.do(x))
That is what i want to write,when i input
def callback(self.do,x):
error message:
File "<stdin>", line 1
def callback(self.do,x):
^
SyntaxError: invalid syntax
`do` is a method in my class ,how to write the code?
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
how to call back a method in python3? "水静流深" <1248283536@qq.com> - 2014-08-04 09:56 +0800
Re: how to call back a method in python3? Marko Rauhamaa <marko@pacujo.net> - 2014-08-04 08:47 +0300
Re: how to call back a method in python3? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-08-04 18:18 +1200
csiph-web