Re: What was your strategy?

2010-11-19 Thread Lou Pecora
In article <7xr5ei1p2j@ruckus.brouhaha.com>, Paul Rubin wrote: > Lou Pecora 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&#

Re: What was your strategy?

2010-11-18 Thread Lou Pecora
In article , Steve Holden 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 > > detail without becoming

Re: What was your strategy?

2010-11-16 Thread Lou Pecora
k "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 Pecora -- http://mail.python.org/mailman/listinfo/python-list

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

2010-11-10 Thread Lou Pecora
t;. Not the greatest image 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: I strongly dislike Python 3

2010-07-01 Thread Lou Pecora
quot; . E.g. for the Mac there are programs (utilities that run 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

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

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

Re: YAML (was: Python and Ruby)

2010-02-05 Thread Lou Pecora
In article <00f4bb3a$0$15566$c3e8...@news.astraweb.com>, Steven D'Aprano 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

Re: Python and Ruby

2010-02-04 Thread Lou Pecora
In article <7x8wb9j4r2@ruckus.brouhaha.com>, Paul Rubin wrote: > Lou Pecora 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() function t

Re: YAML (was: Python and Ruby)

2010-02-04 Thread Lou Pecora
In article <87eil1ddjp.fsf...@castleamber.com>, John Bokma wrote: > Lou Pecora 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-03 Thread Lou Pecora
string to a file -- no formatting necessary-- three lines of code. Later reading in the string version (no formatting necessary), and hitting it with an eval() function returned all the values I originally had in those 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

SAGE help & support?

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

Re: Problem with multithreading

2009-06-25 Thread Lou Pecora
;, but not "in try". Is this observation consistent Try putting a flush in after the 2nd print statement in case the output is left in some I/O buffer when the thing terminates. e.g. import sys try: print 'in try" sys.stdout.flush() -- -- 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
eems 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://mail.python.org/mailman/listinfo/python-list

Re: Your Favorite Python Book

2009-05-15 Thread Lou Pecora
eers, > > 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: numpy.where

2009-04-11 Thread Lou Pecora
In article <747te7f1209a...@mid.individual.net>, Peter Pearson 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 Fin

Re: numpy.where

2009-04-10 Thread Lou Pecora
In article , Robert Kern 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-09 Thread Lou Pecora
Always something to learn. I've used Numpy for several years, but still have not plumbed the depths. Just tried this script and, yep, it works. arr=array([-1,1.0,2.2,-10.0,1.1, 0.9,-0.9]) cond= arr < 1.0 print cond brr=arr[cond] print brr Output: [ True Fal

Re: python for loop

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

Re: python for loop

2009-04-02 Thread Lou Pecora
ems/computer guy. Just a scientist who does a lot of number crunching. But I have found out that even in that case you end of traversing lists, tuples, etc. a lot. Slicing and dicing them. And you quickly come to appreciate the 0 based approach to indexing and soon don't miss the Fortr

Re: python for loop

2009-04-02 Thread Lou Pecora
In article , Steven D'Aprano 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 Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: python for loop

2009-04-01 Thread Lou Pecora
rritory") zero > indexing could be more intuitive ? This has become a moving target. I thought your original complaint was about Python (the programming 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-01 Thread Lou Pecora
You can 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
if they don't help us in reality. so we should try to adapt > computing to real world, not our world 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 alre

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: 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 w

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

2009-03-16 Thread Lou Pecora
eferences. 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

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

2009-03-16 Thread Lou Pecora
y launches 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/mai

Re: quick beginners List comprehension question

2009-01-21 Thread Lou Pecora
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

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

2009-01-12 Thread Lou Pecora
o None is good, too, since many times if I 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 someb

Re: Python is slow

2008-12-22 Thread Lou Pecora
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: python on Mac

2008-08-28 Thread Lou Pecora
e system /bin directories. So your .bash_profile should have something like this line 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 co

Re: php vs python

2008-06-02 Thread Lou Pecora
f a language. And it is a stretch. Anyone speak C? Sheeze. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Hungarian Notation

2008-05-27 Thread Lou Pecora
need to diagram a sentence I will come to you. You're the man. :-) -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python for programming algorithms

2008-05-19 Thread Lou Pecora
solution. To this end, we have developed Ch, an embeddable C/C++ interpreter for cross-platform scripting, shell programming, 2D/3D plotting, numerical computing, and embedded scripting [1]. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-12 Thread Lou Pecora
wo values at one domain point without adding branch cuts (see complex functions like ln(z), z is complex). That's not well defined -- in your sense. You are choosing 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

Re: Mathematics in Python are not correct

2008-05-12 Thread Lou Pecora
=1, then your code should be consistent with that usage. -- -- 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 PROTECT

Re: Mathematics in Python are not correct

2008-05-09 Thread Lou Pecora
ent better. But... I've also heard the very similar a**b is a multiplied by a b-1 times. That gives 0**0=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-09 Thread Lou Pecora
or negative) > > raised to the power of 0 is ALWAYS 1 (a positive number 1 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 sit

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

2008-05-03 Thread Lou Pecora
*implied* it. > > Installing Python in /usr/bin is not common. > > It is common. That's where it's installed by almost all Linux > distributions. MacOS X system python (or links to them) is in the same place. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

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

Re: Basic optimization of python.

2008-04-09 Thread Lou Pecora
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 -- http://mail.python.org/mailman/listinfo/python-list

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

2008-02-24 Thread Lou Pecora
, here's an > equivalent example: > > #include > #include > #include [cut a lot of C++ code] I realize the original point was about dynamic 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: Article of interest: Python pros/cons for the enterprise

2008-02-24 Thread Lou Pecora
mmers today started with Python. Most of > them 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-22 Thread Lou Pecora
to set two things (accidentally) equal to a mutable object instead of copying. Then modify one and get and error when the other object is used since they were the same object. I know better, but I have a half life on this of about 4 months which means that about twice a year thi

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: > > >

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

2008-02-08 Thread Lou Pecora
are the decendents of a long, lost civilization who colonized Earth and used it as a base for their operations to the point of adopting it as their own home? ... You Betcha! :-) -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Why not a Python compiler?

2008-02-07 Thread Lou Pecora
of time, but isn't. I've heard it used seriously like time in some movie. -- -- Lou Pecora -- 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; > &g

Re: a Python person's experience with Ruby

2007-12-09 Thread Lou Pecora
the return value of the close function -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Python surpasses Perl in TIOBE index

2007-12-04 Thread Lou Pecora
more amazing is the rate C++ is losing ground: > http://www.tiobe.com/tiobe_index/C__.html > > George How about Visual Basic going up? -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

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: Books on Python

2007-11-28 Thread Lou Pecora
) to be helpful when I first started, but Nutshell is what I keep going back to. Very good book. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Iteration for Factorials

2007-10-25 Thread Lou Pecora
factorial(3) > 0.0 > Whoops, should have xrange(i)+1 there. Or, better, xrange(2,n+1). Save a multiplication. Just trying to show the OP the scheme for iteration here. -- -- Lou Pecora -- http://mail.python.org/mailman/listinfo/python-list

Re: Iteration for Factorials

2007-10-24 Thread Lou Pecora
r n in xrange(i): fact=n*fact return fact There might even be an array method that can be adapted to get the product. 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: Too many 'self' in python.That's a big flaw in this language.

2007-06-28 Thread Lou Pecora
d you put a dot in the argument of a class method? def afcn(.,x,y): # stuff here ?? I still like it. self remains a wart on python for me after 5 years of use despite a deep 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: 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

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 s

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

Re: An error of matrix inversion using NumPy

2007-04-04 Thread Lou Pecora
her words, depending on your particular problem, there may be other ways to solve it beside brute force 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: An error of matrix inversion using NumPy

2007-04-04 Thread Lou Pecora
s large, then you're attempt at inversion is dealing with differences between very large and very small numbers and/or very small differences between two large numbers which probably goes beyond the number of digits (bits) the machine can provide to represent floating point numbers. No res

Re: Python shell on mac os x

2007-03-19 Thread Lou Pecora
is easy: either use > easy_install or sudo python setup.py. I've had no trouble building 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: Python in a desktop environment

2007-03-13 Thread Lou Pecora
go > > with a combination of Python and C++. > > I think you're nuts to decide 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. T

Re: New to Python

2007-03-12 Thread Lou Pecora
Books); > there's plenty of them out there. Python in a Nutshell by Martelli (O'Reilly publ.) is very good. I also 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: 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 &g

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. &

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

2007-03-10 Thread Lou Pecora
nteger object 123. Whereas > > <>.name2 = 123 > > says "go into the module <>, and rebind its 'name2' to the integer > object 123"; since you "went inside" to do the rebinding, any other code > that also uses the <>.name2 referen

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)

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 &

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

Re: numpy, numarray, or numeric?

2007-02-18 Thread Lou Pecora
s that led some > people to develop Numarray, which had some 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

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

Re: alternate language

2006-12-11 Thread Lou Pecora
and lots of code available. I do all my new coding in it and then when I need speed in some routine I rewrite 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. -

Re: Good script editor for Python on Mac OS 10.3

2006-11-29 Thread Lou Pecora
ve a recommendation for a good Python text > editor 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: pylab package dependencies

2006-10-17 Thread Lou Pecora
tutils.cfg ? > > Yes, it does the same thing, only it will apply to all packages (probably > what > you want) and you only have to do 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: 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 > &g

Re: pylab package dependencies

2006-10-17 Thread Lou Pecora
at I have seen so far they are beautiful packages. 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 still searching 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: How to invoke ipython in Mac OS X?

2006-10-17 Thread Lou Pecora
think the > default location is /usr/lib/python 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 a

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 >

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

pylab package dependencies (was: Plotting histograms)

2006-10-17 Thread Lou Pecora
times when the "bigger" package is imported (e.g. scipy) and then a "subpackage" is also imported. Like 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

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

2006-05-25 Thread Lou Pecora
2.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 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
.xml').myreadline() > yo > > In [22]: BINGO! This is exactly what I want. I didn't realize that I could open using 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 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) > > >

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

2006-05-24 Thread Lou Pecora
le() mf=open("Afile","r") 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: Plotting package?

2006-04-25 Thread Lou Pecora
e a graph for me with axes, scaling, etc. I second all other recommendations on matplotlib. -- 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
age called wsMpl.py also puts a nice API on the matplotlib. You might want to check that, too. -- 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
er __init__ will automatically run because I haven't overridden the > ancesters __init__ 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: python on Mac

2006-04-06 Thread Lou Pecora
can do this: > > sudo rm /usr/bin/python > sudo ln -s \ > /System/Library/Frameworks/Python.framework/Versions/2.4/bin/python \ > /usr/bin/python YIKES! Don't do that. Don't mess with Apple's python. Not recommended. Check the MacPython FAQ and Wiki pages. Pyt

Re: Difference in Python and Ruby interactive shells

2006-04-04 Thread Lou Pecora
x27;switch' to set in Python to choose which behavior you want. -- Lou Pecora (my views are my own) REMOVE THIS to email me. -- http://mail.python.org/mailman/listinfo/python-list

Re: Write a GUI for a python script?

2006-03-03 Thread Lou Pecora
it. Many thanks to the author (Stephen Ferg) for producing EasyGUI. By the way it was written 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: GUI programming, embedding, real time plots, etc.

2005-08-08 Thread Lou Pecora
w invocation as a new plot, 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. -- h

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 ca

Re: OSx 10.4 lacks pythonIDE?

2005-05-17 Thread Lou Pecora
how well they work on OS X. TextWrangler or BBEdit (it's bigger brother) 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: [noob] Questions about mathematical signs...

2005-02-07 Thread Lou Pecora
k you need at least one symbol per operation (ignoring possible algebraic simplifications and transformations for some expressions). -- Lou Pecora (my views are my own) -- http://mail.python.org/mailman/listinfo/python-list