Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #42292
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <davea@davea.name> |
| 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; 'subject:Python': 0.06; '(especially': 0.07; 'worked.': 0.09; 'subject:question': 0.10; 'cheers': 0.12; 'chris,': 0.16; 'confuse': 0.16; 'globals.': 0.16; 'received:74.208.4.195': 0.16; 'subject:class': 0.16; 'subject:issue': 0.16; 'subject:variable': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'variable': 0.18; 'things.': 0.19; 'code,': 0.22; 'header:User-Agent:1': 0.23; 'post': 0.26; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'along': 0.30; 'class': 0.32; 'probably': 0.32; 'supposed': 0.32; 'beginning': 0.33; 'guess': 0.33; 'info': 0.35; 'case,': 0.35; 'add': 0.35; 'thanks': 0.36; 'should': 0.36; 'represent': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'remove': 0.60; 'further': 0.61; 'name': 0.63; 'received:74.208': 0.68; 'sam': 0.68; 'berry': 0.84; 'subject:!)': 0.84 |
| Date | Fri, 29 Mar 2013 18:56:07 -0400 |
| From | Dave Angel <davea@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 |
| MIME-Version | 1.0 |
| To | python-list@python.org |
| Subject | Re: Python class and variable issue(newby question!) |
| References | <78680654-5cf5-435c-9fce-19d6f5c23360@googlegroups.com> <6deb6120-e93d-429f-821f-437d25f0a761@googlegroups.com> |
| In-Reply-To | <6deb6120-e93d-429f-821f-437d25f0a761@googlegroups.com> |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:4OIFHE/jgyJm+gs4hiWqazQAvFgMpRTxXuydZkUyDko 6K3nDUK7rndoP3ZiVEeuzGxYSmUHL6XPiJB9YTI7PG+SNw8uxl 3M0qx5Iit6S29zZ4uuXCyM7lVVR8Lkqcp6Cy7xqBmJEVubGqnx U+o5F6/GMxlCJzFgAT1os2HErZZNRVMOxdzgQxtnzuy8eOj0tk BUPDLzTbroUuz1kmrbqo7WR1VRlzyUYEQUCmgwBlnOjqSkIPGq 7LeWNI20SsSfo8NlioeB/WfOKmEwh7zdp1NkYHBLj562TYOY8F 05elTgL3BQGgZDGs61xV9OYfxK7y4f1WtYNpptsXDNUIuHT6g= = |
| 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.3973.1364597787.2939.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1364597787 news.xs4all.nl 6978 [2001:888:2000:d::a6]:47843 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:42292 |
Show key headers only | View raw
On 03/29/2013 06:17 PM, Sam Berry wrote: > Thanks for the responses! My issue was sorted with Benjamins post, just printing s worked. > > Cheers for the info though Chris, if i have any further issues il post them with some working code. > In that case, you probably should add a line like: s = None at the beginning of the code, along with a description of what s is supposed to represent (especially since the name doesn't reveal much). And you should remove the class variable s. It'll just confuse things. I guess this isn't the place to rail about non-const globals. -- DaveA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Python class and variable issue(newby question!) Sam Berry <sambez_14@hotmail.co.uk> - 2013-03-29 14:12 -0700
Re: Python class and variable issue(newby question!) Chris Angelico <rosuav@gmail.com> - 2013-03-30 08:24 +1100
Re: Python class and variable issue(newby question!) Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-29 22:51 +0000
Re: Python class and variable issue(newby question!) Chris Angelico <rosuav@gmail.com> - 2013-03-30 09:59 +1100
Re: Python class and variable issue(newby question!) Benjamin Kaplan <benjamin.kaplan@case.edu> - 2013-03-29 14:23 -0700
Re: Python class and variable issue(newby question!) Sam Berry <sambez_14@hotmail.co.uk> - 2013-03-29 15:17 -0700
Re: Python class and variable issue(newby question!) Chris Angelico <rosuav@gmail.com> - 2013-03-30 09:45 +1100
Re: Python class and variable issue(newby question!) Dave Angel <davea@davea.name> - 2013-03-29 18:56 -0400
csiph-web