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


Groups > comp.lang.python > #10151

Re: Use self.vars in class.method(parameters, self.vars)

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!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.011
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'responding': 0.04; 'advice.': 0.05; 'python': 0.08; 'so?': 0.09; 'subject:parameters': 0.09; 'programmer': 0.11; 'am,': 0.13; 'wrote:': 0.15; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'pep8': 0.16; 'rantingrick': 0.16; 'written': 0.17; 'received:209.85.210.174': 0.19; 'received:mail- iy0-f174.google.com': 0.19; 'language': 0.20; 'header:In-Reply- To:1': 0.22; 'trying': 0.23; 'code': 0.24; 'later': 0.26; 'up.': 0.26; 'sat,': 0.28; 'message-id:@mail.gmail.com': 0.28; 'code,': 0.29; 'shut': 0.30; 'words,': 0.32; 'to:addr:python-list': 0.34; 'there': 0.34; 'difference': 0.34; 'on,': 0.34; 'things': 0.34; 'requirements': 0.35; 'latter': 0.35; 'ordered': 0.35; 'some': 0.37; 'but': 0.37; 'received:google.com': 0.38; 'received:209.85': 0.38; 'subject:: ': 0.38; 'put': 0.38; 'should': 0.39; 'goes': 0.39; 'to:addr:python.org': 0.39; 'received:209': 0.40; 'link': 0.63; 'our': 0.63; 'eyes': 0.66; 'offer': 0.72; 'exclusive': 0.78; '(oh': 0.84; 'grounds': 0.84; 'polite': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=5VnuQo7qIJ9Mz5KcyTb8QQGkzRoxmRWnKeTnSfgdriE=; b=w7cbLU3NTlv2leJCLG7hNptCc8Jr8cf1JKowaASDDMb6vaGm0bfw83WsczAuNUdu+S X0AOOCPdRKb1KM5gaHD5NtyCo5oMj1lg1dutdYKykf2tT0F7Jb5IEQAeQTiX8pjmYOO4 7wwU3yCBOMTPJhIqHvgZi43dnckRjFC1ktKv8=
MIME-Version 1.0
In-Reply-To <9ab08c6b-f672-4276-9bd0-00b565839528@k27g2000yqn.googlegroups.com>
References <0ddc2626-7b99-46ee-9974-87439ae09f1e@e40g2000yqn.googlegroups.com> <cd43a7b5-a6fd-4a9f-9193-936600462c63@a1g2000yqp.googlegroups.com> <8b6e5067-8861-4ffe-9e3f-4b932c79878e@gc8g2000vbb.googlegroups.com> <j0chcb$mh9$1@reader1.panix.com> <9ab08c6b-f672-4276-9bd0-00b565839528@k27g2000yqn.googlegroups.com>
Date Sat, 23 Jul 2011 06:20:17 +1000
Subject Re: Use self.vars in class.method(parameters, self.vars)
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.1389.1311366020.1164.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1311366020 news.xs4all.nl 23955 [2001:888:2000:d::a6]:56157
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:10151

Show key headers only | View raw


On Sat, Jul 23, 2011 at 5:16 AM, rantingrick <rantingrick@gmail.com> wrote:
> My chastisement of Bruno was only on the grounds of him failing to
> offer the required amount of information to a new python programmer.
> We should ALWAYS remove any ambiguities from our statements to new
> users AND we should always link to the PEP8 when these type of style
> questions come up.
>

In other words, every new Python programmer must be sat down with a
massive manual and ordered to read it until his eyes bleed and he goes
off and finds some other language to use.

Is it better for Python if we ensure that all Python code written is
written perfectly, or is it better to allow people to write code, use
code, learn code, and then later on, learn to do things more
conveniently?

You really need to learn the difference between language requirements
and stylistic advice. You're trying to turn the latter into the
former, but there is a good reason for language flexibility.

Why am I responding to these trolls? And why am I being so polite as I
do so? Rick, put up or shut up. Get some code down or quit talking.
(Oh and those are not exclusive ors.)

ChrisA

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


Thread

Use self.vars in class.method(parameters, self.vars) caccolangrifata <caccolangrifata@gmail.com> - 2011-07-22 04:12 -0700
  Re: Use self.vars in class.method(parameters, self.vars) Karim <karim.liateni@free.fr> - 2011-07-22 13:32 +0200
  Re: Use self.vars in class.method(parameters, self.vars) Thomas Jollans <t@jollybox.de> - 2011-07-22 13:33 +0200
    Re: Use self.vars in class.method(parameters, self.vars) caccolangrifata <caccolangrifata@gmail.com> - 2011-07-22 05:02 -0700
  Re: Use self.vars in class.method(parameters, self.vars) Thomas Jollans <t@jollybox.de> - 2011-07-22 14:06 +0200
  Re: Use self.vars in class.method(parameters, self.vars) "bruno.desthuilliers@gmail.com" <bruno.desthuilliers@gmail.com> - 2011-07-22 08:43 -0700
    Re: Use self.vars in class.method(parameters, self.vars) caccolangrifata <caccolangrifata@gmail.com> - 2011-07-22 09:50 -0700
      Re: Use self.vars in class.method(parameters, self.vars) Thomas Jollans <t@jollybox.de> - 2011-07-22 20:58 +0200
    Re: Use self.vars in class.method(parameters, self.vars) rantingrick <rantingrick@gmail.com> - 2011-07-22 11:38 -0700
      Re: Use self.vars in class.method(parameters, self.vars) Thomas Jollans <t@jollybox.de> - 2011-07-22 20:49 +0200
      Re: Use self.vars in class.method(parameters, self.vars) John Gordon <gordon@panix.com> - 2011-07-22 19:00 +0000
        Re: Use self.vars in class.method(parameters, self.vars) Chris Angelico <rosuav@gmail.com> - 2011-07-23 05:12 +1000
          Re: Use self.vars in class.method(parameters, self.vars) caccolangrifata <caccolangrifata@gmail.com> - 2011-07-22 12:41 -0700
        Re: Use self.vars in class.method(parameters, self.vars) rantingrick <rantingrick@gmail.com> - 2011-07-22 12:16 -0700
          Re: Use self.vars in class.method(parameters, self.vars) Chris Angelico <rosuav@gmail.com> - 2011-07-23 06:20 +1000
  Re: Use self.vars in class.method(parameters, self.vars) Karim <karim.liateni@free.fr> - 2011-07-22 18:54 +0200
    Re: Use self.vars in class.method(parameters, self.vars) caccolangrifata <caccolangrifata@gmail.com> - 2011-07-22 09:59 -0700
      Re: Use self.vars in class.method(parameters, self.vars) Karim <karim.liateni@free.fr> - 2011-07-22 19:26 +0200
  Re: Use self.vars in class.method(parameters, self.vars) Chris Torek <nospam@torek.net> - 2011-07-22 22:22 +0000

csiph-web