[SciPy-user] Newbie and Old matlab user

Howey, David A d.howey at imperial.ac.uk
Fri Oct 14 04:27:02 CDT 2005

Get hold of 'Learning Python' by Lutz, published by O'Reilly. I find it indispensible. 3 days sitting reading that cover to cover and I felt much more confident with python. Then read the ipython and numeric user guides.


From: scipy-user-bounces at scipy.net [mailto:scipy-user-bounces at scipy.net] On Behalf Of Samuel GARCIA
Sent: 13 October 2005 17:00
To: SciPy Users List
Subject: Re: [SciPy-user] Newbie and Old matlab user

thank a lot to Alan G Isaac and Fernando Perez
yours responses exactly anwser my questions and my poor knowledge in python!

But I still have a conceptual problem of how to work interactively !
How to do when I edit my source2.py when debugging and run again source1.

execfile can be used instead off run but not instead off from ... import  *

In my case, using module.name is not a way, otherwise the code will be to heavy to read.

How do people comming from matlab world ?

Samuel Garcia

Fernando Perez a écrit : 

	Alan G Isaac wrote:

		On Thu, 13 Oct 2005, Fernando Perez apparently wrote: 

			Finally, the 'from s2 import *' idiom breaks all this, I think. You can try 
			this, but I'm not sure it works (I think it doesn't): 

		The docs say:
		        If a module imports objects from another module 
		        using from  ... import ..., calling reload() for the 
		        other module does not redefine the objects imported 
		        from it -- one way around this is to re-execute the 
		        from statement, another is to use import and 
		        qualified names (module.name) instead.

	Thanks, that's what I vaguely remembered.  One more reason not to use 'import 

		In any case, maybe the OP could just use execfile:

	Yes, the only problem with this is that execfile requires a full path, so it's 
	a bit less convenient than import.  But while developing/debugging, it can do 
	the trick.
	SciPy-user mailing list
	SciPy-user at scipy.net

CNRS - UMR5020
Universite Claude Bernard LYON 1
Laboratoire des Neurosciences et Systemes Sensoriels
50, avenue Tony Garnier
69366 LYON Cedex 07
04 37 28 74 64
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.scipy.net/pipermail/scipy-user/attachments/20051014/018b2449/attachment.htm

More information about the SciPy-user mailing list