performance question

2007-03-14 Thread Eric Texier
I need speed here. What will be the fastest method or does it matter? (for the example 'a' is only 3 values for the clarity of the example) a = [1,3,4.] ## method1: f.write("vec %f %f %f \n" % (a[0],a[1],a[2])) method2: f.write("vec " + str(a[0]) + " " + str(a[1]) + " " + str(a[2]) + "\n") a

python on mac keystroke

2005-04-25 Thread Eric Texier
I am testing python on a mac. In the python console, none of the control as the arrow to scroll back to a preview line are working. How can I fix this. Thanks eric Following is an example: python Python 2.4.1 (#1, Apr 22 2005, 21:15:26) [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darw

key binding with mac

2005-04-25 Thread Eric Texier
I am just starting to use python on the mac. How do I get backspace, the arrows up/down and all the control like ctrl-a to work nicely under the console. for now I am getting a bunch of ^? ^[[A when I use any tcsh type of control. thanks, -- http://mail.python.org/mailman/listinfo/python-list