Re: Zope3 Examples?

2005-09-29 Thread Jean-François Doyon
Markus, Zope 3 is mature as a framework, but does not provide much "out of the box". It's a basis upon which to build applications like Plone ... If you are looking for something that provides Plone-like features on top of Zope 3, it doesn't exist (yet). Personally, I'm waiting for this: http

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread David Murmann
Steven Bethard wrote: > David Murmann wrote: >> Hi all! >> >> I could not find out whether this has been proposed before (there are >> too many discussion on join as a sequence method with different >> semantics). So, i propose a generalized .join method on all sequences >> with these semantics:

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread David Murmann
> def join(sep, seq): > return reduce(lambda x, y: x + sep + y, seq, type(sep)()) damn, i wanted too much. Proper implementation: def join(sep, seq): if len(seq): return reduce(lambda x, y: x + sep + y, seq) return type(sep)() but still short enough see you, David. -- ht

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread James Stroud
I know nobody wants to do add "white/black-listing", so we can do it probabilistically. In case it is not obvious, mailings with the words "jargon" or "moron" and their derrivatives should be flagged as 99.9% probability for Moronicity Xha Lee, Jargonizer, spam. If spam bayes can't figure this

Re: grouping array

2005-09-29 Thread Michael Spencer
[EMAIL PROTECTED] wrote: > hi if I have an array > > say x = [[2,2,0,0,1,1], > [1,1,0,0,1,1], > [1,1,0,0,1,1]] > I basically want to group regions that are non zero like I want to get > the coordinates of non zero regions..as (x1,y1,x2,y2) > [(0,0,2,1),(0,4,2,5)] which show the t

Re: Help with syntax warnings

2005-09-29 Thread Leif K-Brooks
Ivan Shevanski wrote: > is there a way to turn off syntax warnings or just make them not > visible? import warnings warnings.filterwarnings('ignore', category=SyntaxWarning) -- http://mail.python.org/mailman/listinfo/python-list

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread en.karpachov
On Thu, 29 Sep 2005 16:59:01 +0200 Fredrik Lundh wrote: > as long as you don't cheat, that is: > > # your code > > class Secret: > def __init__(self): > self.__hidden = "very secret value" > > # my code > > from yourcode import Secret > > class Secret(Secret): > def gethidden(

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tony Meyer
> I know nobody wants to do add "white/black-listing", so we can do it > probabilistically. In case it is not obvious, mailings with the words > "jargon" or "moron" and their derrivatives should be flagged as 99.9% > probability for Moronicity Xha Lee, Jargonizer, spam. If spam bayes > can't > fi

Re: RELEASED Python 2.4.2 (final)

2005-09-29 Thread Bugs
Thanks Trent, you called it, it was an errant python24.dll left over from an old ActiveState installation. Trent Mick wrote: [snip] > > It is possible that the python.org installer didn't overwrite the > "python24.dll" in the system directory (C:\WINDOWS\system32). Try doing > this: > [snip] --

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread Fredrik Lundh
David Murmann wrote: > I could not find out whether this has been proposed before (there are > too many discussion on join as a sequence method with different > semantics). So, i propose a generalized .join method on all sequences so all you have to do now is to find the sequence base class, and

Weekly Python Patch/Bug Summary

2005-09-29 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 337 open ( +0) / 2947 closed ( +6) / 3284 total ( +6) Bugs: 912 open ( +4) / 5278 closed (+16) / 6190 total (+20) RFE : 195 open ( +1) / 187 closed ( +0) / 382 total ( +1) New / Reopened Patches __ fix for d

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread en.karpachov
On Thu, 29 Sep 2005 21:05:28 +0200 Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Do you ever heard of that funny things named "an interface" and "an > > implementation"? > > the "shared DLL:s ought to work" school of thought, you mean? No, the other way around: my app works when I upgra

Re: Moronicity Xha Lee, Jargonizer

2005-09-29 Thread Kay Schluehr
Raymond Hettinger wrote: > James Stroud wrote: > > There needs to be an email filter that, when a thread is begun by a specific > > user . . . it cans every > > message in that thread. > > The tried-and-true solution is both simple and civil, "Don't feed the > trolls." > > > Raymond People like ve

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > Looks like you must know every one of the base classes of the NotSoSecret, > whether there is some base class named Secret? And, if so, you must also > know these classes _implementation_ that information isn't hidden, so there's nothing "you must know". finding out is

File Upload Script

2005-09-29 Thread Chuck
Hi, can anyone provide or point me in the direction of a simple python file upload script? I've got the HTML form part going but simply putting the file in a directory on the server is what I'm looking for. Any help would be greatly appreciated. Thanks, Chuck -- http://mail.python.org/mailman/l

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Gregor Horvath
Paul Rubin schrieb: > Bill Mill <[EMAIL PROTECTED]> writes: > >>Python is for consenting adults. > > Python might be for consenting adults, but multi-person software > projects are supposed to be done in the workplace, not the bedroom. Are the numerous working python open source projects not mul

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > > Looks like you must know every one of the base classes of the NotSoSecret, > > whether there is some base class named Secret? And, if so, you must also > > know these classes _implementation_ > > that information isn't hidden, so there's nothing "you

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: >> > Do you ever heard of that funny things named "an interface" and "an >> > implementation"? >> >> the "shared DLL:s ought to work" school of thought, you mean? > > No, the other way around: my app works when I upgrade libraries it depends > on. yeah, because it's only

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > Are the numerous working python open source projects not multi-person > software projects? Even multiple persons that even dont know each > other and can discuss the latest news at the coffee machine? There are not that many such projects being done in

Re: Feature Proposal: Sequence .join method

2005-09-29 Thread en.karpachov
On Thu, 29 Sep 2005 20:37:31 -0600 Steven Bethard wrote: > I don't like the idea of having to put this on all sequences. If you > want this, I'd instead propose it as a function (perhaps builtin, > perhaps in some other module). itertools module seems the right place for it. itertools.chain(*

Re: File Upload Script

2005-09-29 Thread Fredrik Lundh
"Chuck" wrote: > Hi, can anyone provide or point me in the direction of a simple python > file upload script? I've got the HTML form part going but simply > putting the file in a directory on the server is what I'm looking for. > Any help would be greatly appreciated. upload how? WebDAV? scp?

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Bill Mill
On 9/29/05, Tim Leslie <[EMAIL PROTECTED]> wrote: > On 29 Sep 2005 07:24:17 -0700, Xah Lee <[EMAIL PROTECTED]> wrote: > > > Of course, you begin to write things like Java, in three thousand words > > just to state you are a moron. > > > > > > +1 QOTW. > > Tim > -1 XLEGQOTW (Xah Lee Ever Getting

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Gregor Horvath
Paul Rubin schrieb: > > I don't know of a single program that's actually relying on the > non-enforcement. I've asked for examples but have only gotten > theoretical ones. As far as I can tell, the feature is useless. Real open source live example from yesterdays mailinglists: quick question:

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread en.karpachov
On Fri, 30 Sep 2005 06:31:44 +0200 Fredrik Lundh wrote: > [EMAIL PROTECTED] wrote: > > > Looks like you must know every one of the base classes of the NotSoSecret, > > whether there is some base class named Secret? And, if so, you must also > > know these classes _implementation_ > > that inform

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Paul Rubin
Gregor Horvath <[EMAIL PROTECTED]> writes: > Real open source live example from yesterdays mailinglists: I don't see any use of name mangling in that example. -- http://mail.python.org/mailman/listinfo/python-list

pywordnet install problems

2005-09-29 Thread vdrab
hello pythoneers, I recently tried to install wordnet 2.0 and pywordnet on both an ubuntu linux running python 2.4 and a winXP running activePython 2.4.1, and I get the exact same error on both when I try to "from wordnet import *" : running install error: invalid Python installation: unable to o

Re: Will python never intend to support private, protected and public?

2005-09-29 Thread Gregor Horvath
Paul Rubin schrieb: > Gregor Horvath <[EMAIL PROTECTED]> writes: > >>Real open source live example from yesterdays mailinglists: > > > I don't see any use of name mangling in that example. Someone has a problem and tweaks a private variable as a workaround. No python program will rely by defin

Re: RELEASED Python 2.4.2 (final)

2005-09-29 Thread Martin v. Löwis
Trent Mick wrote: > It is possible that the python.org installer didn't overwrite the > "python24.dll" in the system directory (C:\WINDOWS\system32). Try doing > this: Even though this is apparently what happened, I'm puzzled as to why it happened: shouldn't the version number of python24.dll in t

threads, periodically writing to a process

2005-09-29 Thread Adam Monsen
I have a program that, when run, (1) does some task, then (2) prompts for input: "Press ENTER to continue...", then repeats for about ten different tasks that each take about 5 minutes to complete. There is no way to disable this prompt. How would I go about writing a Python program that would per

Re: threads, periodically writing to a process

2005-09-29 Thread Fredrik Lundh
Adam Monsen wrote: >I have a program that, when run, (1) does some task, then (2) prompts > for input: "Press ENTER to continue...", then repeats for about ten > different tasks that each take about 5 minutes to complete. There is no > way to disable this prompt. > > How would I go about writing a

Re: Straight line detection

2005-09-29 Thread Tim Roberts
"PyPK" <[EMAIL PROTECTED]> wrote: > >Does anyone know of a simple implementation of a straight line >detection algorithm something like hough or anything simpler.So >something like if we have a 2D arary of pixel elements representing a >particular Image. How can we identify lines in this Image. >fo

<    1   2   3