Re: [Tutor] multiply and sum two lists with list comprehension?

2010-01-27 Thread Garrett Hartshaw
> > > Hi, > > I am multipliying two lists so that each of list As elements get multiplied > to the corresponding list Bs. Then I am summing the product. > > For example, A= [1, 2, 3] and B=[2, 2, 2] so that I get [2, 4, 6] after > multiplication and then sum it to get 12. I can do it using map like

Re: [Tutor] length of a string? Advice saught

2010-01-27 Thread Emile van Sebille
On 1/27/2010 2:25 PM Kirk Z Bailey said... I wrote a program to let me edit web-pages without bothering with ftp; it loads up a simple form with the page guts in it, and saves it through another script. Until yesterday, EditMyPage worked fine. Alas, I had a rather long winded page and it truncate

[Tutor] multiply and sum two lists with list comprehension?

2010-01-27 Thread Muhammad Ali
Hi, I am multipliying two lists so that each of list As elements get multiplied to the corresponding list Bs. Then I am summing the product. For example, A= [1, 2, 3] and B=[2, 2, 2] so that I get [2, 4, 6] after multiplication and then sum it to get 12. I can do it using map like this: sum(map(

[Tutor] Fwd: length of a string? Advice saught

2010-01-27 Thread Luke Paireepinart
-- Forwarded message -- From: Luke Paireepinart Date: Wed, 27 Jan 2010 18:01:35 -0600 Subject: Re: [Tutor] length of a string? Advice saught To: Kirk Z Bailey Are you using the post or the get method to submit the form? That's likely your problem. Strings in Python are only limit

Re: [Tutor] length of a string? Advice saught

2010-01-27 Thread Alan Gauld
"Kirk Z Bailey" wrote I wrote a program to let me edit web-pages without bothering with ftp; it loads up a simple form with the page guts in it, and saves it through another script. truncated it- completely omitted the last 1/4 of the original file, creating big problems. Looking everythin

[Tutor] length of a string? Advice saught

2010-01-27 Thread Kirk Z Bailey
I wrote a program to let me edit web-pages without bothering with ftp; it loads up a simple form with the page guts in it, and saves it through another script. Until yesterday, EditMyPage worked fine. Alas, I had a rather long winded page and it truncated it- completely omitted the last 1/4 of

[Tutor] Google Summer of Code, 2010

2010-01-27 Thread Shashwat Anand
Leslie Hawthorne, the spokesperson from google announced the commencement of GSoC,2010 today : http://groups.google.com/group/google-summer-of-code-discuss/browse_thread/thread/d839c0b02ac15b3f It's a golden opportunity for an undergraduate engineering student with Computer Science as major and pyt

Re: [Tutor] Is wxPython (development) dead?

2010-01-27 Thread Alan Gauld
"Neven Gorsic" wrote Since May of 2009 there has not been any update and now web page is not available any more ... I'll be very surprised if the whole project is dead - its probably the second most used GUI for Python - but the web site does seem to be down. FWIW The wxPython mailing list

[Tutor] Is wxPython (development) dead?

2010-01-27 Thread Neven Goršić
Since May of 2009 there has not been any update and now web page is not available any more ... ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python closures

2010-01-27 Thread Eike Welk
Hello Denis! On Monday November 30 2009 11:24:45 spir wrote: > which seems to indicate python really embeds "symbolic references" (*) to > outer *variables*, when creating a closure for g0. Not "pointer > references" (**), otherwise the replacement of x would not be seen by the > closure --like