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
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
-
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
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
-
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,
-
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
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
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
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.
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?
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!
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
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
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
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
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
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
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
, 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
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
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.
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
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
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
-
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
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
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
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
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
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
30 matches
Mail list logo