Re: Installing programs that depend on, or are, python extensions.

2011-04-30 Thread David Cournapeau
On Sat, Apr 30, 2011 at 2:19 PM, James A. Donald wrote: > I have noticed that installing python programs tends to be hell, > particularly under windows, and installing python programs that rely > on, or in large part are, python extensions written in C++ tends to be > hell on wheels with large spi

Re: Terrible FPU performance

2011-04-27 Thread David Cournapeau
On Wed, Apr 27, 2011 at 10:04 PM, Mihai Badoiu wrote: > I'm using intel xeon harpertown (E5450) and Python 2.6.4. > In the cython code, when I use fpclassify, in the slow case I get 3 > (FP_SUBNORMAL) > In the pure-C code, when I use fpclassify, in the case that's supposed to be > slow but it's no

Re: Terrible FPU performance

2011-04-26 Thread David Cournapeau
On Wed, Apr 27, 2011 at 4:14 AM, Dan Goodman wrote: > Hi, > > On 26/04/2011 15:40, Mihai Badoiu wrote: >> I have terrible performance for multiplication when one number gets very >> close to zero.  I'm using cython by writing the following code: > > This might be an issue with denormal numbers: >

Re: Questions about GIL and web services from a n00b

2011-04-15 Thread David Cournapeau
On Sat, Apr 16, 2011 at 10:05 AM, Raymond Hettinger wrote: >> > Is the limiting factor CPU? >> >> > If it isn't (i.e. you're blocking on IO to/from a web service) then the >> > GIL won't get in your way. >> >> > If it is, then run as many parallel *processes* as you have cores/CPUs >> > (assuming

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread David Cournapeau
On Thu, Apr 14, 2011 at 11:28 AM, Nathan Coulson wrote: > actually figured out a neat trick,  mingw-w64 can link directly to the .dll. > gcc file.c python31.dll -o file.exe > > no .a needed. > > http://www.mingw.org/wiki/sampleDLL > > (have yet to find out if it actually works yet, but so far loo

Re: looking for libpython31.a 64bit (missing from python-3.1.3.amd64.msi)

2011-04-13 Thread David Cournapeau
On Wed, Apr 13, 2011 at 5:17 PM, Nathan Coulson wrote: > Well, as the subject says,  I am looking to find libpython31.a > [win64bit version] for use in a linux to windows 64bit cross compiler > [x86_64-w64-mingw32-gcc],  but seems to be missing. > > so far,  tried installing it on a real 64bit win

Re: which scipy binary for Win32

2011-01-25 Thread David Cournapeau
On Tue, Jan 25, 2011 at 6:24 PM, Adam wrote: > Am looking at > http://sourceforge.net/projects/scipy/files/scipy/0.8.0/ > and I wonder which is the binary to install on WinXP ? > As pointed to by this page, http://www.scipy.org/Download > > All I can see on that sourceforge page are the huge > pyt

Re: Changing the EAX register with Python

2010-11-19 Thread David Cournapeau
On Fri, Nov 19, 2010 at 4:17 PM, Tim Roberts wrote: > dutche wrote: >> >>Hi folks, I have a unusual question here. >> >>How can I change the value of EAX register under python under Linux?? >>As paimei does under Windows. >> >>My project is to have a python program that loads a C program and sets

Re: Python in Linux - barrier to Python 3.x

2010-09-24 Thread David Cournapeau
On Fri, Sep 24, 2010 at 6:23 PM, Steven D'Aprano wrote: >> Typically, if your want to install say >> matplotlib with pygtk with a custom built python, you are in for a fun >> ride because you have to rebuild everything. > > That's not what I consider a typical case. But I take your point. It is

Re: Python in Linux - barrier to Python 3.x

2010-09-24 Thread David Cournapeau
On Fri, Sep 24, 2010 at 4:51 PM, Steven D'Aprano wrote: > On Tue, 21 Sep 2010 13:54:55 -0700, Ant wrote: > >> Yes you are right - I've checked on my home machine, and it is indeed >> 2.6. Still, no Python 3 unless I upgrade to Fedora 13, and upgrading an >> OS in order to get the latest version of

Re: Python in Linux - barrier to Python 3.x

2010-09-21 Thread David Cournapeau
On Wed, Sep 22, 2010 at 12:59 AM, Diez B. Roggisch wrote: > David Cournapeau writes: > >> On Tue, Sep 21, 2010 at 10:23 PM, Diez B. Roggisch wrote: >>> Ant writes: >>> >>>> Hi all, >>>> >>>> I've just seen this: http://shed

Re: Python in Linux - barrier to Python 3.x

2010-09-21 Thread David Cournapeau
On Tue, Sep 21, 2010 at 10:23 PM, Diez B. Roggisch wrote: > Ant writes: > >> Hi all, >> >> I've just seen this: http://sheddingbikes.com/posts/1285063820.html >> >> Whatever you think of Zed Shaw (author of the Mongrel Ruby server and >> relatively recent Python convert), he has a very good point

Re: visual studio 2010 question

2010-09-21 Thread David Cournapeau
On Tue, Sep 21, 2010 at 5:54 AM, Diez B. Roggisch wrote: > David Cournapeau writes: > >> On Mon, Sep 20, 2010 at 3:08 PM, Ralf Haring wrote: >>> >>> After running into the error "Setup script exited with error: Unable >>> to find vcvarsall.bat&quo

Re: visual studio 2010 question

2010-09-19 Thread David Cournapeau
On Mon, Sep 20, 2010 at 3:08 PM, Ralf Haring wrote: > > After running into the error "Setup script exited with error: Unable > to find vcvarsall.bat" when trying to use easy_install / setuptools a > little digging showed that the MS compiler files in distutils only > support up to Studio 2008. Doe

Re: fast kdtree tree implementation for python 3?

2010-09-11 Thread David Cournapeau
On Sun, Sep 12, 2010 at 4:26 AM, Stefan Behnel wrote: > _wolf, 11.09.2010 20:15: >> >> does anyone have a suggestion for a ready-to-go, fast kdtree >> implementation for python 3.1 and up, for nearest-neighbor searches? i >> used to use the one from numpy/scipy, but find it a pain to install >> fo

Re: Speed-up for loops

2010-09-07 Thread David Cournapeau
On Sun, Sep 5, 2010 at 8:28 PM, BartC wrote: > > One order of magnitude (say 10-20x slower) wouldn't be so bad. That's what > you might expect for a dynamically typed, interpreted language. 10/20x slower than C is only reached by extremely well optimized dynamic languages. It would be a tremendo

Re: Speed-up for loops

2010-09-04 Thread David Cournapeau
On Thu, Sep 2, 2010 at 7:02 PM, Michael Kreim wrote: > Hi, > > I was comparing the speed of a simple loop program between Matlab and > Python. > > My Codes: > $ cat addition.py > imax = 10 > a = 0 > for i in xrange(imax): >    a = a + 10 > print a > > $ cat addition.m > imax = 1e9; > a = 0

Re: speed of numpy.power()?

2010-08-25 Thread David Cournapeau
On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann wrote: > Hi all, > > I'd like to hear from you on the benefits of using numpy.power(x,y) > over (x*x*x*x..) Without more context, I would say None if x*x*x*x*... works and you are not already using numpy. The point of numpy is mostly to work on

Re: Python "why" questions

2010-08-16 Thread David Cournapeau
On Mon, Aug 16, 2010 at 9:53 AM, Gregory Ewing wrote: >> On Aug 7, 2010, at 9:14 PM, John Nagle wrote: >> >>>  The languages which have real multidimensional arrays, rather >>> than arrays of arrays, tend to use 1-based subscripts.  That >>> reflects standard practice in mathematics. > > Not alway

Re: Python Portability

2010-08-08 Thread David Cournapeau
On Sun, Aug 8, 2010 at 10:10 AM, W. eWatson wrote: > On 8/7/2010 4:45 PM, Martin v. Loewis wrote: >>> >>> To add to the msg I just sent to M. Torrie. We are given the msi >>> programs for Python, PIL,matplotlib, and numpy. The question of how to >>> uninstall and re-install a different version rem

Re: Why is python not written in C++ ?

2010-08-06 Thread David Cournapeau
On Fri, Aug 6, 2010 at 8:39 PM, Roy Smith wrote: > In article , >  David Cournapeau wrote: > >> > Yes, there are a few corner cases where valid C syntax has different >> > semantics in C and C++.  But, they are very few.  Calling C++ a superset >> > of C i

Re: Why is python not written in C++ ?

2010-08-05 Thread David Cournapeau
On Fri, Aug 6, 2010 at 8:45 AM, Roy Smith wrote: > In article , >  Lawrence D'Oliveiro wrote: > >> In message , Roy Smith wrote: >> >> > C++, for all its flaws, had one powerful feature which made it very >> > popular.  It is a superset of C. >> >> Actually, it never was. > > Yes, there are a few

Re: Why is python not written in C++ ?

2010-08-02 Thread David Cournapeau
On Mon, Aug 2, 2010 at 10:20 AM, Christian Heimes wrote: > > In your opinion what would Python gain from a C++ implementation? The elusive advantages of "OO" in C++ are relatively minor compared to RIIA which would make reference counting much easier to deal with. But even that is not a strong e

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-25 Thread David Cournapeau
On Mon, Jul 26, 2010 at 3:07 AM, Zooko O'Whielacronx wrote: > > I would suggest that people try to build their native extension > modules with mingw, and if it doesn't work report a bug (to mingw > project and to the Python project) so that we can track more precisely > what the issues are. To b

Re: numpy installation

2010-07-25 Thread David Cournapeau
Hi Jia, On Sun, Jul 25, 2010 at 12:01 PM, Jia Hu wrote: > Hello: > > I tried to install numpy 1.4.1 from source under ubuntu following > instruction at http://docs.scipy.org/doc/numpy/user/install.html > I type "" python setup.py build –help-fcompiler ""  and it says gnu95 is > found. Then I run

Re: Python -- floating point arithmetic

2010-07-07 Thread David Cournapeau
On Thu, Jul 8, 2010 at 5:41 AM, Zooko O'Whielacronx wrote: > I'm starting to think that one should use Decimals by default and > reserve floats for special cases. > > This is somewhat analogous to the way that Python provides > arbitrarily-big integers by default and Python programmers only use >

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-07 Thread David Cournapeau
On Wed, Jul 7, 2010 at 9:10 PM, Martin v. Loewis wrote: > > My preferred long-term solution is to reduce the usage of the C library > in CPython as much as reasonable, atleast on Windows. Memory management > could directly use the heap functions (or even more directly > VirtualAlloc); filenos cou

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-07 Thread David Cournapeau
On Wed, Jul 7, 2010 at 10:55 PM, Carl Banks wrote: > On Jul 7, 1:31 am, Paul McGuire wrote: >> On Jul 6, 3:30 am, David Cournapeau wrote:> On Tue, Jul >> 6, 2010 at 4:30 AM, D'Arcy J.M. Cain wrote: >> >> > One thing that would be very useful is how to mai

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-06 Thread David Cournapeau
On Wed, Jul 7, 2010 at 12:26 AM, Thomas Jollans wrote: > On 07/07/2010 12:08 AM, David Cournapeau wrote: >> On Tue, Jul 6, 2010 at 6:00 PM, Alf P. Steinbach /Usenet >> wrote: >>> There is no *technical* problem creating a compiler-independent C/C++ >>> languag

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-06 Thread David Cournapeau
On Tue, Jul 6, 2010 at 6:00 PM, Alf P. Steinbach /Usenet wrote: > * sturlamolden, on 06.07.2010 17:50: >> >> Just a little reminder: >> >> Microsoft has withdrawn VS2008 in favor of VS2010. The express version >> is also unavailable for download.>:(( >> >> We can still get a VC++ 2008 compiler req

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-06 Thread David Cournapeau
On Tue, Jul 6, 2010 at 4:30 AM, D'Arcy J.M. Cain wrote: > On Mon, 05 Jul 2010 14:42:13 -0400 > Terry Reedy wrote: >> Good start. Now what is blocking those four? >> Lack of developer interest/time/ability? >> or something else that they need? > > How about a basic how-to document?  I maintain PyG

Re: The real problem with Python 3 - no business case for conversion (was "I strongly dislike Python 3")

2010-07-05 Thread David Cournapeau
On Mon, Jul 5, 2010 at 12:44 PM, Terry Reedy wrote: > On 7/4/2010 7:58 PM, John Nagle wrote: > >> The "incompatible with all extension modules I need" part >> is the problem right now. A good first step would be to >> identify the top 5 or 10 modules that are blocking a move to >> Python 3 by majo

Re: Lua is faster than Fortran???

2010-07-04 Thread David Cournapeau
On Mon, Jul 5, 2010 at 1:12 AM, sturlamolden wrote: > On 4 Jul, 10:03, Stefan Behnel wrote: > >> Sort of. One of the major differences is the "number" type, which is (by >> default) a floating point type - there is no other type for numbers. The >> main reason why Python is slow for arithmetic co

Re: Lua is faster than Fortran???

2010-07-04 Thread David Cournapeau
On Mon, Jul 5, 2010 at 12:00 AM, D'Arcy J.M. Cain wrote: > On Sun, 4 Jul 2010 23:46:10 +0900 > David Cournapeau wrote: >> On Sun, Jul 4, 2010 at 11:23 PM, D'Arcy J.M. Cain wrote: >> > Which is 99% of the real-world applications if you factor out the code >

Re: Lua is faster than Fortran???

2010-07-04 Thread David Cournapeau
On Sun, Jul 4, 2010 at 11:23 PM, D'Arcy J.M. Cain wrote: > On 04 Jul 2010 04:15:57 GMT > Steven D'Aprano wrote: >> "Need" is a bit strong. There are plenty of applications where if your >> code takes 0.1 millisecond to run instead of 0.001, you won't even >> notice. Or applications that are limit

Re: Lua is faster than Fortran???

2010-07-04 Thread David Cournapeau
On Sun, Jul 4, 2010 at 5:03 PM, Stefan Behnel wrote: > sturlamolden, 04.07.2010 05:30: >> >> I was just looking at Debian's benchmarks. It seems LuaJIT is now (on >> median) beating Intel Fortran! >> >> C (gcc) is running the benchmarks faster by less than a factor of two. >> Consider that Lua is

Re: Why Is Escaping Data Considered So Magical?

2010-07-02 Thread David Cournapeau
On Mon, Jun 28, 2010 at 6:44 PM, Gregory Ewing wrote: > Carl Banks wrote: > >> Indeed, strncpy does not copy that final NUL if it's at or beyond the >> nth element.  Probably the most mind-bogglingly stupid thing about the >> standard C library, which has lots of mind-boggling stupidity. > > I don

Re: GAE + recursion limit

2010-07-02 Thread David Cournapeau
On Fri, Jul 2, 2010 at 5:06 PM, Maciej wrote: > Does anyone have any clue what that might be? > Why the problem is on GAE (even when run locally), when command line > run works just fine (even with recursion limit decreased)? > Thanks in advance for any help. Most likely google runs a customized

Re: Bento 0.0.3 (ex-toydist), a pythonic packaging solution

2010-07-02 Thread David Cournapeau
On Fri, Jul 2, 2010 at 4:46 PM, Tim Golden wrote: > > Looks very interesting. Just one thing (which might just be me): > the front page looks very stylish and is quite a nice summary. > But I actually *missed* the (grey on grey) [Take me to Bento documentation] > button, which is way below the fo

Re: I strongly dislike Python 3

2010-06-27 Thread David Cournapeau
On Sun, Jun 27, 2010 at 11:46 PM, Peter Kleiweg wrote: > David Cournapeau schreef op de 27e dag van de zomermaand van het jaar 2010: > >> I doubt "porting is easier than you think" will convince many people >> if they don't know what the gain will be. For examp

Re: I strongly dislike Python 3

2010-06-27 Thread David Cournapeau
On Sun, Jun 27, 2010 at 4:54 PM, Martin v. Loewis wrote: >> I didn't notice this level of angst when Python made equally significant >> changes going from 1.5 to 2.0... > > I think the *level* was about the same (IIRC). People would say that > they ignore 2.x for years, and that it is important to

Re: Should I Learn Python or Ruby next?

2010-06-22 Thread David Cournapeau
On Tue, Jun 22, 2010 at 5:58 PM, Josef Tupag wrote: > I've been programming (when I do program) mainly in Perl for the last 10 > years or so. But I've been itching to learn a new language for a while now, > and the two near the top of the list are Ruby and Python. > > I figure that Ruby would be e

Re: Is this make sence? Dynamic assembler for python

2010-06-21 Thread David Cournapeau
On Mon, Jun 21, 2010 at 12:34 PM, Steven D'Aprano wrote: > On Sun, 20 Jun 2010 22:45:14 +0100, Rhodri James wrote: > >> Mixing Python and assembler is a bizarre thing to want to do in general, >> but... >> >> On Sun, 20 Jun 2010 01:52:15 +0100, Steven D'Aprano >> wrote: >> >>> (3) Modern C compil

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread David Cournapeau
On Mon, May 31, 2010 at 7:16 AM, John Nagle wrote: >    It's nice that some of the options work.  Note that someone who > used "--bindir", expecting it to work, might end up overwriting their > existing Python installation unintentionally, which would break system > administration tools like cPan

Re: MySQLdb install vs. "setuptools"

2010-05-30 Thread David Cournapeau
On Sun, May 30, 2010 at 3:56 PM, John Nagle wrote: >   MySQLdb won't install as non-root on Python 2.6 because > its "setup.py" file requires "setuptools".  "setuptools", > unlike "distutils", isn't part of the Python 2.6 distribution. > >   IMPORTANT PACKAGES SHOULD NOT USE "setuptools".  Use the

Re: where are the program that are written in python?

2010-05-23 Thread David Cournapeau
On Sun, May 23, 2010 at 5:19 PM, Lie Ryan wrote: > But the point still hold, that in real life, often the language's raw > speed doesn't really limit the program's speed. I would rather say that Python vs C does not matter until it does, and it generally does when constants factor matter (which

Re: Another "Go is Python-like" article.

2010-05-21 Thread David Cournapeau
On Fri, May 21, 2010 at 11:20 PM, Grant Edwards wrote: > In a recent Reg article, there's yet more yammering on about how Go is > somehow akin to Python -- referring to Go as a "Python-C++" crossbreed. > > http://www.theregister.co.uk/2010/05/20/go_in_production_at_google/ > > I still don't get it

Re: Download Proprietary Microsoft Products Now

2010-04-21 Thread David Cournapeau
On Thu, Apr 22, 2010 at 9:59 AM, Lawrence D'Oliveiro wrote: >> ... or because Mingw32 doesn't provide the header files (in particular >> wrt. C++), or because linking with a library is necessary that uses the >> MSVC mangling, not the g++ one (again, for C++). > > Again, that would be code that’s

Re: How to run python without python

2010-04-03 Thread David Cournapeau
On Sat, Apr 3, 2010 at 2:23 AM, Chris Rebert wrote: > On Fri, Apr 2, 2010 at 10:09 AM, danmcle...@yahoo.com > wrote: >> On Apr 1, 5:54 pm, Chris Rebert wrote: >>> On Thu, Apr 1, 2010 at 4:46 PM, Krister Svanlund >>> wrote: >>> > On Fri, Apr 2, 2010 at 1:36 AM, Spencer wrote: >>> >> Is there a

Re: Have you embraced Python 3.x yet?

2010-03-29 Thread David Cournapeau
On Mon, Mar 29, 2010 at 9:43 PM, Ben Finney wrote: > David Cournapeau writes: > >> On Sat, Mar 27, 2010 at 5:26 AM, Chris Colbert wrote: >> > I won't switch until NumPy and SciPy make the jump. >> >> We're almost there, though (mostly thanks to o

Re: Have you embraced Python 3.x yet?

2010-03-29 Thread David Cournapeau
On Sat, Mar 27, 2010 at 5:26 AM, Chris Colbert wrote: > > I won't switch until NumPy and SciPy make the jump. We're almost there, though (mostly thanks to other people's work on Numpy): http://github.com/cournape/scipy3/branches/py3k David -- http://mail.python.org/mailman/listinfo/python-lis

Re: PYTHONPATH and eggs

2010-03-03 Thread David Cournapeau
On Wed, Mar 3, 2010 at 7:14 PM, geoffbache wrote: > Unfortunately, the location from PYTHONPATH ends up after the eggs in > sys.path so I can't persuade Python to import my version. The only way > I've found to fix it is to copy the main script and manually hack > sys.path at the start of it whic

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-16 Thread David Cournapeau
On Wed, Feb 17, 2010 at 4:41 AM, Andrej Mitrovic wrote: > > Gary's friend Geoffrey Grosenbach says in his blog post (which Gary > linked to): "Python has no comparable equivalent to Ruby’s do end > block. Python lambdas are limited to one line and can’t contain > statements (for, if, def, etc.). W

Re: Dreaming of new generation IDE

2010-02-03 Thread David Cournapeau
On Thu, Feb 4, 2010 at 1:13 PM, Vladimir Ignatov wrote: >>> > […] system "knows" all your identifiers and just regenerates >>> > relevant portions of text from internal database-alike >>> > representation. >> >> You will probably want to learn about “refactoring” to see if that's >> related to wha

Re: Dreaming of new generation IDE

2010-02-03 Thread David Cournapeau
On Wed, Feb 3, 2010 at 10:18 PM, Adam Tauno Williams wrote: > On Wed, 2010-02-03 at 14:10 +0300, Vladimir Ignatov wrote: >> Hello, >> I am sitting here for quite some time, but usually keep silent ;-) I >> use Python since 2003 both "professionally" and for my hobby projects >> and love it a much.

Re: Library support for Python 3.x

2010-01-28 Thread David Cournapeau
On Thu, Jan 28, 2010 at 5:40 PM, Stefan Behnel wrote: > > That doesn't completely match my experience. It's true that there is no > guarantee that the ABI will stay compatible, but when you compile lxml > against Py2.4 on a 32bit machine, it will continue to import in Py2.5 and > (IIRC) Py2.6. It

Re: Library support for Python 3.x

2010-01-28 Thread David Cournapeau
On Thu, Jan 28, 2010 at 5:08 PM, Ben Finney wrote: > > It's important to note that this is mitigated, ironically enough, by > intentionally targeting a minimum Python minor version because the code > base makes use of Python features not available in older versions. > > That is, any minor version

Re: Library support for Python 3.x

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 3:37 PM, Paul Rubin wrote: > David Cournapeau writes: >> That's not windows specific - most packages which distribute binary >> packages need to package binaries for every minor version (2.4, 2.5, >> etc...) >> I doubt that's wh

Re: Library support for Python 3.x

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 7:38 AM, Terry Reedy wrote: > > For a windows user who depends on pre-built binaries, every new release > breaks *every* library that is not pure Python and needs to be compiled. That's not windows specific - most packages which distribute binary packages need to package

Re: python 3's adoption

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 9:25 AM, Paul Rubin wrote: > I don't mind that 3.x is breaking stuff for the sake of improving > things.  That's the whole idea of 3.x, after all.  What bugs me is that > the improvements are mostly quite superficial, and the breakage seems > often gratuitous.  I'd rather

Re: Is python not good enough?

2010-01-18 Thread David Cournapeau
On Mon, Jan 18, 2010 at 8:03 PM, Phlip wrote: > This means, to appease the self-righteous indignation of the math > professor who would claim = should mean "equality"... Much more likely, this is part of the stated goal of making go very easy to analyse (to build tools and so that go is very fas

Re: Is python not good enough?

2010-01-16 Thread David Cournapeau
On Sun, Jan 17, 2010 at 11:43 AM, John Nagle wrote: > David Cournapeau wrote: >> >> On Sun, Jan 17, 2010 at 4:17 AM, John Nagle wrote: >>> >>> Nobody wrote: >>>> >>>> On Fri, 15 Jan 2010 12:34:17 -0800, John Nagle wrote: >>

Re: Is python not good enough?

2010-01-16 Thread David Cournapeau
On Sun, Jan 17, 2010 at 4:17 AM, John Nagle wrote: > Nobody wrote: >> >> On Fri, 15 Jan 2010 12:34:17 -0800, John Nagle wrote: >> >>>    Actually, no.  It's quite possible to make a Python implementation >>> that >>> runs fast.  It's just that CPython, a naive interpreter, is too primitive >>> to

Re: numpy performance and random numbers

2009-12-20 Thread David Cournapeau
On Sun, Dec 20, 2009 at 6:47 PM, Lie Ryan wrote: > On 12/20/2009 2:53 PM, sturlamolden wrote: >> >> On 20 Des, 01:46, Lie Ryan  wrote: >> >>> Not necessarily, you only need to be certain that the two streams don't >>> overlap in any reasonable amount of time. For that purpose, you can use >>> a PR

Re: Duplicates of third-party libraries

2009-12-08 Thread David Cournapeau
On Tue, Dec 8, 2009 at 9:02 PM, Lie Ryan wrote: > > I disagree, what you should have is an Operating System with a package > management system that addresses those issues. The package management must > update your software and your dependencies, and keep track of > incompatibilities between you a

Re: Float precision and float equality

2009-12-06 Thread David Cournapeau
On Sun, Dec 6, 2009 at 1:46 AM, Mark Dickinson wrote: > On Dec 5, 3:37 pm, Anton81 wrote: >> I'd like to do calculations with floats and at some point equality of >> two number will be checked. >> What is the best way to make sure that equality of floats will be >> detected, where I assume that m

Re: NumPy installation won't import correctly

2009-12-01 Thread David Cournapeau
On Wed, Dec 2, 2009 at 11:03 AM, Ethos wrote: > > I reinstalled numpy, from sourceforge, even though I had already > installed the latest version. Same business. 2.5 imports fine, 2.6 > doesn't. > > Here's the output of the commands you gave me. Which exact version of mac os x are you using ? (t

Re: NumPy installation won't import correctly

2009-12-01 Thread David Cournapeau
On Tue, Dec 1, 2009 at 7:47 PM, Ethos wrote: > ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/2.6/ > lib/python2.6/site-packages/numpy/core/multiarray.so, 2): no suitable > image found.  Did find: >        /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site- >

Re: python simply not scaleable enough for google?

2009-11-17 Thread David Cournapeau
On Wed, Nov 18, 2009 at 8:31 AM, Terry Reedy wrote: > David Cournapeau wrote: >> >> On Tue, Nov 17, 2009 at 10:48 PM, Aaron Watters >> wrote: >>>> >>>> I don't think Python and Go address the same set of programmer >>>> desires

Re: python simply not scaleable enough for google?

2009-11-17 Thread David Cournapeau
On Wed, Nov 18, 2009 at 5:48 AM, Paul Rubin wrote: > > What about Git?  Some people prefer it. Git is an interesting example, because it both really pushes performance into its core structure and reasonably complete implementations exist in other languages. In parti

Re: python simply not scaleable enough for google?

2009-11-17 Thread David Cournapeau
On Tue, Nov 17, 2009 at 10:48 PM, Aaron Watters wrote: > >> I don't think Python and Go address the same set of programmer >> desires.  For example, Go has a static type system.  Some programmers >> find static type systems to be useless or undesirable.  Others find >> them extremely helpful and w

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 9:08 PM, ankita dutta wrote: > hi, > well, even i was also using matplotlib for some time, and it was working > fine. > but this time i use it for data which is quite large,( my input file has > single column of float values , > and length ( no. of rows) of this column is 1

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 7:46 PM, ankita dutta wrote: > thanx david, > > yes ,i am using matplotlib for plotting graph. > i am using this lines in my programme: > > "import matplotlib.pyplot as plt" > > now, if the problem with matplotlib ( and i will send them mail) , The problem is how matplotli

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 6:14 PM, ankita dutta wrote: >   is dumped > segmentation fault > > It looks like you are using matplotlib, and matplotlib is the one likely to segfault. You could check that it is indeed the case by just commenting the part which does the plot - but I would be very surpr

Re: ubuntu dist-packages

2009-08-27 Thread David Cournapeau
On Thu, Aug 27, 2009 at 8:27 AM, Diez B. Roggisch wrote: > Paul Boddie wrote: > >> On 26 Aug, 17:48, Jorgen Grahn wrote: >>> >>> Well, if you are thinking about Debian Linux, it's not as much >>> "ripping out" as "splitting into a separate package with a non-obvious >>> name". Annoying at times, b

Re: Why all the __double_underscored_vars__?

2009-08-08 Thread David Cournapeau
On Sat, Aug 8, 2009 at 9:11 PM, kj wrote: > In Chris Rebert > writes: > >>The double-underscores indicate that the Python interpreter itself >>usually is the caller of the method, and as such some level of "magic" >>may be associated with it. Other languages have you do the equivalent >>of `def

Re: Cython + setuptools not working with .pyx,only with .c-files

2009-08-07 Thread David Cournapeau
On Fri, Aug 7, 2009 at 7:09 PM, Diez B. Roggisch wrote: > > Tried that, nothing changed :( Then you will have to modify Cython.Distutils to be aware of setuptools, I think (and soon Distribute... ). David -- http://mail.python.org/mailman/listinfo/python-list

Re: Cython + setuptools not working with .pyx,only with .c-files

2009-08-06 Thread David Cournapeau
On Thu, Aug 6, 2009 at 7:38 PM, Diez B. Roggisch wrote: > Hi, > > > I'm trying to build a Cython-extension as Egg. > > However, this doesn't work - I can either use distutils to build the > extension, creating a myextension.c-file on the way. > > If that's there, I can use setuptools to build the e

Re: Using Python to automate builds

2009-08-06 Thread David Cournapeau
On Thu, Aug 6, 2009 at 12:39 AM, Kosta wrote: > > Setenv.bat sets up the path and other environment variables build.exe > needs to compile and link (and even binplace) its utilities.  So > building itself is not the issue.  The problem is that if I call > setenv.bat from Python and then build.exe,

Re: Using Python to automate builds

2009-08-05 Thread David Cournapeau
On Wed, Aug 5, 2009 at 4:56 PM, Hendrik van Rooyen wrote: > On Tuesday 04 August 2009 21:13:10 Kosta wrote: >> I am a Python newbie, tasked with automating (researching) building >> Windows drivers using the WDK build environment.  I've been looking >> into Python for this (instead of writing a bun

Re: Internal Math Library of Numpy

2009-07-28 Thread David Cournapeau
On Tue, Jul 28, 2009 at 10:09 PM, Nanime Puloski wrote: > Does Numpy use Python's standard math library when calculating > elementary functions such as exp(x) and acos(x)? It depends on the dtype: for fundamental types (float, int, etc...), the underlying implementation is whatever the (C) math li

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread David Cournapeau
On Tue, Jul 28, 2009 at 12:28 AM, Dotan Cohen wrote: >> It is neither efficient or inefficient: it is just a distribution >> tool, to deploy python software in a form familiar to most windows >> users. It does not make it any faster than running the software under >> a python prompt. >> >> As much

Re: Looking for a dream language: sounds like Python to me.

2009-07-27 Thread David Cournapeau
On Tue, Jul 28, 2009 at 12:12 AM, Dotan Cohen wrote: >> Creating binaries is not the same as creating /fast, efficient/ binaries. >>  Py2Exe bundles it all together, but does not make it any faster. >> > > How inefficient is py2exe. It is neither efficient or inefficient: it is just a distribution

Re: matplotlib installation

2009-06-12 Thread David Cournapeau
On Fri, Jun 12, 2009 at 9:50 PM, Jean-Paul Calderone wrote: > On Fri, 12 Jun 2009 11:33:36 GMT, Alan G Isaac wrote: >> >> On 6/12/2009 5:55 AM Virgil Stokes apparently wrote: >>> >>> Any suggestions on installing matplotlib for Python 2.6.2 on a Windows >>> Vista platform? >> >> >> Maintainers for

Re: using libraries not installed on campus computers (numpy)

2009-06-09 Thread David Cournapeau
On Tue, Jun 9, 2009 at 7:40 PM, Chandramouli wrote: > I built and installed Numpy on my campus account, the install couldn't > be done on the python install location. So I did it on my local > storage location but I am clueless about how to use it I was expecting > to see a numpy.py in the install

PYTHONPATH and multiple python versions

2009-06-05 Thread David Cournapeau
Hi, As I don't have admin privileges on my main dev machine, I install a good deal of python modules somewhere in my $HOME, using PYTHONPATH to point my python intepreter to the right location. I think PEP370 (per-user site-packages) does exactly what I need, but it works only for python 2.6 and a

Re: Package problem

2009-05-19 Thread David Cournapeau
On Tue, May 19, 2009 at 9:29 PM, A. Cavallo wrote: >> > It is solved in other languages.. for example perl.. and delphi >> I don't know much about perl, and even less about delphi, but I am >> pretty sure it does not solve the problem of overwriting files from a >> package with an installation out

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 2:35 PM, David Lyon wrote: > On Tue, 19 May 2009 13:53:18 +0900, David Cournapeau > wrote: >> Given that nobody has managed to solve this problem, I doubt you will >> find a solution. > > It is solved in other languages.. for example perl.. and d

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 1:31 PM, David Lyon wrote: > > Hi David, > > I guess paraphrased you are saying "don't touch your packages".. > > To my point of view, the needs of the developer override the > priorities of the O/S house... > > We should expect "old" packages on our systems from the O/S >

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 1:15 PM, David Cournapeau wrote: > something like virtualenv for packages using autotools. ^^^ Sorry, I meant setuptools here, not autotools David -- http://mail.python.org/mailman/listinfo/python-list

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 4:52 AM, Sverre wrote: > I'm using Ubuntu and some of the packages in the repository are too > old. So I got the thought to remove nearly  all packages downloaded > from the repository and install them with easy_install. Is this a way > to go without greater problems? This

Re: Statically linked extension and relative import

2009-05-07 Thread David Cournapeau
On Thu, May 7, 2009 at 8:34 PM, Andrew MacIntyre wrote: > David Cournapeau wrote: >> >> Hi, >> >> I am trying to build a 3rd party extension and link it statically to >> python. I managed to get things working by customizing Setup.local in >> python source

Statically linked extension and relative import

2009-05-07 Thread David Cournapeau
Hi, I am trying to build a 3rd party extension and link it statically to python. I managed to get things working by customizing Setup.local in python source tree, but I have a problem for imports of the 'foo.bar' form. For example, let's say the 3rd party module is laid out as follows: foo/__init

Re: Numpy on python 2.7a

2009-05-05 Thread David Cournapeau
On Wed, May 6, 2009 at 4:06 AM, A. Cavallo wrote: > Hi, > > I'm trying to compile numpy using my own pet project based on the python svn > code (that's the reason for the 2.7a tag). It is a python bug, see bugs 5940 and 5941. cheers, David -- http://mail.python.org/mailman/listinfo/python-list

Re: confused with so many python package locations for imports

2009-04-24 Thread David Cournapeau
On Sat, Apr 25, 2009 at 2:36 AM, Krishnakant wrote: > > hello all, > I was doing my first complete python packaging for my software and I am > totally confused. > I see, /usr/local/lib/python-2.6/site-packages and also dist-packages. > Then I also see a directory called pyshare, then again site-pa

Re: Install NumPy in python 2.6

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 9:11 PM, Ole Streicher wrote: > Hi Eduardo, > > Eduardo Lenz writes: >> On Wednesday 22 April 2009 04:47:54 David Cournapeau wrote: >>> On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher >> wrote: >>> > but scipy then fails: >>

Re: Install NumPy in python 2.6

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 6:38 PM, Ole Streicher wrote: > > Unfortunately, www.netlib.org is not reachable, so I cannot try to > install lapack. > > What is the reason for that? I don't know, I think netlib.org will be back soon. You need LAPACK for scipy, it is not possible to build it without it

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 8:43 PM, Christian Heimes wrote: > > My way doesn't add the dlls to the search path. It allows you to have > multiple python commands at once, too. I have shortcuts for python24, > python25 and python26 on my Windows box. Ah, thanks, that's really useful. I need this too,

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 6:24 PM, Christian Heimes wrote: > > I highly recommend against adding C:\Python25 to your %PATH%. You can > get the same effect by adding a simple bat file to C:\Windows\System32 I am curious, what's the difference ? And does this work if you want to add it to your user

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 4:44 PM, 83nini <83n...@gmail.com> wrote: > > thanks for the tip, how do i add the path of python into my %PATH%? >From the command line (and from memory, I don't use windows regularly): set PATH=C:\python25;%PATH% And you can set it up permanently in the advanced settin

  1   2   >