Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87796
| Path | csiph.com!usenet.pasdenom.info!news.redatomik.org!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.013 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'args': 0.07; '(self,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'args:': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'seems': 0.21; 'header:User-Agent:1': 0.23; 'received:comcast.net': 0.24; 'header:X-Complaints-To:1': 0.27; 'idea': 0.28; 'way?': 0.31; 'could': 0.34; 'subject:with': 0.35; 'but': 0.35; 'subject:?': 0.36; 'should': 0.36; 'received:76': 0.38; 'to:addr:python-list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'results': 0.69; 'repeat': 0.74; 'abandon': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Neal Becker <ndbecker2@gmail.com> |
| Subject | __iadd__ with 2 args? |
| Date | Fri, 20 Mar 2015 17:25:59 -0400 |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset="ISO-8859-1" |
| Content-Transfer-Encoding | 7Bit |
| X-Gmane-NNTP-Posting-Host | c-76-100-231-95.hsd1.md.comcast.net |
| User-Agent | KNode/4.14.4 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.19 |
| 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.47.1426886781.10327.python-list@python.org> (permalink) |
| Lines | 25 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1426886781 news.xs4all.nl 2970 [2001:888:2000:d::a6]:48624 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:87796 |
Show key headers only | View raw
I can write a member F.__iadd__ (self, *args) and then call it with 2 args: f = F() f.__iadd__ (a, b) And then args is: (a, b) But it seems impossible to spell this as f += a, b That, instead, results in args = ((a, b),) So should I just abandon the idea that += could be used this way? -- Those who fail to understand recursion are doomed to repeat it
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
__iadd__ with 2 args? Neal Becker <ndbecker2@gmail.com> - 2015-03-20 17:25 -0400 Re: __iadd__ with 2 args? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-03-21 16:37 +1100
csiph-web