Re: [noob] Questions about mathematical signs...

2005-02-07 Thread Lou Pecora
(ignoring possible algebraic simplifications and transformations for some expressions). -- Lou Pecora (my views are my own) -- http://mail.python.org/mailman/listinfo/python-list

Re: GUI programming, embedding, real time plots, etc.

2005-08-08 Thread Lou Pecora
, but to really overwrite the old one ? You were able to get matplotlib to open a new plot each time (assuming you closed the old one, too)? Can you show a simple example of this? Thanks. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo

Re: OSx 10.4 lacks pythonIDE?

2005-05-17 Thread Lou Pecora
) can be used, too. Both are nice GUI editors. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: OSx 10.4 lacks pythonIDE?

2005-05-17 Thread Lou Pecora
In article [EMAIL PROTECTED], Robert Kern [EMAIL PROTECTED] wrote: I'm told Xcode does a tolerable job with Python. I just took a look at Xcode and it's not obvious how to run a script. I suspect I need a project? Then run? The docs say nothing that I can find. Thanks. -- Lou Pecora

Re: Why not a Python compiler?

2008-02-07 Thread Lou Pecora
seriously like time in some movie. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Star Wars and parsecs [was Re: Why not a Python compiler?]

2008-02-08 Thread Lou Pecora
of adopting it as their own home? ... You Betcha! :-) -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Star Wars and parsecs [was Re: Why not a Python compiler?]

2008-02-11 Thread Lou Pecora
In article [EMAIL PROTECTED], [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Feb 8, 2:53?pm, Lou Pecora [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], ?Grant Edwards [EMAIL PROTECTED] wrote: On 2008-02-08, Dennis Lee Bieber [EMAIL PROTECTED] wrote: ? ? ? A Parsec

Re: Article of interest: Python pros/cons for the enterprise

2008-02-22 Thread Lou Pecora
that about twice a year this one gets me. Looking at it the other way having done C++ development, I am w a y more productive in Python and overall spend far less time debugging. Just my experience. YMMV. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-24 Thread Lou Pecora
came to Python for a reason. Exactly right in my case. In fact this observation is directly related to the one your the previous paragraph. Python is a good language in which to start a progrom. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Article of interest: Python pros/cons for the enterprise

2008-02-24 Thread Lou Pecora
allocation and GC, but for me the raw juxtaposition of the *one* line of clear Python code with the equivalent mass of C++ code is shocking. Thanks for that. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Basic optimization of python.

2008-04-09 Thread Lou Pecora
) 3 RETURN_VALUE Not always. On a Mac running Python 2.4, here's what I get: In [3]: dis.dis(lambda: 3+4) 1 0 LOAD_CONST 1 (3) 3 LOAD_CONST 2 (4) 6 BINARY_ADD 7 RETURN_VALUE -- -- Lou Pecora

Re: Python 2.5 adoption

2008-04-21 Thread Lou Pecora
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: On Apr 21, 9:28 am, [EMAIL PROTECTED] (Aahz) wrote: Why is this newsgroup different from all other newsgroups?   Different is a verbally atomic relation. It's a Passover question. -- -- Lou Pecora -- http://mail.python.org

Re: #!/usr/bin/env python vs. #!/usr/bin/python

2008-05-03 Thread Lou Pecora
to them) is in the same place. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-09 Thread Lou Pecora
that is). No python is correct. you're expression parses this way, when converted to a lisp-ish prefix expression: (- (123 ** 0 )) Yeah, it's just the standard parser. For other situations Python does fine. E.g. In [1]: x=-1 In [2]: x**0 Out[2]: 1 -- -- Lou Pecora -- http://mail.python.org/mailman

Re: Mathematics in Python are not correct

2008-05-09 Thread Lou Pecora
=0*(1/0). Uh, Oh! If you want consistency with the treatment of exponents that might cause problems. Tough situation when you have a discontinuity at 0 for x^x. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-10 Thread Lou Pecora
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: Lou Pecora [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | In article [EMAIL PROTECTED], | Terry Reedy [EMAIL PROTECTED] wrote: | | Luis Zarrabeitia [EMAIL PROTECTED] wrote in message | news:[EMAIL PROTECTED

Re: Mathematics in Python are not correct

2008-05-12 Thread Lou Pecora
with that usage. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-12 Thread Lou Pecora
a branch cut and you must make sure the rest of your math and code are consistent with that. You should also tell any users of your code about that decision. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Problem: Terminal (OS X) window exits immediately on opening. Solution.

2009-03-16 Thread Lou Pecora
the scripts in a Terminal Window). Why it happened is lost on me. I don't know if Python, BBEdit, or Terminal munged the property list. At least I managed to track it down. I hope this helps someone if you've had this problem. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python

Re: Problem: Terminal (OS X) window exits immediately on opening. Solution.

2009-03-16 Thread Lou Pecora
to be to clean up the preferences. I don't know why the preferences got a bad command while I was running Python scripts. Maybe nothing to do with Python, maybe it does. Not sure. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem: Terminal (OS X) window exits immediately on opening. Solution.

2009-03-16 Thread Lou Pecora
Python wrote: On 16 mrt 2009, at 22:10, Lou Pecora wrote: why don't you just execute the script directly form the terminal? then you will be able to read all error messages... and you can delete all the files you want just my 2c Arno Because the shell process in the Terminal window

Re: Problem: Terminal (OS X) window exits immediately on opening. Solution.

2009-03-17 Thread Lou Pecora
Python wrote: On 16 mrt 2009, at 22:15, Lou Pecora wrote: Because the shell process in the Terminal window would exit right after it started even when I was just trying to open a new window (not even running a script), i.e. command-N in Terminal. So I could not run anything from the Terminal

Re: python for loop

2009-04-01 Thread Lou Pecora
to computers). There is nothing more practical than a good theory. --- James Clerk Maxwell You said you came from the C world (besides Fortran). If so, you have already seen array indexing starting with 0 and going to n-1. Why, then, should Python be so foreign to you? -- -- Lou Pecora

Re: python for loop

2009-04-01 Thread Lou Pecora
really do a lot with lists and tuples. When you do you will see Chris' point emphatically. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: python for loop

2009-04-01 Thread Lou Pecora
language) vs. Fortran (the programming language) and C (the programming language used in an odd way). -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: python for loop

2009-04-02 Thread Lou Pecora
In article pan.2009.04.02.06.28...@remove.this.cybersource.com.au, Steven D'Aprano ste...@remove.this.cybersource.com.au wrote: So an ordinality of zero just means the number of elements of something that doesn't exist. You do realize that will give most people headaches. :-) -- -- Lou

Re: python for loop

2009-04-02 Thread Lou Pecora
miss the Fortran 1-based indexing. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: python for loop

2009-04-03 Thread Lou Pecora
In article 5c92e9bd-1fb4-4c01-a928-04d7f6733...@e21g2000yqb.googlegroups.com, Aaron Brady castiro...@gmail.com wrote: On Apr 2, 6:34 pm, Tim Wintle tim.win...@teamrubber.com wrote: On Thu, 2009-04-02 at 15:16 -0700, Emile van Sebille wrote: Lou Pecora wrote: Confusion only comes when

Re: numpy.where

2009-04-09 Thread Lou Pecora
] Really, I've gotta RTFM. :-) -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: numpy.where

2009-04-10 Thread Lou Pecora
In article mailman.3634.1239349207.11746.python-l...@python.org, Robert Kern robert.k...@gmail.com wrote: http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html That helps, thanks. So I can RTFWP, too. :-) -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: numpy.where

2009-04-11 Thread Lou Pecora
In article 747te7f1209a...@mid.individual.net, Peter Pearson ppear...@nowhere.invalid wrote: On Thu, 09 Apr 2009 09:09:18 -0400, Lou Pecora wrote: Really, I've gotta RTFM. :-) Hey, if you find TFM, please tell me where it is. I haven't found anything Fine. I even bought Travis

Re: Using Python for programming algorithms

2008-05-19 Thread Lou Pecora
plotting, numerical computing, and embedded scripting [1]. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Hungarian Notation

2008-05-28 Thread Lou Pecora
for when it's appropriate. pnWe vUse adjHungarian nNotation prepAt nWork, conjAnd pnI vauxDont vLike pnIt advVery advMuch. conjSo pnI vAvoid pnIt prepIn nPython. HAHAHAHAHAHA! Beautifully done. Next time I need to diagram a sentence I will come to you. You're the man. :-) -- -- Lou Pecora

Re: php vs python

2008-06-02 Thread Lou Pecora
languages are so narrow they are more like dialects of a single language. If you know English you can learn to speak to a Brit, Scot, or Aussie. That's more like it...if you really want to stretch the definition of a language. And it is a stretch. Anyone speak C? Sheeze. -- -- Lou Pecora

Re: Too many 'self' in python.That's a big flaw in this language.

2007-06-28 Thread Lou Pecora
love of the language and developers' community. -- -- Lou Pecora When I was a kid my parents moved a lot, but I always found them. (R.Dangerfield) -- http://mail.python.org/mailman/listinfo/python-list

Re: a Python person's experience with Ruby

2007-12-11 Thread Lou Pecora
In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Lou Pecora a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Thus: close; could replace close(); *Please* give proper attribution. I'd *never* suggest

Re: python on Mac

2008-08-28 Thread Lou Pecora
in it: PATH=/usr/local/:/usr/local/bin/:${PATH} export PATH Bottom line: your installs and Apples' Python are separate and that's how it should be. Hope that helps. Others: please correct if I am wrong. Thanks. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Iteration for Factorials

2007-10-24 Thread Lou Pecora
. Is there a product method? (analogous to a sum method) Then you could use, arr=arange(i)+1 fact=arr.product() # or something like that -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Iteration for Factorials

2007-10-25 Thread Lou Pecora
a multiplication. Just trying to show the OP the scheme for iteration here. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Books on Python

2007-11-28 Thread Lou Pecora
or Bjarne Stroustrup's The C++ Programming Language? Python in a Nutshell is a very good reference. I second that. I also found Learning Python (Lutz Ascher, O'Reilly pub.) to be helpful when I first started, but Nutshell is what I keep going back to. Very good book. -- -- Lou Pecora

Re: Python surpasses Perl in TIOBE index

2007-12-04 Thread Lou Pecora
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: http://www.tiobe.com/tpci.htm But dreaded Ruby is coming up fast. Run Away! Run Away! HAHAHAHAHAHA. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in TIOBE index

2007-12-04 Thread Lou Pecora
about Visual Basic going up? -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: a Python person's experience with Ruby

2007-12-09 Thread Lou Pecora
In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Thus: close; could replace close(); Wouldn't this give an ambiguity? afcn=close # make an alias to the close function val=close() # set val to the return value of the close function -- -- Lou Pecora

Re: Write a GUI for a python script?

2006-03-03 Thread Lou Pecora
on a Windows machine and worked perfectly (so far) on my Mac OS X machine. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Difference in Python and Ruby interactive shells

2006-04-04 Thread Lou Pecora
. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: python on Mac

2006-04-06 Thread Lou Pecora
mess with Apple's python. Not recommended. Check the MacPython FAQ and Wiki pages. Python 2.4 was installed in /usr/local/bin. You should put that in your $PATH variable Before /usr/bin. That will cause the new Python to be launched. -- Lou Pecora (my views are my own) REMOVE

Re: Plot with scipy

2007-05-04 Thread Lou Pecora
In article [EMAIL PROTECTED], redcic [EMAIL PROTECTED] wrote: Hi all, I've just downloaded scipy v 0.5.2 and I would like to be able to draw plots. I've tried: import scipy.gplt import scipy.plt import scipy.xplt and none of them work. Are these modules still included in scipy ? If

Re: Plot with scipy

2007-05-06 Thread Lou Pecora
In article [EMAIL PROTECTED], redcic [EMAIL PROTECTED] wrote: I've already got this package. I just wanted to try something new. However, since you talk about it, I've got a question regarding this package. The execution of the code stops after the line: pylab.show() which is off course

Re: Python shell on mac os x

2007-03-19 Thread Lou Pecora
the stuff I need with 2.5. And what is the stuff you need? So we can see what definitely works. Thanks. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Lou Pecora
between two large numbers which probably goes beyond the number of digits (bits) the machine can provide to represent floating point numbers. No rescaling of the original matrix will change that. Do a google on condition number. -- Lou Pecora (my views are my own) REMOVE THIS to email me

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Lou Pecora
inversion. Can you Use a QR or SVD approach? -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: The smallest and largest values of numeric types

2007-04-17 Thread Lou Pecora
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: Hi! How can I determine the smallest and largest values of numeric types (for example int) possible in my system? I think there exists a function for this task but I don't know it. There is or was a module called kinds which was an

pylab package dependencies (was: Plotting histograms)

2006-10-17 Thread Lou Pecora
this: from scipi import * from scipi import numpy I know I've seen stuff like that, but I don't get it. The dependencies are confusing to me. I did a search of the tutorial on 'import' but didn't find the answer. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http

How to invoke ipython in Mac OS X?

2006-10-17 Thread Lou Pecora
, but never got an answer.) -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Lou Pecora
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Lou Pecora wrote: I installed the SciPy superpackage and have pylab, matplotlib, scipy, and numpy apparently running well. But I want to use matplotlib/pylab interactively. The instructions suggest doing

Re: How to invoke ipython in Mac OS X?

2006-10-17 Thread Lou Pecora
or something like that. No, I did not use the install-scripts command line option. It was installed from the Package (it's down there in /Library/Frameworks/Python...blah, blah/site-packages/IPython). -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org

Re: pylab package dependencies

2006-10-17 Thread Lou Pecora
the web sites for answers. But all else seems to run pretty smoothly. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: pylab package dependencies

2006-10-17 Thread Lou Pecora
In article [EMAIL PROTECTED], Robert Kern [EMAIL PROTECTED] wrote: Lou Pecora wrote: The only problem I'm having is getting ipython to run. Not installed in /usr/local/bin (although all other IPython files look to be installed in /Library/Framewaorks/python..blah/site-packages). I'm

Re: pylab package dependencies

2006-10-17 Thread Lou Pecora
it once instead of remembering to do it every time. Robert, thanks for the insight and the solution. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Good script editor for Python on Mac OS 10.3

2006-11-29 Thread Lou Pecora
in OS 10.3? Thanks, Scott D. Try TextWrangler. It's free. I use it's big brother BBEdit and like it. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Class __init__ behaviour

2006-04-20 Thread Lou Pecora
method with my own. Did I get that straight? Thomas Bartkus Sounds right to me. That's how I use it. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Phython and graphing

2006-04-20 Thread Lou Pecora
that, too. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Plotting package?

2006-04-25 Thread Lou Pecora
recommendations on matplotlib. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Bind an instance of a base to a subclass - can this be done?

2006-05-24 Thread Lou Pecora
) s=mf.myreadline() # Use my added function mf.close()# Use the original file function Possible in some way? Thanks in advance for any clues. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bind an instance of a base to a subclass - can this be done?

2006-05-25 Thread Lou Pecora
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: Lou Pecora schrieb: [cut] Then do something like (I know this isn't right, I'm just trying to convey the idea of what I would like) mf=myfile() mf=open(Afile,r) Possible in some way? Thanks in advance

Re: Bind an instance of a base to a subclass - can this be done?

2006-05-25 Thread Lou Pecora
file itself instead of open. I did find this in another section of Python in a Nutshell thanks to your suggestion. Thank you. And thanks to all who answered. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bind an instance of a base to a subclass - can this be done?

2006-05-25 Thread Lou Pecora
in to other variables f2=ezfile('junk','r') y,j,thestr=f2.scanline() print y,j,thestr 2.334 7 Some stuff here f2.close() The file content looks like this: [2.3341, 7, 'Some stuff here'] easy to see what is saved to the file. It works! Thanks, again. Comments welcome. -- Lou

Re: alternate language

2006-12-11 Thread Lou Pecora
it in C as a Python extension. I can develop many times faster than I could in C/C++ or Fortran or BASIC (even). I cannot compare, however, to the languages you mentioned. Sorry. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: alternate language

2006-12-11 Thread Lou Pecora
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Aahz) wrote: In article [EMAIL PROTECTED], Lou Pecora [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Bryan [EMAIL PROTECTED] wrote: what is a good alternate language to learn? i just want something to expand my mind

Re: numpy, numarray, or numeric?

2007-02-18 Thread Lou Pecora
additional features. Finally, the numpy project was started to unify the two groups by providing some of the new features in a code base consistent with the old library as well. I agree completely, having converted all my code from Numeric to NumPy. Just my 2 cents. -- Lou Pecora (my views

Is this right? Multiple imports of same module.

2007-03-09 Thread Lou Pecora
*In mod3.py import mymodule as MM Then mymodule is imported only once, but each module has access to it through the module name (mod1 and mod2) and the alias MM (mod3). Is that right? I was concerned about multiple imports and efficiency. Thanks for any info. -- Lou Pecora (my views are my own

Re: Is this right? Multiple imports of same module.

2007-03-09 Thread Lou Pecora
In article [EMAIL PROTECTED], Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: In [EMAIL PROTECTED], Lou Pecora wrote: *In mod1.py import mymodule *In mod2.py import mymodule *In mod3.py import mymodule as MM Then mymodule is imported only once, but each

Re: Is this right? Multiple imports of same module.

2007-03-09 Thread Lou Pecora
In article [EMAIL PROTECTED], Bart Ogryczak [EMAIL PROTECTED] wrote: On Mar 9, 3:30 pm, Lou Pecora [EMAIL PROTECTED] wrote: Then mymodule is imported only once, but each module has access to it through the module name (mod1 and mod2) and the alias MM (mod3). Is that right? Yes

Re: Is this right? Multiple imports of same module.

2007-03-10 Thread Lou Pecora
; since you went inside to do the rebinding, any other code that also uses the .name2 reference will see the change inside . Ah! (light bulb goes on) Yes, I get it. Thanks. No more from ** import *. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman

Re: Is this right? Multiple imports of same module.

2007-03-10 Thread Lou Pecora
In article [EMAIL PROTECTED], Simon Brunning [EMAIL PROTECTED] wrote: On 3/9/07, Lou Pecora [EMAIL PROTECTED] wrote: I have noticed that using from xxx import * can lead to problems when trying to access variables in the xxx module. Don't do it, then. ;-) I don't anymore. But I find

Re: Is this right? Multiple imports of same module.

2007-03-10 Thread Lou Pecora
In article [EMAIL PROTECTED], Ben Finney [EMAIL PROTECTED] wrote: Lou Pecora [EMAIL PROTECTED] writes: ['import mymodule' in three separate modules] Then mymodule is imported only once, but each module has access to it through the module name (mod1 and mod2) and the alias MM (mod3

Re: New to Python

2007-03-12 Thread Lou Pecora
liked Learning Python by Lutz and Ascher (O'Reilly publ.) when I started Python, but I don't know if that's been updated recently. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python in a desktop environment

2007-03-13 Thread Lou Pecora
that you need C++ before you've tested a Python implementation, but it's your nickle. :) It really sounds like it's the C++ legacy that's driving Mr. Edward's decision. The rest are just arguing points. Which several people have jumped at. -- Lou Pecora (my views are my own) REMOVE

Re: Python is slow

2008-12-22 Thread Lou Pecora
to increase it easily. Programming speed is incredible. I can get substantial object oriented code up and running much faster than anything I've ever used. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Does Python really follow its philosophy of Readability counts?

2009-01-12 Thread Lou Pecora
use one before setting a value I'll get an exception or really bad results that I can easily trace to the unset variable. I'm not a big fan of dogmatic rules, other than the rule that says you should make your code as easy for somebody else to understand as possible. Right. -- -- Lou Pecora

Re: quick beginners List comprehension question

2009-01-21 Thread Lou Pecora
this seems to work just fine. What am I missing: A=[1,2,3] print A A=[2*a for a in A] print A -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

SAGE help support?

2010-01-14 Thread Lou Pecora
no idea where to go with this. Thanks for any pointers. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Ruby

2010-02-03 Thread Lou Pecora
variables. How simple, but beautiful. I was making it harder when Python was making it easier. Trained on the wrong language. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: YAML (was: Python and Ruby)

2010-02-04 Thread Lou Pecora
In article 87eil1ddjp.fsf...@castleamber.com, John Bokma j...@castleamber.com wrote: Lou Pecora pec...@anvil.nrl.navy.mil writes: That's a pretty accurate description of how I transitioned to Python from C and Fortran. Not C, but C++ (but there are also C implementations): YAML, see

Re: Python and Ruby

2010-02-04 Thread Lou Pecora
In article 7x8wb9j4r2@ruckus.brouhaha.com, Paul Rubin no.em...@nospam.invalid wrote: Lou Pecora pec...@anvil.nrl.navy.mil writes: after much noodling around and reading it hit me that I could just put all that output of different types of variables into a list, hit it with a repr

Re: YAML (was: Python and Ruby)

2010-02-05 Thread Lou Pecora
In article 00f4bb3a$0$15566$c3e8...@news.astraweb.com, Steven D'Aprano st...@remove-this-cybersource.com.au wrote: On Thu, 04 Feb 2010 09:57:59 -0500, Lou Pecora wrote: Well, that looks a bit more complicated than I would like, but maybe it's doing more stuff than I can grok. Here's what

A fix for pylab and TkAgg plotting in SAGE (Mac OS X)

2010-02-16 Thread Lou Pecora
not get an error. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with multithreading

2009-06-25 Thread Lou Pecora
() do something -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: I strongly dislike Python 3

2010-07-01 Thread Lou Pecora
in the background) like Quickeys and TypeItForMe that allow you to do all sorts of automatic inserting of commonly used text. They're cheap and easy to use. There must be something like this for Linux and Windows, no? -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: What was your strategy?

2010-11-19 Thread Lou Pecora
In article 7xr5ei1p2j@ruckus.brouhaha.com, Paul Rubin no.em...@nospam.invalid wrote: Lou Pecora pec...@anvil.nrl.navy.mil writes: I'll jump in and recommend the book Python in a Nutshell by Martelli. It's encyclopedic. Indeed. I hope Martelli updates it. I'd buy another copy

Re: Your Favorite Python Book

2009-05-15 Thread Lou Pecora
(the book is circa 2.5). Cheers, Chris Python in a Nutshell -- Absolutely! Covers a lot in an easily accessible way. The first book I reach for. I hope Martelli updates it to 3.0. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Using C++ and ctypes together: a vast conspiracy? ;)

2009-06-03 Thread Lou Pecora
++. Seems like the only sane way to do it. In all other directions lies madness. Agreed. I've done this several times and it works fine. Once I'm in C I'm really in C++ and can use all my C++ code and libraries. Not a big problem really. But maybe I'm missing something. -- -- Lou Pecora -- http

Re: Am I The Only One Who Keeps Reading ?Numpy? as ?Numpty??

2010-11-10 Thread Lou Pecora
to English speakers. I say num pie. Makes more sense to me since the pie sound is already in python a root for the name. This, of course, is a burning issue for us all. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: What was your strategy?

2010-11-16 Thread Lou Pecora
in and recommend the book Python in a Nutshell by Martelli. It may be a little dated now, but it covers many Python topics in good detail without becoming a bloated reference. Nicely written. It's still the first book I reach for after 6 years of Python coding and it rarely disappoints. -- -- Lou

Re: What was your strategy?

2010-11-18 Thread Lou Pecora
In article mailman.1048.1289936253.2218.python-l...@python.org, Steve Holden st...@holdenweb.com wrote: On 11/16/2010 2:22 PM, Lou Pecora wrote: I'll jump in and recommend the book Python in a Nutshell by Martelli. It may be a little dated now, but it covers many Python topics in good