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


Groups > comp.lang.python > #35674

Re: learning curve

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.02; 'python,': 0.02; 'things.': 0.05; 'classes.': 0.07; 'postpone': 0.07; 'run,': 0.07; 'scripts': 0.09; 'python': 0.09; 'answering': 0.09; 'question?': 0.09; 'useful,': 0.13; '(eg.': 0.16; 'program?': 0.16; 'top-level': 0.16; 'wrote:': 0.17; 'typing': 0.17; 'code.': 0.20; 'versions': 0.20; 'programming': 0.23; 'somewhere': 0.24; 'least': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User- Agent:1': 0.26; 'coding': 0.27; 'question': 0.27; "doesn't": 0.28; 'installed,': 0.29; 'subject:learning': 0.29; 'source': 0.29; 'classes': 0.30; 'code': 0.31; 'launch': 0.32; 'running': 0.32; 'getting': 0.33; 'defining': 0.33; 'to:addr:python-list': 0.33; 'version': 0.34; 'pm,': 0.35; 'anything': 0.36; 'should': 0.36; 'beyond': 0.37; 'two': 0.37; 'why': 0.37; 'subject:: ': 0.38; 'files': 0.38; 'some': 0.38; 'nothing': 0.38; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; 'skip:u 10': 0.60; 'first': 0.61; 'here:': 0.62; 'launching': 0.62; 'more': 0.63; 'show': 0.63; 'header:Reply-To:1': 0.68; 'obvious': 0.71; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72
Date Thu, 27 Dec 2012 22:14:05 -0500
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1
MIME-Version 1.0
To python-list@python.org
Subject Re: learning curve
References <50DCF3DE.7030600@gmail.com>
In-Reply-To <50DCF3DE.7030600@gmail.com>
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:OCNreusISR8Eb/Y7nqksUwsGVmzFNtKKnfXHJS9D5mR PSHOoni7nJz2rfxMU68wroggf9uBWcIW5z41mCff7ysGUl/lXG kBy6zdU8hVuac1NSfHIGFMggN/yrqcYSVcviKOE8HwkHAnAwbe rpgGGSD076GusE9hVLzSFIPjqRnLb04t17Y9E58ahtZ4n2lnQ4 8ffZ3osCWt70Vp9Kh11sEL360e1wi3gUMj7Vitq+MDWBtJD4nu 4HZRwvCkfw9wGWZSL2lWQ5emkbl+PkebUvc/XhtEWME+p634m+ 3kB3eAOTFgn9bxoQvFd8jCPC1LrtwC/kxHqhLAReMa21Fm9xg= =
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
Reply-To d@davea.name
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.1382.1356664518.29569.python-list@python.org> (permalink)
Lines 27
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1356664518 news.xs4all.nl 6914 [2001:888:2000:d::a6]:46440
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:35674

Show key headers only | View raw


On 12/27/2012 08:20 PM, Verde Denim wrote:
> Just getting into Py coding and not understanding why this code doesn't
> seem to do anything -

Welcome to Python.

Can I ask the obvious question?  How can this be your first program? 
Are you just typing it in from somewhere (eg. a book, or a website)?  If
you're just starting, you should postpone writing classes and GUI, and
do some simple things.  At least till you understand more about the
python programming model.

Secondary questions you should be answering with any question here: 
What versions of Python have you installed, and on what OS.  And what
version are you running and how?  And when you launch Python, how are
you launching it?  You have two files here.  Running either of these as
python scripts will do nothing useful, because neither has any top-level
code. beyond defining some classes.  So you should show the source for
the main.py that you actually run, and show what you type at the
terminal prompt.



-- 

DaveA

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


Thread

Re: learning curve Dave Angel <d@davea.name> - 2012-12-27 22:14 -0500

csiph-web