[Tutor] WHAT IS THE DIFFERENCE BETWEEN FILTER AND REDUCE FUNCTION

2008-09-24 Thread sudhir . kumar
___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] WHAT IS THE DIFFERENCE BETWEEN FILTER AND REDUCE FUNCTION

2008-09-24 Thread Steve Willoughby
Warning: this is going to look *a lot* better if you view it in a fixed-width font so things line up properly. Both functions apply a function to a list of values, but they do so in different ways. filter() applies a function to each element of a list in turn, returning a new list

[Tutor] Subject: header intact.

2008-09-24 Thread sudhir sahu
-- Forwarded message -- From: [EMAIL PROTECTED] Date: Wed, Sep 24, 2008 at 4:14 PM Subject: The results of your email commands To: [EMAIL PROTECTED] The results of your email command are provided below. Attached is your original message. - Results: Ignoring non-text/plain

Re: [Tutor] Sorting Dictionary of Dictionary by certain Value

2008-09-24 Thread Hansen, Mike
-Original Message- Hi Pythonistas, I have a large dictionary of dictionary (50,000+ keys) which has a structure as follows: DoD = { 'flintstones' : { 'husband' : fred, 'pal' : barney, 'income': 500, }, 'jetsons' : {

Re: [Tutor] please explain this error

2008-09-24 Thread Herold Kroh
Steve, Thanks for your reply. Yes. The python program is or was keeping the file open.. This is failing at the commit stage of the program, in checking in the svn data. So how do I go about fixing this? Any help and insight is appreciated. Herold

[Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread Wayne Watson
Title: Signature.html I'm looking at a GUI application that I hope to modify in the next few weeks. When it's executed the expected GUI appears along with a DOS window. Occasionally, I think, I've seen something put in the DOS window. How do I stop it from appearing and how do I find why it's

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread W W
On Wed, Sep 24, 2008 at 10:36 AM, Wayne Watson [EMAIL PROTECTED] wrote: I'm looking at a GUI application that I hope to modify in the next few weeks. When it's executed the expected GUI appears along with a DOS window. Occasionally, I think, I've seen something put in the DOS window. How do

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread simone
Wayne Watson ha scritto: I'm looking at a GUI application that I hope to modify in the next few weeks. When it's executed the expected GUI appears along with a DOS window. Occasionally, I think, I've seen something put in the DOS window. How do I stop it from appearing and how do I find why

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread Kent Johnson
On Wed, Sep 24, 2008 at 11:36 AM, Wayne Watson [EMAIL PROTECTED] wrote: I'm looking at a GUI application that I hope to modify in the next few weeks. When it's executed the expected GUI appears along with a DOS window. Occasionally, I think, I've seen something put in the DOS window. How do I

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread Marc Tompkins
I'm looking at a GUI application that I hope to modify in the next few weeks. When it's executed the expected GUI appears along with a DOS window. Occasionally, I think, I've seen something put in the DOS window. How do I stop it from appearing and how do I find why it's used? If you don't

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread Wayne Watson
Title: Signature.html Well, the responses above pretty well clear that up. As far as I can tell, the program uses print exactly once. At this point, I have no idea why. It looks like it's bring to the attention of the user that something has gone wrong finding a centroid. However, the message

Re: [Tutor] Where Does the DOS Window Come From?

2008-09-24 Thread Alan Gauld
Wayne Watson [EMAIL PROTECTED] wrote When it's executed the expected GUI appears along with a DOS window. Occasionally, I think, I've seen something put in the DOS window. The DOS window is the XP Command prompt execution environment as used by the python interpreter,. Its where the stdin,

Re: [Tutor] please explain this error

2008-09-24 Thread Eike Welk
Hello Herold! I have three ideas what you could do: - Try to run the script on the server. Maybe even take NFS down while running the script. Or as a variation, run the script in a directory which is on the local disk. It seems the script is confused by some specific behavior of NFS. (There

[Tutor] user agent

2008-09-24 Thread jeremiah
I'm trying to force the user agent in a python login script... My question is what are the possible user agents I can specify and how do I print the user agent at the end of the script so I know that it was accurately saved. Here is the first bit of my code. Any suggestions? thx, JJ ==

Re: [Tutor] user agent

2008-09-24 Thread Alan Gauld
jeremiah [EMAIL PROTECTED] wrote I'm trying to force the user agent in a python login script... Might I ask why? It should never be necessary and is extremely user hostile. Especially given that many modern browsers are capable of emulating the troublesome ones - ie IE! And future versions

Re: [Tutor] user agent

2008-09-24 Thread Kent Johnson
On Wed, Sep 24, 2008 at 7:55 PM, Alan Gauld [EMAIL PROTECTED] wrote: jeremiah [EMAIL PROTECTED] wrote I'm trying to force the user agent in a python login script... Might I ask why? It should never be necessary and is extremely user hostile. Especially given that many modern browsers are

Re: [Tutor] user agent

2008-09-24 Thread Kent Johnson
On Wed, Sep 24, 2008 at 6:55 PM, jeremiah [EMAIL PROTECTED] wrote: I'm trying to force the user agent in a python login script... My question is what are the possible user agents I can specify Here is a rather long list: http://www.user-agents.org/ but presumably there is a particular browser