Re: [Tutor] Picking Nits in "Learning to Program"

2007-02-16 Thread Alan Gauld
"Carroll, Barry" <[EMAIL PROTECTED]> wrote > "Real Numbers". The first sentence, "These are fractions" is > technically incorrect, but incomplete. Yep, I thought I'd changed that following a discussion with Dick Moores about the same section. > While it's true that fractions (i.e. rational

Re: [Tutor] Picking Nits in "Learning to Program"

2007-02-16 Thread Roel Schroeven
Carroll, Barry schreef: > In "Learning to Program", look at "The Raw Materials", "Real > Numbers". The first sentence, "These are fractions" is technically > incorrect, but incomplete. While it's true that fractions (i.e. > rational numbers) are real numbers, there are far more real numbers > tha

Re: [Tutor] Picking Nits in "Learning to Program"

2007-02-16 Thread Roel Schroeven
Carroll, Barry schreef: > Alan: > > This is arguably a minor detail, and not directly related to Python > but, hey, I'm a programmer. Minor details are my stock in trade. So > here goes. > > In "Learning to Program", look at "The Raw Materials", "Real > Numbers". The first sentence, "These are

[Tutor] Picking Nits in "Learning to Program"

2007-02-16 Thread Carroll, Barry
Alan: This is arguably a minor detail, and not directly related to Python but, hey, I'm a programmer. Minor details are my stock in trade. So here goes. In "Learning to Program", look at "The Raw Materials", "Real Numbers". The first sentence, "These are fractions" is technically incorrect

Re: [Tutor] regex eats even when not hungry

2007-02-16 Thread Kent Johnson
Thomas wrote: > I have the following mostly working function to strip the first 4 > digit year out of some text. But a leading space confounds it for > years starting 20..: > > import re > def getyear(text): > s = """(?:.*?(19\d\d)|(20\d\d).*?)""" > p = re.compile(s,re.IGNORECASE|re.DOTALL

[Tutor] regex eats even when not hungry

2007-02-16 Thread Thomas
I have the following mostly working function to strip the first 4 digit year out of some text. But a leading space confounds it for years starting 20..: import re def getyear(text): s = """(?:.*?(19\d\d)|(20\d\d).*?)""" p = re.compile(s,re.IGNORECASE|re.DOTALL) #|re.VERBOSE y = p.match

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Carroll, Barry
Greetings: I just thought I'd throw my own hat into the ring. I'm trying out my new, asbestos-free, flame-retardant underwear. ;^) > -Original Message- > Date: Fri, 16 Feb 2007 08:14:29 -0500 > From: "Michael P. Reilly" <[EMAIL PROTECTED]> > Subject: Re: [Tutor] Replying to the tutor-li

Re: [Tutor] New Tutor topic(almost)

2007-02-16 Thread Alan Gauld
"Mark Bystry" <[EMAIL PROTECTED]> wrote > I'll look for it. Perhaps I should pick up one of the "Dummies" book > too. I'm a big fan of Dummies books but not for concepts. They are great if you want a flying start on a new language or tool, but only if you already know the concepts. For example,

[Tutor] control multiple FTP sessions using multiple ip connections via different com ports

2007-02-16 Thread ray sa
Hi Kind people I have been successful to write an ftp script that logs into a server and collects files. What I would like to do but have no knowledge of is that I would like to run multiple ftp sessions using one laptop with two different connections. What I mean here is that you have a e

Re: [Tutor] Reg Google Web Toolkit and Python

2007-02-16 Thread Jason Massey
Oh, the irony...googling for python and gwt gave me: http://pyjamas.pyworks.org/ On 2/16/07, Shadab Sayani <[EMAIL PROTECTED]> wrote: Hi , We have a project where I need to read files store them in database in the backend.We have done this in python.Now we decided to use Ajax technique for u

Re: [Tutor] Reg Google Web Toolkit and Python

2007-02-16 Thread Kent Johnson
Shadab Sayani wrote: > Hi , > We have a project where I need to read files store > them in database in the backend.We have done this in > python.Now we decided to use Ajax technique for user > interface.For that we found that GWT is one of the > best toolkits.Now I got a doubt can I interface GWT >

Re: [Tutor] how to wirte code In python :str = (a>b?"Yes":"NO")

2007-02-16 Thread Andreas Kostyrka
* Wolfram Kraus <[EMAIL PROTECTED]> [070216 15:23]: > On 16.02.2007 08:01, xiufeng liu wrote: > > Hi, all, > > > > In python if there is any similar way like in Java, or C++ to express > > the following: > > str = (a>b?"Yes":"NO") > > > > > > thanks! > > In Python 2.5 you can do the following (

[Tutor] Reg Google Web Toolkit and Python

2007-02-16 Thread Shadab Sayani
Hi , We have a project where I need to read files store them in database in the backend.We have done this in python.Now we decided to use Ajax technique for user interface.For that we found that GWT is one of the best toolkits.Now I got a doubt can I interface GWT with python. Thanks , Shadab. Sen

Re: [Tutor] New Tutor topic(almost)

2007-02-16 Thread Kent Johnson
Mark Bystry wrote: > I'll look for it. Perhaps I should pick up one of the "Dummies" book too. There is a "Python for Dummies"; it is very recent and written by a respected member of the Python community. I haven't read it myself though. Kent ___ Tuto

Re: [Tutor] New Tutor topic(almost)

2007-02-16 Thread Mark Bystry
I'll look for it. Perhaps I should pick up one of the "Dummies" book too. Mark Kent Johnson wrote the following on 2/16/2007 8:35 AM: > Mark Bystry wrote: >> Well, I'm new here and for the most I haven't got a clue as to what I'm >> doing, however, I thought >> your website was a jewel. Most of

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Roel Schroeven
Tim Golden schreef: > I would take minor issue -- with you, and with the creators > of Thunderbird which is my current mail client of choice. It > looks to me as though you're suggesting that the reply-all > button is there to reply to a list, whereas it seems to me > to be there to reply to all th

Re: [Tutor] how to wirte code In python :str = (a>b?"Yes":"NO")

2007-02-16 Thread Kent Johnson
Michael P. Reilly wrote: > Before 2.5, you could generally write: > > str = (a > b) and "Yes" or "No" With a significant gotcha that you should definitely understand before you use this. For example this will not work as expected: s = (a > b) and "" or "No" In [1]: s = True and "" or "No" In [

Re: [Tutor] how to wirte code In python :str = (a>b?"Yes":"NO")

2007-02-16 Thread Michael P. Reilly
On 2/16/07, Wolfram Kraus <[EMAIL PROTECTED]> wrote: On 16.02.2007 08:01, xiufeng liu wrote: > Hi, all, > > In python if there is any similar way like in Java, or C++ to express > the following: > str = (a>b?"Yes":"NO") > > > thanks! In Python 2.5 you can do the following (untested): str = "Ye

Re: [Tutor] New Tutor topic(almost)

2007-02-16 Thread Kent Johnson
Mark Bystry wrote: > Well, I'm new here and for the most I haven't got a clue as to what I'm > doing, however, I thought > your website was a jewel. Most of it was over my head but sometime in the > future I'm sure it will > become a valuable resource for me. (btw, I'm heading to Borders tonigh

Re: [Tutor] how to wirte code In python :str = (a>b?"Yes":"NO")

2007-02-16 Thread Wolfram Kraus
On 16.02.2007 08:01, xiufeng liu wrote: > Hi, all, > > In python if there is any similar way like in Java, or C++ to express > the following: > str = (a>b?"Yes":"NO") > > > thanks! In Python 2.5 you can do the following (untested): str = "Yes" if a>b else "No" See: http://docs.python.org/what

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Michael P. Reilly
On 2/16/07, ALAN GAULD <[EMAIL PROTECTED]> wrote: > However, the "standard behavior" at the time was that > replies went back to the mailing list, not to the original sender. But the mailing list was the original sender so it was all wonderfully consistent. Reply goes to sender only, which hap

Re: [Tutor] New Tutor topic(almost)

2007-02-16 Thread Mark Bystry
Well, I'm new here and for the most I haven't got a clue as to what I'm doing, however, I thought your website was a jewel. Most of it was over my head but sometime in the future I'm sure it will become a valuable resource for me. (btw, I'm heading to Borders tonight with my checkbook. Hoping

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Michael P. Reilly
On 2/16/07, Alan Gauld <[EMAIL PROTECTED]> wrote: As to standard list behaviour, I don't know of any list thats been around for more than say 10 years that uses Reply to send to All. This seems to be a very recent thing. (And most of the lists I am on have been around for much more than 10 years

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Tim Golden
Kent Johnson wrote: > Tim Golden wrote: >> field and [EMAIL PROTECTED] in cc: My problem there is that I usually >> don't want to send the originating individual a private copy >> of an email he/she is going to receive from the list in any >> case, so I usually cut-and-paste around so that only the

[Tutor] how to wirte code In python :str = (a>b?"Yes":"NO")

2007-02-16 Thread xiufeng liu
Hi, all, In python if there is any similar way like in Java, or C++ to express the following: str = (a>b?"Yes":"NO") thanks! ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Kent Johnson
Tim Golden wrote: > field and [EMAIL PROTECTED] in cc: My problem there is that I usually > don't want to send the originating individual a private copy > of an email he/she is going to receive from the list in any > case, so I usually cut-and-paste around so that only the list > is in To: AFAIK, T

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Tim Golden
Tim Golden wrote: > Alan Gauld wrote: >> But its obvious there are two views at work here. > > (The one which sees an apostrophe in "it's" and the > one which doesn't? ;) > > But, joking aside, I think you've summarised the situation > quite well, and I suspect that -- given the what must be > th

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Tim Golden
Alan Gauld wrote: > But its obvious there are two views at work here. (The one which sees an apostrophe in "it's" and the one which doesn't? ;) But, joking aside, I think you've summarised the situation quite well, and I suspect that -- given the what must be thousands of mailing lists and newsgr

Re: [Tutor] Replying to the tutor-list

2007-02-16 Thread Alan Gauld
"Luke Paireepinart" <[EMAIL PROTECTED]> wrote > It's not the inconvenience but the fact that it's nonstandard, as > far as > every mailing list i've been on except this. It is interesting to see this thread because its a hot button of mine that many new mailing lists implement this non standard

Re: [Tutor] New Tutor topic(almost)

2007-02-16 Thread Lance Haig
Hi Alan, Firstly thank you for the tutorials I have used your book and website to great affect. I use the download on the train when I am travelling. I have a question though. Do you update the web page downloads every time you update the site? I want to download a new copy and was hoping to

Re: [Tutor] New Tutor topic(almost)

2007-02-16 Thread Alan Gauld
"Alan Gauld" <[EMAIL PROTECTED]> wrote in > After a very long delay I finally got some work done on > my networking with sockets topic in my tutorial. There is > still a section to complete but the introductory explanations > and examples are now on the site. > > http://www.freenetpages.co.uk