[ANN] Bento 0.1.0

2012-06-14 Thread David Cournapeau
Hi, I am pleased to announce a new release of bento, a packaging solution for python which aims at reproducibility, extensibility and simplicity. The main features of this 0.1.0 release are: - new commands register_pypi and upload_pypi to register a package to pypi and

[ANN] Bento 0.0.8.1

2012-04-01 Thread David Cournapeau
Hi, I am pleased to announce a new release of bento, a packaging solution for python which aims at reproducibility, extensibility and simplicity. The main features of this 0.0.8.1 release are: - Path sections can now use conditionals - More reliable convert command to migrate

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 jamesdnld...@gmail.com 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

Re: Terrible FPU performance

2011-04-27 Thread David Cournapeau
On Wed, Apr 27, 2011 at 10:04 PM, Mihai Badoiu mbad...@gmail.com 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

Re: Terrible FPU performance

2011-04-26 Thread David Cournapeau
On Wed, Apr 27, 2011 at 4:14 AM, Dan Goodman dg.gm...@thesamovar.net 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

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 pyt...@rcn.com 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 Wed, Apr 13, 2011 at 5:17 PM, Nathan Coulson conat...@gmail.com 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

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 conat...@gmail.com 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

[ANN] Bento 0.0.5, a packaging solution for python software

2011-03-08 Thread David Cournapeau
Hi, I am pleased to announce a new release of bento, a packaging solution for python which aims at reproducibility, extensibility and simplicity. You can take a look at its main features on bento's main documentation page (http://cournape.github.com/Bento). The main features of this 0.0.5

Re: which scipy binary for Win32

2011-01-25 Thread David Cournapeau
On Tue, Jan 25, 2011 at 6:24 PM, Adam nos...@example.com 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

Re: Changing the EAX register with Python

2010-11-19 Thread David Cournapeau
On Fri, Nov 19, 2010 at 4:17 PM, Tim Roberts t...@probo.com wrote: dutche dut...@gmail.com 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

[ANN] bento 0.0.4, a pythonic packaging solution for python softwares

2010-10-10 Thread David Cournapeau
Hi, I am pleased to announce the release 0.0.4 for Bento, a pythonic packaging solution for python softwares. Bento is an alternative to distutils/setuptools/distutils2 geared toward simplicity and hackability: http://cournape.github.com/Bento/ Download:

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 st...@remove-this-cybersource.com.au 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

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 st...@remove-this-cybersource.com.au 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.

Re: visual studio 2010 question

2010-09-21 Thread David Cournapeau
On Tue, Sep 21, 2010 at 5:54 AM, Diez B. Roggisch de...@web.de wrote: David Cournapeau courn...@gmail.com writes: On Mon, Sep 20, 2010 at 3:08 PM, Ralf Haring har...@preypacer.com wrote: After running into the error Setup script exited with error: Unable to find vcvarsall.bat when trying

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 de...@web.de wrote: Ant ant...@gmail.com 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

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 de...@web.de wrote: David Cournapeau courn...@gmail.com writes: On Tue, Sep 21, 2010 at 10:23 PM, Diez B. Roggisch de...@web.de wrote: Ant ant...@gmail.com writes: Hi all, I've just seen this: http://sheddingbikes.com/posts/1285063820.html

Re: visual studio 2010 question

2010-09-20 Thread David Cournapeau
On Mon, Sep 20, 2010 at 3:08 PM, Ralf Haring har...@preypacer.com 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

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 stefan...@behnel.de 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

Re: Speed-up for loops

2010-09-07 Thread David Cournapeau
On Sun, Sep 5, 2010 at 8:28 PM, BartC ba...@freeuk.com 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

Re: Speed-up for loops

2010-09-04 Thread David Cournapeau
On Thu, Sep 2, 2010 at 7:02 PM, Michael Kreim mich...@perfect-kreim.de 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 =

Re: speed of numpy.power()?

2010-08-25 Thread David Cournapeau
On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann carlos.grohm...@gmail.com 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

Re: Python why questions

2010-08-16 Thread David Cournapeau
On Mon, Aug 16, 2010 at 9:53 AM, Gregory Ewing greg.ew...@canterbury.ac.nz 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

Re: Python Portability

2010-08-08 Thread David Cournapeau
On Sun, Aug 8, 2010 at 10:10 AM, W. eWatson wolftra...@invalid.com 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

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

2010-08-06 Thread David Cournapeau
On Fri, Aug 6, 2010 at 8:45 AM, Roy Smith r...@panix.com wrote: In article i3e43n$v7...@lust.ihug.co.nz,  Lawrence D'Oliveiro l...@geek-central.gen.new_zealand wrote: In message roy-6bcfa7.22564104082...@news.panix.com, Roy Smith wrote: C++, for all its flaws, had one powerful feature which

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 r...@panix.com wrote: In article mailman.1666.1281075732.1673.python-l...@python.org,  David Cournapeau courn...@gmail.com wrote: Yes, there are a few corner cases where valid C syntax has different semantics in C and C++.  But, they are very 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 li...@cheimes.de 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

Re: numpy installation

2010-07-25 Thread David Cournapeau
Hi Jia, On Sun, Jul 25, 2010 at 12:01 PM, Jia Hu huji...@gmail.com 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.

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 zo...@zooko.com 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

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 pavlovevide...@gmail.com wrote: On Jul 7, 1:31 am, Paul McGuire pt...@austin.rr.com wrote: On Jul 6, 3:30 am, David Cournapeau courn...@gmail.com wrote: On Tue, Jul 6, 2010 at 4:30 AM, D'Arcy J.M. Cain da...@druid.net wrote: One thing that would

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 mar...@v.loewis.de 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

Re: Python -- floating point arithmetic

2010-07-07 Thread David Cournapeau
On Thu, Jul 8, 2010 at 5:41 AM, Zooko O'Whielacronx zo...@zooko.com 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

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 da...@druid.net wrote: On Mon, 05 Jul 2010 14:42:13 -0400 Terry Reedy tjre...@udel.edu 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

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 alf.p.steinbach+use...@gmail.com 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++

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 tho...@jollans.com wrote: On 07/07/2010 12:08 AM, David Cournapeau wrote: On Tue, Jul 6, 2010 at 6:00 PM, Alf P. Steinbach /Usenet alf.p.steinbach+use...@gmail.com wrote: There is no *technical* problem creating a compiler-independent C/C

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 tjre...@udel.edu 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

Re: Lua is faster than Fortran???

2010-07-04 Thread David Cournapeau
On Sun, Jul 4, 2010 at 5:03 PM, Stefan Behnel stefan...@behnel.de 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

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 da...@druid.net wrote: On 04 Jul 2010 04:15:57 GMT Steven D'Aprano st...@remove-this-cybersource.com.au 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

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 da...@druid.net wrote: On Sun, 4 Jul 2010 23:46:10 +0900 David Cournapeau courn...@gmail.com wrote: On Sun, Jul 4, 2010 at 11:23 PM, D'Arcy J.M. Cain da...@druid.net 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 Mon, Jul 5, 2010 at 1:12 AM, sturlamolden sturlamol...@yahoo.no wrote: On 4 Jul, 10:03, Stefan Behnel stefan...@behnel.de 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

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 m...@timgolden.me.uk 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

Re: GAE + recursion limit

2010-07-02 Thread David Cournapeau
On Fri, Jul 2, 2010 at 5:06 PM, Maciej one50123164e...@getonemail.com 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

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 greg.ew...@canterbury.ac.nz 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

Re: I strongly dislike Python 3

2010-06-27 Thread David Cournapeau
On Sun, Jun 27, 2010 at 4:54 PM, Martin v. Loewis mar...@v.loewis.de 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

Re: I strongly dislike Python 3

2010-06-27 Thread David Cournapeau
On Sun, Jun 27, 2010 at 11:46 PM, Peter Kleiweg p.c.j.klei...@rug.nl 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 example, porting numpy

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 joseftu...@gmail.com 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

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 steve-remove-t...@cybersource.com.au 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

Re: MySQLdb install vs. setuptools

2010-05-30 Thread David Cournapeau
On Sun, May 30, 2010 at 3:56 PM, John Nagle na...@animats.com 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

Re: MySQLdb install vs. setuptools

2010-05-30 Thread David Cournapeau
On Mon, May 31, 2010 at 7:16 AM, John Nagle na...@animats.com 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

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 lie.1...@gmail.com 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

Re: Another Go is Python-like article.

2010-05-21 Thread David Cournapeau
On Fri, May 21, 2010 at 11:20 PM, Grant Edwards inva...@invalid.invalid 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

Re: Download Proprietary Microsoft Products Now

2010-04-21 Thread David Cournapeau
On Thu, Apr 22, 2010 at 9:59 AM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand 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,

Re: How to run python without python

2010-04-03 Thread David Cournapeau
On Sat, Apr 3, 2010 at 2:23 AM, Chris Rebert c...@rebertia.com wrote: On Fri, Apr 2, 2010 at 10:09 AM, danmcle...@yahoo.com danmcle...@yahoo.com wrote: On Apr 1, 5:54 pm, Chris Rebert c...@rebertia.com wrote: On Thu, Apr 1, 2010 at 4:46 PM, Krister Svanlund krister.svanl...@gmail.com wrote:

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 sccolb...@gmail.com 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 --

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 ben+pyt...@benfinney.id.au wrote: David Cournapeau courn...@gmail.com writes: On Sat, Mar 27, 2010 at 5:26 AM, Chris Colbert sccolb...@gmail.com wrote: I won't switch until NumPy and SciPy make the jump. We're almost there, though (mostly thanks

Re: PYTHONPATH and eggs

2010-03-03 Thread David Cournapeau
On Wed, Mar 3, 2010 at 7:14 PM, geoffbache geoff.ba...@jeppesen.com 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

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 andrej.mitrov...@gmail.com 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

Re: Dreaming of new generation IDE

2010-02-03 Thread David Cournapeau
On Wed, Feb 3, 2010 at 10:18 PM, Adam Tauno Williams awill...@opengroupware.us 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

Re: Dreaming of new generation IDE

2010-02-03 Thread David Cournapeau
On Thu, Feb 4, 2010 at 1:13 PM, Vladimir Ignatov kmis...@gmail.com 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 what

Re: Library support for Python 3.x

2010-01-28 Thread David Cournapeau
On Thu, Jan 28, 2010 at 5:08 PM, Ben Finney ben+pyt...@benfinney.id.au 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

Re: Library support for Python 3.x

2010-01-28 Thread David Cournapeau
On Thu, Jan 28, 2010 at 5:40 PM, Stefan Behnel stefan...@behnel.de 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

Re: python 3's adoption

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 9:25 AM, Paul Rubin no.em...@nospam.invalid 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

Re: Library support for Python 3.x

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 7:38 AM, Terry Reedy tjre...@udel.edu 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

Re: Library support for Python 3.x

2010-01-27 Thread David Cournapeau
On Thu, Jan 28, 2010 at 3:37 PM, Paul Rubin no.em...@nospam.invalid wrote: David Cournapeau courn...@gmail.com 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 what Paul

Re: Is python not good enough?

2010-01-18 Thread David Cournapeau
On Mon, Jan 18, 2010 at 8:03 PM, Phlip phlip2...@gmail.com 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

Re: Is python not good enough?

2010-01-16 Thread David Cournapeau
On Sun, Jan 17, 2010 at 4:17 AM, John Nagle na...@animats.com 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: Is python not good enough?

2010-01-16 Thread David Cournapeau
On Sun, Jan 17, 2010 at 11:43 AM, John Nagle na...@animats.com wrote: David Cournapeau wrote: On Sun, Jan 17, 2010 at 4:17 AM, John Nagle na...@animats.com 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

Re: numpy performance and random numbers

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

Re: Duplicates of third-party libraries

2009-12-08 Thread David Cournapeau
On Tue, Dec 8, 2009 at 9:02 PM, Lie Ryan lie.1...@gmail.com 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

Re: Float precision and float equality

2009-12-06 Thread David Cournapeau
On Sun, Dec 6, 2009 at 1:46 AM, Mark Dickinson dicki...@gmail.com wrote: On Dec 5, 3:37 pm, Anton81 gerenu...@googlemail.com 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

Re: NumPy installation won't import correctly

2009-12-01 Thread David Cournapeau
On Tue, Dec 1, 2009 at 7:47 PM, Ethos kevint...@gmail.com 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:        

Re: NumPy installation won't import correctly

2009-12-01 Thread David Cournapeau
On Wed, Dec 2, 2009 at 11:03 AM, Ethos kevint...@gmail.com 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

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 aaron.watt...@gmail.com 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

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 http://phr...@nospam.invalid 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

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 tjre...@udel.edu wrote: David Cournapeau wrote: On Tue, Nov 17, 2009 at 10:48 PM, Aaron Watters aaron.watt...@gmail.com wrote: I don't think Python and Go address the same set of programmer desires.  For example, Go has a static type system

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 7:46 PM, ankita dutta ankita.dutt...@gmail.com 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

Re: segmentation fault

2009-10-15 Thread David Cournapeau
On Thu, Oct 15, 2009 at 9:08 PM, ankita dutta ankita.dutt...@gmail.com 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)

Re: ubuntu dist-packages

2009-08-27 Thread David Cournapeau
On Thu, Aug 27, 2009 at 8:27 AM, Diez B. Roggischde...@nospam.web.de wrote: Paul Boddie wrote: On 26 Aug, 17:48, Jorgen Grahn grahn+n...@snipabacken.se 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

Re: Why all the __double_underscored_vars__?

2009-08-08 Thread David Cournapeau
On Sat, Aug 8, 2009 at 9:11 PM, kjno.em...@please.post wrote: In mailman.4446.1249683227.8015.python-l...@python.org Chris Rebert c...@rebertia.com writes: The double-underscores indicate that the Python interpreter itself usually is the caller of the method, and as such some level of magic

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. Roggischde...@nospam.web.de 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: Using Python to automate builds

2009-08-06 Thread David Cournapeau
On Thu, Aug 6, 2009 at 12:39 AM, Kostakosta.koe...@gmail.com 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

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. Roggischde...@nospam.web.de 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

Re: Using Python to automate builds

2009-08-05 Thread David Cournapeau
On Wed, Aug 5, 2009 at 4:56 PM, Hendrik van Rooyenhend...@microcorp.co.za 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

Re: Internal Math Library of Numpy

2009-07-28 Thread David Cournapeau
On Tue, Jul 28, 2009 at 10:09 PM, Nanime Puloskinpulo...@gmail.com 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

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 Cohendotanco...@gmail.com 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

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 Cohendotanco...@gmail.com 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.

Re: matplotlib installation

2009-06-12 Thread David Cournapeau
On Fri, Jun 12, 2009 at 9:50 PM, Jean-Paul Calderoneexar...@divmod.com wrote: On Fri, 12 Jun 2009 11:33:36 GMT, Alan G Isaac alan.is...@gmail.com 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?

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

2009-06-09 Thread David Cournapeau
On Tue, Jun 9, 2009 at 7:40 PM, Chandramoulinaruvim...@gmail.com 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

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

Re: Package problem

2009-05-19 Thread David Cournapeau
On Tue, May 19, 2009 at 2:35 PM, David Lyon david.l...@preisshare.net wrote: On Tue, 19 May 2009 13:53:18 +0900, David Cournapeau courn...@gmail.com 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

Re: Package problem

2009-05-19 Thread David Cournapeau
On Tue, May 19, 2009 at 9:29 PM, A. Cavallo a.cava...@cavallinux.eu 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

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 4:52 AM, Sverre sverreodeg...@gmail.com 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

Re: Package problem

2009-05-18 Thread David Cournapeau
On Tue, May 19, 2009 at 1:15 PM, David Cournapeau courn...@gmail.com 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 1:31 PM, David Lyon david.l...@preisshare.net 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

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:

Re: Statically linked extension and relative import

2009-05-07 Thread David Cournapeau
On Thu, May 7, 2009 at 8:34 PM, Andrew MacIntyre andy...@bullseye.apana.org.au 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 tree, but I have

Re: Numpy on python 2.7a

2009-05-05 Thread David Cournapeau
On Wed, May 6, 2009 at 4:06 AM, A. Cavallo a.cava...@cavallinux.eu 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 --

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 hackin...@gmail.com 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

Re: python command not working

2009-04-22 Thread David Cournapeau
On Wed, Apr 22, 2009 at 4:20 PM, 83nini 83n...@gmail.com wrote: Hi guys, I'm new to python, i downloaded version 2.5, opened windows (vista) command line and wrote python, this should take me to the python command line, but it did not! i'm getting : python is not an internal command,

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 settings

  1   2   >