Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:not': 0.03; 'operator': 0.03; 'subject:Why': 0.09; 'none.': 0.16; 'subject:class': 0.16; 'then?': 0.16; 'fix': 0.17; 'wrote:': 0.18; 'header:User-Agent:1': 0.23; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'code': 0.31; 'larry': 0.31; 'subject:the': 0.34; 'received:google.com': 0.35; 'subject:?': 0.36; 'received:10': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'subject:can': 0.39; 'to:addr:python.org': 0.39; 'called': 0.40; 'how': 0.40; 'to:addr:gmail.com': 0.65; 'charset:windows-1252': 0.65 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=YQq+al71FibgcDrlF82B+yhHgODEIGXWIrcddCqORYU=; b=HcHPCs0v5cFCSVrEbv+KbPftbpxkcQxheFKwMQUW2LcmcFpfaj7EvIiPMyBiLyhHJz mMzisjpNjg503svSHLNGTAEQ/MQPs7vNqE9Fmfs5RAYNcr9Tni9IZBT6xdkil9niPM7J Avqw2beIGrh4SvL7VDvvT4/0lWzC+4/S0pc/6NaIg3evUTTYAurS99NhjJLhRtXgo/HZ lH20GvZkRAKRmAY8v8sJI1IsRI/0+ofb3on48oGDSrO9SGcqDSwWCjxbhMRk2UEje9ra O73GfY9K2iuX2RfrjMtok7EF8PYuNJEKYgjNe5z6lyuTAZsMwHyQKfa4fI3k/t+qpoV7 6FVQ== X-Received: by 10.70.34.104 with SMTP id y8mr6867880pdi.7.1408718545786; Fri, 22 Aug 2014 07:42:25 -0700 (PDT) Date: Fri, 22 Aug 2014 22:42:07 +0800 From: luofeiyu User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.0 MIME-Version: 1.0 To: Larry Martell , python-list@python.org Subject: Re: Why can not initialize the class? References: <53F752FA.8080902@gmail.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 5 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1408718549 news.xs4all.nl 2930 [2001:888:2000:d::a6]:45585 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:76792 how to fix the code then? On 8/22/2014 10:36 PM, Larry Martell wrote: > The 'in' operator requires an iterable. When you do 'self.email = > email' set_email gets called and value is None.