Re: [Tutor] re module

2014-08-19 Thread Sunil Tech
Hey thanks Danny Yoo, Chris “Kwpolska” Warrick, D.V.N Sarma ​. I will take all your inputs. Thanks a lot.​ On Fri, Aug 15, 2014 at 3:32 AM, Danny Yoo wrote: > On Thu, Aug 14, 2014 at 8:39 AM, D.V.N.Sarma డి.వి.ఎన్.శర్మ > wrote: > > I tested it on IDLE. It works. > > > Hi Sarma, > > > Followi

[Tutor] howto create virtual environment for Enthought Training on Debian?

2014-08-19 Thread Tom Roche
I'm running a 64-bit flavor of Debian (LMDE) with GNOME, which includes a system python and various python-using applets and applications. I have a long-standing interest in scientific software, but only recently acquired some spare time and an Enthought Training license. So I'd like to get set

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Marc Tompkins
On Mon, Aug 18, 2014 at 1:00 AM, Marc Tompkins wrote: > Also, looking at the Ninja-IDE website more closely I see that, > although they do mention compatibility with multiple languages, they > were designed by and for Python programmers - which makes the > tab/space issue less likely. I dunno.

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Mark Lawrence
On 19/08/2014 19:14, Marc Tompkins wrote: On Mon, Aug 18, 2014 at 1:00 AM, Marc Tompkins wrote: Also, looking at the Ninja-IDE website more closely I see that, although they do mention compatibility with multiple languages, they were designed by and for Python programmers - which makes the tab

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Marc Tompkins
On Tue, Aug 19, 2014 at 1:04 PM, Mark Lawrence wrote: > I'm not aware of any problem with Thunderbird or any (semi-)decent mail > client. The original poster uses NinjaIDE and Thunderbird, and his code was being persistently flattened when he copied/pasted. I believe I've just tracked it down to

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Cameron Simpson
On 19Aug2014 13:29, Marc Tompkins wrote: On Tue, Aug 19, 2014 at 1:04 PM, Mark Lawrence wrote: I'm not aware of any problem with Thunderbird or any (semi-)decent mail client. It may depend a great deal on the source program. The original poster uses NinjaIDE and Thunderbird, and his code w

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Terry--gmail
The down side of setting the python.org domain to be mailed to as plain text, appears to be that Thunderbirdy has changed all my email to plain text, instead of just the email going to this domainwhich is weird. Leam Hall: I have just one additional function to create in the User Design se

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Cameron Simpson
On 19Aug2014 16:41, Terry--gmail wrote: The bare 'except' was a throw away. By bare 'except' I am assuming you mean without defining the type of error 'except' is to act upon? try: something except ValueError: do something -Or does bare 'except' mean something else? You're right, it m

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Cameron Simpson
On 19Aug2014 16:41, Terry--gmail wrote: Alan Guald: I have been trying out the different ways you suggested for doing this, and have ran into a problem on making the very last one work. I stuck a print statement in it to help, but I am not sure what the error statement is telling me: for r

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Cameron Simpson
On 19Aug2014 16:41, Terry--gmail wrote: Alan Guald: [...] lens = [max(col) for col in lens] [...] Also, the list comprehension you have used on the final line reminds me that I would really like to understand comprehensions better. Is there some info on the Internet that starts very basic c

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Alan Gauld
On 19/08/14 23:41, Terry--gmail wrote: Alan Guald: for row in catalog2: print(row) for col, item in row: lens[col].append(len(item)) My bad, it should have been for col, item in enumerate(row): Sorry, -- Alan G Author of the Learn to Program web site http://www.alan-g.m

Re: [Tutor] Building Starships -- object of type 'int' has no len()

2014-08-19 Thread Alan Gauld
On 19/08/14 23:41, Terry--gmail wrote: Also, the list comprehension you have used on the final line reminds me that I would really like to understand comprehensions better. Is there some info on the Internet that starts very basic concerning comprehensions and explains step by step in complexity

[Tutor] (no subject)

2014-08-19 Thread diliup gabadamudalige
Hi all! Is there any way I can bundle all my graphics only using Python and Pygame so that the user may not be able to read them out of the program? Let us assume that the user does NOT know Python and will not go looking for people who knows Python to crack the files. In other words an average us