Re: Is 'everything' a refrence or isn't it?

2006-01-07 Thread Mike Meyer
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Sat, 07 Jan 2006 01:29:46 -0500, Mike Meyer wrote: >> Call by object is the worst choice among the three, because "object" >> has such a vague meaning, so you never know what implications someone >> will come away with. > So very unlike "call by ref

Re: Is 'everything' a refrence or isn't it?

2006-01-07 Thread Mike Meyer
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > In ordinary CS, "call by reference" generally means that the function is > handed a reference to the *variable* holding the *value*. That's the strictest definition of "call-by-reference". It's got a major problem in that it means doing (with C syntax)

Re: Is 'everything' a refrence or isn't it?

2006-01-07 Thread Mike Meyer
Terry Hancock <[EMAIL PROTECTED]> writes: > On Sat, 07 Jan 2006 01:29:46 -0500 > Mike Meyer <[EMAIL PROTECTED]> wrote: >> From what I can tell, Liskov proposed *three* different >> names for >> passing references to objects: call-by-sharing, >> call-by-object, and call-by-object-reference. > "Call

Re: Is 'everything' a refrence or isn't it?

2006-01-07 Thread Aahz
[contextectomy, because this quote makes no sense with or without context] In article <[EMAIL PROTECTED]>, Mike Meyer <[EMAIL PROTECTED]> wrote: > >Right. All references are objects, so "call by object" includes all >the possibilities of "call by reference" as a subset. Not all objects >are refer

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Bengt Richter
On Sat, 07 Jan 2006 14:05:18 +0100, Claudio Grondi <[EMAIL PROTECTED]> wrote: [...] >What I am also looking for is a conversion to base 256 (i.e where the >full byte is used and the string and the integer have the same actual >content if on appropriate endian machine), which would make the bit >

Re: Newbie with some doubts.

2006-01-07 Thread Claudio Grondi
Edgar A. Rodriguez wrote: > Hi everybody, > > Im newbie to Python (I found it three weeks ago) , in fact Im newbie to > programming. I'm being reading and training with the language, but I > still wondering about what Classes are used to. Could you please give > me some examples?? > > Thanks. >

Re: Newbie with some doubts.

2006-01-07 Thread Mike Meyer
Claudio Grondi <[EMAIL PROTECTED]> writes: > Edgar A. Rodriguez wrote: >> Hi everybody, >> Im newbie to Python (I found it three weeks ago) , in fact Im newbie >> to >> programming. I'm being reading and training with the language, but I >> still wondering about what Classes are used to. Could you

Re: MVC programming with python (newbie) - please help

2006-01-07 Thread bwaha
"Gerard Flanagan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gerard Flanagan wrote: > > > bwaha wrote: > > > > > I'd appreciate some experience from the gurus out there to help me > > > understand how to implement MVC design in python code. > > > > > > > Badly snipped, not prete

Re: Stackless Python

2006-01-07 Thread Xavier Morel
Christian Tismer wrote: > Xavier Morel wrote: > >> Would anyone have more informations about that? It doesn't seem to be an >> issue on my side (since I tried to access the Stackless site from two >> different connections and 3 computers) but I can't rule it out. > > Thanks to Carl Friedrich, I

Re: MVC programming with python (newbie) - please help

2006-01-07 Thread bwaha
"bwaha" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'd appreciate some experience from the gurus out there to help me > understand how to implement MVC design in python code. Thanks for all the help. Also this link was sent to me by pm and I found this very useful too. Its a

Re: Does Python allow access to some of the implementation details?

2006-01-07 Thread Claudio Grondi
Bengt Richter wrote: > On Sat, 07 Jan 2006 14:05:18 +0100, Claudio Grondi <[EMAIL PROTECTED]> wrote: > [...] > >>What I am also looking for is a conversion to base 256 (i.e where the >>full byte is used and the string and the integer have the same actual >>content if on appropriate endian machin

Re: Newbie with some doubts.

2006-01-07 Thread Claudio Grondi
Mike Meyer wrote: > Claudio Grondi <[EMAIL PROTECTED]> writes: > >>Edgar A. Rodriguez wrote: >> >>>Hi everybody, >>>Im newbie to Python (I found it three weeks ago) , in fact Im newbie >>>to >>>programming. I'm being reading and training with the language, but I >>>still wondering about what Class

Re: Returning Values from Bash Scripts

2006-01-07 Thread William Park
[EMAIL PROTECTED] wrote: > HI all, > > How to execute bash scripts from python (other than using os.popen) and > get the values that those bash scripts return. > > I would be happy if someone could help me out in this.. Well, if stdout is not an option, then save it to file (text, GDBM, Python s

Re: Groupkit and python

2006-01-07 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >Hi, >I've built an app using this great software called groupkit >(http://www.groupkit.org/) based on tcl/tk language, now I'd like to >test python possibilities for groupware. Anyone knows about this, I >have made a goo

Re: Help wanted with md2 hash algorithm

2006-01-07 Thread Tom Anderson
On Fri, 6 Jan 2006 [EMAIL PROTECTED] wrote: > below you find my simple python version of MD2 algorithm > as described in RFC1319 (http://rfc1319.x42.com/MD2). > It produces correct results for strings shorter than 16 Bytes and wrong > results for longer strings. > > I can't find what's wrong. > >

Re: Newbie with some doubts.

2006-01-07 Thread Mike Meyer
Claudio Grondi <[EMAIL PROTECTED]> writes: > Yes, I see your point, but even putting my personal preferences > beside, for someone who just started to program, learning about the > concept of classes and inheritance is probably not what helps to get > immediate fun out of first steps in writing sma

Re: Returning Values from Bash Scripts

2006-01-07 Thread Mike Meyer
[EMAIL PROTECTED] writes: > How to execute bash scripts from python (other than using os.popen) and > get the values that those bash scripts return. The easy way is to call it with subprocess.call. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix con

Re: Help wanted with md2 hash algorithm

2006-01-07 Thread Paul Rubin
[EMAIL PROTECTED] writes: > below you find my simple python version of MD2 algorithm > as described in RFC1319 (http://rfc1319.x42.com/MD2). > It produces correct results for strings shorter than 16 Bytes and wrong > results for longer strings. Why do you want to use MD2? It's very slow and it's

Re: Returning Values from Bash Scripts

2006-01-07 Thread Steven D'Aprano
On Sat, 07 Jan 2006 22:03:36 -0500, Mike Meyer wrote: > [EMAIL PROTECTED] writes: > >> How to execute bash scripts from python (other than using os.popen) and >> get the values that those bash scripts return. > > The easy way is to call it with subprocess.call. >>> import subprocess Traceback

Re: Newbie with some doubts.

2006-01-07 Thread Kent Johnson
Edgar A. Rodriguez wrote: > Hi everybody, > > Im newbie to Python (I found it three weeks ago) , in fact Im newbie to > programming. I'm being reading and training with the language, but I > still wondering about what Classes are used to. Could you please give > me some examples?? This essay give

Re: Try Python update

2006-01-07 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: ... > "Known problems" doesn't have URL (isn't "urlable"?) other than > http://www.mird.org/home/mwm/try_python/. It's on that page - click on s/mird/mired/ -- the URL as given goes to some 'oxide' thing. > "Known Problems" to open up the section. That par

Re: Worthwhile to reverse a dictionary

2006-01-07 Thread Alex Martelli
Mike Meyer <[EMAIL PROTECTED]> wrote: > crc <[EMAIL PROTECTED]> writes: > > I assume your talking about building a new dictionary with the key and > > value pair switched. I have seen no built in function to do this but I > > have found a way to create another dictionary that is the inverse of > >

Re: Is 'everything' a refrence or isn't it?

2006-01-07 Thread Anders Hammarquist
In article <[EMAIL PROTECTED]>, Fredrik Lundh <[EMAIL PROTECTED]> wrote: >> and the Python use is consistent with the rest of computer science. > >The problem isn't the word "reference" in itself, the problem is when people >are implying that "since Python passes object references to functions, it'

<    1   2