Re: On-topic: alternate Python implementations

2012-08-03 Thread Stefan Behnel
Steven D'Aprano, 04.08.2012 08:15: > Most people are aware, if only vaguely, of the big Four Python > implementations: > > CPython, or just Python, the reference implementation written in C. > IronPython, written in .NET. > Jython, written in Java. > PyPy, the optimizing implementation written in

Re: On-topic: alternate Python implementations

2012-08-03 Thread Chris Angelico
On Sat, Aug 4, 2012 at 4:15 PM, Steven D'Aprano wrote: > CLPython, an implementation of Python written in Common Lisp. > > Berp - a compiler which works by translating Python to Haskell and > compiling that. Okay. WHY? CLPython gives some reason, but how often do you need to bridge that particula

On-topic: alternate Python implementations

2012-08-03 Thread Steven D'Aprano
Most people are aware, if only vaguely, of the big Four Python implementations: CPython, or just Python, the reference implementation written in C. IronPython, written in .NET. Jython, written in Java. PyPy, the optimizing implementation written in Python (actually, it's written in a subset of P

Re: Eclipse and the Python plugin

2012-08-03 Thread rusi
On Aug 3, 10:04 pm, lipska the kat wrote: > > 117 methods seems a lot doesn't it. I'm still trying to get my head > around Python packages, I think Eclipse will help me with this and the > whole module mix of functions and classes is taking a while to get used > to. The standard included libraries

test

2012-08-03 Thread sistema
test -- http://mail.python.org/mailman/listinfo/python-list

trouble with pyplot in os x

2012-08-03 Thread Eric
I'm just starting to futz around with matplotlib and I tried to run this example from the matplotlib doc page (it's the imshow() example): import numpy as np import matplotlib.cm as cm import matplotlib.mlab as mlab import matplotlib.pyplot as plt delta = 0.025 x = y = np.arange(-3.0, 3.0, delta)

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Steven W. Orr
On 8/3/2012 4:48 PM, Tobiah wrote: I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of instantiation. Web2py has a FORM c

Re: dbf.py API question

2012-08-03 Thread Tim Chase
On 08/03/12 08:11, Ethan Furman wrote: > So far all feedback is for the flag, so that's what I'll do. I agree with the flag, though would also be reasonably content with using None for the filename to indicate in-memory rather than on-disk storage. -tkc -- http://mail.python.org/mailman/list

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 09:35 PM, Steven D'Aprano wrote: > On Fri, 03 Aug 2012 19:03:20 -0400, Dave Angel wrote: > >> On 08/03/2012 06:41 PM, Chris Angelico wrote: >>> On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: I'm sorry, what's not clear? Nonetype is not the same as NoneType. Python is ca

Re: attribute is accessed from Nonetype

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 19:03:20 -0400, Dave Angel wrote: > On 08/03/2012 06:41 PM, Chris Angelico wrote: >> On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: >>> I'm sorry, what's not clear? Nonetype is not the same as NoneType. >>> Python is case sensitive. >> There isn't a NoneType either. I get

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 13:48:08 -0700, Tobiah wrote: > I have a bunch of classes from another library (the html helpers from > web2py). There are certain methods that I'd like to add to every one of > them. So I'd like to put those methods in a class, and pass the parent > at the time of instantiat

Re: attribute is accessed from Nonetype

2012-08-03 Thread Steven D'Aprano
On Sat, 04 Aug 2012 08:41:20 +1000, Chris Angelico wrote: > On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: >> I'm sorry, what's not clear? Nonetype is not the same as NoneType. >> Python is case sensitive. > > There isn't a NoneType either. I get a NameError. Shame on you :-P Ramit Prasad

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Nobody
On Fri, 03 Aug 2012 13:48:08 -0700, Tobiah wrote: > I have a bunch of classes from another library (the html helpers > from web2py). There are certain methods that I'd like to add to > every one of them. So I'd like to put those methods in a class, > and pass the parent at the time of instantiat

Re: Eclipse and the Python plugin

2012-08-03 Thread Cousin Stanley
lipska the kat wrote: > > I can now create, debug and test a simple IRC server > written in Java and an IRC Bot that I am attempting > to build in Python > For a bit of inspiration python-irc-bot-wise you might look at supybot It's currently available in debian wheezy

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 06:41 PM, Chris Angelico wrote: > On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: >> I'm sorry, what's not clear? Nonetype is not the same as NoneType. >> Python is case sensitive. > There isn't a NoneType either. I get a NameError. > > ChrisA NoneType isn't in the builtin namesp

Re: attribute is accessed from Nonetype

2012-08-03 Thread Chris Angelico
On Sat, Aug 4, 2012 at 8:20 AM, Dave Angel wrote: > I'm sorry, what's not clear? Nonetype is not the same as NoneType. > Python is case sensitive. There isn't a NoneType either. I get a NameError. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: attribute is accessed from Nonetype

2012-08-03 Thread Dave Angel
On 08/03/2012 03:01 AM, Prasad, Ramit wrote: >> Also, please use the names correctly and consistently. The None object >> (yes, there is only one) is not the same as a none object. And there is >> no standard type called Nonetype. > To be fair, this is not very clear to a beginner. > len(No

Re: Deciding inheritance at instantiation?

2012-08-03 Thread Terry Reedy
On 8/3/2012 4:48 PM, Tobiah wrote: I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of instantiation. Web2py has a FOR

Deciding inheritance at instantiation?

2012-08-03 Thread Tobiah
I have a bunch of classes from another library (the html helpers from web2py). There are certain methods that I'd like to add to every one of them. So I'd like to put those methods in a class, and pass the parent at the time of instantiation. Web2py has a FORM class for instance. I'd like to g

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Daniel Roseman
On Friday, 3 August 2012 16:12:35 UTC+1, atm wrote: > > With my heartfelt condolence, I'd like to inform you all the unfortunate > demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a > strong advocate of Python, Django and Free Software in India. > He had served as the Preside

Re: simplified Python parsing question

2012-08-03 Thread BartC
"Eric S. Johansson" wrote in message news:mailman.2752.1343700723.4697.python-l...@python.org... On 7/30/2012 9:54 PM, Steven D'Aprano wrote: It would please me greatly if you would be willing to try an experiment. live my life for a while. Sit in a chair and tell somebody what to type and w

Re: Eclipse and the Python plugin

2012-08-03 Thread Temia Eszteri
On Fri, 3 Aug 2012 06:54:04 -0700 (PDT), rusi wrote: >On Aug 3, 4:34 pm, lipska the kat wrote: >> A while ago someone asked me what I thought of the Eclipse plugin for >> python, well I just downloaded and installed the latest version of >> Eclipse for Java (Juno) followed by the Python plugin.

Re: Calling Values

2012-08-03 Thread subhabangalore
On Friday, August 3, 2012 10:50:52 PM UTC+5:30, Dennis Lee Bieber wrote: > On Fri, 3 Aug 2012 04:49:46 -0700 (PDT), Subhabrata > > declaimed the following in > > gmane.comp.python.general: > > > > > Dear Group, > > > > > > I am trying to call the values of one function in the another funct

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Javier Guerra Giraldez
On Fri, Aug 3, 2012 at 10:12 AM, Anoop Thomas Mathew wrote: > With my heartfelt condolence, I'd like to inform you all the unfortunate > demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a > strong advocate of Python, Django and Free Software in India. certainly sad news.

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 17:40, Steven D'Aprano wrote: On Fri, 03 Aug 2012 16:51:26 +0100, lipska the kat wrote: I can write a Python class and call it Foo and save it in a file called Bar and it's no big deal (at least Eclipse doesn't get excited) If I try that in Java the sky falls in. :) Correct. Pyth

Re: unable to get simple html file up

2012-08-03 Thread Chris Angelico
On Sat, Aug 4, 2012 at 2:40 AM, Smaran Harihar wrote: > guys i m still waiting for a reply You may get more helpful results if you add more information to your question. Also, be aware that you're asking volunteers to donate their time to you; according to the timestamps, it's less than a day sin

Re: unable to get simple html file up

2012-08-03 Thread Rod Person
On Fri, 3 Aug 2012 09:40:44 -0700 Smaran Harihar wrote: > guys i m still waiting for a reply > > -- Forwarded message -- > From: Smaran Harihar > Date: Thu, Aug 2, 2012 at 12:26 PM > Subject: unable to get simple html file up > To: python-list@python.org > > > Hi, > > I am fo

Re: Eclipse and the Python plugin

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 16:51:26 +0100, lipska the kat wrote: > I can write a > Python class and call it Foo and save it in a file called Bar and it's > no big deal (at least Eclipse doesn't get excited) If I try that in Java > the sky falls in. :) Correct. Python does not require, or even encourage

Fwd: unable to get simple html file up

2012-08-03 Thread Smaran Harihar
guys i m still waiting for a reply -- Forwarded message -- From: Smaran Harihar Date: Thu, Aug 2, 2012 at 12:26 PM Subject: unable to get simple html file up To: python-list@python.org Hi, I am following this tutorial

avlhqw avlhqeavlhqino ovfqalmw avlhqei avlhqeaivscunqw

2012-08-03 Thread Martin Michael Musatov
Thanks to technology, a memorandum of understanding (thanks from Tel Aviva / s, F `u / n (I [I TO rotate HM), and try to think, nature is" E | .. (no offense to kiloton preparation. .. has C, E (Visor / s Chest on Tuesday Kin \ 2 I "auto. Hi Lasso, Wilson vest / Na` martin / NH MW `. brought / \ n

Re: Calling Values

2012-08-03 Thread Steven D'Aprano
On Fri, 03 Aug 2012 04:49:46 -0700, Subhabrata wrote: > I am preferring not to use argument passing It's not 1964 any more and you're not programming in BASIC. What you have just told us is that you prefer not to write good quality programs, and that you prefer to write buggy, hard to maintain

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 14:54, rusi wrote: On Aug 3, 4:34 pm, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. Thanks Lipska for reporting b

Re: Calling Values

2012-08-03 Thread Ethan Furman
subhabangal...@gmail.com wrote: On Friday, August 3, 2012 5:19:46 PM UTC+5:30, Subhabrata wrote: Dear Group, I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print "The Second Number is:",num

RE: Calling Values

2012-08-03 Thread Prasad, Ramit
> def func1(): > > num1=10 > > num2=20 > > print "The Second Number is:",num2 > > return > > > def func2(): > > func1() > num3=num1+num2 > > num4=num3+num1 > > print "New Number One is:",num3 > > print "New Number Two is:",num4 > >

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Anoop Thomas Mathew
Chronic Asthma. He was hospitalized yesterday, and passed away today. On 3 August 2012 20:45, Marcin Tustin wrote: > What happened to him? He was posting on this list in the last week? > > On Fri, Aug 3, 2012 at 11:12 AM, Anoop Thomas Mathew wrote: > >> With my heartfelt condolence, I'd like

Re: Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Marcin Tustin
What happened to him? He was posting on this list in the last week? On Fri, Aug 3, 2012 at 11:12 AM, Anoop Thomas Mathew wrote: > With my heartfelt condolence, I'd like to inform you all the unfortunate > demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a > strong advocate of

Demise of Mr. Kenneth Gonsalves

2012-08-03 Thread Anoop Thomas Mathew
With my heartfelt condolence, I'd like to inform you all the unfortunate demise of Mr.Kenneth Gonsalves (KG - law...@thenilgiris.com), who was a strong advocate of Python, Django and Free Software in India. He had served as the President of IPSS(Indian Python Software Society), which initiated the

Re: Calling Values

2012-08-03 Thread subhabangalore
On Friday, August 3, 2012 5:19:46 PM UTC+5:30, Subhabrata wrote: > Dear Group, > > > > I am trying to call the values of one function in the another function in the > following way: > > def func1(): > > num1=10 > > num2=20 > > print "The Second Number is:",num2 > >

Re: xlrd 0.8.0 released!

2012-08-03 Thread pruebauno
On Wednesday, August 1, 2012 11:01:56 AM UTC-4, Chris Withers wrote: > Hi All, > > > > I'm pleased to announce the release of xlrd 0.8.0: > > > > http://pypi.python.org/pypi/xlrd/0.8.0 > > > > This release finally lands the support for both .xls and .xlsx files. > > Many thanks to John Ma

Re: Eclipse and the Python plugin

2012-08-03 Thread rusi
On Aug 3, 4:34 pm, lipska the kat wrote: > A while ago someone asked me what I thought of the Eclipse plugin for > python, well I just downloaded and installed the latest version of > Eclipse for Java (Juno) followed by the Python plugin. Thanks Lipska for reporting back. I personally find the ec

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 13:40, Mark Lawrence wrote: On 03/08/2012 13:23, lipska the kat wrote: On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip it's like trying to run a legless carthor

Re: ANN: dbf.py 0.94

2012-08-03 Thread Ethan Furman
Mark Lawrence wrote: On 21/07/2012 00:59, Ethan Furman wrote: Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at http://python.org/pypi/dbf. Bug reports, com

Re: dbf.py API question

2012-08-03 Thread Ethan Furman
Peter Otten wrote: Ethan Furman wrote: SQLite has a neat feature where if you give it a the file-name of ':memory:' the resulting table is in memory and not on disk. I thought it was a cool feature, but expanded it slightly: any name surrounded by colons results in an in-memory table. I'm loo

Re: Calling Values

2012-08-03 Thread Ulrich Eckhardt
Am 03.08.2012 13:49, schrieb Subhabrata: I am trying to call the values of one function in the > another function in the following way: def func1(): num1=10 num2=20 print "The Second Number is:",num2 return def func2(): num3=num1+num2 num4=num3+

Re: ANN: dbf.py 0.94

2012-08-03 Thread Mark Lawrence
On 03/08/2012 13:50, Alex Strickland wrote: On 2012/07/21 11:49 PM, Mark Lawrence wrote: and PS is spelt p.s. :) Ahem, the absolutely authoritative reference on the subject: http://en.wikipedia.org/wiki/Postscript says PS or P.S. I'm sorry but you can't read my writing[1]. [1] another Py

Re: ANN: dbf.py 0.94

2012-08-03 Thread Alex Strickland
On 2012/07/21 11:49 PM, Mark Lawrence wrote: and PS is spelt p.s. :) Ahem, the absolutely authoritative reference on the subject: http://en.wikipedia.org/wiki/Postscript says PS or P.S. -- Regards Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling Values

2012-08-03 Thread Nobody
On Fri, 03 Aug 2012 04:49:46 -0700, Subhabrata wrote: > I am trying to call the values of one function in the another function > in the following way: > def func1(): > num1=10 > num2=20 > print "The Second Number is:",num2 > return > > def func2(): > num3=num1+num2 >

Re: Eclipse and the Python plugin

2012-08-03 Thread Mark Lawrence
On 03/08/2012 13:23, lipska the kat wrote: On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip My opinion of Eclipse is unchanged by your words, it's like trying to run a leg

Re: Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
On 03/08/12 13:10, Mark Lawrence wrote: On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, snip My opinion of Eclipse is unchanged by your words, it's like trying to run a legless carthorse in the Grand National or the

Re: ANN: dbf.py 0.94

2012-08-03 Thread Mark Lawrence
On 21/07/2012 00:59, Ethan Furman wrote: Getting closer to a stable release. Latest version has a simpler, cleaner API, and works on PyPy (and hopefully the other implementations as well ;), as well as CPython. Get your copy at http://python.org/pypi/dbf. Bug reports, comments, and kudos welco

Re: Eclipse and the Python plugin

2012-08-03 Thread Mark Lawrence
On 03/08/2012 12:34, lipska the kat wrote: A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. After a while messing about with it I can only say ... phew, w

Re: Calling Values

2012-08-03 Thread Mark Lawrence
On 03/08/2012 12:49, Subhabrata wrote: Dear Group, I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print "The Second Number is:",num2 return def func2(): num3=num1+num2 num

Calling Values

2012-08-03 Thread Subhabrata
Dear Group, I am trying to call the values of one function in the another function in the following way: def func1(): num1=10 num2=20 print "The Second Number is:",num2 return def func2(): num3=num1+num2 num4=num3+num1 print "New Number One

Eclipse and the Python plugin

2012-08-03 Thread lipska the kat
A while ago someone asked me what I thought of the Eclipse plugin for python, well I just downloaded and installed the latest version of Eclipse for Java (Juno) followed by the Python plugin. After a while messing about with it I can only say ... phew, what a relief. The plugin looks like it au

Re: Is Python a commercial proposition ?

2012-08-03 Thread Stefan Behnel
Prasad, Ramit, 03.08.2012 08:51: >> I'm in stuck record mode here, but one of the things I really enjoy >> about reading here is the way things do go off topic. IMHO makes for a >> far more interesting experience. YMMV. > > +1 > > Ramit > This email is confidential and subject to important dis

Re: dbf.py API question

2012-08-03 Thread Peter Otten
Ethan Furman wrote: > SQLite has a neat feature where if you give it a the file-name of > ':memory:' the resulting table is in memory and not on disk. I thought > it was a cool feature, but expanded it slightly: any name surrounded by > colons results in an in-memory table. > > I'm looking at th

RE: attribute is accessed from Nonetype

2012-08-03 Thread Prasad, Ramit
> Also, please use the names correctly and consistently. The None object > (yes, there is only one) is not the same as a none object. And there is > no standard type called Nonetype. To be fair, this is not very clear to a beginner. >>> len(None) # Python 2.6 TypeError: object of type 'NoneTyp