classifier systems re-coded in Python?

Jeremy Bowers newsfroups at jerf.org
Tue Nov 19 00:12:31 EST 2002


On Tue, 19 Nov 2002 03:48:25 +0000, Robert Oschler wrote:
> Terry,
> 
> Is google() a real command from some Python module, or were you just being
> Programmer-ish? If it's from a module, is it PyGoogle, or something else?
> 
> thx

To my knowlege, that's not a function in any python module, but perhaps it
should be. I think you'll find this implementation meets the specs:



import urllib
import webbrowser

def google(s):
    webbrowser.open("http://www.google.com/search?" + \
        urllib.urlencode({"q":s}))

google('Holland learning classifier Python')




More information about the Python-list mailing list