(ignoring
possible algebraic simplifications and transformations for some
expressions).
-- Lou Pecora (my views are my own)
--
http://mail.python.org/mailman/listinfo/python-list
, 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
) 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
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
seriously like time in some movie.
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
of adopting it as their own home?
... You Betcha!
:-)
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
)
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
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
to them) is in the same place.
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
=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
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
with that
usage.
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
miss the Fortran 1-based indexing.
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
]
Really, I've gotta RTFM. :-)
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
plotting, numerical computing, and embedded scripting [1].
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
. 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
a
multiplication. Just trying to show the OP the scheme for iteration
here.
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
about Visual Basic going up?
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
.
-- Lou Pecora (my views are my own) REMOVE THIS to email me.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
, 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
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
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
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
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
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
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
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
that, too.
-- Lou Pecora (my views are my own) REMOVE THIS to email me.
--
http://mail.python.org/mailman/listinfo/python-list
recommendations on matplotlib.
-- Lou Pecora (my views are my own) REMOVE THIS to email me.
--
http://mail.python.org/mailman/listinfo/python-list
)
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
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
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
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
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
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
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
*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
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
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
; 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
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
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
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
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
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
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
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
no idea where to go with this.
Thanks for any pointers.
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
not get an error.
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
()
do something
--
-- Lou Pecora
--
http://mail.python.org/mailman/listinfo/python-list
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
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
(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
++.
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
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
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
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
95 matches
Mail list logo