Re: [Tutor] thesaurus

2009-07-12 Thread Pete Froslie
at the start of the code return thesaurus Pete F On Sun, Jul 12, 2009 at 4:00 AM, Alan Gauld alan.ga...@btinternet.comwrote: Pete Froslie fros...@gmail.com wrote This seems the basic form for a function: *def** hello*(): *print* Hello World! *return* That is a very limited form

Re: [Tutor] thesaurus

2009-07-12 Thread Pete Froslie
...@ieee.org wrote: Pete Froslie wrote: so, I've been playing with the functions a bit-- took a little time to get the hang of them after I started that other mess. Initially, I've done the opposite suggested here by creating functions without the input values. I do see the where it will pay

Re: [Tutor] thesaurus

2009-07-11 Thread Pete Froslie
@python.org http://mail.python.org/mailman/listinfo/tutor -- Pete Froslie 617.314.0957 http://www.froslie.net ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] thesaurus

2009-07-11 Thread Pete Froslie
string it doesn't affect the file. read the content into a string, close the input file. Use re.sub to make the changes (or even just the replace method of strings) then write the changed string back out to the file. HTH, Alan G -- Pete Froslie 617.314.0957 http://www.froslie.net

Re: [Tutor] thesaurus

2009-07-11 Thread Pete Froslie
need it. Does this also mean that I will be able to call those functions separately later when I import 'thesaurus.py' into a new code also? Pete F On Sat, Jul 11, 2009 at 5:38 PM, Dave Angel da...@ieee.org wrote: Pete Froslie wrote: thanks for the advice Alan.. I am wondering about

[Tutor] thesaurus

2009-07-08 Thread Pete Froslie
okay.. I'm getting the hang of python a little more. I'd like to try something a bit more complicated (for me). I would like to convert each word in a series of paragraphs to its first matching synonym in a thesaurus. I'm a bit stuck as how to start.. I think I understand how to split and parse

[Tutor] Fwd: thesaurus

2009-07-08 Thread Pete Froslie
-- Forwarded message -- From: Pete Froslie fros...@gmail.com Date: Wed, Jul 8, 2009 at 8:53 PM Subject: Re: [Tutor] thesaurus To: Robert Berman berma...@cfl.rr.com Thanks Robert, I will try this out.. at the moment I'm playing with an API from ' http://words.bighugelabs.com

Re: [Tutor] Fwd: thesaurus

2009-07-08 Thread Pete Froslie
On Wed, Jul 8, 2009 at 9:41 PM, Rich Lovely roadier...@googlemail.comwrote: 2009/7/9 Pete Froslie fros...@gmail.com: -- Forwarded message -- From: Pete Froslie fros...@gmail.com Date: Wed, Jul 8, 2009 at 8:53 PM Subject: Re: [Tutor] thesaurus To: Robert Berman

Re: [Tutor] Fwd: thesaurus

2009-07-08 Thread Pete Froslie
and then replaces it with the one that is looked up.. working on that now. Pete F On Wed, Jul 8, 2009 at 10:10 PM, Rich Lovely roadier...@googlemail.comwrote: 2009/7/9 Pete Froslie fros...@gmail.com: Great Richard, thanks.. I'm getting an error as follows: from __future__ import

Re: [Tutor] Fwd: thesaurus

2009-07-08 Thread Pete Froslie
://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').read(SOMETHINGHERE) On Wed, Jul 8, 2009 at 10:29 PM, Rich Lovely roadier...@googlemail.comwrote: 2009/7/9 Pete Froslie fros...@gmail.com: No problem, thanks for taking the time. I'm actually trying to resolve

Re: [Tutor] Fwd: thesaurus

2009-07-08 Thread Pete Froslie
: 2009/7/9 Pete Froslie fros...@gmail.com: I see.. that makes sense. Kind of new with python -- sorry for that. after printing using this: print urllib.urlopen(' http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').read(http://words.bighugelabs.com/api/2

[Tutor] mac os x executable

2009-07-07 Thread Pete Froslie
Hi, I'm having trouble finding good tutorials on creating standalone executable files for mac os x.. I've been looking at 'py2app', but can't seem get a solid grasp. Any help would be greatly appreciated! cheers ___ Tutor maillist - Tutor@python.org

Re: [Tutor] mac os x executable

2009-07-07 Thread Pete Froslie
, 2009 at 12:54 PM, Bill Campbell b...@celestial.net wrote: On Tue, Jul 07, 2009, Pete Froslie wrote: Hi, I'm having trouble finding good tutorials on creating standalone executable files for mac os x.. I've been looking at 'py2app', but can't seem get a solid grasp. Any help would

Re: [Tutor] mac os x executable

2009-07-07 Thread Pete Froslie
Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- Pete Froslie http

Re: [Tutor] mac os x executable

2009-07-07 Thread Pete Froslie
alan.ga...@btinternet.comwrote: Pete Froslie fros...@gmail.com wrote I'm having trouble finding good tutorials on creating standalone executable files for mac os x.. I've been looking at 'py2app', but can't seem get a solid grasp. Any help would be greatly appreciated! My first question

Re: [Tutor] mac os x executable

2009-07-07 Thread Pete Froslie
to know. But if you are taking the trouble to learn Python you really should learn the OS fundamentals too Alan Gauld Author of the Learn To Program website http://www.alan-g.me.uk/ -- *From:* Pete Froslie fros...@gmail.com *To:* Alan Gauld alan.ga

[Tutor] egg

2009-07-01 Thread Pete Froslie
anyone suggest the correct way to do this as it seems it is not as direct? I've read the EasyInstall documentation and believe I understand how, but am a little confused regarding my python paths. Using Mac OSX 10.5.7 Thanks so much, -- Pete Froslie http://www.froslie.net

Re: [Tutor] egg

2009-07-01 Thread Pete Froslie
:47 PM, Pete Froslie fros...@gmail.com wrote: Hi, I have a basic question concerning pythons eggs. I have setup easy install and used it to install mechanize-- this was easy as I only needed to type in 'Easy_Install Mechanize' in terminal. Now I need to install 'simplejson 2.0.9' from this here

[Tutor] DOMForm

2009-06-26 Thread Pete Froslie
Hi, so I've been using Mechanize as suggested to me through tutor to access web forms and fill them out.. I've found some success though I wish there to be more documentation than docstrings.. as I am new to python and not incredibly experienced with code. I am able to fill forms and submit them

[Tutor] filling in web forms

2009-06-20 Thread Pete Froslie
I would to access web forms and fill them out. I am feeling that the 'ClientForm' module makes sense as a starting place, but am concerned that maybe it is dated and that there might be a better starting option.. can anyone help start me along the correct path as I am pretty new to python and not

Re: [Tutor] filling in web forms

2009-06-20 Thread Pete Froslie
Thank you so much.. I will start looking into twill and I just finished installing Mechanize. FYI: I use Netbeans as my IDE and encountered an error that took some time to resolve, as follows: A java.lang.NoClassDefFoundError exception has occurred the resolution can be found here if you run