Re: Some PyCon videos won't play

2010-03-14 Thread Niels L. Ellegaard
Lee Harr writes: > I am having a great time watching videos from PyCon. Thanks to > everyone who presented, and to those who did such a great job > putting the videos up at: http://pycon.blip.tv/ > > My trouble is that, although most of the videos play perfectly, > there are a few that refuse to

Re: Append to an Excel file

2010-01-09 Thread Niels L. Ellegaard
pp writes: > On Jan 9, 1:47 am, Jason Scheirer wrote: >> On Jan 9, 12:30 am, pp wrote: >> >> > Hi All, >> >> > How do I add a line to an existing file. This should append to the >> > existing data in the excel file, which was saved previously. >> >> > Thanks, >> > PP >> >> http://pypi.python.or

Re: Help understanding the decisions *behind* python?

2009-07-20 Thread Niels L. Ellegaard
Phillip B Oldham writes: > We often find we need to do manipulations like the above without > changing the order of the original list, and languages like JS allow > this. We can't work out how to do this in python though, other than > duplicating the list, sorting, reversing, then discarding. If

Re: Automatic debugging of copy by reference errors?

2006-12-09 Thread Niels L Ellegaard
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, Niels L > Ellegaard wrote: > > I have been using scipy for some time now, but in the beginning I made > > a few mistakes with copying by reference. > But "copying by reference" is the way Pyth

Re: Automatic debugging of copy by reference errors?

2006-12-09 Thread Niels L Ellegaard
Gabriel Genellina wrote: > I think you got in trouble with something and you're trying to avoid it > again - but perhaps this is not the right way. Could you provide some > example? I have been using scipy for some time now, but in the beginning I made a few mistakes with copying by reference. The

Automatic debugging of copy by reference errors?

2006-12-08 Thread Niels L Ellegaard
Is there a module that allows me to find errors that occur due to copy by reference? I am looking for something like the following: >>> import mydebug >>> mydebug.checkcopybyreference = True >>> a=2 >>> b=[a] >>> a=4 Traceback (most recent call last): File "", line 1, in ? CopyByReferenceError:

Re: About alternatives to Matlab

2006-12-03 Thread Niels L Ellegaard
Jon Harrop wrote: > So I'm keen to learn what Python programmers would want/expect from F# and > OCaml. I think this discussion becoming is a little misguided. The real strength of scipy is the elegant notation rather than speed. Being raised with Matlab I find scipy nicely familiar, and its fast

Re: About alternatives to Matlab

2006-11-27 Thread Niels L Ellegaard
Filip Wasilewski wrote: > As far as the speed comparison is concerned I totally agree that NumPy > can easily outperform Matlab in most cases. Of course one can use > compiled low-level extensions to speed up specific computations in > Matlab, but it's a lot easier and/or cheaper to find very good

Re: ANN: Python Molecular Viewer - 1.4.3

2006-09-19 Thread Niels L Ellegaard
[EMAIL PROTECTED] wrote: > More information can be found on our web site at > http://mgltools.scripps.edu I had some trouble finding the license of the code on the webpage, but it looks like the software is free for non-commercial use. Could I convince you to make the license more visible? Please

[[x,f(x)] for x in list that maximizes f(x)] <--newbie help

2005-12-01 Thread Niels L Ellegaard
I just started learning python and I have been wondering. Is there a short pythonic way to find the element, x, of a list, mylist, that maximizes an expression f(x). In other words I am looking for a short version of the following: pair=[mylist[0],f(mylist[0])] for x in mylist[1:]: if f(x) >

Writing an xmgr/grace file as text (not interactive)

2005-10-10 Thread Niels L Ellegaard
Can someone suggest a package that allows me to write a data file for xmgr. So far I have found some packages that allow me to start an interactive xmgrace session from python, but I would rather have a package that write a text file. I realize that xmgr can read text-files, and that the format