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


Groups > comp.lang.python > #76837

Re: Why can not initialize the class?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.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.008
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'subject:not': 0.03; 'expectation': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Why': 0.09; 'python': 0.11; 'jan': 0.12; 'thread': 0.14; 'finney': 0.16; 'imposible': 0.16; 'programmers,': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:class': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'space.': 0.24; 'text,': 0.24; 'text.': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'generally': 0.29; 'especially': 0.30; 'code': 0.31; 'posting': 0.31; 'that.': 0.31; 'commonly': 0.31; 'indentation': 0.31; 'quotes': 0.31; 'writes:': 0.31; 'know.': 0.32; 'run': 0.32; 'everyone': 0.33; 'plain': 0.33; 'subject:the': 0.34; 'editor': 0.35; 'there': 0.35; 'idle': 0.36; 'subject:?': 0.36; 'should': 0.36; 'level': 0.37; 'ben': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'that,': 0.38; 'expect': 0.39; 'received:71': 0.39; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; 'forum': 0.61; 'first': 0.61; 'here': 0.66; 'capable': 0.67; 'miss': 0.74; 'hand': 0.80; 'ambiguous': 0.84; 'received:fios.verizon.net': 0.84; 'cutting': 0.91; 'hand,': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Why can not initialize the class?
Date Fri, 22 Aug 2014 23:46:26 -0400
References <53F752FA.8080902@gmail.com> <lt8j8n$oau$1@ger.gmane.org> <85bnrcyuhc.fsf@benfinney.id.au>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host pool-71-175-90-87.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
In-Reply-To <85bnrcyuhc.fsf@benfinney.id.au>
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.13322.1408765638.18130.python-list@python.org> (permalink)
Lines 29
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1408765638 news.xs4all.nl 2843 [2001:888:2000:d::a6]:34455
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:76837

Show key headers only | View raw


On 8/22/2014 7:28 PM, Ben Finney wrote:
> Terry Reedy <tjreedy@udel.edu> writes:
>
>> By posting code with an extra indent, you make it imposible to run by
>> just cutting and pasting. You should already know that.
>
> I commonly do that,

It is unnecessary and extra work on both ends. It is also ambiguous in 
that there may be a missing unindented line.

 > as I do with most block quotes in plain text.

Code is not text, especially not python code.
Indents do not change the meaning of text.

 > I think it's a reasonable expectation that programmers, reading a
 > forum about program code, will have at hand a programmer's editor
 > capable of stripping a level of indentation from a block of code.

Well yes, people here generally have Idle at hand, which can do it 
easily. However, it is unreasonable (and counterfactual -- see other 
thread today) to expect everyone to know that, or remember if they ever 
did know.  It also requires that one get *all* the indentation and not 
miss the first space.

-- 
Terry Jan Reedy

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


Thread

Re: Why can not initialize the class? Terry Reedy <tjreedy@udel.edu> - 2014-08-22 23:46 -0400

csiph-web