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: 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: 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: 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: 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: 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: Python Package Managment

2009-01-28 Thread David Cournapeau
On Wed, Jan 28, 2009 at 3:16 PM, Bernard Rankin wrote: > [extracted from pylons-discuss] > > >> >> I hate to pass the buck, but this is Python's fault for not having >> >> reliable package management built in. There's nothing Pylons can do >> >> about it except switch to another programming langu

Re: Profiling Python Apps on Mac?

2009-01-28 Thread David Cournapeau
On Thu, Jan 29, 2009 at 4:14 AM, RGK wrote: > I'm writing a python app on a Mac (in Eclipse + PyDev w/ Python2.5 & > wxPython under OSX 10.4) > > As I make program architecture decisions, it would be nice to be able to > profile the choices. Should I add that extra thread? Is this big-assed xml

Re: Embedding numpy works once, but not twice??

2009-01-31 Thread David Cournapeau
On Sun, Feb 1, 2009 at 2:47 PM, Deepak Chandran wrote: > I have a program in which I have successfully embedded Python. Now, I want > to include NumPy as well (and other modules). I am able to import numpy > once. Then I close the python console in my program and then re-open it. > When I try to i

Re: is python Object oriented??

2009-02-02 Thread David Cournapeau
On Tue, Feb 3, 2009 at 2:37 PM, Russ P. wrote: > On Feb 2, 7:48 pm, "Rhodri James" wrote: >> On Tue, 03 Feb 2009 02:16:01 -, Russ P. wrote: >> > Here we go again. If you have access to the source code (as you nearly >> > always do with Python code), then "breaking the language-enforced data

Re: is python Object oriented??

2009-02-03 Thread David Cournapeau
On Wed, Feb 4, 2009 at 2:36 AM, wrote: > On Feb 3, 1:14 am, David Cournapeau wrote: >> On Tue, Feb 3, 2009 at 2:37 PM, Russ P. wrote: >> > On Feb 2, 7:48 pm, "Rhodri James" wrote: >> >> On Tue, 03 Feb 2009 02:16:01 -, Russ P. >> >> wr

Re: x64 speed

2009-02-03 Thread David Cournapeau
On Wed, Feb 4, 2009 at 2:36 AM, Robin Becker wrote: > Whilst doing some portability testing with reportlab I noticed a strange > speedup for our unittest suite with python2.5 > > host win32 xp3 unittest time=42.2 seconds > vmware RHEL x64 unittest time=30.9 seconds > > so it looks like the vmware

Re: is python Object oriented??

2009-02-03 Thread David Cournapeau
On Wed, Feb 4, 2009 at 4:10 AM, wrote: > > What limitations? The only limitations I see are the ones associated > with opaque types (what you mentioned above). Opaque type are used in C++ as well, for data hiding - if private/public were that great for data hiding, the PIMPL idiom would not be

Re: Python binaries with VC++ 8.0?

2009-02-08 Thread David Cournapeau
On Mon, Feb 9, 2009 at 4:14 PM, Carl Banks wrote: > On Feb 8, 10:51 pm, Greg Ewing wrote: >> Is there anywhere I can download a set of Python >> binaries, of any version, that have been built >> with Visual C++ 8.0? >> >> I'm trying to hook Python up to Sketchup 7 on >> Windows, and I think I'm h

Re: Ipython - Do they have a separate mailing list or newsgroup?

2009-02-12 Thread David Cournapeau
On Fri, Feb 13, 2009 at 10:48 AM, Chris Jones wrote: > Just wondering if ipython is supported elsewhere. > The ipython mailing list is there: http://projects.scipy.org/mailman/listinfo/ipython-user David -- http://mail.python.org/mailman/listinfo/python-list

Re: is there a project running (GUI Builder for Python ) ?

2009-02-12 Thread David Cournapeau
On Fri, Feb 13, 2009 at 10:48 AM, azrael wrote: > On Feb 12, 9:42 pm, Christian Heimes wrote: >> azrael wrote: >> > On Feb 12, 8:25 pm, J Kenneth King wrote: >> >> azrael writes: >> >>> To be honest, in compare to Visual Studio, Gui Builders for wx >> >>> widgets are really bad. >> >> That's be

Re: A little bit else I would like to discuss

2009-02-12 Thread David Cournapeau
On Fri, Feb 13, 2009 at 12:39 PM, Damon wrote: > The original poster complained about needing to go off to third-party > sites to hunt for software. I wonder if the Python team has ever > considered following the lead of miktex or R, and setting up a > centralized (mirrored) repository of packages

Re: Problem building Python extension

2009-02-13 Thread David Cournapeau
On Fri, Feb 13, 2009 at 6:30 PM, wrote: > Hi all, > > I'm trying to build my first python extensionon a win32 system. I > followed the description in > http://starship.python.net/crew/mwh/toext/your-first-extension.html, > but after running > > C:\Python26\python first-setup.py build_ext -i > >

Re: Problem building Python extension

2009-02-13 Thread David Cournapeau
On Fri, Feb 13, 2009 at 7:58 PM, wrote: > On 13 feb, 10:53, David Cournapeau wrote: >> On Fri, Feb 13, 2009 at 6:30 PM, wrote: >> > Hi all, >> >> > I'm trying to build my first python extensionon a win32 system. I >> > followed the description &

Re: Strange array.array performance

2009-02-19 Thread David Cournapeau
On Fri, Feb 20, 2009 at 4:53 AM, Maxim Khitrov wrote: > On Thu, Feb 19, 2009 at 2:35 PM, Robert Kern wrote: >> On 2009-02-19 12:52, Maxim Khitrov wrote: >>> >>> Hello all, >>> >>> I'm currently writing a Python<-> MATLAB interface with ctypes and >>> array.array class, using which I'll need to p

Re: Strange array.array performance

2009-02-19 Thread David Cournapeau
On Fri, Feb 20, 2009 at 11:43 AM, Maxim Khitrov wrote: > > Yes, I may have a case where one thread is still sending data, while > another tries to close the connection, or two threads trying to close > the connection at the same time. In both cases, I need some parts of > the code to be atomic to

Re: Installing NumPy and SciPy in Python 2.6

2008-11-28 Thread David Cournapeau
On Sat, Nov 29, 2008 at 4:31 AM, Scott David Daniels <[EMAIL PROTECTED]> wrote: > Vicent Giner wrote: >> >> I've installed Python 2.6 in my Windows XP. Actually, I've installed >> ActiveState's ActivePython 2.6. >> >> I would like to use NumPy and SciPy. >> >> Are those packages compatible with ver

Re: using distutils to cross-compile extensions?

2008-12-04 Thread David Cournapeau
On Fri, Dec 5, 2008 at 7:42 AM, Michael George <[EMAIL PROTECTED]> wrote: > Hi, > > Please CC me in replying as I am off list. > > I have an extension module that I've built using distutils. I wonder if > it's possible to use distutils to cross-compile it for windows on my linux > box, and whether

Re: How to distribute C/C++ python extension module on Linux?

2008-12-05 Thread David Cournapeau
On Fri, Dec 5, 2008 at 5:09 PM, Allen <[EMAIL PROTECTED]> wrote: > I have build an extension module PyRPC.so (why not be libPyRPC.so?). > The PyRPC.so uses API in libRPCPacker.so. > How to distribute the PyRPC.so? The simple answer is you can't. Depending on the distribution, the python interprete

Re: Python and audio frequency analysis

2008-12-08 Thread David Cournapeau
On Mon, Dec 8, 2008 at 10:20 PM, manatlan <[EMAIL PROTECTED]> wrote: > I'd like to make a kind of "spectrum analyzer" ... > Which should display "bars" according bands of frequencies ... in real > time... > > Is anybody know an audio processing lib in python for that ? Hi, It is possible to use p

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-10 Thread David Cournapeau
On Wed, Dec 10, 2008 at 12:04 PM, Chris Rebert <[EMAIL PROTECTED]> wrote: > On Tue, Dec 9, 2008 at 6:49 PM, <[EMAIL PROTECTED]> wrote: >> On Ubuntu, I accidentally manually installed setuptools >> http://pypi.python.org/pypi/setuptools/0.6c9 (by running the .egg file >> as a shell script via sudo)

Re: density plot

2008-12-10 Thread David Cournapeau
On Thu, Dec 11, 2008 at 1:57 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know how to make the density plot, more specifically a > gaussian-smoothed version of a histogram. Actually, it's not exactly > a plot that I want. What I want to do is get the maximum count (or > highest peak) of

Building extensions for python 2.6 adm64 with the SDK compiler

2008-12-12 Thread David Cournapeau
Hi, I have some trouble building python 2.6 extensions with the SDK compiler on windows 64 bits. The problem is that after link step, mt.exe is called to embed the MANIFEST into the executable, but the manifest is not created, so the build fails with a "general error c1010070:Failed to load and pa

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-12 Thread David Cournapeau
On Thu, Dec 11, 2008 at 10:30 PM, Nick Craig-Wood wrote: > David Cournapeau wrote: >> On Wed, Dec 10, 2008 at 12:04 PM, Chris Rebert wrote: >> > On Tue, Dec 9, 2008 at 6:49 PM, wrote: >> >> On Ubuntu, I accidentally manually installed setuptools >> >&

Re: Python is slow

2008-12-12 Thread David Cournapeau
On Fri, Dec 12, 2008 at 11:04 PM, Luis M. González wrote: > It has been mentioned in this thread the pypy project (isn't it enough > for you??) Since pypy can't be used today for most production use (most python packages can't work on it), I don't see how it could be enough for anyone interested

Re: How do I manually uninstall setuptools (installed by egg)?

2008-12-12 Thread David Cournapeau
On Sat, Dec 13, 2008 at 1:30 AM, Nick Craig-Wood wrote: > David Cournapeau wrote: >> On Thu, Dec 11, 2008 at 10:30 PM, Nick Craig-Wood >> wrote: >> > David Cournapeau wrote: >> >> On Wed, Dec 10, 2008 at 12:04 PM, Chris Rebert wrote: >> &g

Re: stable algorithm with complexity O(n)

2008-12-14 Thread David Cournapeau
On Mon, Dec 15, 2008 at 2:12 PM, Aaron Brady wrote: > > I agree. Most of his examples were tautologies. The magnet one was > the exception. A proof is nothing more than a tautology :) The fact that pi is not rational is not trivial (but certainly has been proved for some time now). cheers, D

Python for amd64 and mingw-w64

2008-12-18 Thread David Cournapeau
Hi, I want to build python extensions with mingw-w64 on windows 64 bits. I found some problems which I think are python bugs/deficiencies, but would like a confirmation: - Any extension requires the MS_WIN64 to be defined, but this symbol is only defined for MS compiler (in PC/pyport.h). Shouldn

Re: Python for amd64 and mingw-w64

2008-12-19 Thread David Cournapeau
On Fri, Dec 19, 2008 at 3:30 PM, "Martin v. Löwis" wrote: > > It's a mistake if libpython26.a gets included in the Win64 installer > at all; this library is only provided for 32-bit systems. My copy of > mingw doesn't support Win64 at all. Please ignore that last point: it looks like it is gener

Re: Python for amd64 and mingw-w64

2008-12-21 Thread David Cournapeau
On Fri, Dec 19, 2008 at 3:30 PM, "Martin v. Löwis" wrote: >> - Any extension requires the MS_WIN64 to be defined, but this symbol >> is only defined for MS compiler (in PC/pyport.h). > > Why do you say that? It is only defined when _WIN64 is defined; this > has nothing to do with a MS compiler. >

Re: Python in C

2008-12-29 Thread David Cournapeau
On Tue, Dec 30, 2008 at 10:22 AM, wrote: > I've just downloaded Python's mainstream implementation (CPython), > which is written in C. Not to my surprise, I feel like I'm looking at > unstructured spaghetti, and I'm having trouble figuring out how it all > works together. (Please bear with me; I'

print a vs print '%s' % a vs print '%f' a

2008-12-29 Thread David Cournapeau
Hi, While working on some python C extensions, I got curious in how things work for printing float objects (and C-level objects which inherit from it). In python 2.6, I understand that the formatting went into surgery for more consistency across platforms. So for example, on windows, complex('inf'

Re: print a vs print '%s' % a vs print '%f' a

2008-12-29 Thread David Cournapeau
On Tue, Dec 30, 2008 at 12:23 PM, James Mills wrote: > On Tue, Dec 30, 2008 at 1:19 PM, David Cournapeau wrote: > (... snip ...) > >> print '%f' % a # -> print '1.#INF' > > Would this not be controlled by: > 1. float(a) or a.__float__() > 2. tp_p

Re: Is there a best linux distro for a python hobbyist?

2009-01-06 Thread David Cournapeau
On Tue, Jan 6, 2009 at 10:16 AM, Lex Hider wrote: > Probably not a big difference in most cases between debian, ubuntu, > fedora. The latter two may be more likely to have more recent > versions. > > I'm pretty sure ubuntu is the only one which currently has python 3.0 > in it's archives [no, it's

Re: [Python-Dev] compiling python2.5 on linux under wine

2009-01-08 Thread David Cournapeau
On Thu, Jan 8, 2009 at 9:42 PM, Simon Cross wrote: > On Sat, Jan 3, 2009 at 11:22 PM, Luke Kenneth Casson Leighton > wrote: >> secondly, i want a python25.lib which i can use to cross-compile >> modules for poor windows users _despite_ sticking to my principles and >> keeping my integrity as a fr

Re: [Python-Dev] compiling python2.5 on linux under wine

2009-01-08 Thread David Cournapeau
On Thu, Jan 8, 2009 at 11:02 PM, Luke Kenneth Casson Leighton wrote: > On Thu, Jan 8, 2009 at 1:11 PM, David Cournapeau wrote: >> On Thu, Jan 8, 2009 at 9:42 PM, Simon Cross >> wrote: >>> On Sat, Jan 3, 2009 at 11:22 PM, Luke Kenneth Casson Leighton >>> wrote:

Re: Python 2.6 fails on compiling > Bug report

2009-01-09 Thread David Cournapeau
On Fri, Jan 9, 2009 at 6:18 PM, wrote: > hm... any ideas? Posting the config.log file would be a first step to give more information, David -- http://mail.python.org/mailman/listinfo/python-list

Re: Improving interpreter startup speed

2008-10-26 Thread David Cournapeau
On Mon, Oct 27, 2008 at 10:52 AM, James Mills <[EMAIL PROTECTED]> wrote: > On Mon, Oct 27, 2008 at 4:12 AM, Benjamin Kaplan > +1 This thread is stupid and pointless. > Even for a so-called cold startup 0.5s is fast enough! Not if the startup is the main cost for a command you need to repeat many t

Re: Improving interpreter startup speed

2008-10-27 Thread David Cournapeau
On Mon, Oct 27, 2008 at 2:36 PM, Terry Reedy <[EMAIL PROTECTED]> wrote: > > It this a theoretical problem or an actual one, that we might have other > suggestions for? Any command line based on python is a real example of that problem. There are plenty of them. David -- http://mail.python.org/mai

Re: Improving interpreter startup speed

2008-10-27 Thread David Cournapeau
On Mon, Oct 27, 2008 at 4:33 PM, James Mills <[EMAIL PROTECTED]> wrote: > Yes, but in most cases you are not invoking your > command-line app x times per y units of time. Depends on the tool: build tool and source control tools are example it matters (specially when you start interfaciing them wit

Re: Python memory usage

2008-10-29 Thread David Cournapeau
On Wed, Oct 29, 2008 at 6:56 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Oct 21, 5:19 pm, Rolf Wester <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have the problem that with long running Python scripts (many loops) >> memory consumption increases until the script crashes. I used the >> follo

python 2.6, MS manifest and distutils

2008-11-16 Thread David Cournapeau
Hi, I am trying to make numpy build with python 2.6 on windows, and it has been a bumpy road. Building with MS tools works OK, but building with mingw is still problematic. The problems are linked to manifest, and msvcr versions issues. Here is my understanding and how far I got: - python 2.6 is

Re: Can't find Python Library packages in Ubuntu (Debian)

2008-11-21 Thread David Cournapeau
On Fri, Nov 21, 2008 at 9:24 PM, Jerzy Jalocha N <[EMAIL PROTECTED]> wrote: > > And my third question could be: Do all Python developers that work with Debian > (or derivations) have to compile Python? I think most people using python as a development tool use the version available in their distr

Re: glibc detected *** python: corrupted double-linked list

2009-02-25 Thread David Cournapeau
On Wed, Feb 25, 2009 at 9:40 PM, Christian Meesters wrote: > Hoi, > > I have a problem using my software on my 64bit laptop, after an update of > my system. The same code still runs on 32bit Intel, but on my laptop I > provoke the crash in the title. The crash is caused - as narrowed down by > me

Re: Difference between 32 bit and 64 bit Python

2009-03-04 Thread David Cournapeau
On Wed, Mar 4, 2009 at 10:13 PM, srinivasan srinivas wrote: > > Hi, > I would like to know more about the advantages of 64-bit python. It runs on 64 bits OS, for once, which generally means the python process can address more than the few Gb possible under a 32 bits platform. If you need to deal

Re: Is python worth learning as a second language?

2009-03-09 Thread David Cournapeau
On Mon, Mar 9, 2009 at 11:33 PM, grocery_stocker wrote: > On Mar 9, 5:30 am, Nick Craig-Wood wrote: >> Go here >> >>  http://www.diveintopython.org/ >> >> Download the PDF or buy the book. >> > > What about the stuff on docs.python.org? Isn't that information just > as reliable? They do not serv

Re: Install NumPy in python 2.6

2009-03-13 Thread David Cournapeau
On Fri, Mar 13, 2009 at 8:20 PM, gopal mishra wrote: > > > error: Setup script exited with error: None numpy 1.2.1 does not officially support python 2.6. Specially on windows, there are some issues like this one. Numpy 1.3.0 (to be released 1st April 2009) will contain everything to be buildabl

Re: iPython 0.9.1 install under XP -- R6034

2009-03-24 Thread David Cournapeau
On Tue, Mar 24, 2009 at 9:36 PM, Esmail wrote: > Hello all, > > I am having problems trying installing iPython under XP. > It works great under Linux and it would be great if I could > also use it when I have to be in Windows. > > XP Professional SP2 + SP3 (tried different systems), > iPython-0.9.

Re: Python Goes Mercurial

2009-04-02 Thread David Cournapeau
On Thu, Apr 2, 2009 at 9:12 PM, Paul Boddie wrote: > > "You can do it, but as soon as you go to merge with another repo that > had the unedited commit history, you’ll bump into weirdness (and > probably invalidate your whole reason for rebasing, which was to clean > up the history)." > >  - http:

Re: Python Goes Mercurial

2009-04-05 Thread David Cournapeau
On Sun, Apr 5, 2009 at 3:48 PM, Jeroen Ruigrok van der Werven wrote: > -On [20090405 06:05], Michele Simionato (michele.simion...@gmail.com) wrote: >>P.S. the thing I do not understand if why we are moving >>away from Subversion. Will all the new features entered >>in 1.5 and 1.6 Subversion is now

Re: [Python-Dev] PEP 382: Namespace Packages

2009-04-07 Thread David Cournapeau
On Tue, Apr 7, 2009 at 11:58 PM, M.-A. Lemburg wrote: >> >> This means your proposal actually doesn't add any benefit over the >> status quo, where you can have an __init__.py that does nothing but >> declare the package a namespace.  We already have that now, and it >> doesn't need a new filenam

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 settin

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 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: 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: 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: 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: 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

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: 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

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: 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 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 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-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

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: How to make py2.5 distutil to use VC2005?

2008-06-04 Thread David Cournapeau
On Wed, Jun 4, 2008 at 11:38 AM, 甜瓜 <[EMAIL PROTECTED]> wrote: >Well, IMO, the format of binary files generated by VC2003 and > VC2005 is compatible in most cases. Problem arise with the C runtime, not with object file format. In particular, python uses the C api for file handling, and the st

Re: online tutorials?

2008-08-17 Thread David Cournapeau
On Sun, Aug 17, 2008 at 5:53 PM, Gits <[EMAIL PROTECTED]> wrote: > I want to learn how to program in python and would like to know if you > guys know of any free online tutorials. Or is it too complicated to > learn from a site or books? Hi, I learned using dive into python, available online, an

Re: Python is slow?

2008-09-25 Thread David Cournapeau
On Wed, Sep 24, 2008 at 3:07 AM, sturlamolden <[EMAIL PROTECTED]> wrote: > On Sep 23, 3:44 pm, Robert Singer <[EMAIL PROTECTED]> wrote: > >> Well, python is not a number crunching language. However much we would >> like it to be (we would ? :-). > >> No scripting language is. > > Not even Matlab, R

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: 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: 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: 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: 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: 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: 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-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: 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: 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: 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-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-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: 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: 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 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: 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: 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 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: 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: 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: 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: 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: 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: 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

  1   2   >