Re: A Question about Python

2014-05-06 Thread Denis McMahon
On Tue, 06 May 2014 05:09:25 -0700, doaa eman wrote: > I'm a researcher .. Obviously part of your PhD research is going to be whether the citeulike_api 0.1.3dev python package can help you extract the information you want from http://citeulike.org/ We look forwards to seeing your conclusio

Re: A Question about Python

2014-05-06 Thread Rustom Mody
On Tuesday, May 6, 2014 5:39:25 PM UTC+5:30, doaa eman wrote: > hello; > > I'm a researcher from Cairo University (Information science Dep.) > i want to know how can i use Paython language on CiteULike > i need to use it for extracting only tagged articles in the field > of > medicine for exampl

A Question about Python

2014-05-06 Thread doaa eman
hello; I'm a researcher from Cairo University (Information science Dep.) i want to know how can i use Paython language on CiteULike i need to use it for extracting only tagged articles in the field of medicine for example for my Ph.D research. another question please : can this webpage help me

Re: A question about Python Classes

2011-04-23 Thread Steven D'Aprano
On Sat, 23 Apr 2011 13:30:02 -0700, chad wrote: > On Apr 22, 12:47 pm, Carl Banks wrote: >> On Thursday, April 21, 2011 11:00:08 AM UTC-7, MRAB wrote: >> > On 21/04/2011 18:12, Pascal J. Bourguignon wrote: >> > > chad  writes: >> >> > >> Let's say I have the following >> >> > >> class BaseHan

Re: A question about Python Classes

2011-04-23 Thread chad
On Apr 22, 12:47 pm, Carl Banks wrote: > On Thursday, April 21, 2011 11:00:08 AM UTC-7, MRAB wrote: > > On 21/04/2011 18:12, Pascal J. Bourguignon wrote: > > > chad  writes: > > > >> Let's say I have the following > > > >> class BaseHandler: > > >>      def foo(self): > > >>          print "He

Re: A question about Python Classes

2011-04-22 Thread Carl Banks
On Thursday, April 21, 2011 11:00:08 AM UTC-7, MRAB wrote: > On 21/04/2011 18:12, Pascal J. Bourguignon wrote: > > chad writes: > > > >> Let's say I have the following > >> > >> class BaseHandler: > >> def foo(self): > >> print "Hello" > >> > >> class HomeHandler(BaseHandler): >

Re: A question about Python Classes

2011-04-22 Thread Ian Kelly
On Fri, Apr 22, 2011 at 7:49 AM, Kyle T. Jones wrote: >> You don't need to create an instance of BaseHandler.  You have the >> class, Python knows you have the class -- Python will look there if the >> subclasses lack an attribute. >> >> ~Ethan~ >> > > Really?  That's not at all how I thought it w

Re: A question about Python Classes

2011-04-22 Thread Ethan Furman
Kyle T. Jones wrote: Ethan Furman wrote: chad wrote: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I nev

Re: A question about Python Classes

2011-04-22 Thread Kyle T. Jones
Ethan Furman wrote: chad wrote: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I never created an instance

Re: A question about Python Classes

2011-04-22 Thread Jean-Michel Pichavant
MRAB wrote: On 21/04/2011 18:12, Pascal J. Bourguignon wrote: chad writes: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHa

Re: A question about Python Classes

2011-04-21 Thread Steven D'Aprano
On Thu, 21 Apr 2011 19:00:08 +0100, MRAB wrote: >>> How can HomeHandler call foo() when I never created an instance of >>> BaseHandler? >> >> But you created one! >> > No, he didn't, he created an instance of HomeHandler. > >> test is an instance of HomeHandler, which is a subclass of BaseHandler

Re: A question about Python Classes

2011-04-21 Thread Ethan Furman
chad wrote: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I never created an instance of BaseHandler? Yo

Re: A question about Python Classes

2011-04-21 Thread MRAB
On 21/04/2011 18:12, Pascal J. Bourguignon wrote: chad writes: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call fo

Re: A question about Python Classes

2011-04-21 Thread Terry Reedy
On 4/21/2011 11:43 AM, chad wrote: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I never created an ins

Re: A question about Python Classes

2011-04-21 Thread Pascal J. Bourguignon
chad writes: > Let's say I have the following > > class BaseHandler: > def foo(self): > print "Hello" > > class HomeHandler(BaseHandler): > pass > > > Then I do the following... > > test = HomeHandler() > test.foo() > > How can HomeHandler call foo() when I never created an in

Re: A question about Python Classes

2011-04-21 Thread Benjamin Kaplan
On Apr 21, 2011 12:55 PM, "chad" wrote: > > On Apr 21, 9:30 am, Jean-Michel Pichavant > wrote: > > chad wrote: > > > Let's say I have the following > > > > > class BaseHandler: > > > def foo(self): > > > print "Hello" > > > > > class HomeHandler(BaseHandler): > > > pass > > >

Re: A question about Python Classes

2011-04-21 Thread chad
On Apr 21, 9:30 am, Jean-Michel Pichavant wrote: > chad wrote: > > Let's say I have the following > > > class BaseHandler: > >     def foo(self): > >         print "Hello" > > > class HomeHandler(BaseHandler): > >     pass > > > Then I do the following... > > > test = HomeHandler() > > test.fo

Re: A question about Python Classes

2011-04-21 Thread Jean-Michel Pichavant
chad wrote: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I never created an instance of BaseHandler? Cha

Re: A question about Python Classes

2011-04-21 Thread Rafael Durán Castañeda
You did: >>> class BaseHandler: ... def foo(self): ... print "Hello" ... >>> class HomerHandler(BaseHandler): ... pass ... >>> test = HomerHandler() >>> test.foo() Hello >>> isinstance(test, BaseHandler) True >>> isinstance(test, HomerHandler) True >>> You could say test is a

A question about Python Classes

2011-04-21 Thread chad
Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I never created an instance of BaseHandler? Chad -- http://m

Re: A question about Python versions

2010-01-13 Thread Gib Bogle
Terry Reedy wrote: On 1/13/2010 1:09 AM, Gib Bogle wrote: I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fairly recen

Re: A question about Python versions

2010-01-13 Thread Gib Bogle
Sridhar Ratnakumar wrote: On 1/12/2010 10:09 PM, Gib Bogle wrote: I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fair

Re: A question about Python versions

2010-01-12 Thread Terry Reedy
On 1/13/2010 1:09 AM, Gib Bogle wrote: I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fairly recent Python version, 2.

Re: A question about Python versions

2010-01-12 Thread Sridhar Ratnakumar
On 1/12/2010 10:09 PM, Gib Bogle wrote: I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fairly recent Python version, 2

Re: A question about Python versions

2010-01-12 Thread Chris Rebert
On Tue, Jan 12, 2010 at 10:09 PM, Gib Bogle wrote: > I am learning Python, and using PyQt to develop a GUI that will be used to > run a Fortran program on Windows, Linux and Mac OS X (I think Python is > great, btw). Without thinking about it I downloaded and started working with > a fairly recent

A question about Python versions

2010-01-12 Thread Gib Bogle
I am learning Python, and using PyQt to develop a GUI that will be used to run a Fortran program on Windows, Linux and Mac OS X (I think Python is great, btw). Without thinking about it I downloaded and started working with a fairly recent Python version, 2.5.4. I've now become aware of the exi

Re: a question about python

2009-11-26 Thread 李白,字一日
thanks. On Nov 26, 5:45 pm, Steven D'Aprano wrote: > On Thu, 26 Nov 2009 01:21:39 -0800, 李白,字一日 wrote: > > hi, > > i have a question on python programming. > > > let file a.py has a class named a, > >   class a(): > >     __G__ = "" > > Methods with double leading and trailing underscores are

Re: a question about python

2009-11-26 Thread Steven D'Aprano
On Thu, 26 Nov 2009 01:21:39 -0800, 李白,字一日 wrote: > hi, > i have a question on python programming. > > let file a.py has a class named a, > class a(): > __G__ = "" Methods with double leading and trailing underscores are reserved for Python's special use. You should find a different

a question about python

2009-11-26 Thread 李白,字一日
hi, i have a question on python programming. let file a.py has a class named a, class a(): __G__ = "" in file b.py i need to insert an attribute __C__ to class a it would be as if class a defined in file a.py like this: class a(): __G__ = "" __C__ = "2" how this be d

Re: A question about python and xml

2008-05-09 Thread J. Cliff Dyer
On Fri, 2008-05-09 at 08:39 -0700, Holden wrote: > Hello everyone I heard this was a good community to go too for help > and advice. I want to make a web site that uses the python programming > language which I am VERY new at. This website would store simple data > such as names in a form. At first

Re: A question about python and xml

2008-05-09 Thread Stefan Behnel
Holden wrote: > I want to make a web site that uses the python programming > language which I am VERY new at. This website would store simple data > such as names in a form. At first I wanted to use mysql to store the > data but I want to export the data using xml. > > So say if a user logged in t

A question about python and xml

2008-05-09 Thread Holden
Hello everyone I heard this was a good community to go too for help and advice. I want to make a web site that uses the python programming language which I am VERY new at. This website would store simple data such as names in a form. At first I wanted to use mysql to store the data but I want to ex