Re: Variables

2005-04-23 Thread Richard Blackwood
Indeed, but is it not a variable? Is a variable in programming not merely a name associated with a value (which can changed over the course of code execution)? James Stroud wrote: I think, strictly speaking, foo would be a "name" in python. foo Traceback (most recent call last): Fil

Re: Variables

2005-04-23 Thread Robert Kern
Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. If you guys can define for me what a variable is and what qualifications you have to back you, I can pass this along to, hopefully, convince hi

Re: Variables

2005-04-23 Thread Richard Blackwood
Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. If you guys can define for me what a variable is and what qualifications you have to back you, I can pass this along to, hop

Re: Unicode problems, yet again

2005-04-23 Thread John Machin
On Sun, 24 Apr 2005 03:15:02 +0200, Ivan Voras <[EMAIL PROTECTED]> wrote: >I have a string fetched from database, in iso8859-2, with 8bit >characters, "8bit characters"?? Maybe you did once, or you thought you did, but what you have now is a Unicode string, and socket.write() is expecting an ord

Re: Variables

2005-04-23 Thread Steven Bethard
Richard Blackwood wrote: Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. If I had written foo = raw_input(), he would say that foo is a variable. Then what does he say if you write: foo = 5 foo = 6 ? STeVe -- http://mail.python.org/mailman/list

Re: Variables

2005-04-23 Thread Kent Johnson
Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. Well, we mostly talk Python here, not ma

Re: Variables

2005-04-23 Thread Richard Blackwood
Steven Bethard wrote: Richard Blackwood wrote: Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. If I had written foo = raw_input(), he would say that foo is a variable. Then what does he say if you write: foo = 5 foo = 6 ? STeVe He says that fo

Re: Bounding box on clusters in a 2D list

2005-04-23 Thread Bengt Richter
On 23 Apr 2005 13:17:55 -0700, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >If I have > >ex: x = [[1,1,1,0,0,0,0,0,0,0,0,1,1,1,1,0,0,0], > [1,1,1,0,1,1,0,0,0,0,0,1,1,1,1,0,0,0], > [1,1,1,0,1,1,1,0,1,1,0,1,1,1,0,0,0,0], > [0,0,0,0,0,0,0,0,1,1,0,0,0,0,0,0,0,0]] >what I wan

Re: Variables

2005-04-23 Thread Robert Kern
Richard Blackwood wrote: Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. If I had written foo = raw_input(), he would say that foo is a variable. Which is perfectly fine except that he insists that since programming came from math, the concept

Re: Variables

2005-04-23 Thread Richard Blackwood
Kent Johnson wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. Well, we mostly t

Re: Python or PHP?

2005-04-23 Thread Mike Meyer
John Bokma <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > >> John Bokma <[EMAIL PROTECTED]> writes: >> >>> Mike Meyer wrote: >>> "Simon John" <[EMAIL PROTECTED]> writes: > I still love Perl, it's a bit of an art form, as "there's more than > one way to do it", whereas Python

Re: Variables

2005-04-23 Thread Robert Kern
Richard Blackwood wrote: Kent Johnson wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. Indeed, this language is math. My friend says that foo is a constant and necessarily not a var

Re: help with binary file io, perhaps with generators?

2005-04-23 Thread Terry Reedy
"Marcus Goldfish" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I need to write a "fast" file reader in python for binary files structured >as: > > … x[0] y[0] z[0] x[1] y[1] z[1] … > > where c[k] is the k-th element from sequence c. As mentioned, the > file is binary -- spaces

Re: Variables

2005-04-23 Thread Mike Meyer
Richard Blackwood <[EMAIL PROTECTED]> writes: > Robert Kern wrote: >> Richard Blackwood wrote: >>> To All: >>> >>>Folks, I need your help. I have a friend who claims that if I write: >>> >>> foo = 5 >>> >>> then foo is NOT a variable, necessarily. If you guys can define for >>> me what a varia

Re: Variables

2005-04-23 Thread Richard Blackwood
Robert Kern wrote: Richard Blackwood wrote: Kent Johnson wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. Indeed, this language is math. My friend says that foo is a constant and ne

Re: Variables

2005-04-23 Thread Dan Bishop
Richard Blackwood wrote: > Steven Bethard wrote: > > > Richard Blackwood wrote: > > > >> Indeed, this language is math. My friend says that foo is a constant > >> and necessarily not a variable. If I had written foo = raw_input(), > >> he would say that foo is a variable. > > > > > > Then what does

Re: Variables

2005-04-23 Thread Richard Blackwood
Mike Meyer wrote: Richard Blackwood <[EMAIL PROTECTED]> writes: Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. If you guys can define for me what a variable is

Re: Variables

2005-04-23 Thread Richard Blackwood
Dan Bishop wrote: Richard Blackwood wrote: Steven Bethard wrote: Richard Blackwood wrote: Indeed, this language is math. My friend says that foo is a constant and necessarily not a variable. If I had written foo = raw_input(), he would say that foo is a variab

Re: Variables

2005-04-23 Thread Terry Reedy
"Richard Blackwood" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Indeed, this language is math. In mathematics, the word 'variable' is generally an undefined meta-term that is *notorious* for having multiple possible meanings and shades of meaning. One mathematician/linguist

Re: GUI woes

2005-04-23 Thread Roger Binns
"jeff elkins" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > under debian sid, I installed (via apt-get) the various wxpython stuff > available.: > > libwxgtk2.4-python > libwxgtk2.5.3-python > python-opengl > python-pythoncard > python2.1-opengl > python2.2-opengl > python2.3-opengl

Re: Variables

2005-04-23 Thread Richard Blackwood
Terry Reedy wrote: "Richard Blackwood" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Indeed, this language is math. In mathematics, the word 'variable' is generally an undefined meta-term that is *notorious* for having multiple possible meanings and shades of meaning. One

Re: Variables

2005-04-23 Thread Bengt Richter
On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood <[EMAIL PROTECTED]> wrote: >Robert Kern wrote: > >> Richard Blackwood wrote: >> >>> To All: >>> >>>Folks, I need your help. I have a friend who claims that if I write: >>> >>> foo = 5 >>> >>> then foo is NOT a variable, necessarily. If you

Re: Variables

2005-04-23 Thread Richard Blackwood
Bengt Richter wrote: On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood <[EMAIL PROTECTED]> wrote: Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable, necessarily. If you guy

Re: Variables

2005-04-23 Thread Robert Kern
Richard Blackwood wrote: Robert Kern wrote: If you must, http://en.wikipedia.org/wiki/Variable Fantastic, wikipedia deals precisely with the difference between variables in mathematics versus programming. However, he would never trust a definition from such an "unreputable" source. If you have a

Re: Variables

2005-04-23 Thread Richard Blackwood
Robert Kern wrote: Richard Blackwood wrote: Robert Kern wrote: If you must, http://en.wikipedia.org/wiki/Variable Fantastic, wikipedia deals precisely with the difference between variables in mathematics versus programming. However, he would never trust a definition from such an "unreputable" so

Re: Variables

2005-04-23 Thread Ron
Richard Blackwood wrote: He would argue strongly against your notion of variable. In the statement "foo = 5", foo is constant. He would thus argue that foo is a constant and not a variable (regardless of whether you change foo's value in subsequent statements). Sounds like his mind is made up an

Re: Variables

2005-04-23 Thread Terry Reedy
>>In mathematics, the word 'variable' is generally an undefined meta-term >>that is *notorious* for having multiple possible meanings and shades of >>meaning. One mathematician/linguist once claimed to have discerned >>somewhere around 15 different meanings and shades thereof. >> > What is his

Re: Variables

2005-04-23 Thread Robert Kern
Richard Blackwood wrote: Bengt Richter wrote: On Sat, 23 Apr 2005 22:45:14 -0400, Richard Blackwood <[EMAIL PROTECTED]> wrote: Robert Kern wrote: Richard Blackwood wrote: To All: Folks, I need your help. I have a friend who claims that if I write: foo = 5 then foo is NOT a variable

<    1   2