Re: [Tutor] server used in python

2011-03-28 Thread James Thornton
On Mon, Mar 28, 2011 at 3:27 AM, ema francis wrote: > I am learnning python for  3 months from now. I wanted to know how and what > server is used in python web development?Looking for your help When you're developing a Python Web application, most people use a development server that automa

[Tutor] super() with Multiple Inheritance

2011-04-14 Thread James Thornton
Why does user.params() not return all the params up the inheritance chain? -- It's not including the params defined in Person() -- notice Vertex() does not have a params() method. class Element(object): def __init__(self,element_type): self.oid = None self.uuid = uuid.uuid4()

Re: [Tutor] super() with Multiple Inheritance

2011-04-14 Thread James Thornton
s. It is a mechanism from managing multiple inheritance On Thu, Apr 14, 2011 at 12:25 PM, Alan Gauld wrote: > > "James Thornton" wrote > >> Why does user.params() not return all the params up the inheritance >> chain? -- It's not including the params defined in P

Re: [Tutor] NLP

2011-04-20 Thread James Thornton
http://scikit-learn.sourceforge.net/ On Fri, Apr 8, 2011 at 6:52 AM, Ranjith Kumar wrote: > Hi all, >     Can anyone suggest me any best Natural Language Processing in > python other than nltk. > -- > Cheers, > Ranjith Kumar K, > Chennai. > http://ranjithtenz.wordpress.com > > > > > _

Re: [Tutor] Programmatically Post to Pastebin

2011-05-10 Thread James Thornton
Pocoo (the creators of Flask) have a Python API for a pastebin they developed called LodgeIt. You can use the hosted version, or the download the source code and host your own (http://www.pocoo.org/projects/lodgeit/). http://paste.pocoo.org/ http://paste.pocoo.org/about/ http://paste.pocoo.org/hel

Re: [Tutor] How do I learn python for web development

2011-07-31 Thread James Thornton
m introductory to more advanced: http://www.quora.com/How-can-I-learn-to-program-in-Python/answer/James-Thornton And then do the Flask Quickstart and Tutorial (http://flask.pocoo.org/docs/). Flask is an elegantly-designed Python Web microframework so it's great for beginners because you don

Re: [Tutor] file fetcher class object through http

2011-08-19 Thread James Thornton
> Essentially, I want to write a class that finds, and downloads a file from a > web server. mostly, I am looking for a smart class implementation that has > well-considered API and method choices. httplib2 (http://code.google.com/p/httplib2) by Joe Gregorio of Google is what I use. It has an intu

Re: [Tutor] Can't find error :-(

2011-08-28 Thread James Thornton
If you copied and pasted the line, it's possible the quote marks are of the wrong encoding -- try deleting the quote marks and adding them back. On Sun, Aug 28, 2011 at 6:34 AM, Lisi wrote: > Here is the error message: > /usr/local/bin/AddressBook: line 6: syntax error near unexpected token `(' >