Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69668
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <random832@fastmail.us> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.022 |
| X-Spam-Evidence | '*H*': 0.96; '*S*': 0.00; 'python,': 0.02; '"as': 0.07; 'imply': 0.09; 'lawrence': 0.09; 'received:internal': 0.09; 'expects': 0.16; 'message-id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:parameters': 0.16; 'language': 0.16; 'wrote:': 0.18; 'passing': 0.19; 'thu,': 0.19; 'least': 0.26; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'types.': 0.31; "i'd": 0.34; 'received:66': 0.35; "can't": 0.35; 'something': 0.35; 'one,': 0.35; 'received:10': 0.37; 'somebody': 0.38; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; 'even': 0.60; 'future': 0.60; 'from:no real name:2**0': 0.61; 'ago.': 0.61; 'header:Message-Id:1': 0.63; 'here': 0.66; 'default': 0.69; 'wish': 0.70; '2014,': 0.84; 'to:addr:yahoo.co.uk': 0.84; 'imagine': 0.93; 'retired': 0.93 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:from:to:mime-version:content-transfer-encoding :content-type:in-reply-to:references:subject:date; s=mesmtp; bh= TTlvCiNOwz+RBluqdGxIqKLlIdw=; b=pcut2bqBbMTzOzK4zB8MrJN7wpjMHyGn rt3YnYbRzWL786AN0sKek65viVXWoeu1UxKnHu60F3TyST2MdMvz/mpJHtujXuc0 +SlhsfTxKfCom0bjDo+ryyScnWI2c1PS0UGnKhyTlJy0KdJhPKV+gEOuDETgcnNf tjYfeHLxAJA= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=smtpout; bh=TTlvCiNOwz+RBluqdGxIqKLlIdw=; b=fJo 3IasTjtH5XA1YlAPQpVciZ0MErEzRY6H2M3Wcax/sUorCAaLNIAshPr07n0LlkQA +TFo0fP5MM5QwbJIXaoSAr2ZtGdhkPzcEcw9ugxYQTVAwuJ0av+y8yJlfiBqZ9nT BBpp8nNVIQgSZlCVWqOwPvBNVJpCA+ign9qVxEwM= |
| X-Sasl-Enc | BJOSXahJ/gkBQQN8PXlBGPiE24WrTy0GsTXfORRww6kk 1396620025 |
| From | random832@fastmail.us |
| To | Mark Lawrence <breamoreboy@yahoo.co.uk>, python-list@python.org |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| Content-Type | text/plain |
| X-Mailer | MessagingEngine.com Webmail Interface - ajax-3bcd941f |
| In-Reply-To | <lhkuue$m4j$1@ger.gmane.org> |
| References | <ac388f0b-8951-42af-a94f-33abdb7231e7@googlegroups.com> <lhkuue$m4j$1@ger.gmane.org> |
| Subject | Re: Default mutable parameters in functions |
| Date | Fri, 04 Apr 2014 10:00:25 -0400 |
| 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.8893.1396620027.18130.python-list@python.org> (permalink) |
| Lines | 8 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1396620027 news.xs4all.nl 2847 [2001:888:2000:d::a6]:38953 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:69668 |
Show key headers only | View raw
On Thu, Apr 3, 2014, at 20:38, Mark Lawrence wrote: > I just wish I had a quid for every time somebody expects something out > of Python, that way I'd have retired years ago. At least here it's not > accompanied by "as that's how it works in <some other language>". I can't imagine a language that would work that way. For one, it would also imply that passing a value would change the default for future calls even for non-mutable types.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Default mutable parameters in functions fbicknel@gmail.com - 2014-04-03 11:49 -0700
Re: Default mutable parameters in functions Ian Kelly <ian.g.kelly@gmail.com> - 2014-04-03 15:32 -0600
Re: Default mutable parameters in functions Ethan Furman <ethan@stoneleaf.us> - 2014-04-03 14:44 -0700
Re: Default mutable parameters in functions Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-04-03 20:27 -0400
Re: Default mutable parameters in functions Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-04-04 01:38 +0100
Re: Default mutable parameters in functions random832@fastmail.us - 2014-04-04 10:00 -0400
Re: Default mutable parameters in functions Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-04-04 14:34 +0000
Re: Default mutable parameters in functions Chris Angelico <rosuav@gmail.com> - 2014-04-05 09:47 +1100
Re: Default mutable parameters in functions Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-04-04 19:23 -0400
Re: Default mutable parameters in functions Roy Smith <roy@panix.com> - 2014-04-04 19:38 -0400
Re: Default mutable parameters in functions Dave Angel <davea@davea.name> - 2014-04-04 22:21 -0400
csiph-web