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
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
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
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
"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
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
[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
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
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.
___
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
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
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
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
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
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
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
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
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
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
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
[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/
101 - 121 of 121 matches
Mail list logo