[Tutor] how to read Messages sorted by thread in thunderbird

scsoce scsoce at gmail.com
Tue Aug 19 10:38:31 CEST 2008


tutor-request at python.org wrote:
> Send Tutor mailing list submissions to
> 	tutor at python.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://mail.python.org/mailman/listinfo/tutor
> or, via email, send a message with subject or body 'help' to
> 	tutor-request at python.org
>
> You can reach the person managing the list at
> 	tutor-owner at python.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tutor digest..."
>
>
> Today's Topics:
>
>    1. Re: unsupported characters (Robert Johansson)
>    2. Re: Gaussian function (optimum)
>    3. Re: Gaussian function (optimum)
>    4. Re: How to use urllib2.https_open with SSL support in	Windows
>       XP for python 2.5.2 (Kent Johnson)
>    5. Re: unsupported characters (Kent Johnson)
>    6. Re: Gaussian function (bob gailer)
>    7. Re: How to use urllib2.https_open with SSL support in	Windows
>       XP for python 2.5.2 (xbmuncher)
>    8. Re: How to use urllib2.https_open with SSL support in	Windows
>       XP for python 2.5.2] (xbmuncher)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 19 Aug 2008 00:17:34 +0200
> From: "Robert Johansson" <robert.johansson at math.umu.se>
> Subject: Re: [Tutor] unsupported characters
> To: "'Kent Johnson'" <kent37 at tds.net>
> Cc: Tutor at python.org
> Message-ID: <005b01c90180$39e413a0$adac3ae0$@johansson at math.umu.se>
> Content-Type: text/plain;	charset="iso-8859-1"
>
> On 8/17/08, Robert Johansson <robert.johansson at math.umu.se> wrote:
>
>   
>> Hi, I have problems using characters from the Swedish language. I tried
>>     
> the
>   
>> following in IDLE under MacOS X leopard (running Python 2.5.1)  :
>>     
>
>   
>> S='?'
>> Displaying error message: "unsupported characters in input".
>>     
>
> To use non-ascii characters in Python code you have to declare the
> encoding of the source file with a comment such as
> # coding=UTF-8
>
> See http://python.org/dev/peps/pep-0263/
>
> Kent
>
> Thanks for taking you time with this. Yes, that works. I know that you can
> declare the encoding for a script in that way but there is still a problem
> when I use the shell as input device. There are options for encoding in the
> menu for IDLE but changing them doesn't help at all. I've tried two versions
> of IDLE but both seem to be a bit buggy (scrolling doesn?t work, etc). If
> there are any Mac users who read this, which editor would you recommend for
> Mac?   
>
> /Robert
>
>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 18 Aug 2008 13:30:13 -0700 (PDT)
> From: optimum <jozzy_a at hotmail.com>
> Subject: Re: [Tutor] Gaussian function
> To: tutor at python.org
> Message-ID: <19039434.post at talk.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
>
> I dont think that this program uses the gaussian function, am I in the right
> wavelength? 
>
> from __future__ import division
> import math
>
> a=raw_input("What is the value of xmin?")
> b=raw_input("What is the value of dx?")
> c=raw_input("What is the value of nx?")
>
> xmin=float(a)
> dx=float(b)
> nx=int(c)
> n=int(c)
> l=[]
>
> for x in range(0.00,n):
>     print xmin+x*dx
> def line(n):
>     s=''
>     i=raw_input("Please choose a scale for your plot")
>     n=int(i)
>     for j in range(0.00,n):
>         s= s+ "***" + "\n"
>         print s
>         return s
>         
> def gauss(x):
>     gaussa=math.pi(2)
>     gaussb=math.sqrt(gaussa)
>     gaussc=1/gaussb
>     gaussd=math.exp(-0.5*-2.00**2)
>     gausse= gaussc*gaussd
>     print gausse
>
>
>
> Bob Gailer wrote:
>   
>> optimum wrote:
>>     
>>> Hey. Is there anyone who can give me some help? 
>>> Below is the question I was set.
>>>   
>>>       
>> This sounds like a homework assignment. We don't write programs for 
>> assignments. We offer help after you give it your best effort.
>>     
>>> I am having trouble with the gaussian function and don't really know
>>> where
>>> to start.
>>>   
>>>       
>> It sounds like you are having trouble with programming, not with the 
>> gaussian function. Did you run the following code? Did it give you any 
>> useful results? (I expect it to raise an exception.) At least run it and 
>> see what happens. How does it contribute to the overall result?
>>
>>     s=''
>>     for n in range (0,100):
>>     s=s+ '*'
>>     print s
>>
>>
>> Can you at least outline the program or algorithm as a starting place.
>>     
>>> "Write a program which asks the user for values
>>> of xmin, dx and nx. The program should then
>>> output a plot of the gaussian function
>>>
>>>
>>> at the following series of values of x:
>>> xmin, xmin+dx, xmin+2*dx, xmin+3*dx, : : :,
>>> xmin+(nx-1)*dx. e.g. the following output
>>> should result if xmin = 2:5, dx = 0:5 and
>>> nx = 11.
>>> -2.50 *
>>> -2.00 ***
>>> -1.50 ******
>>> -1.00 ************
>>> -0.50 ******************
>>> 0.00 ********************
>>> 0.50 ******************
>>> 1.00 ************
>>> 1.50 ******
>>> 2.00 ***
>>> 2.50 *
>>> The program should contain and make full use
>>> of the following functions:
>>> gauss(x) - Returns the value of the Gaussian
>>> function
>>>
>>> line(n) - Prints a line of n asterisks followed
>>> by a newline character.
>>>
>>> You will need to choose a scale for your plot;
>>> in the example shown the number of asterisks
>>> is 50 * gauss(x).
>>>
>>> Should I start with a program like this?
>>>
>>>     s=''
>>>     for n in range (0,100):
>>>     s=s+ '*'
>>>     print s
>>>
>>> Thanks for any help received. :confused:
>>>   
>>>       
>> -- 
>> Bob Gailer
>> Chapel Hill NC 
>> 919-636-4239
>>
>> When we take the time to be aware of our feelings and 
>> needs we have more satisfying interatctions with others.
>>
>> Nonviolent Communication provides tools for this awareness.
>>
>> As a coach and trainer I can assist you in learning this process.
>>
>> What is YOUR biggest relationship challenge?
>>
>> _______________________________________________
>> Tutor maillist  -  Tutor at python.org
>> http://mail.python.org/mailman/listinfo/tutor
>>
>>
>>     
>
>   
hello, guys:

    Sorry to ask a question not related to python, but to the mail list. 
That is i use thundbird to read the list,  just find  when  a post with 
many threads is clustered and unfriendly to me.  My question is there a  
way to read  messages sorted by thread ( just  like in web  version 
http://mail.python.org/pipermail/ )  but   in thunderbird or other mail 
applications, or other way better ?
    thks
--song *
*


More information about the Tutor mailing list