Python-related Animation Packages?

2011-03-29 Thread Benjamin J. Racine
Hello all, Does anyone know of software that might be of use in an attempt to animate an object undergoing 6-DOF rigid body motions: surge, sway, heave, roll, pitch and yaw? Thanks so much, Ben Racine -- http://mail.python.org/mailman/listinfo/python-list

Extending classes __init__behavior for newbies

2011-02-13 Thread Benjamin J. Racine
I don't quite understand the interplay of the two different __init__ methods when trying to extend a class. Below is my hack attempt at doing so... class ship(object): def __init__(self,l=0,b=0,t=0,name=''): self.l = l self.b = b self.t = t self.name

Re: Trying to decide between PHP and Python

2011-02-09 Thread Benjamin J. Racine
Cython/Sage is no small undertaking, but I have no idea how to measure relative success between that and hiphop. Ben On Jan 6, 2011, at 11:11 AM, John Nagle wrote: > On 1/4/2011 12:20 PM, Google Poster wrote: >> >> About once a year, I have to learn yet another programming language. >> Given a

Re: measuring a function time

2010-07-29 Thread Benjamin J. Racine
I just use ipython's functions (that are themselves just calls to the time module functions) for timing my functions... Enter: %timeit? or %time At the Ipython command prompt to get started. Ben R. On Jul 29, 2010, at 7:43 AM, D'Arcy J.M. Cain wrote: > On Thu, 29 Jul 2010 08:45:23 -0400 > Jo

combined functionality of ipython's %whos and pdb's next (without a resource heavy IDE)

2010-07-29 Thread Benjamin J. Racine
I am trying to combine the ability to move line-by-line through the code as is done with pdb's "next" function with ipython's ability to list all variables at once... without the use of a full-fledged IDE. I am not seeing how this might be done. Many thanks for your help... Ben Racine -- http

RE: What text editor is everyone using for Python

2009-05-26 Thread Benjamin J. Racine
I use Textmate (with vim keybindings) on OS X or just vim on the others OS's. I still can't decide on which IDE between Wing, PyDev and Netbeans. Ben Racine -Original Message- From: python-list-bounces+bjracine=glosten@python.org [mailto:python-list-bounces+bjracine=glosten

RE: Wing vs Netbeans IDE?

2009-05-07 Thread Benjamin J. Racine
I'd love to see an updated shootout between these three, as I cannot for the life of me seem to be able to settle down with one of them. Things I don't like: Wing's lack of integrated mercurial/svn support. The clunkiness and scattered plugin approach of Eclipse (the latter is relavent when sta

RE: pylab quick reference? (matplotlib)

2009-04-22 Thread Benjamin J. Racine
Not exactly what you've described, but I like this... I just spot the type of plot I'm looking for, copy the code, and I'm off... http://matplotlib.sourceforge.net/gallery.html I like this technique better than any formal documentation almost. Btw, there is a specific matplotlib list as well.

RE: Rounding to the nearest 5

2009-01-30 Thread Benjamin J. Racine
Doesn't this work? round_by_5.py >>> import sys def round_by_5(x= sys.argv[0]): x = x/5. x = round(x) x = x*5 print(x) return x Ben R. -Original Message- From: python-list-bounces+bjracine=glosten@python.org [mailto:python-list-bounces+bj

RE: New to python, open source Mac OS X IDE?

2009-01-28 Thread Benjamin J. Racine
I've tried Wing IDE professional, vim, textmate, and PyDev and am intrigued by each one for different reasons. Whichever module browser I get more comfortable between Wing and PyDev/Eclipse is probably the direction I will end up going. Further, if I get the Hg and SVN plugins for PyDev/Eclips

RE: English-like Python

2009-01-20 Thread Benjamin J. Racine
Doesn't ipython (the interactive shell) make this possible in some cases... not that's what you seem to be looking for exactly. Ben Racine -Original Message- From: python-list-bounces+bjracine=glosten@python.org [mailto:python-list-bounces+bjracine=glosten@python.org] On Behalf