Re: Python-by-example - new online guide to Python Standard Library

2008-04-07 Thread Gerard Flanagan
On Apr 3, 8:33 pm, AK <[EMAIL PROTECTED]> wrote: > AK wrote: > > Hello, > > > I find that I learn easier when I go from specific examples to a more > > general explanation of function's utility and I made a reference guide > > that will eventually document all functions, classes and methods in > >

Re: Python-by-example - new online guide to Python Standard Library

2008-04-05 Thread AK
ivan wrote: > Very cool. > Have you thought about making a printable version that doesn't wrap > any lines that shouldn't be and has page breaks at good spots? > > -- > ivan Hi ivan, I will work on that after I finalize modules that are already there. I think this would be better than having peo

Re: Python-by-example - new online guide to Python Standard Library

2008-04-04 Thread ivan
Very cool. Have you thought about making a printable version that doesn't wrap any lines that shouldn't be and has page breaks at good spots? -- ivan -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-by-example - new online guide to Python Standard Library

2008-04-04 Thread AK
shurik wrote: > that's great! thanks for putting this together. what about the inspect > module? and particularly getsource :) > Glad you like it! I will add every module eventually, but I'll put inspect up on top of todo list. -- -ak Tobu | http://tobu.lightbird.net/ | Freeform DB / Tagger

Re: Python-by-example - new online guide to Python Standard Library

2008-04-03 Thread shurik
that's great! thanks for putting this together. what about the inspect module? and particularly getsource :) On Apr 1, 6:15 pm, AK <[EMAIL PROTECTED]> wrote: > Hello, > > I find that I learn easier when I go from specific examples to a more > general explanation of function's utility and I made a

Re: Python-by-example - new online guide to Python Standard Library

2008-04-03 Thread Giampaolo Rodola'
On 2 Apr, 03:15, AK <[EMAIL PROTECTED]> wrote: > Hello, > > I find that I learn easier when I go from specific examples to a more > general explanation of function's utility and I made a reference guide > that will eventually document all functions, classes and methods in > Python's Standard Librar

Re: Python-by-example - new online guide to Python Standard Library

2008-04-03 Thread AK
AK wrote: > > I uploaded an updated site incorporating most of the suggestions I > received and fixing some errors along the way. I will be adding more > examples to modules that are already covered and will try to add more > modules during the following week. Thanks again to all who posted adv

Re: Python-by-example - new online guide to Python Standard Library

2008-04-03 Thread AK
AK wrote: > Hello, > > I find that I learn easier when I go from specific examples to a more > general explanation of function's utility and I made a reference guide > that will eventually document all functions, classes and methods in > Python's Standard Library. For now, I covered about 20 mo

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread AK
CM wrote: > On Apr 2, 2:50 pm, AK <[EMAIL PROTECTED]> wrote: >> Terry Reedy wrote: >>> "AK" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] >>> || I'll be glad to hear comments/suggestions/etc: >>> | >>> |http://www.lightbird.net/py-by-example/ >>> Using - as the example/return deli

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread CM
On Apr 2, 2:50 pm, AK <[EMAIL PROTECTED]> wrote: > Terry Reedy wrote: > > "AK" <[EMAIL PROTECTED]> wrote in message > >news:[EMAIL PROTECTED] > > > || I'll be glad to hear comments/suggestions/etc: > > | > > |http://www.lightbird.net/py-by-example/ > > > Using - as the example/return delimiter does

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread AK
Terry Reedy wrote: > "AK" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > || I'll be glad to hear comments/suggestions/etc: > | > | http://www.lightbird.net/py-by-example/ > > Using - as the example/return delimiter does not work. > If you do not want to substantially lengthen

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread Terry Reedy
"AK" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] || I'll be glad to hear comments/suggestions/etc: | | http://www.lightbird.net/py-by-example/ Using - as the example/return delimiter does not work. If you do not want to substantially lengthen the document by going to >>> sqrt(9

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread ajaksu
On Apr 1, 10:15 pm, AK <[EMAIL PROTECTED]> wrote: > Hello, Hiya > I find that I learn easier when I go from specific examples to a more > general explanation of function's utility and I made a reference guide > that will eventually document all functions, classes and methods in > Python's Standard

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread Panzerlurch
Why don't use the normal Python shell syntax as used by doctest? >>> abs(-5.5) 5.5 That would be much more readable. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread sjf
Indeed, the first thing I saw on the front page was "math.sqrt(9) - 3.0". Ok, I thought, random arithmetic expression, so what? There is already a standard way of showing a piece of code and its results. It's the interactive prompt: >>> import math >>> math.sqrt(9) 3.0 >>> Tada! On Apr 2, 12:43

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread tatu . kairi
On Apr 2, 2:43 pm, GHUM <[EMAIL PROTECTED]> wrote: > Tobu, > > I like this idea. Deducting from an example is really another way to > wisdom. > > What struck me as most diffuclt to understand: > > abs(-5.5) - 5.5 > > -> you are using "-" as symbol for "will give the result", which is > really, real

Re: Python-by-example - new online guide to Python Standard Library

2008-04-02 Thread GHUM
Tobu, I like this idea. Deducting from an example is really another way to wisdom. What struck me as most diffuclt to understand: abs(-5.5) - 5.5 -> you are using "-" as symbol for "will give the result", which is really, really hard to parse. Take something else, please. Unicode has THAT many

Re: Python-by-example - new online guide to Python Standard Library

2008-04-01 Thread Roy H. Han
Learning by example is the best. I remember working through a book when I was little called "Qbasic by Example." On Tue, Apr 1, 2008 at 9:15 PM, AK <[EMAIL PROTECTED]> wrote: > Hello, > > I find that I learn easier when I go from specific examples to a more > general explanation of function's ut

Python-by-example - new online guide to Python Standard Library

2008-04-01 Thread AK
Hello, I find that I learn easier when I go from specific examples to a more general explanation of function's utility and I made a reference guide that will eventually document all functions, classes and methods in Python's Standard Library. For now, I covered about 20 most important modules.