Re: Question about python package numpy

2015-03-02 Thread Robert Kern
On 2015-03-01 20:32, fl wrote: Hi, It is difficult to install numpy package for my PC Windows 7, 64-bit OS. In the end, I install Enthought Canopy, which is recommended on line because it does install numpy automatically. Now, I can test it with import numpy it succeeds. On http://wiki.scipy.o

Re: Question about python package numpy

2015-03-01 Thread fl
On Sunday, March 1, 2015 at 1:25:59 PM UTC-8, Andrea D'Amore wrote: > On 2015-03-01 20:32:34 +, fl said: > > > import numpy > > it succeeds. On http://wiki.scipy.org/Cookbook, it shows some interesting > > code example snippet, such as Cookbook / ParticleFilter, Markov chain etc. > > > I don'

Re: Question about python package numpy

2015-03-01 Thread Andrea D'Amore
On 2015-03-01 20:32:34 +, fl said: import numpy it succeeds. On http://wiki.scipy.org/Cookbook, it shows some interesting code example snippet, such as Cookbook / ParticleFilter, Markov chain etc. I don't know how I can access these code examples, because I don't know where Enthought Cano

Re: Question about Python upgrade on linux

2010-07-15 Thread Jeff McNeil
On Jul 15, 11:54 am, guandalino wrote: > Hi, suppose I have python 2.6.4 installed from source and I want to > upgrade to 2.6.5. Python standard library is automatically upgraded at > 2.6.5 as well, while 3rd party pure Python and extension modules in > site-packages don't. Is it safe to keep the

Re: question about python

2008-09-13 Thread fishfin
On Sep 13, 4:25 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Sep 13, 1:00 am, fishfin <[EMAIL PROTECTED]> wrote: > > > @ Carl: Yes, I think your right now that I look at it (or at least all > > except for the last two lines need to be indented). I'm still not sure > > how to send the stuff to the

Re: question about python

2008-09-13 Thread Tino Wildenhain
fishfin wrote: @ Carl: Yes, I think your right now that I look at it (or at least all except for the last two lines need to be indented). > I'm still not sure how to send the stuff to the web browser though. what do you think is the cfile.write() doing? As a hint, beside having a look at r

Re: question about python

2008-09-13 Thread Carl Banks
On Sep 13, 1:00 am, fishfin <[EMAIL PROTECTED]> wrote: > @ Carl: Yes, I think your right now that I look at it (or at least all > except for the last two lines need to be indented). I'm still not sure > how to send the stuff to the web browser though. Thanks for pointing > it out! Try reading in t

Re: question about python

2008-09-13 Thread fishfin
@ Carl: Yes, I think your right now that I look at it (or at least all except for the last two lines need to be indented). I'm still not sure how to send the stuff to the web browser though. Thanks for pointing it out! @ Diez: I'll start googling those right away. Carl Banks wrote: > On Sep 13, 1

Re: question about python

2008-09-13 Thread Carl Banks
On Sep 13, 12:15 am, fishfin <[EMAIL PROTECTED]> wrote: > I was working through a tutorial about how to write a server using > python (the url is bellow). I am sure that the server is working to > some degree because when the server is running localhost:8080 just > keeps trying to load until it tim

Re: question about python

2008-09-13 Thread Diez B. Roggisch
fishfin schrieb: I was working through a tutorial about how to write a server using python (the url is bellow). I am sure that the server is working to some degree because when the server is running localhost:8080 just keeps trying to load until it times out. I would like to know how to send info

Re: question about python statements

2008-05-13 Thread Terry Reedy
"Ohad Frand" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi | Thanks a lot for your reply | I think the main uses for it is to study the language and to see that I | didn't miss anything else or that something is changed from one version | to another. The language manual lists

RE: question about python statements

2008-05-13 Thread Ohad Frand
erron [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 13, 2008 11:11 AM To: Ohad Frand Cc: python-list@python.org Subject: Re: question about python statements Ohad Frand wrote: > Hi Gary > > Sorry that I was not clear, I hope that this time I will explain myself > better. > > I can

Re: question about python statements

2008-05-13 Thread Gary Herron
st as you did in your example above? Just out of curiosity, *why* do you want this list. Perhaps is we knew that, we could think of a programmatic way to construct the list you want. The biggest challenge at the moment is that we have no idea what you mean by statement, but it is certainly n

RE: question about python statements

2008-05-13 Thread Ohad Frand
put', 'reduce', 'reload'...] But I don't know how to generate the next list of builtin python statements: ['assert','break','class','continue','def','del','elif','else','except', &#

Re: question about python statements

2008-05-12 Thread Terry Reedy
"George Sakkis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] On May 12, 7:35 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Ohad Frand" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | I am looking for a way to programmically get a list of all python > | existin

Re: question about python statements

2008-05-12 Thread George Sakkis
On May 12, 7:35 pm, "Terry Reedy" <[EMAIL PROTECTED]> wrote: > "Ohad Frand" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > | I am looking for a way to programmically get a list of all python > | existing statements that I cannot access by __builtins__ or locals() > | (like ["asse

Re: question about python statements

2008-05-12 Thread Terry Reedy
"Ohad Frand" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | I am looking for a way to programmically get a list of all python | existing statements that I cannot access by __builtins__ or locals() | (like ["assert","break","class",...]) You appear to want the keywords that begin s

Re: question about python statements

2008-05-12 Thread Gary Herron
Ohad Frand wrote: Hi I am looking for a way to programmically get a list of all python existing statements that I cannot access by __builtins__ or locals() (like ["assert","break","class",…]) Thanks, Ohad -- http://

Re: Question about Python on Mac

2006-05-21 Thread elventear
James Stroud wrote: > I think fink is not detecting the gmp (GNU multiple precision arithmetic > library) dependency. > > Try: > > % fink install gmp > > Then try building gmpy with /sw/bin/python. I think I didn't explain myself very well. gmp is already installed in my computer; when building gm

Re: Question about Python on Mac

2006-05-20 Thread James Stroud
elventear wrote: > Hello, > > I am working with Python 2.4.3 built from source courtesy of Fink. So > far so good, until now. I want to use a module called GMPY > (http://gmpy.sf.net/). I am able to build correctly the module, but > once I try to import it I get the following error: > > ImportErr

Re: Question about Python on Mac

2006-05-19 Thread elventear
On 2006-05-19 16:19:51 -0500, "elventear" <[EMAIL PROTECTED]> said: > The weird thing is that just for kicks I tried building with Python > that comes with MacOSX (py2.3) and it works. It builds and it loads > fine. Anybody have an idea why this would happen? Any ideas how to > solve this? In the

Re: Assigning to None (was Re: Question about Python)

2005-07-03 Thread Bengt Richter
On Mon, 04 Jul 2005 09:11:19 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >On Sun, 03 Jul 2005 19:19:05 +, Bengt Richter wrote: > >> On Sun, 03 Jul 2005 11:47:07 +1000, Steven D'Aprano <[EMAIL PROTECTED]> >> wrote: >> >>>On Fri, 01 Jul 2005 12:59:20 -0400, François Pinard wrote: >>> >>>

Re: Assigning to None (was Re: Question about Python)

2005-07-03 Thread Steven D'Aprano
On Sun, 03 Jul 2005 19:19:05 +, Bengt Richter wrote: > On Sun, 03 Jul 2005 11:47:07 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >>On Fri, 01 Jul 2005 12:59:20 -0400, François Pinard wrote: >> >>> [Peter Hansen] Mike Meyer wrote: > Yes. I once grabbed an old program that did

Re: Assigning to None (was Re: Question about Python)

2005-07-03 Thread Bengt Richter
On Sun, 03 Jul 2005 11:47:07 +1000, Steven D'Aprano <[EMAIL PROTECTED]> wrote: >On Fri, 01 Jul 2005 12:59:20 -0400, François Pinard wrote: > >> [Peter Hansen] >>> Mike Meyer wrote: >>> > Yes. I once grabbed an old program that did assignments to None. But >>> > that's always been a bad idea. >> >

Re: Assigning to None (was Re: Question about Python)

2005-07-02 Thread Steven D'Aprano
On Fri, 01 Jul 2005 12:59:20 -0400, François Pinard wrote: > [Peter Hansen] >> Mike Meyer wrote: >> > Yes. I once grabbed an old program that did assignments to None. But >> > that's always been a bad idea. > >> What was the use case!? > > People used to assign None to itself as a keyword argume

Re: Assigning to None (was Re: Question about Python)

2005-07-01 Thread François Pinard
[Peter Hansen] > Mike Meyer wrote: > > Yes. I once grabbed an old program that did assignments to None. But > > that's always been a bad idea. > What was the use case!? People used to assign None to itself as a keyword argument in function headers. The goal was to make a local copy of the refere

Assigning to None (was Re: Question about Python)

2005-07-01 Thread Peter Hansen
Mike Meyer wrote: > Yes. I once grabbed an old program that did assignments to None. But > that's always been a bad idea. What was the use case!? -Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about Python

2005-07-01 Thread Mike Meyer
Jan Danielsson <[EMAIL PROTECTED]> writes: > Hello all, > I'd like to ask seasoned Python developers: > - Are you comfortable in upgrading to the latest version of Python, or > are you worried about what you have to fix in your existing programs? No, I'm not worried. The Python developers worry a

Re: Question about Python

2005-07-01 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, Jan Danielsson <[EMAIL PROTECTED]> wrote: >Hello all, > > I recently started using Python, and I must say I like it. Both the >language and libraries available for it. > > Background: I have written an application which I use to keep track >of my personal econom

Re: Question about Python

2005-07-01 Thread Rocco Moretti
Jan Danielsson wrote: >However, when I look at the various Python modules/libraries, I see > that there are several versions of them, for different versions of > python. I've seen everything from "for python 1.5" up to "for python > 2.4" with all versions in between. This scares me a little bi

Re: Question about Python

2005-07-01 Thread George Sakkis
Backwards compatibility is addressed in several Python Enhancement Proposals (PEPs): http://www.python.org/peps/pep-0005.html http://www.python.org/peps/pep-0236.html http://www.python.org/peps/pep-0004.html http://www.python.org/peps/pep-0291.html You also may want to check related threads in c.

Re: Question about Python

2005-07-01 Thread Daniel Dittmar
Jan Danielsson wrote: >But then it occured to me.. I started writing my program in Java > pre-1.5. Then came 1.5, I upgraded, and my program would still compile > and run, though I did get three warnings. The language had changed a > little bit; I had to assign a type to three arrays. That wasn

Re: Question about python code distribution...

2005-04-28 Thread [EMAIL PROTECTED]
Hi, I would like for all platforms, not just for windows. In any case, the above two replies about "zipfile" support and "eggs" answer my question. That's exactly what I was looking for. Thanks for prompt and useful responses. Raghu. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about python code distribution...

2005-04-28 Thread Larry Bates
You didn't say what platform, but if it is Windows take a look at Inno Installer. It is a complete installation framework that allows you to package everything into a single setup.exe file. I use a combination of py2exe and Inno to do my apps that are to be distributed. Nothing could be simpler.

Re: Question about python code distribution...

2005-04-28 Thread Stephen Prinster
[EMAIL PROTECTED] wrote: > Hi, > > I am sure that this question might have come up repeatedly. Companies > may not want to distribute their python code in source form. Even > though pyc files are one option, it gets inconvenient to distribute > bunch of them . If there is some way to bundle pyc fi

Re: Question about python code distribution...

2005-04-27 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > Hi, > > I am sure that this question might have come up repeatedly. Companies > may not want to distribute their python code in source form. Even > though pyc files are one option, it gets inconvenient to distribute > bunch of them . If there is some way to bundle pyc fi

Re: Question about python 2.4 documentation

2005-04-19 Thread Peter Otten
Fouff wrote: > I have a small question concerning the functions open(...) and file(...) > with python 2.4 >> The intent is for open() to continue to be preferred for use as a factory >> function which returns a new file object. versus >> The previous spelling, open(), is retained for compatibil