Re: Newbie with some doubts.

2006-01-07 Thread Terry Hancock
On 4 Jan 2006 17:36:54 -0800 Edgar A. Rodriguez [EMAIL PROTECTED] wrote: 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

Re: Help Please: 'module' object has no attribute 'compile'

2006-01-07 Thread Kent Johnson
livin wrote: I beleive so... I cannot know for sure becasue the models are not separate... they are in the python23.zlib file... I'm no sure how to check the file, it looks as if it is compiled (I'm new to python so forgive my ignorance) Yes, there should be an re module in your Python

Re: Try Python update

2006-01-07 Thread Mike Meyer
[EMAIL PROTECTED] (Alex Martelli) writes: Mike Meyer [EMAIL PROTECTED] wrote: And yes, I know about this. It's listed in Known Problems. Anything What's the URL to Known Problems? There's a strange cursor-placement bug on Apple's Safari browser (not in Firefox), but I don't want to add a bug

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 reference,

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 by object

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 references, so

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. I don't

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 please give

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 pretending to be a

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. snip 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 machine), which

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 Classes are used to. Could

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 source

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 google

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. Can

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 small

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. mike -- Mike Meyer [EMAIL PROTECTED] http://www.mired.org/home/mwm/

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 (most

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 gives

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 particular

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 the first.

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's using

[ python-Bugs-1399099 ] i get a memory leak after using split() function on windows

2006-01-07 Thread SourceForge.net
Bugs item #1399099, was opened at 2006-01-07 05:04 Message generated for change (Comment added) made by tim_one You can respond by visiting: https://sourceforge.net/tracker/?func=detailatid=105470aid=1399099group_id=5470 Please note that this message will contain a full copy of the comment

<    1   2