Re: High Order Messages in Python

2005-10-23 Thread vdrab
On a (somewhat) related note, I've always wondered whether it is possible to emulate ruby blocks using a python generator '+ alpha'. In my limited understanding of the ruby block, the generator can inject values into a block, I suppose, but what is the block itself? can it be a function? a class in

OSDC 2005 Registration

2005-10-23 Thread Richard Jones
G'day folks, This is a quick note to let you know that registrations for Australia's second Open Source Developers' Conference are now open. Last year's conference was a huge hit with 60 high quality talks running in three streams over three days. If you weren't able to join us last year make s

Re: Tricky Areas in Python

2005-10-23 Thread Alex Martelli
Andrew Durdin <[EMAIL PROTECTED]> wrote: > On 10/24/05, Alex Martelli <[EMAIL PROTECTED]> wrote: > > I may branch out into more advanced stuff such as asking > > for an example use case for a closure, a custom descriptor, or an import > > hook, for example > > Isn't that approaching things from t

Re: High Order Messages in Python

2005-10-23 Thread gene tani
http://www.artima.com/intv/closures.html http://www.rubyist.net/~matz/slides/oscon2005/index.html It's a read-write closure, a co-routine, sort of a continuation (tho Kernel.callcc is considered the real continuation mechanism). And you can make it a Proc object (basically an unbound object you ca

Re: Microsoft Hatred FAQ

2005-10-23 Thread David Schwartz
"Alan Connor" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > AC You wouldn't be this Alan Connor would you: http://www.killfile.org/dungeon/why/connor.html DS -- http://mail.python.org/mailman/listinfo/python-list

Re: High Order Messages in Python

2005-10-23 Thread [EMAIL PROTECTED]
could someone enlighten me what is the advantage of block over named function ? One thing that I can see a difference may be lexical scope ? vdrab wrote: > On a (somewhat) related note, > I've always wondered whether it is possible to emulate ruby blocks > using a python generator '+ alpha'. In m

Re: High Order Messages in Python

2005-10-23 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > could someone enlighten me what is the advantage of block over named > function ? > > One thing that I can see a difference may be lexical scope ? "Yes, but" -- according to the latest Ruby book, the "mixed lexical scope" of blocks is a highly contr

Re: High Order Messages in Python

2005-10-23 Thread [EMAIL PROTECTED]
counting that out(regardless whether it is (dis)advantage or not), what else a block can do but not a named function ? Alex Martelli wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > could someone enlighten me what is the advantage of block over named > > function ? > > > > One thing tha

An interesting question about "print '\a'"

2005-10-23 Thread Anthony Liu
We know that if we do print '\a' the bell will sound. Now, why do I hear the sound on my local machine when I run a python script on a remote host? I understand if I hear it when I do print '\a' on my local machine. Does the command get sent back to the client machine? Thanks. ___

output from external commands

2005-10-23 Thread James Colannino
Hey everyone. First off, I'm new to the list. I had had a little bit of experience with Perl before discovering Python. The more Python I learn, the more I love it :) I just have a quick question to ask. I know that this is probably a simple question, but I've been googling around, and par

Re: An interesting question about "print '\a'"

2005-10-23 Thread Erik Max Francis
Anthony Liu wrote: > We know that if we do > > print '\a' > > the bell will sound. > > Now, why do I hear the sound on my local machine when > I run a python script on a remote host? Because print '\a' just prints the BEL ASCII character, which most terminals respond by beeping. Since, when

Re: An interesting question about "print '\a'"

2005-10-23 Thread Chris F.A. Johnson
On 2005-10-24, Anthony Liu wrote: > We know that if we do > > print '\a' > > the bell will sound. > > Now, why do I hear the sound on my local machine when > I run a python script on a remote host? > > I understand if I hear it when I do > > print '\a' > > on my local machine. > > Does the command

Re: An interesting question about "print '\a'"

2005-10-23 Thread [EMAIL PROTECTED]
I thought that is just a "terminal" thing(extend ASCII that interpreted by the terminal)? If you have a terminal attached to a host, shouldn't this be making sound on the terminal rather than the server ? This not alsa or output to the server device, but straightly sending '\a' back to the client m

Re: Syntax across languages

2005-10-23 Thread bearophileHUGS
Thank you for all the answers, some people have already answered for me about most details I don't agree :-) Mike Meyer>Rexx has a global control that lets you set the number of digits to be considered significant in doing an FP equality test.< Mathematica too, I think. Tom Anderson>There are a

Re: output from external commands

2005-10-23 Thread Mike Meyer
James Colannino <[EMAIL PROTECTED]> writes: > Hey everyone. First off, I'm new to the list. I had had a little bit > of experience with Perl before discovering Python. The more Python I > learn, the more I love it :) I just have a quick question to ask. I > know that this is probably a simple

testing '192.168.1.4' is in '192.168.1.0/24' ?

2005-10-23 Thread [EMAIL PROTECTED]
Hi, Is there standard library modules handling this ? currently I need to turn it into a long integer and do the shift and compare. -- http://mail.python.org/mailman/listinfo/python-list

Re: output from external commands

2005-10-23 Thread James Colannino
Mike Meyer wrote: >This is a scripting language feature. Python doesn't have direct >support for it, any more than C++ does. To get that functionality, you >want to use either the os.popen function, or - preferable, but only >available in newer Pythons - the subprocess module. > > Thanks. Jame

Re: Microsoft Hatred FAQ

2005-10-23 Thread Roedy Green
On Sun, 23 Oct 2005 23:16:24 GMT, Roedy Green <[EMAIL PROTECTED]> wrote or quoted : >>As well as blame. The commercialization of the Internet was grossly >>mismanaged. Take the InterNIC - please! > >As global bureaucracies go, I think they have done a good job. Can >you imagine herding the cats o

hello

2005-10-23 Thread hydrol-eo
The message contains Unicode characters and has been sent as a binary attachment. KWF Email scanner was unable to check following file (i.e. corrupted/encrypted zip archive): Name: doc.zip Content type: application/octet-stream This file was removed by Firewall. -- http://m

Re: Syntax across languages

2005-10-23 Thread Mike Meyer
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > On Sun, 23 Oct 2005 20:59:46 -0400, Mike Meyer <[EMAIL PROTECTED]> declaimed > the following in comp.lang.python: > >> Hopefully user defined. Rexx has a global control that lets you set >> the number of digits to be considered significant in doing an

Re: testing '192.168.1.4' is in '192.168.1.0/24' ?

2005-10-23 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Is there standard library modules handling this ? currently I need to > turn it into a long integer and do the shift and compare. A little Googling turned up this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440560 -Peter -- http://mail.python.org/mailman/

<    1   2