Re: [Tutor] How do I fix the following error? Code and error messagesupplied.

2005-08-04 Thread Alan G
How do I fix the following error: Traceback (most recent call last): File D:\Python24\password.py, line 51, in load_file [site,ID,passcard] = string.split(in_line,,) File D:\Python24\lib\string.py, line 292, in split return s.split(sep, maxsplit) AttributeError: 'list' object has no

Re: [Tutor] Web Browser in Python

2005-08-04 Thread Alan G
As for the size of project, I have been pursuing programming as a hobby for years and really enjoy it.I dont have any specific timeframe or deadline in mind so the size doesnt matter :). In that case go to it! :-) But you might like to consider using wxPython because as someone else

Re: [Tutor] Extract information from an HTML table

2005-08-04 Thread David Holland
Danny, Thanks for that I will give a go and see how it works. David Yahoo! Messenger NEW - crystal clear PC to PC calling worldwide with voicemail ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] removal

2005-08-04 Thread Reed L. O'Brien
Roger Sell wrote: Please remove from the Tutor recipient list. Thanks, Roger Sell ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor Unsubscribe yourself. Don't be lazy. You got on , you can get off. Hint try

[Tutor] a dictionary method good for this process

2005-08-04 Thread Srinivas Iyyer
Dear group: I have two lists and I have to match the element in the first list to element in second list and print the line from second list: Example: listA =['apple','baby','cat'] listB =['fruit\tapple','tree\tapple','fruit\tmango', 'human\tbaby' 'infant\tbaby'

Re: [Tutor] Getting web pages and formatting text

2005-08-04 Thread Kent Johnson
David Holland wrote: I am trying to make a report I do easier (ie via a program not manually). Two questions :- 1) Is it possible to download to your hard drive using python various web pages ie if the pages have the structure http://address/node=xxxpagretree=fromdid=nxobjectid=ny

Re: [Tutor] How do I fix the following error? Code and errormessage supplied.

2005-08-04 Thread Nathan Pinno
Thank you to all. The Password Program works perfectly. Time for me to relax and finish up my other loose project ends, and then I'll be able to start another major project. - Original Message - From: Nathan Pinno [EMAIL PROTECTED] To: Danny Yoo [EMAIL PROTECTED] Cc: Tutor mailing list

Re: [Tutor] a dictionary method good for this process

2005-08-04 Thread Kent Johnson
Srinivas Iyyer wrote: Dear group: I have two lists and I have to match the element in the first list to element in second list and print the line from second list: Example: listA =['apple','baby','cat'] listB =['fruit\tapple','tree\tapple','fruit\tmango', 'human\tbaby'

Re: [Tutor] [Metakit] Mk4py

2005-08-04 Thread Luis N
On 8/4/05, Brian Kelley [EMAIL PROTECTED] wrote: Yeah the spaces kill me as well sometimes, and then I think that the spaces are okay sometimes. The real issue is that a metakit column name can include any printable character except a comma ,. So, now you know :) Here is another gotcha

[Tutor] ASP And Python - Calling Python Scripts from within the web page

2005-08-04 Thread Gooch, John
I have basic Python functions working within ASP pages, but I am having problems passing arguments to python scripts when they are called. Here is what I have so far: - %@ Language = Python% % import os import sys sys.path.append(d:/batch2000) import

Re: [Tutor] ASP And Python - Calling Python Scripts from within the web page

2005-08-04 Thread Danny Yoo
sys.argv = [ 'junk', '-u jgooch.admin' ] Hi John, The code highlighted above looks unusual. Can you explain why the code assigns to sys.argv? Ah, ok, I assume that you're trying to pass state with the 'chgpwd_enq' program:

[Tutor] fftpack

2005-08-04 Thread Jeff Peery
Hello, does anyone know how to open the fft function? I want to view it in the IDLE although the only file i have is the fftpack.pyd which I beleive is a compiled file and it looks like mush. ___ Tutor maillist - Tutor@python.org

[Tutor] fyi - re: fft

2005-08-04 Thread Jeff Peery
hello, thought I'd post my progress with fiddling with the FFT. import FFT I've been using fft by taking the real part with: myFFT = abs(FFT.fft()) the returned values are the fourier coefficients starting with a0 the old thing is that the output is symmetrical about N/2 where nN/2 is the

Re: [Tutor] Getting web pages and formatting text

2005-08-04 Thread Alan G
Two questions :- 1) Is it possible to download to your hard drive using python various web pages ie if the pages have the structure http://address/node=xxxpagretree=fromdid=nxobjectid=ny YEs, look at the urlib module documentation. 2) Is it possible to use python to put text into a table

Re: [Tutor] fftpack

2005-08-04 Thread Kent Johnson
Jeff Peery wrote: Hello, does anyone know how to open the fft function? I want to view it in the IDLE although the only file i have is the fftpack.pyd which I beleive is a compiled file and it looks like mush. It is compiled from C. The comment in fft.py says, The underlying code for these

Re: [Tutor] How do I fix the following error? Code and errormessagesupplied.

2005-08-04 Thread Alan G
Thank you to all. The Password Program works perfectly. Time for me to relax and finish up my other loose project ends, and then I'll be able to start another major project. That's great Nathan. Maybe now would be a good time to revisit some of the tutorials to pick up some of the basic

Re: [Tutor] Getting web pages and formatting text

2005-08-04 Thread Kent Johnson
Kent Johnson wrote: There is a nice recipe in the online Python Cookbook for formatting tabular data. Here it is: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/267662 Kent ___ Tutor maillist - Tutor@python.org

Re: [Tutor] What's the invalid syntax? Code supplied

2005-08-04 Thread Terry Carroll
On Thu, 4 Aug 2005, Bob Gailer wrote: At 06:51 PM 8/3/2005, Nathan Pinno wrote: That's part of my signature. It describes who I am. I would like to know who you are, but the signature does not convey enough information. My guess is that you are on the crew of a MacDonald's restaurant in

Re: [Tutor] imbedding python into another program?

2005-08-04 Thread Andre Roberge
On 8/3/05, Jeff Peery [EMAIL PROTECTED] wrote: Andre, thanks for the help with this. I put it to work yesterday and it works perfectly. was wondering if it is possible to import modules without a users having to type 'import whatever'. for example in my application I would like the user