[Tutor] name 'x" is not defined

2008-10-17 Thread carme colominas
hi, I'm a linguist and absolut new on Python; I'm trying to follow the first chapter of *Natural Language Processing in Python. I'm aware this is a very basic question, but I'm stuck; can someone explain me, what does it mean that a function is not defined and how to proceed? * For example, for f

[Tutor] SAVING & RUNNING A PROGRAM:

2008-10-17 Thread WM
I wrote this two liner. I wanted to save it and then to bring it back as program. IDLE 2.6 >>> brain = 'life' >>> print brain life I saved it as brain.py, IDLE 2.6 >>> brain = 'life' >>> print brain life >>> python/brain.py Traceback (most recent call last): File "", line 2,

Re: [Tutor] [Edu-sig] school physics/math courses

2008-10-17 Thread Edward Cherlin
On Thu, Oct 16, 2008 at 4:15 AM, roberto <[EMAIL PROTECTED]> wrote: > hello > (i am rather new in python ...) Have you looked at NumPy and SciPy yet? Or anything written using them? > i am about to start a course of physics and math for students aged > 14-17 (high school) > and i am deeply intere

Re: [Tutor] name 'x" is not defined

2008-10-17 Thread Kent Johnson
On Fri, Oct 17, 2008 at 4:59 AM, carme colominas <[EMAIL PROTECTED]> wrote: > can someone explain > me, what does it mean that a function is not defined and how to proceed? > > For example, for fdist: > >>> for word in nltk.corpus.brown.words(): > if fdist(word)>= 3: > print(word) > > I

Re: [Tutor] SAVING & RUNNING A PROGRAM:

2008-10-17 Thread Sharad Ganapathy
WM wrote: I wrote this two liner. I wanted to save it and then to bring it back as program. IDLE 2.6 >>> brain = 'life' >>> print brain life I saved it as brain.py, IDLE 2.6 >>> brain = 'life' >>> print brain life >>> python/brain.py Traceback (most recent call last): File ""

Re: [Tutor] SAVING & RUNNING A PROGRAM:

2008-10-17 Thread Kent Johnson
On Fri, Oct 17, 2008 at 4:09 AM, WM <[EMAIL PROTECTED]> wrote: > I wrote this two liner. I wanted to save it and then to bring it back as > program. See http://hkn.eecs.berkeley.edu/~dyoo/python/idle_intro/ Look for the section that starts, "Now that we've paddled long enough, we might be asking

Re: [Tutor] retrieving httponly cookies on accessing webpage with urllib2

2008-10-17 Thread Kent Johnson
On Thu, Oct 16, 2008 at 11:40 PM, xbmuncher <[EMAIL PROTECTED]> wrote: > I'm trying to mimic my firefox browser in requesting a webpage with python. > So I tried trusty ol' urllib2 to request it in python: > import urllib2 > > > url = 'http://www.website.com' > > #headers > h = { > 'User-Agent' :

[Tutor] automatically generate python/pylons documentation

2008-10-17 Thread Arun Tomar
hi! I'm trying to generate documentation for my pylons web application. my personal opinion: 1. pudge: I've reviewed pudge. it was not very useful & hard to know as most of the links are not working on the site and lack of support. 2. epydoc I liked epydoc, the generated document looks more like

Re: [Tutor] [Edu-sig] school physics/math courses

2008-10-17 Thread Shuai Jiang (Runiteking1)
How about http://projecteuler.net/? From their website: > Project Euler is a series of challenging mathematical/computer programming > problems that will require more than just mathematical insights to solve. > Although mathematics will help you arrive at elegant and efficient methods, > the use o

[Tutor] documentation tut.html Error 404

2008-10-17 Thread Marco
hi list, the link provided in one of the initiation mails from the tutor-mailinglist: ... http://www.python.org/doc/current/tut/tut.html ... responds with a 404 error. Best regards, marco ___ Tutor maillist - Tutor@python.org http://mail.python.o

Re: [Tutor] documentation tut.html Error 404

2008-10-17 Thread Danny Yoo
On Fri, Oct 17, 2008 at 11:57 AM, Marco <[EMAIL PROTECTED]> wrote: > hi list, > > the link provided in one of the initiation mails from the tutor-mailinglist: > > ... > http://www.python.org/doc/current/tut/tut.html Ok, thanks. This should be fixed now. The link appears to have moved to: ht

Re: [Tutor] documentation tut.html Error 404

2008-10-17 Thread Alan Gauld
"Marco" <[EMAIL PROTECTED]> wrote the link provided in one of the initiation mails from the tutor-mailinglist: ... http://www.python.org/doc/current/tut/tut.html ... responds with a 404 error. So it does, It should be http://docs.python.org/tutorial/ Good catch! Hopefully one of our list a

Re: [Tutor] name 'x" is not defined

2008-10-17 Thread Alan Gauld
"carme colominas" <[EMAIL PROTECTED]> wrote I'm a linguist and absolut new on Python; I'm trying to follow the first chapter of *Natural Language Processing in Python. I'm not familiar witrh it but if the code you have is from the first chapter then I suggest you should go through one of the

Re: [Tutor] documentation tut.html Error 404

2008-10-17 Thread Marc Tompkins
> > ... >> http://www.python.org/doc/current/tut/tut.html >> > Reminds me of Christopher Robin helping Winnie-the-Pooh try to fool the bees: "Tut tut, looks like rain! Tut tut, looks like rain!" -- www.fsrtechnologies.com ___ Tutor maillist - Tutor@

Re: [Tutor] documentation tut.html Error 404

2008-10-17 Thread Marc Tompkins
> > http://www.python.org/doc/current/tut/tut.html >> > Reminds me of Christopher Robin helping Winnie-the-Pooh try to fool the bees: "Tut tut, looks like rain! Tut tut, looks like rain!" At least that's how Stanley Holloway said it on the Disney record I had as a child... -- www.fsrtechnologies

Re: [Tutor] school physics/math courses

2008-10-17 Thread Wayne Watson
Title: Signature.html Nothing from the physics newsgroup nor from a group on education that has inight to 9-12 grades. Wayne Watson wrote: I posted a query on sci.physics (newsgroup) on this question. I'll get back if anything useful pops up. Try Amazon with a search on python science,

Re: [Tutor] Convert a Sequence of Images into an AVI file

2008-10-17 Thread Wayne Watson
Title: Signature.html It looks like the ticket is Wayne Watson wrote: I have a file of images shot at a frame rate of 1/30th of a second. They are 640 by 480 bytes followed immediately by up to 200 smaller images 128x128 pixels. The software I'm using will convert this into a mov file. I'd li