[Tutor] Having Issues with CMD and the 'python' command
Every time I start cmd on windows it requires me to set path=%path%;C:\python26 why? I'm getting annoyed... ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Is it possible to use sockets to login to a website that uses php?
I need to some how make a script that logs into a website from my desktop and I can do the rest and grab the information on my on hopefully. How would I login to a website using sockets with python? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Just bought Python in a Nutshell
Right, I like reading books it comes handier then reading ebooks, less programs and its right there in your hands. Main reason I'm going to use it for is to find questions without asking them on the python list or tutor list for a quicker referrence. On 9/14/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I respectfully disagree with Shawn, in this case. Don't skim Nutshell, unless you know very little Python, and even then it is really the wrong book. It is rather dry reading and provides very little of the usual user-friendly introductions to language features by solving simple problems. Doesn't sound like that much of an endorsement, does it? Well, in fact, it is pretty much my most used Python book (out of 7 or 8 others). If you read Alex's posts in this newsgroup, you'll see that he is one of the most pragmatic and rigorous posters who usually contributes code that elegantly and simply solves the issue at hand with the minimum amount of clutter. What Python in a Nutshell is really good at is showing you exactly what Python is capable of doing, feature by feature, in a thoroughly Pythonic way for the feature. With code and exact implication. For example, I know Python well but I am kinda lacking in metaclass comprehension. If I were to write some non-trivial metaclasses I would surely have his 3 or 4 pages open on my desk as I write code and skim through other internet postings. Those 3-4 pages have kinda made my brain shrivel every time I've looked at them, but they are the clearest overview I've seen of what is probably one of the hardest Python features to understand. For normal, easy-to-understand Python, Nutshell really dissects the languages with new insight. The information is dense, because each word has its place and there very little filler. That's why skimming it does not work for me, I just don't have the requisite sustained attention span. So, although I read almost all other computer books like Shawn does, I don't think it applies in this particular case. When you have a particular aspect of Python in mind, use Nutshell. Read up on 'look before you leap' in it if you really want a sample of how it is written. Cheers -- http://mail.python.org/mailman/listinfo/python-list ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Is there some sort of Python Error log.
Command prompt is a pain and it would be pretty nice to have this feature. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Class Inheritance
Okay class A: def __init__(self,x,y): self.x = x self.y = y def save(self,fn): f = open(fn,w) f.write(str(self.x)+ '\n') # convert to a string and add newline f.write(str(self.y)+'\n') return f # for child objects to use def restore(self, fn): f = open(fn) self.x = int(f.readline()) # convert back to original type self.y = int(f.readline()) return f class B(A): def __init__(self,x,y,z): A.__init__(self,x,y) self.z = z def save(self,fn): f = A.save(self,fn) # call parent save f.write(str(self.z)+'\n') return f # in case further children exist def restore(self, fn): f = A.restore(self,fn) self.z = int(f.readline()) return f In the class B, I'm not understanding the A.__init(self,x,y) part. So its initializing the class A, and basically you can use the A class like normal? Part im confused about is the self.z, does that belong to the class A or class B? Else I think I'm understanding it correctly. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] How can I extend my vocabulary that fits well with python.
See theres a lot of words that I know and some that I don't know, how can I extend and improve my python vocabulary so I can interpret information in a faster manor. Makes things easier to understand if you actually understand the things the people are saying in tutorials,etc.. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor