I love the decorator in Python!!!

A

alex23

Wrap functions to yield is somewhat like  a sub-threading in Erlang.

Okay, now that you've replied to yourself several times, I'm convinced
you're really a markov chainer. You might want to get your owner to
tweak your response filter.
 
8

88888 Dihedral

Ah, cheers :) Is that a recent addition? The lack of note makes it
seem like it was there from the beginning?

To wrap a function properly is different from the 1-line lampda.

This is really functional programming.

Every function can be decorated to change into a different one easily.

There is a method to replace every return action of a python function
into an yield action without the source code.
 
A

alex23

To wrap a function properly is different from the 1-line lampda.

This is really functional programming.

Every function can be decorated to change into a different one easily.

There is  a method to replace every return action  of a python function
into an  yield action without the source code.

How does this have _anything_ to do with my exchange with Robert?

If you're _not_ a markov chainer, you're trying way too hard to show
off what you know, and very little of it seems relevant to the thread.
 
E

Ethan Furman

alex23 said:
Ah, cheers :) Is that a recent addition? The lack of note makes it
seem like it was there from the beginning?

Not sure how recent it is, but I do know it does *not* handle the signature.

~Ethan~
 
8

88888 Dihedral

How does this have _anything_ to do with my exchange with Robert?

If you're _not_ a markov chainer, you're trying way too hard to show
off what you know, and very little of it seems relevant to the thread.

I think in the CS way in the 5th generation computer languages.
But I also think in the hardware way in the 2,3,4th generations.

Why do you need to spawn a thread or a process that can be decorated by
wrapping an yield for all kinds of parameter checking of functions?

A lousy written function in any computer language indicates
a bad taste of art.
 
R

Robert Kern

Ah, cheers :) Is that a recent addition? The lack of note makes it
seem like it was there from the beginning?

The module was added in Python 2.5 as noted at the top of the page.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco
 
A

alex23

The module was added in Python 2.5 as noted at the top of the page.

I had thought you meant it now included function signature handling,
as that was the context at the time. No biggie.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,156
Messages
2,570,878
Members
47,405
Latest member
DavidCex

Latest Threads

Top