Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #55902

Re: multiple values for keyword argument

Path csiph.com!eeepc.pasdenom.info!news.pasdenom.info!news.dougwise.org!gegeweb.org!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!newsfeed.kamp.net!newsfeed0.kamp.net!newsfeed.kpn.net!pfeed08.wxs.nl!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <patty@cruzio.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'avoiding': 0.05; 'numerical': 0.05; 'parameter': 0.05; 'convention.': 0.09; 'myself,': 0.09; 'naming': 0.09; '~ethan~': 0.09; '>>>': 0.11; 'wrote:': 0.14; "'n'": 0.16; 'ahead.': 0.16; 'argv,': 0.16; 'experiments': 0.16; 'programmer,': 0.16; 'subject:keyword': 0.16; 'anyway.': 0.23; 'interpreted': 0.23; 'header:In-Reply-To:1': 0.23; 'posting': 0.24; 'creating': 0.25; 'accepting': 0.25; 'code': 0.25; "i'm": 0.28; 'instead': 0.28; "i'll": 0.29; 'to:addr :python-list': 0.31; 'charset:iso-8859-15': 0.31; 'url:mailman': 0.31; 'this.': 0.31; 'it.': 0.32; 'else': 0.32; 'header:User- Agent:1': 0.34; 'difficult': 0.35; 'using': 0.35; 'but': 0.36; 'anything': 0.36; 'self': 0.36; 'universal': 0.36; 'think': 0.37; 'said': 0.38; 'names': 0.38; 'url:org': 0.38; 'subject:: ': 0.39; 'url:python': 0.39; 'to:addr:python.org': 0.40; 'could': 0.40; "it's": 0.40; 'your': 0.61; 'glad': 0.67; 'spanish': 0.71; 'frank': 0.72; 'hate': 0.72; 'article': 0.74; 'descriptive': 0.84; 'confusion.': 0.91
In-Reply-To <4D443631.3000502@stoneleaf.us>
References <alpine.LSU.2.00.1101291200340.7991@Tux.site> <9f669337-6116-4442-9c7e-54b0051e33a2@8g2000prb.googlegroups.com> <alpine.LSU.2.00.1101291417350.7717@Tux.site> <8qijsgFgu1U1@mid.dfncis.de> <roy-8F5CD8.09032829012011@news.panix.com> <4D443631.3000502@stoneleaf.us>
Date Sat, 29 Jan 2011 10:39:49 -0800 (PST)
Subject Re: multiple values for keyword argument
From patty@cruzio.com
To python-list@python.org
User-Agent SquirrelMail/1.4.17
MIME-Version 1.0
Content-Type text/plain;charset=iso-8859-15
Content-Transfer-Encoding 8bit
X-Priority 3 (Normal)
Importance Normal
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.1462.1296327905.6505.python-list@python.org> (permalink)
Lines 35
NNTP-Posting-Host 82.94.164.166
X-Trace 1296327905 news.xs4all.nl 81481 [::ffff:82.94.164.166]:57341
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:55902

Show key headers only | View raw


> Roy Smith wrote:
>> In article <8qijsgFgu1U1@mid.dfncis.de>,
>>  Frank Dierkes <Frank.Dierkes@googlemail.com> wrote:
>>
>>> Naming the first parameter self is only a convention. It could be any
>>> other name, too.
>>
>> But it shouldn't.  The use of "self" is so universal that using anything
>> else will just make your code more difficult for other people to
>> understand.
>
> Nevertheless, if you have a good reason to, go ahead.
>
> I, myself, use the spanish word 'yo' instead (less keystrokes, I hate
> 'self', and it amuses me); if I'm working with my numerical experiments
> I'll use 'n' or 'x'... although, when posting sample code to c.l.py I do
> try to use 'self' to avoid possible confusion.  :)
>
> ~Ethan~
> --
> http://mail.python.org/mailman/listinfo/python-list

I am glad you said this.  I have been avoiding understanding this 'self',
just accepting it :}  For the time being, since my programs I am creating
are for my own use, I think I will make my own names up, that are
descriptive to me as the programmer, it's all going to be interpreted
anyway.  And the other email equating to C's argv, etc. - now I get it.

Regards,

Patty
>
>

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: multiple values for keyword argument Roy Smith <roy@panix.com> - 2011-01-29 09:03 -0500
  Re: multiple values for keyword argument Simon Brunning <simon@brunningonline.net> - 2011-01-31 09:45 +0000
  Re: multiple values for keyword argument Ben Finney <ben+python@benfinney.id.au> - 2011-01-30 08:29 +1100
  Re: multiple values for keyword argument patty@cruzio.com - 2011-01-31 10:00 -0800
  Re: multiple values for keyword argument Ethan Furman <ethan@stoneleaf.us> - 2011-01-29 21:35 -0800
  Re: multiple values for keyword argument Jean-Michel Pichavant <jeanmichel@sequans.com> - 2011-02-01 11:27 +0100
  Re: multiple values for keyword argument Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-01-30 09:36 +0000
  Re: multiple values for keyword argument patty@cruzio.com - 2011-01-29 10:39 -0800
  Re: multiple values for keyword argument Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2011-01-29 23:45 +0000

csiph-web