Re: Zope3 Examples?

2005-09-30 Thread Markus Wankus
Gerhard Häring wrote: > Markus Wankus wrote: >> [...] Thanks for the reply - maybe I'll give it another shot. I'm >> currently demoing Snakelets. Quite a turn in the opposite direction, >> but small and super-easy to get going with. [...] > > I also found Snakelets a pleasure to use and chose

Re: Python profiler

2005-09-30 Thread Stephen Kellett
In message <[EMAIL PROTECTED]>, Celine & Dave <[EMAIL PROTECTED]> writes >I am trying to find a profiler that can measure the >memory usage in a Python program. >I would like to >gather some statistics about object usages. For Python Memory Validator. Apply for beta here: http://www.softw

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

2005-09-30 Thread Mike Meyer
Paul Rubin writes: > OTOH, "private" lets you say 100% for certain that another class > didn't clobber __xyz, and that any bug that clobbered it MUST reside > in the class that declared it. That makes auditing for __xyz-related > errors a lot simpler since you only have

Re: Hello gnome-terminal

2005-09-30 Thread Mike Meyer
egbert <[EMAIL PROTECTED]> writes: > When I start the following script in a gnome-terminal: > > #!/usr/bin/env python > import os > print "hello gnome-terminal" > print os.environ["PYTHONPATH"] > > I see the expected results in the same gnome-terminal window. > > However start

Re: PDF Viewer

2005-09-30 Thread David Boddie
John J. Lee wrote: > Alternatively, if you feel rather adventurous, try compiling KPDF on > Windows with the free Qt3 port(s?) or Qt4, if that's arrived yet. I think you might be slightly too optimistic about getting KPDF to run natively on Windows. The project you mention does have a page descri

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

2005-09-30 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > So, fool._bar is now clobbered. Nuts, the _bar attribute is broken for > *every* instance of Fools. According to you, the error must be in > Fools. Care to point it out? Yes, the error is in the "breaker" function, which leaks the private variable to other

Re: Google Not Universal Panacea

2005-09-30 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > However, > > >> Are people really too lazy to do elementary research on Google? > > goes a bit too far in imputing motives to the enquirer and overlooking > the fact that there are some very good reasons for *not* using Google. Ok, *what* are the reasons

Re: PEP 350: Codetags

2005-09-30 Thread François Pinard
[Bengt Richter] > The most detailed discussion I could find was > http://hydracen.com/dx/iso8601.htm Also of interest:: http://www.cl.cam.ac.uk/~mgk25/iso-time.html > IMO they [ISO] ought to think of another way to get funded). People have been complaining for decades. ISO seemingly ru

Re: where to post python code?

2005-09-30 Thread Mike Meyer
Alessandro Bottoni <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] wrote: > >> the question it - where should i post the code to? >> It's not big enough to justify a source forge project, nor is it small >> enough to be considered a receipt fit for ASPN's Python Cookbook. > > Maybe "The Vaults of

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread Mike Meyer
Steve Holden <[EMAIL PROTECTED]> writes: > [off-list] > > Peter Hansen wrote: >> Gerrit Holl wrote: >> >>>True. However, most mail to this mailinglist has less than 0.001 spam >>>probability. As you can see, this one had 0.048 - a vast score, almost >>>enough to put it in my unsure box. It seems t

Re: [Info] PEP 308 accepted - new conditional expressions

2005-09-30 Thread Bengt Richter
On Fri, 30 Sep 2005 20:25:35 +0200, Reinhold Birkenfeld <[EMAIL PROTECTED]> wrote: >Fredrik Lundh wrote: >> Reinhold Birkenfeld wrote: >> >>> after Guido's pronouncement yesterday, in one of the next versions of Python >>> there will be a conditional expression with the following syntax: >>> >>>

Re: [Info] PEP 308 accepted - new conditional expressions

2005-09-30 Thread Terry Reedy
"Dave Benjamin" <[EMAIL PROTECTED]> > > Hooray! After years of arguing over which syntax to use, and finally > giving up since nobody could agree, I understand that this has become the local 'politically correct' view, but as a participant in the discussion, I know it not true and actively dece

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

2005-09-30 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> So, fool._bar is now clobbered. Nuts, the _bar attribute is broken for >> *every* instance of Fools. According to you, the error must be in >> Fools. Care to point it out? > > Yes, the error is in the "breake

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread Tony Meyer
On 30/09/2005, at 10:56 PM, Gerrit Holl wrote: > Tony Meyer wrote: > >> X-Spambayes-Classification: ham; 0.048 >> X-Spambayes-Evidence: '*H*': 0.90; '*S*': 0.00; 'bug.': 0.07; >> 'flagged': 0.07; >> "i'd": 0.08; 'bayes': 0.09; 'from:addr:ihug.co.nz': 0.09; >> 'really,': 0.09; 'cc:no real

Re: Duplicating Modules

2005-09-30 Thread Steven D'Aprano
On Fri, 30 Sep 2005 19:52:56 +0200, Misto . wrote: > There is a way to dumplicate a module ? [snip] > P.S: I know that there is some design Issue here, but my boss says no :) It depends on what you are expecting to do with the duplicated module. If all you need is to access the same module from

Re: [Info] PEP 308 accepted - new conditional expressions

2005-09-30 Thread Sam
Jaime Wyant writes: On 9/30/05, Sam <[EMAIL PROTECTED]> wrote: Reinhold Birkenfeld writes: > Hi, > > after Guido's pronouncement yesterday, in one of the next versions of Python > there will be a conditional expression with the following syntax: > > X if C else Y > > which is the same as today

OT: Phases of the moon [was Re: A Moronicity of Guido van Rossum]

2005-09-30 Thread Steven D'Aprano
On Fri, 30 Sep 2005 18:02:14 -0400, Sherm Pendley wrote: > [EMAIL PROTECTED] writes: > >> I wonder if his postings are related to the phases of the moon? It >> might explain a lot. > > Yes, it would. Note that the word lunatic is derived from the Latin word > luna, meaning moon. Yes, lunatic is

Re: OT: Phases of the moon

2005-09-30 Thread Sherm Pendley
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Fri, 30 Sep 2005 18:02:14 -0400, Sherm Pendley wrote: > >> [EMAIL PROTECTED] writes: >> >>> I wonder if his postings are related to the phases of the moon? It >>> might explain a lot. >> >> Yes, it would. Note that the word lunatic is derived from

Re: OT: Phases of the moon [was Re: A Moronicity of Guido van Rossum]

2005-09-30 Thread [EMAIL PROTECTED]
Steven D'Aprano wrote: > On Fri, 30 Sep 2005 18:02:14 -0400, Sherm Pendley wrote: > > > [EMAIL PROTECTED] writes: > > > >> I wonder if his postings are related to the phases of the moon? It > >> might explain a lot. > > > > Yes, it would. Note that the word lunatic is derived from the Latin word >

Re: RELEASED Python 2.4.2 (final)

2005-09-30 Thread Bugs
- I had an old ActiveState python24.dll in \windows\system32 which I deleted. That must've been left over from a 2.4.1 ActiveState installation which I had installed then uninstalled sometime ago. - I then uninstalled Python 2.4.2 and re-installed it for "all" users. After that everything seeme

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread [EMAIL PROTECTED]
I have an excellent idea. Create your own programming language and do whatever you want with it. Until then, I'm thinking that Guido can do whatever he wants with his. But I'm guessing that your programming skills will be in the same place as your greatness - in your own head. -- http://mail.pyth

Re: PEP 308 accepted - new conditional expressions

2005-09-30 Thread Michele Simionato
Terry Reedy ha scritto: > "Dave Benjamin" <[EMAIL PROTECTED]> > > > Hooray! After years of arguing over which syntax to use, and finally > > giving up since nobody could agree, > > I understand that this has become the local 'politically correct' view, but > as a participant in the discussion, I k

how to send a SIGINT to a Python process?

2005-09-30 Thread Michele Simionato
Is there a way to send a SIGINT/KeyboardInterrupt to a Python process (knowing the pid) that works both on Unix and Windows? Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Phases of the moon

2005-09-30 Thread Steven D'Aprano
On Sat, 01 Oct 2005 00:18:44 -0400, Sherm Pendley wrote: > *whoosh* > > That, my friend, was the sound of a joke flying past and completely > missing you. ;-) Wouldn't be the first time, and surely not the last. *wink* -- Steven. -- http://mail.python.org/mailman/listinfo/python-list

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

2005-09-30 Thread Steven D'Aprano
A cautionary tale of what happens when religious wars enter programming debates. For all I know, Paul Rubin is intelligent, gentle, kind to animals and small children, generous, charitable and modest. But touch his religious belief in the necessity of "truly" private variables, and boy oh boy does

Re: Feature Proposal: Sequence .join method

2005-09-30 Thread Michele Simionato
This can be shortened to def interlace(x, i): """interlace(x, i) -> i0, x, i1, x, ..., x, iN """ i = iter(i) i.next() for e in i: yield x yield e I have noticed a while ago that inside generators StopIteration is automatically trappe

Re: [Info] PEP 308 accepted - new conditional expressions

2005-09-30 Thread Reinhold Birkenfeld
Ron Adam wrote: >> It will be >> >> A if B else (C if D else F) > > So this evaluates as if there are parentheses around each section.. Hmm? > >(A) if (B) else ( (C) if (D) else (F) ) > > The first 'if' divided the expr, then each succeeding 'if' divides the > sub expressions, etc... ? >

Re: [Info] PEP 308 accepted - new conditional expressions

2005-09-30 Thread Reinhold Birkenfeld
Erik Max Francis wrote: > Dave Benjamin wrote: > >> Hooray! After years of arguing over which syntax to use, and finally >> giving up since nobody could agree, the Benevolent Dictator did what >> only a dictator can do, and just made a damn decision already. >> >> Thank you, Guido! =) > > Yes,

Re: [Info] PEP 308 accepted - new conditional expressions

2005-09-30 Thread Reinhold Birkenfeld
Sam wrote: > Jaime Wyant writes: > >> On 9/30/05, Sam <[EMAIL PROTECTED]> wrote: >>> Reinhold Birkenfeld writes: >>> >>> > Hi, >>> > >>> > after Guido's pronouncement yesterday, in one of the next versions of >>> > Python >>> > there will be a conditional expression with the following syntax: >>>

Re: [Info] PEP 308 accepted - new conditional expressions

2005-09-30 Thread Paul Rubin
Reinhold Birkenfeld <[EMAIL PROTECTED]> writes: > For a conditional, syntax must be found, and the tradition of Python > design is not to use punctuation for something that can be solved with > keywords. Yeah, "if C then A else B" is a ancient tradition stretching from Algol-60 to OCAML, and who k

<    1   2   3