Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Luke Paireepinart
Bob Gailer wrote: > Luke Paireepinart wrote: The function just mathematically converted a base-10 number into a base-2 number. > For what its worth - we say "base 10" to mean "decimal". But 10 = > decimal only when we have already agreed we are talking decimal! > Consider a

Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Bob Gailer
Luke Paireepinart wrote: >>> The function just mathematically converted a base-10 number into a >>> base-2 number. >>> For what its worth - we say "base 10" to mean "decimal". But 10 = decimal only when we have already agreed we are talking decimal! Consider a planet where residents have

Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Luke Paireepinart
Okay, so let's see where we are. Integers, as well as strings, and everything else, are stored in memory as binary. This is a given, because the architecture of the computer is binary. You say 'the string representation of the integer is in base-10.' Okay, well, python's representation of any obje

Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Kent Johnson
Luke Paireepinart wrote: > Kent Johnson wrote: >> Luke Paireepinart wrote: >>> I was trying to make it clear that Python wasn't directly accessing >>> the binary from memory with this function Carlos had. >>> The function just mathematically converted a base-10 number into a >>> base-2 number. >>

Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Luke Paireepinart
Kent Johnson wrote: > Luke Paireepinart wrote: >> I was trying to make it clear that Python wasn't directly accessing >> the binary from memory with this function Carlos had. >> The function just mathematically converted a base-10 number into a >> base-2 number. > > No. It converts a binary repre

Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Kent Johnson
Luke Paireepinart wrote: > I was trying to make it clear that Python wasn't directly accessing the > binary from memory with this function Carlos had. > The function just mathematically converted a base-10 number into a > base-2 number. No. It converts a binary representation of a number into a

Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Luke Paireepinart
Kent Johnson wrote: > Luke Paireepinart wrote: > >> > working> > > I think you are a bit confused here. > Quite possible! > It's important to make a distinction between the way a number is > actually stored in the computer and the string that is created when a > number is printed. > > Most

Re: [Tutor] First realscript + Game of Life

2006-11-11 Thread Kent Johnson
Luke Paireepinart wrote: > >> But probably (surely) my interpretation is wrong. Hehe >> > Ah, well, it's just the terminology you were using was a bit misleading. > You say > ' Hey Rooy, so its possible to copy binary numbers from memory?' > All his function does is converts an integer (that's

Re: [Tutor] First realscript + Game of Life

2006-11-10 Thread Mike Hansen
> -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Luke Paireepinart > Sent: Friday, November 10, 2006 12:08 AM > To: Carlos > Cc: tutor@python.org > Subject: Re: [Tutor] First realscript + Game of Life > > > >

Re: [Tutor] First realscript + Game of Life

2006-11-10 Thread Luke Paireepinart
> But probably (surely) my interpretation is wrong. Hehe > Ah, well, it's just the terminology you were using was a bit misleading. You say ' Hey Rooy, so its possible to copy binary numbers from memory?' All his function does is converts an integer (that's in memory, yes) into a binary number

Re: [Tutor] First realscript + Game of Life

2006-11-09 Thread Carlos
Hi, > What? > I think you're talking to someone else here, cause I have no idea what > you mean. > Copy binary numbers from memory? > You mean from any arbitrary memory location you want? > That sounds a lot like C++ pointers to me. That was based on this: > Hi Carlos, > I hope this module wou

Re: [Tutor] First realscript + Game of Life

2006-11-09 Thread Luke Paireepinart
Carlos wrote: > Hallo to All, > > Hey Rooy, so its possible to copy binary numbers from memory? I had > the impression that this could be done, but obviously it is too much > for me. This way is going to be faster than the hack that I tried > before, right? Thanks for the module : ) What? I thi

Re: [Tutor] First realscript + Game of Life

2006-11-09 Thread Carlos
Hallo to All, Hey Rooy, so its possible to copy binary numbers from memory? I had the impression that this could be done, but obviously it is too much for me. This way is going to be faster than the hack that I tried before, right? Thanks for theĀ  module : ) Now I'm tring to implement a Conwa