Re: [Tutor] Question about comparing values

2011-05-22 Thread Becky Mcquilling
Thanks, you are correct of course. I need to just scrap this and start over, but I understand it a lot better now. On Sun, May 22, 2011 at 4:57 PM, Alan Gauld wrote: > "Becky Mcquilling" wrote > > I'm doing a tutorial and was given a problem, using shelve. >> > > Remember that a shelve is bas

Re: [Tutor] Python and the web

2011-05-22 Thread Robert
On 2011-05-22 14:09:39 -0400, michael scott said: I want to start getting into web site development. I already know basic html and css, which will create a basic webpage. But my question is what exactly does python bring to the web? Are forums, blogs, flash sites, etc the results of web progr

Re: [Tutor] Python and the web

2011-05-22 Thread Steven D'Aprano
On Mon, 23 May 2011 04:09:39 am michael scott wrote: > I want to start getting into web site development. I already know > basic html and css, which will create a basic webpage. But my > question is what exactly does python bring to the web? > > Are forums, blogs, flash sites, etc the results of we

Re: [Tutor] Question about comparing values

2011-05-22 Thread Alan Gauld
"Becky Mcquilling" wrote I'm doing a tutorial and was given a problem, using shelve. Remember that a shelve is basically a dictionary stored in a file rather than in memory. So treat it like you would a dictionary. Here is what I have so far: import shelve def user_scores(): user_name =

Re: [Tutor] Some ways lists and dictionaries can be usedunconventionally?

2011-05-22 Thread Alan Gauld
"Tidal Espeon" wrote I've been trying to make a text-based character creator program, ...chapter about learning lists and dictionaries, ... I've been trying to think of how lists and dictionaries can be useful ... but I fail to see any significant connection. OK, Assuming your characters a

Re: [Tutor] Some ways lists and dictionaries can be used unconventionally?

2011-05-22 Thread Walter Prins
On 22 May 2011 21:29, Tidal Espeon wrote: > I've been trying to make a text-based character creator program, and it was > going pretty well. I was debugging it earlier, and I was well on my way. The > problem is, that its something I have to do at the end of a python book's > chapter about learni

Re: [Tutor] Help with understanding classes

2011-05-22 Thread Robert Sjoblom
> That's pretty much all you need to know to start using objects. There's > a lot more though: inheritance, class methods and static methods (as > opposed to ordinary methods), properties, descriptors (advanced!), > slots, and more. But one step at a time. > > Any questions, don't hesitate to ask!

Re: [Tutor] Question about comparing values

2011-05-22 Thread Hugo Arts
On Sun, May 22, 2011 at 11:11 PM, Becky Mcquilling wrote: > I realize this is a fairly generic type of question, but being new to > programming, I'm not sure how best to approach it. > I'm doing a tutorial and was given a problem, using shelve.  It's taking a > user name and then asking for scores

[Tutor] Question about comparing values

2011-05-22 Thread Becky Mcquilling
I realize this is a fairly generic type of question, but being new to programming, I'm not sure how best to approach it. I'm doing a tutorial and was given a problem, using shelve. It's taking a user name and then asking for scores in a game, until you end the loop. Whatever score is the high sc

[Tutor] Some ways lists and dictionaries can be used unconventionally?

2011-05-22 Thread Tidal Espeon
I've been trying to make a text-based character creator program, and it was going pretty well. I was debugging it earlier, and I was well on my way. The problem is, that its something I have to do at the end of a python book's chapter about learning lists and dictionaries, and I didn't use either i

Re: [Tutor] Python and the web

2011-05-22 Thread spawgi
Please see the Django framework and Google App Engine using Python. I particularly recommend the GAE using Python to create a basic data driven application. It will give answers to quite a few of your questions. Regards SWP On Sun, May 22, 2011 at 11:39 PM, michael scott wrote: > I want to start

Re: [Tutor] Python and the web

2011-05-22 Thread Alan Gauld
"michael scott" wrote I want to start getting into web site development. I already know basic html and css, which will create a basic webpage. But my question is what exactly does python bring to the web? Action. Your HTML/CSS web page cannot do anything it is just static information. Using

[Tutor] Python and the web

2011-05-22 Thread michael scott
I want to start getting into web site development. I already know basic html and css, which will create a basic webpage. But my question is what exactly does python bring to the web? Are forums, blogs, flash sites, etc the results of web programming or can they all be achieved with standard ht

Re: [Tutor] Help with understanding classes

2011-05-22 Thread Lowell Tackett
Robert...I am similarly where you are stuck, a beginner with little insight, so my perspective might have some draw to it. Try this on for size - while watching a friend stencil Christmas decorations on living room windows last year, it dawned on me that a class is quite simply - a stencil. Wh

Re: [Tutor] need help with lxml errors

2011-05-22 Thread Rayon
Wow I did not see that, long day and night :) thanks a lot. Regards Rayon -Original Message- From: tutor-bounces+evosweet=hotmail@python.org [mailto:tutor-bounces+evosweet=hotmail@python.org] On Behalf Of Steven D'Aprano Sent: Sunday, May 22, 2011 8:23 AM To: tutor@python.org Subj

Re: [Tutor] need help with lxml errors

2011-05-22 Thread Steven D'Aprano
On Sun, 22 May 2011 09:51:44 pm Rayon wrote: > I am trying to import lxml > > from lxml import etree And that succeeds fine. Your problem lies elsewhere. > bb = etree.Element(self.get_time) > return str(bb) In future, please copy and paste (do NOT retype, simplify or summarize) the full tr

[Tutor] need help with lxml errors

2011-05-22 Thread Rayon
I am trying to import lxml from lxml import etree bb = etree.Element(self.get_time) return str(bb) and I get this error: File "C:\Python26\lib\site-packages\lxml\apihelpers.pxi", line 1480, in lxml.etree.__getNsTag (src/lxml/lxml.etree.c:23373) File "C:\Python26\lib\site