Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80458
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.roellig-ltd.de!open-news-network.org!cyclone02.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!npeersf04.am4!fx29.am4.POSTED!not-for-mail |
|---|---|
| From | alister <alister.nospam.ware@ntlworld.com> |
| Subject | Re: A syntax question |
| Newsgroups | comp.lang.python |
| References | <m3q6ae$m8p$1@news.albasani.net> |
| User-Agent | Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 8bit |
| Lines | 31 |
| Message-ID | <bf18w.682041$9R5.556154@fx29.am4> (permalink) |
| NNTP-Posting-Host | 82.9.78.47 |
| X-Complaints-To | http://netreport.virginmedia.com |
| X-Trace | 1415618631 82.9.78.47 (Mon, 10 Nov 2014 11:23:51 UTC) |
| NNTP-Posting-Date | Mon, 10 Nov 2014 11:23:51 UTC |
| Organization | virginmedia.com |
| Date | Mon, 10 Nov 2014 11:23:51 GMT |
| X-Received-Body-CRC | 2640735041 |
| X-Received-Bytes | 1472 |
| Xref | csiph.com comp.lang.python:80458 |
Show key headers only | View raw
On Mon, 10 Nov 2014 12:07:58 +0100, Mok-Kong Shen wrote: > I don't understand the following phenomenon. Could someone kindly > explain it? Thanks in advance. > > M. K. Shen > > ------------------------------------------------- > > count=5 > > def test(): > print(count) > if count==5: > count+=0 ### Error message if this line is active, otherwise ok. > print(count) > return > > test() My crystal ball is currently in for repair and is not expected back in the foreseeable future. What result are you getting that you don't understand & what do you expect? What is the error message you get? Post the full traceback -- The POP server is out of Coke
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A syntax question Mok-Kong Shen <mok-kong.shen@t-online.de> - 2014-11-10 12:07 +0100
Re: A syntax question alister <alister.nospam.ware@ntlworld.com> - 2014-11-10 11:23 +0000
Re: A syntax question David Palao <dpalao.python@gmail.com> - 2014-11-10 12:31 +0100
Re: A syntax question Grant Edwards <invalid@invalid.invalid> - 2014-11-10 14:44 +0000
Re: A syntax question alister <alister.nospam.ware@ntlworld.com> - 2014-11-10 14:54 +0000
Re: A syntax question alister <alister.nospam.ware@ntlworld.com> - 2014-11-10 14:56 +0000
Re: A syntax question Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-11-10 19:53 -0500
Re: A syntax question alister <alister.nospam.ware@ntlworld.com> - 2014-11-11 09:04 +0000
Re: A syntax question Grant Edwards <invalid@invalid.invalid> - 2014-11-10 16:11 +0000
Re: A syntax question Chris Angelico <rosuav@gmail.com> - 2014-11-11 03:18 +1100
Re: A syntax question Roy Smith <roy@panix.com> - 2014-11-10 14:48 -0500
Re: A syntax question Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-10 20:08 +0000
Re: A syntax question Tim Chase <python.list@tim.thechases.com> - 2014-11-10 14:29 -0600
Re: A syntax question Wolfgang Maier <wolfgang.maier@biologie.uni-freiburg.de> - 2014-11-10 12:39 +0100
Re: A syntax question Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-10 09:35 -0500
Re: A syntax question Chris Angelico <rosuav@gmail.com> - 2014-11-11 01:54 +1100
Re: A syntax question Peter Otten <__peter__@web.de> - 2014-11-10 16:10 +0100
Re: A syntax question Joel Goldstick <joel.goldstick@gmail.com> - 2014-11-10 10:27 -0500
csiph-web