Re: [Tutor] calling a method within a function

2010-12-08 Thread John
I understand... but don't blame me if it hurts your head ;) The class is here: http://python.pastebin.com/gPpep50Y The function is here: http://python.pastebin.com/faK0vZ8U The issue is with the 'reflectance' method of the FlightData class (line 76). You can see in the class definition I now jus

Re: [Tutor] calling a method within a function

2010-12-08 Thread ALAN GAULD
> I understand... but don't blame me if it hurts your head ;) First a few comments. Theres an awful lot of superfluous "stuff" in there that would make it much easier to read and work with. The docstring does not appear to be accurate and there are about 30 lines of commented code. Do you use

Re: [Tutor] Python vs. MATLAB

2010-12-08 Thread Hilton Fernandes
Hi, Hugo ! Excellent explanation. Thank you. All the best, hilton On Mon, Dec 6, 2010 at 5:05 PM, Hugo Arts wrote: > On Mon, Dec 6, 2010 at 6:09 PM, Joel Schwartz > wrote: > > Chris, > > > > Can you say more about number (7) in your list? What does "pass by value" > > mean and what are the al

Re: [Tutor] Python vs. MATLAB

2010-12-08 Thread Hugo Arts
On Wed, Dec 8, 2010 at 7:52 PM, Hilton Fernandes wrote: > Hi, Hugo ! > > Excellent explanation. Thank you. > > All the best, > hilton > Haha, well, at least someone noticed my explanation. I should probably refer you to Steven's dissertation of same, though, I think most would prefer it to mine.

[Tutor] Feedback on coding style

2010-12-08 Thread howitzer
Hi. For the past week, I've been following an online Python guide named: 'Learn Python the Hard Way'. I'm very happy with it as it gives a lot of freedom to explore. However, due to this I have no idea if I'm thinking the right way. That's why I've attached a script of mine I've been working on

Re: [Tutor] Python vs. MATLAB

2010-12-08 Thread Hilton Fernandes
Hi, Hugo ! Never mind that: it is usual that people in lists pay attention to usual posters. Your explanation was clear and straightforward, however it was also short. At least for the time being, i don't need any other document to teach me Python parameter passing semantics. All the best, hilt

Re: [Tutor] Feedback on coding style

2010-12-08 Thread Hugo Arts
On Wed, Dec 8, 2010 at 8:11 PM, wrote: > Hi. > > For the past week, I've been following an online Python guide named: > 'Learn Python the Hard Way'. I'm very happy with it as it gives a lot of > freedom to explore. > > However, due to this I have no idea if I'm thinking the right way. That's > wh

Re: [Tutor] Feedback on coding style

2010-12-08 Thread Dave Angel
On 01/-10/-28163 02:59 PM, howit...@archlinux.us wrote: Hi. For the past week, I've been following an online Python guide named: 'Learn Python the Hard Way'. I'm very happy with it as it gives a lot of freedom to explore. However, due to this I have no idea if I'm thinking the right way. That's

Re: [Tutor] Which non SQL Database ?

2010-12-08 Thread Terry Carroll
On Sat, 4 Dec 2010, Jorge Biquez wrote: What would do you suggest to take a look? If possible available under the 3 plattforms. I would second the use of SQLite. It's built into Python now, on all platforms. But you specified "non SQL", so one other thing I'd suggest is to just create the

Re: [Tutor] role playing game - help needed

2010-12-08 Thread Al Stern
Peter, Thanks for the advice as to how to use numbers. I had learned this before but the example in the documentation didn't use 'int' so I thought I didn't need to when using dictionary values. Anyway, I finally finished the program. I am sure it isn't the most efficient code and I suspect I sh

Re: [Tutor] role playing game - help needed

2010-12-08 Thread Alan Gauld
"Al Stern" wrote Anyway, I finally finished the program. I am sure it isn't the most efficient code and I suspect I should have used the 'while' loop earlier, Some things to think about below. attributes = {"strength": 0, "health": 0, "wisdom": 0, "dexterity": 0} MAX_POINTS = int(30) ke