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


Groups > comp.lang.python > #39077

Re: Struggling with program

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeeder.ewetel.de!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <prvs=75487d1c5=jeanmichel@sequans.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.040
X-Spam-Evidence '*H*': 0.92; '*S*': 0.00; 'initialize': 0.05; 'method.': 0.05; 'constructor': 0.07; 'method,': 0.07; 'python': 0.09; '__new__': 0.16; 'attributes,': 0.16; 'subject:program': 0.16; 'instance': 0.17; 'bit': 0.21; 'assignment': 0.22; 'to:2**1': 0.23; 'header:In-Reply-To:1': 0.25; 'usually': 0.30; 'says': 0.33; 'to:addr:python-list': 0.33; 'done': 0.34; 'subject:with': 0.36; 'thank': 0.36; 'subject:: ': 0.38; 'store': 0.38; 'some': 0.38; 'to:addr:python.org': 0.39; 'your': 0.60; 'you.': 0.61; 'received:194': 0.61; 'information': 0.63; 'person,': 0.65; 'subject: ': 0.66; 'disclose': 0.69; 'notice:': 0.71; 'privileged.': 0.72; 'medium.': 0.91
X-IronPort-AV E=Sophos;i="4.84,686,1355094000"; d="scan'208";a="1193966"
X-Virus-Scanned amavisd-new at zimbra.sequans.com
Date Mon, 18 Feb 2013 11:27:57 +0100 (CET)
From Jean-Michel Pichavant <jeanmichel@sequans.com>
To Michael Torrie <torriem@gmail.com>, python-list@python.org
In-Reply-To <5121A4E1.607@gmail.com>
Subject Re: Struggling with program
MIME-Version 1.0
X-Mailer Zimbra 7.2.0_GA_2669 (ZimbraWebClient - GC7 (Linux)/7.2.0_GA_2669)
Content-Type text/plain; charset="utf-8"
Content-Transfer-Encoding base64
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 <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.1931.1361183307.2939.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1361183307 news.xs4all.nl 6978 [2001:888:2000:d::a6]:36181
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:39077

Show key headers only | View raw


> So your assignment is a bit misleading when it says a constructor is
> not
> required, because if you want to initialize some instance attributes,
> it
> has to be done in a method, usually the constructor, which in Python
> is
> __init__.

By constructor, he may actually refer to the __new__ method.

JM


-- IMPORTANT NOTICE: 

The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.

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


Thread

Re: Struggling  with program Jean-Michel Pichavant <jeanmichel@sequans.com> - 2013-02-18 11:27 +0100

csiph-web