t learning pyhton as well being intended to take a different
form in an artwork I'm working on.
thanks.
petef
On Sun, Jul 12, 2009 at 7:40 PM, Dave Angel wrote:
> Pete Froslie wrote:
>
>> so, I've been playing with the functions a bit-- took a little time to get
>>
response = re.split(r"[/|/,\n, , ,:\"\"\.?,)(\-\<>\[\]'\r']",
> fin.read())
> thesaurus = API_URL + response[word_number] + '/' #API_URL is
> established at the start of the code
> return thesaurus
>
Pete F
On Sun, Jul 12, 2009 at 4:00 AM
llowing me to call 'hello' later when
I 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 wrote:
> Pete Froslie wrote:
>
>>
ch I can't seem to get to work
>
> re.sub works on a text 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 o
for past,
> present,
> > future. So they rely on other words to indicate which they might mean.
>
>
> Chinese also has the problem of relying on intonation to distinguish
> between
> identically spelled words. We have the same in English - bow(on stage) v
> bow
>
gure
out a natural language parser.. as it turns out, I don't mind it for this
project--gibberish is fine. Though I am now pretty curious about NL
parsers-- thanks for the example..
I will look at using the split method of strings..
On Wed, Jul 8, 2009 at 11:12 PM, Rich Lovely wrote:
> 200
e following:
urllib.urlopen('
http://words.bighugelabs.com/api/2/e413f24801aa30b8d441ca43a64317be/moving/').read(SOMETHINGHERE)
On Wed, Jul 8, 2009 at 10:29 PM, Rich Lovely wrote:
> 2009/7/9 Pete Froslie :
> > No problem, thanks for taking the time.
> >
> > I
the next word
in the text file 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 wrote:
> 2009/7/9 Pete Froslie :
> > Great Richard, thanks..
> >
> > I'm getting an error as follows:
> &
'with'
cheers
On Wed, Jul 8, 2009 at 9:41 PM, Rich Lovely wrote:
> 2009/7/9 Pete Froslie :
> >
> >
> > -- Forwarded message --
> > From: Pete Froslie
> > Date: Wed, Jul 8, 2009 at 8:53 PM
> > Subject: Re: [Tutor] thesaurus
>
-- Forwarded message --
From: Pete Froslie
Date: Wed, Jul 8, 2009 at 8:53 PM
Subject: Re: [Tutor] thesaurus
To: Robert Berman
Thanks Robert,
I will try this out.. at the moment I'm playing with an API from '
http://words.bighugelabs.com/'. It works and pulls th
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
the
like The Missing Manual
> for Mac OS X or almost any other in depth Moc OS X
> manual should explain what you need 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 Pro
7, 2009 at 5:14 PM, Alan Gauld wrote:
>
> "Pete Froslie" 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
ce 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://www.froslie.net
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
f.
cheers
On Tue, Jul 7, 2009 at 12:54 PM, Bill Campbell 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 'p
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
h
2009 at 4:47 PM, Pete Froslie 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
> 's
pypi/simplejson
Can 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 Frosl
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 i
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 int
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
21 matches
Mail list logo