[Tutor] Tutor FAQ

2006-05-17 Thread Mike Hansen
Here's a small batch of questions/answers for the tutor FAQ. Let me know if you have any corrections or clarifications. I'll post them to the web site in a couple of days. Mike - How much code should I post? Post as much

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
Well, I posted a few questions to http://pyfaq.infogami.com/tutor-index late last week. Since the next questions and answers are a bit on the long side, I'll send them to this list in multiple messages. Please let me know if you have any corrections or clarifications. Below is a reworked

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
- What's the difference between import foo and from foo import *? import sys This brings the *name* sys into your module. It does not give you access to any of the names inside sys itself (such as exit for example). To access

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
I need some help with this question and answer. It appears that useless Python is gone. uselesspython.com. Is it still around? Does anyone have any ideas on this one? - I'm learning Python. What should I program? If you have a

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
- What are some good books on Python? See the Python wiki http://wiki.python.org/moin/PythonBooks or search comp.lang.python or the tutor archives since this is a very frequently asked. If you have no programming experience,

[Tutor] Tutor FAQ

2006-05-03 Thread Mike Hansen
- What is if __name__ == __main__ for? The 'if __name__ == __main__: ... trick exists in Python so that our Python files can act as either reusable modules, or as standalone programs. As a toy example, let's say that we have

Re: [Tutor] Tutor FAQ

2006-05-03 Thread Kent Johnson
Mike Hansen wrote: - What's the difference between import foo and from foo import *? import sys This brings the *name* sys into your module. (Technically, it binds the name sys to the object that is the sys module.) It

Re: [Tutor] Tutor FAQ

2006-05-03 Thread Kent Johnson
Mike Hansen wrote: - What are some good books on Python? See the Python wiki http://wiki.python.org/moin/PythonBooks or search comp.lang.python or the tutor archives since this is a very frequently asked. If you have

Re: [Tutor] Tutor FAQ

2006-04-27 Thread Alan Gauld
Py2exe makes an executable of your Python program. For Windows only. http://sourceforge.net/projects/py2exe/ I believe Gordon McMillan's installer (now called pyInstaller) also makes Linux (and Irix!) executables so may be worth a link/mention here too.

[Tutor] Tutor FAQ

2006-04-26 Thread Mike Hansen
Here's the next batch of questions and answers for the tutor FAQ. If you have any clarifications or corrections, please let me know. I'll try to post this on the web site in a couple of days. - How do I get data out of HTML?

Re: [Tutor] Tutor FAQ

2006-04-26 Thread Kent Johnson
Mike Hansen wrote: Here's the next batch of questions and answers for the tutor FAQ. If you have any clarifications or corrections, please let me know. I'll try to post this on the web site in a couple of days. Thanks Mike!

Re: [Tutor] Tutor FAQ

2006-04-26 Thread Mike Hansen
Thanks Kent. I'll make those additions/corrections and rework the question about private and public attributes and methods. Mike On Apr 26, 2006, at 7:42 PM, Kent Johnson wrote: Mike Hansen wrote: Here's the next batch of questions and answers for the tutor FAQ. If you have any

Re: [Tutor] Tutor FAQ?

2006-04-24 Thread Mike Hansen
On Apr 22, 2006, at 3:15 AM, Fredrik Lundh wrote: Ed wrote: I don't think the FAQ is open to public editing yet. I'm not sure when it will be, but Fredrik might be able to give a timescale. There are a few known conversion issues to deal with (the FAQ uses a lot more looks like markdown

Re: [Tutor] Tutor FAQ?

2006-04-24 Thread Fredrik Lundh
Mike Hansen wrote: I'll post the questions and answers to the list first. If I don't get any corrections or clarifications in a day or so after posting, I'll add it to the tutor suggestion page. excellent! Ed mentioned that you are using restructured text. Should I put the entry in

Re: [Tutor] Tutor FAQ?

2006-04-23 Thread Fredrik Lundh
When Ed brought up the tutor/tutorial FAQ idea and yes, I'll change tutorial FAQ to tutor FAQ, to make things a bit less confusing. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Tutor FAQ?

2006-04-22 Thread Ed Singleton
Yep, I'm volunteering. Forgive my ignorance, but I couldn't seem to figure out how to edit/add pages to http://pyfaq.infogami.com/. The tutorial wiki has the edit, but the pyfaq page doesn't. I am logged in using my reddit login. I don't think the FAQ is open to public editing yet. I'm not

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Ed Singleton
On 20/04/06, Kent Johnson [EMAIL PROTECTED] wrote: Mike Hansen wrote: I'd like to send a big Thank You to Danny, Alan, Kent and others(whos names escape me) for being such an asset to the Python community by relentlessly answering questions on the tutor list.(Do these guys sleep? They must

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Kent Johnson
Ed Singleton wrote: If anyone here has ideas for questions that get asked a lot (like How do I write a program that prints a word backwards) then just posting them in this thread would be a good start. We should be careful about posting solutions to homework problems, which this could easily

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Alan Gauld
, April 21, 2006 2:38 PM Subject: Re: [Tutor] Tutor FAQ? -- Mike, if you're volunteering that would be perfect. If anyone here has ideas for questions that get asked a lot (like How do I write a program that prints a word backwards) then just posting them

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Ed Singleton
On 21/04/06, Kent Johnson [EMAIL PROTECTED] wrote: Ed Singleton wrote: If anyone here has ideas for questions that get asked a lot (like How do I write a program that prints a word backwards) then just posting them in this thread would be a good start. We should be careful about posting

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Danny Yoo
I assume Kent, Alan and Danny don't mind their answers being reused in the wiki, but it would probably best to get explicit permission from them (and other people) to re-use text from their answers. I give explicit permission for any of my replies to be reused this way.

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
Maybe this could be integrated with the main Python FAQ in a beginner's section? Fredrik Lundh is experimenting with a FAQ wiki here: http://pyfaq.infogami.com/ Actually I put something about this on PyFAQ just the other day. Fredrik was quite keen on the idea, but I've been busy

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Kent Johnson
Mike Hansen wrote: - I need help; I'm getting an error in my program. What should I do? If you are getting an error in your Python program that you don't understand, post the error message and any relevant code. Post the

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Alan Gauld
I suspect the best way to generate a scientific list of FAQ is by scanning the subjects in the list archives. But here are a few more: Special function _xxx_ doesn't work - double underscore needed Lack of indentation or inconsistent indents - inc tabs and spaces How to name an object based

Re: [Tutor] Tutor FAQ?

2006-04-21 Thread Mike Hansen
- I need help; I'm getting an error in my program. What should I do? If you are getting an error in your Python program that you don't understand, post the error message and any relevant code. Post the exact error

[Tutor] Tutor FAQ?

2006-04-20 Thread Mike Hansen
I'd like to send a big Thank You to Danny, Alan, Kent and others(whos names escape me) for being such an asset to the Python community by relentlessly answering questions on the tutor list.(Do these guys sleep? They must work in shifts.) This list is one of the most civilized and responsive lists

Re: [Tutor] Tutor FAQ?

2006-04-20 Thread Kent Johnson
Mike Hansen wrote: I'd like to send a big Thank You to Danny, Alan, Kent and others(whos names escape me) for being such an asset to the Python community by relentlessly answering questions on the tutor list.(Do these guys sleep? They must work in shifts.) This list is one of the most

Re: [Tutor] Tutor FAQ?

2006-04-20 Thread Eric Walker
Kent Johnson wrote: Mike Hansen wrote: I'd like to send a big Thank You to Danny, Alan, Kent and others(whos names escape me) for being such an asset to the Python community by relentlessly answering questions on the tutor list.(Do these guys sleep? They must work in shifts.) This list is

Re: [Tutor] Tutor FAQ?

2006-04-20 Thread Alan Gauld
I'd like to send a big Thank You to Danny, Alan, Kent and others Over the years there have been many, some have moved from tutor list to c.l.python others have just got too busy. Others reappear and then disappear again at intervals. (Who remembers Ivan, Gregor, Magnus etc etc.) answering

Re: [Tutor] Tutor FAQ?

2006-04-20 Thread Mike Hansen
Thanks! I do sleep but I have my email tied in to my clock radio so whenever an email arrives on the tutor list I am awakened to answer it ;) Hmmm.. I wouldn't be surprised if there's an X10 module that does that. =) [...] Maybe this could be integrated with the main Python FAQ in a