Re: [Tutor] Basic question on spaces

2011-07-20 Thread Alan Gauld
Alexander Quest wrote: As you can see, this is quite rudimentary; I have not discovered any special function that eliminates spaces yet, if such a function exits. There was a thread on this a week or so back. There you will find several suggestions however, in Python 3 the simplest is probabl

Re: [Tutor] Installing module and running

2011-07-20 Thread Walter Prins
Hi David, On 19 July 2011 20:34, David Merrick wrote: > Thanks for you help.Its 64 bit windows. What directory would the module go > in? Scripts or site-packages in Lib? > > I have Python 2.6 in C drive but the files I am using are in a directory on > d drive. > > Does the the module have to be

[Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-20 Thread Richard D. Moores
Is the Python 3.2.1 documentation available as a .chm file from Python.org? Thanks, Dick Moores ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-20 Thread Alan Gauld
Richard D. Moores wrote: Is the Python 3.2.1 documentation available as a .chm file from Python.org? I think you'll need to go to Activestate for that. Alan g ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: htt

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-20 Thread Richard D. Moores
On Wed, Jul 20, 2011 at 06:58, Flynn, Stephen (L & P - IT) wrote: > Saying that, there's nothing stopping you from taking the html version > and compiling your own chm from it. Pretty easy to do. Great! But how? Dick ___ Tutor maillist - Tutor@python

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-20 Thread Walter Prins
On 20 July 2011 15:06, Richard D. Moores wrote: > On Wed, Jul 20, 2011 at 06:58, Flynn, Stephen (L & P - IT) > wrote: > > Saying that, there's nothing stopping you from taking the html version > > and compiling your own chm from it. Pretty easy to do. > > Great! But how? > > Google throws up thi

[Tutor] Unstable IDLE

2011-07-20 Thread Timo Smieszek
Hi I use Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) on a Macbook Pro (Mac OS X 10.6.7). Whenever I want to open a new window in the IDLE or whenever I work with .py file within the IDLE, it crashes either immediately (in case of opening a new window) or after a short time (in ca

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-20 Thread Richard D. Moores
On Wed, Jul 20, 2011 at 07:28, Walter Prins wrote: > > > On 20 July 2011 15:06, Richard D. Moores wrote: >> >> On Wed, Jul 20, 2011 at 06:58, Flynn, Stephen (L & P - IT) >> wrote: >> > Saying that, there's nothing stopping you from taking the html version >> > and compiling your own chm from it.

[Tutor] Web Programming

2011-07-20 Thread Dharmit Shah
Hi all, I have been reading Head First Python since some time now. I am stuck in a chapter on Web Development. Web Development has never been an area of my interest and hence I feel stuck in there. If anyone here has read the book, I wish to know if it

Re: [Tutor] Web Programming

2011-07-20 Thread James Reynolds
If it doesn't interest you, skip it and move on. You can always come back and learn it later, which will be easier anyway, with a more robust background. On Wed, Jul 20, 2011 at 11:22 AM, Dharmit Shah wrote: > Hi all, > > I have been reading Head First > Python

[Tutor] Pyglet for 2.7

2011-07-20 Thread Shwinn Ricci
Is this out yet? ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

[Tutor] Pyglet for 2.7

2011-07-20 Thread Shwinn Ricci
(on a mac. 2.7 python just in case) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-20 Thread xDog Walker
On Wednesday 2011 July 20 06:41, Richard D. Moores wrote: > Is the Python 3.2.1 documentation available as a .chm file from Python.org? > http://www.python.org/ftp/python/3.2.1/python321.chm HTH -- I have seen the future and I am not in it. ___ Tutor

Re: [Tutor] Pyglet for 2.7

2011-07-20 Thread Wayne Werner
What does their website say? On Wed, Jul 20, 2011 at 10:57 AM, Shwinn Ricci wrote: > (on a mac. 2.7 python just in case) > > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > http://mail.python.org/mailman/lis

Re: [Tutor] Is the Python 3.2.1 documentation available as a .chm file?

2011-07-20 Thread Richard D. Moores
On Wed, Jul 20, 2011 at 09:04, xDog Walker wrote: > On Wednesday 2011 July 20 06:41, Richard D. Moores wrote: >> Is the Python 3.2.1 documentation available as a .chm file from Python.org? >> > > http://www.python.org/ftp/python/3.2.1/python321.chm Did that work for you? It got me a chm file that

Re: [Tutor] Unstable IDLE

2011-07-20 Thread Wayne Werner
On Wed, Jul 20, 2011 at 9:26 AM, Timo Smieszek wrote: > Hi > > I use Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34) on a > Macbook Pro (Mac OS X 10.6.7). > Whenever I want to open a new window in the IDLE or whenever I work with > .py file within the IDLE, it crashes either immediately

[Tutor] questions on encoding

2011-07-20 Thread Albert-Jan Roskam
Hi, I am looking for test data with accented and multibyte characters. I have found a good resource that I could use to cobble something together (http://www.inter-locale.com/whitepaper/learn/learn-to-test.html) but I was hoping somebody knows some ready resource. I also have some questions ab

Re: [Tutor] what is 'doubleword alignment'?

2011-07-20 Thread Albert-Jan Roskam
--- On Mon, 7/18/11, Kushal Kumaran wrote: From: Kushal Kumaran Subject: Re: [Tutor] what is 'doubleword alignment'? To: "Walter Prins" Cc: tutor@python.org Date: Monday, July 18, 2011, 8:39 AM On Sun, Jul 17, 2011 at 9:15 PM, Walter Prins wrote: > > > On 17 July 2011 15:26, Lisi wrote: >> >

[Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-20 Thread Alan Gauld
Albert-Jan Roskam wrote: > and ctypes to process the data in python. It works now, although I > still want to read more about this. Where does the distinction > little/big endian enter this story? That's to do with which bit in a byte/word is most significant. e.g. is the decimal value 1 stored

[Tutor] Homework problem

2011-07-20 Thread Ken Baclig
Hi, I'm trying to make a function that receives text (a string) as an argument and returns the same text (as string), but with 1 added to each word that is a number. I need help getting started. So far, I have: def FindNumbers(a_string):     for index, char in enumerate(a_string):         if

Re: [Tutor] Homework problem

2011-07-20 Thread Marc Tompkins
On Wed, Jul 20, 2011 at 2:54 PM, Ken Baclig wrote: > Hi, > > I'm trying to make a function that receives text (a string) as an argument > and returns the same text (as string), but with 1 added to each word that is > a number. > > I need help getting started. > > So far, I have: > > def FindNumbe

Re: [Tutor] Homework problem

2011-07-20 Thread Ken Baclig
Does this look right?  Still a little confused         if char.isdigit():            num = int(char) + 1            a_string[index] = str(num) print a_string From: Marc Tompkins To: Ken Baclig Cc: "tutor@python.org" Sent: Wednesday, July 20, 2011 3:45 PM

Re: [Tutor] Homework problem

2011-07-20 Thread Alan Gauld
Ken Baclig wrote: Does this look right? Still a little confused Nope. Notice that Marc said NOT to operate on characters but to split() the string into a wordlist. Then test for each word in the wordlist to see if it isdigit(). Igf so then convert the word to an int() and add one. Then

Re: [Tutor] Homework problem

2011-07-20 Thread Steven D'Aprano
Ken Baclig wrote: Hi, I'm trying to make a function that receives text (a string) as an argument and returns the same text (as string), but with 1 added to each word that is a number. What counts as a number? In the string: "Hello world 1234 ham spam" which of these do you expect to get b

Re: [Tutor] questions on encoding

2011-07-20 Thread Steven D'Aprano
Albert-Jan Roskam wrote: Hi, I am looking for test data with accented and multibyte characters. I have found a good resource that I could use to cobble something together (http://www.inter-locale.com/whitepaper/learn/learn-to-test.html) but I was hoping somebody knows some ready resource. I

Re: [Tutor] little/big endian was Re: what is 'doubleword alignment'?

2011-07-20 Thread Dave Angel
On 07/19/2011 05:43 PM, Alan Gauld wrote: Albert-Jan Roskam wrote: > and ctypes to process the data in python. It works now, although I > still want to read more about this. Where does the distinction > little/big endian enter this story? That's to do with which bit in a byte/word is most signif

Re: [Tutor] Homework problem

2011-07-20 Thread Ken Baclig
The instructions are to add one to each number.  So the expected result would be: I got 433 when I counted, but Jim got 434 which is a lot for only 7 cats, or were there 13 cats? From: Steven D'Aprano To: "tutor@python.org" Sent: Wednesday, July 20, 2011 6:1