Re: [Tutor] python reverse engineering tools

2008-11-21 Thread amit sethi
Well actually there was an interesting tool i discovered, Lumpy . http://www.greenteapress.com/thinkpython/swampy/lumpy.html which was developed with the intention of being a teaching tool. Although it would be a nice idea if the people in this list evaluate it and give their response because I as

Re: [Tutor] python question

2008-11-21 Thread David
Daniel J Kramer wrote: > Hi > > I have just joined this list. I need some help working on a Python > application I am working on. I am working on a quiz game where the > users gain points when the answer questions correctly. I have written > the skeleton of the quiz with If, Elif and Else statem

Re: [Tutor] python reverse engineering tools

2008-11-21 Thread Alan Gauld
"amit sethi" <[EMAIL PROTECTED]> wrote Can somebody tell me about any python to UML reverse engineering tools . I can't help wit the specific but I can give a word of caution on reverse engineering from code to UML - don't expect too much! The problem is that in a dynamic language it is very

Re: [Tutor] Help Optimise Code

2008-11-21 Thread Kent Johnson
On Wed, Nov 19, 2008 at 8:13 AM, Richard Lovely <[EMAIL PROTECTED]> wrote: > Please don't suggest changing languages. I like python. Although if > you want to write an extension for me, and provide the source and a > makefile, please feel free. I have a MinGW install that's doing > nothing. (Just

[Tutor] python question

2008-11-21 Thread Daniel J Kramer
Hi I have just joined this list. I need some help working on a Python application I am working on. I am working on a quiz game where the users gain points when the answer questions correctly. I have written the skeleton of the quiz with If, Elif and Else statements. it runs perfectly. I am ver

Re: [Tutor] Decimal fixed point representation

2008-11-21 Thread Bill Campbell
On Fri, Nov 21, 2008, Dinesh B Vadhia wrote: > > That's right, it is the Decimal module I'm trying to understand. And, > it is how to represent a decimal floating point number as a > common/vulgar fraction eg 1.234 = 1234/1000. How do you do this using > the Decimal module? The motivatio

Re: [Tutor] import data (txt/csv) into list/array and manipulation

2008-11-21 Thread trias
Cool, Does anyone else have any other thoughts on this problem? -- View this message in context: http://www.nabble.com/import-data-%28txt-csv%29-into-list-array-and-manipulation-tp20424075p20623480.html Sent from the Python - tutor mailing list archive at Nabble.com. _

[Tutor] python reverse engineering tools

2008-11-21 Thread amit sethi
Can somebody tell me about any python to UML reverse engineering tools . I was trying pynsource but it uses the old opengl namespace (this is what i assume the problem is from what i read from the openGL documentation) and thus it gives an import error from wxPython.ogl import * ImportError: No mod

Re: [Tutor] Decimal fixed point representation

2008-11-21 Thread Kent Johnson
On Fri, Nov 21, 2008 at 8:22 AM, Dinesh B Vadhia <[EMAIL PROTECTED]> wrote: > Hi Alan > > That's right, it is the Decimal module I'm trying to understand. And, it is > how to represent a decimal floating point number as a common/vulgar fraction > eg 1.234 = 1234/1000. How do you do this using the

Re: [Tutor] Decimal fixed point representation

2008-11-21 Thread Dinesh B Vadhia
Hi Alan That's right, it is the Decimal module I'm trying to understand. And, it is how to represent a decimal floating point number as a common/vulgar fraction eg 1.234 = 1234/1000. How do you do this using the Decimal module? The motivation is to avoid floating point calculations and use i

Re: [Tutor] Help Optimise Code

2008-11-21 Thread Rich Lovely
On a small side note, the docs say array.array is supposed to be efficient. Testing has shown in this function, a list is faster (at least for x<10). A set is faster still - at least over the same range on my computer,, but you can't guarantee ordering, which makes it inconsistent - an