[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: macro in python

Terry Reedy

2/27/2008 8:48:00 PM


"Guilherme Polo" <ggpolo@gmail.com> wrote in message
news:ac2200130802270508j4d16fb05n15312adec71f2dcd@mail.gmail.com...
| 2008/2/27, bharath venkatesh <bharathv6@gmail.com>:

| > how to create macro in python for set of instruction that is done
| > frequently but too less in number to ignore the overhead of function
call

You can't in Python. Use an external macro program or cut/repeated paste
in an editor.

| There is lambda, not exactly a macro.

Not at all a macro. Purely an abbreviation for def ...

| But every program uses functions why cant yours ?

Yes, function call overhead is seldom the major slowdown except possibly in
inner loops, where code can be written inline just once.

tjr



19 Answers

duke

2/4/2013 12:24:00 PM

0

On Sun, 3 Feb 2013 14:49:15 -0800 (PST), alanp-s@hotmail.co.uk wrote:

>On Feb 2, 11:13?pm, duke <duckgumb...@cox.net> wrote:
>> On Fri, 1 Feb 2013 19:32:20 -0800 (PST), alan...@hotmail.co.uk wrote:
>> >On Feb 1, 8:05?am, Patrick <pbarker...@woh.rr.com> wrote:
>> >> On Thu, 31 Jan 2013 19:02:41 +0000, Mozzer <mozzer.moz...@yahoo.co.uk>
>> >> wrote:
>>
>> >> >On 31/01/2013 18:54, GabeAmit...@woh.rr.com wrote:
>>
>> >> >> "Mentalguy2k8" ?wrote:
>>
>> >> >>>> If your kids get eaten by bears, you are a lousy parent. ?Don't blame God,
>> >> >>>> you are the error.
>>
>> >> >>> So my kids deserve to get mauled and eaten by bears for being a little bit
>> >> >>> mischievous and it'll be my fault if they are?
>>
>> >> >> Can't you read?
>> >> >> Duke said that if you allow your kids to be eaten by bears, it is your
>> >> >> fault. ?You are whining about something that may have happened in the
>> >> >> ancient past. ?If you really want to know more about God, just ask.
>>
>> >> >Wow, you claim to know about God? You must have a source of information
>> >> >denied to science.
>>
>> >> Do you feel science can answer everything?
>>
>> >Science is still very much in it's infancy, so no, of course science
>> >cannot answer even a tiny fraction of ?"everything". To me, the
>> >scientific method is a type of mental discipline that, when used
>> >properly, can assist a human being to perform feats of discovery that
>> >the not-completely-rational human mind would otherwise be incapable of
>> >performing, in much the same way that the discipline and training a
>> >soldier receives enables him to do things that he would otherwise be
>> >incapable of doing.
>>
>> We use logic and reason to ascertain that God truly is.
>
>You're kidding! A god that splits itself into 3 parts and then sends 1
>part of itself to be tortured by a bunch of savages in order to
>appease the other 2 parts that stayed in "heaven" - to you this is
>"logical" and "reasonable"?

Well, you sure didn't apply any in that comment.

>Get outta here! :)

Heeheehee. You got a flat zero grade on that definition.

>> >Your religious "training" does not prepare or equip your mind and/or
>> >body to do anything remotely useful or clever or entertaining or
>> >anything. :) All it does for you (and us) is to make you look stupid.
>
>> >> Why are we still searching for things then?
>
>> >To get us as far away from primitive superstitious religion-inspired
>> >nonsense fallacies just as quick as our cerebellums can take us :)

>> One day science may grow up enough to come to accept the existence of almighty
>> God. ?You know it's impossible to say no.

>Laugh! You think that if there really was an Infinite Intelligence
>that's the creator and maintainer of everything, that it'd be anything
>like the troubled, angry, psychotic sadistic monster that's portrayed
>in the hebrew bible?

In the Christian bible in which God fully reveals himself as all love.

>> > And cause the stuff science gives us is cool and neat. The problem
>> >with your silly bible is that there's nothing in it that can compare
>> >with all the new stuff and new ideas that science has given us
>> Did science give us love, compassion, empathy, sincerity, helping others? ? No,

>Of course not, idiot. And neither did your imaginary sky daddy.

God is ALL those things.

>All those behaviors came into being in the way as explained by the
>theory of evolution.

Guided in that direction by love itself - almighty God.

>Love and hate, compassion and indifference, sincerity and
>deceptiveness, helping others or attacking others, all of these
>behaviors and more, in some way have contributed to the likelihood of
>creatures, including your and my ancestors, living long enough to
>reproduce.

Yet it's our time of choice - love of God, or no love in satan. Choose wisely.

>I know you accept the theory of evolution, not because it "makes
>sense", but because your church commands you to believe it.

Stupid comment. I think you meant "creation". You're one of those people that
believes the universe just popped into existence because of itself.

> If your
>church suddenly decided that the TOE was invalid, you'd immediately
>start denouncing it. That's the type of stupid believe-bot that you
>are. Ptoohey!

You really shouldn't try to tell others what they believe. That takes a
knowledge base you don't have. The proper term is creation then evolution.

>> those come from God.
>Nope.

Nope what?

>> Science taught us what a frog's guts are like.
>>?Heeheehee.

>Still giving us the hyena imitations dukie. You've been told about
>that. It makes you look stupid. Stop it now. Or better yet, do it some
>more.

No, I make YOU look stupid.

>> You can't fix stupid.
>You are living proof of that.

Yet you are the one that said nothing in defense of your beliefs.

The dukester, American - American
********************************************
You can't fix stupid.
********************************************

duke

2/4/2013 12:27:00 PM

0

On Sun, 3 Feb 2013 15:29:50 -0800 (PST), alanp-s@hotmail.co.uk wrote:

>On Feb 3, 5:03?am, Patrick <pbarker...@woh.rr.com> wrote:
>> On Fri, 1 Feb 2013 19:32:20 -0800 (PST), alan...@hotmail.co.uk wrote:
>> >On Feb 1, 8:05?am, Patrick <pbarker...@woh.rr.com> wrote:
>> >> Why are we still searching for things then?
>>
>> >To get us as far away from primitive superstitious religion-inspired
>> >nonsense fallacies just as quick as our cerebellums can take us :)
>>
>> Your Catholic bashing attitude is showing.
>
>No paddy. Even if you were a $cientologist or a baptist or a moslem or
>even, dare I say it, an atheist, I would still be pointing out your
>many many character flaws, your stupidity, your hypocrisy, and the
>fact that you are just a nasty disgusting lying egotistical ignorant
>slug, with no redeeming qualities whatever. So you see, it's nothing
>personal.

Another way of saying that is you have nothing to argue with against his
Christianity.

>Jesus loves you, but the rest of us know exactly what a cunt you are.

That's why we pick Jesus.

>> > And cause the stuff science gives us is cool and neat. The problem
>> >with your silly bible is that there's nothing in it that can compare
>> >with all the new stuff and new ideas that science has given us, just
>> >like some of the grandest and most magnificent churches and cathedrals
>> >are not much more impressive to the eye as a Las Vegas casino-hotel or
>> >even an up-market shopping mall. Face it your religion is dying.
>>
>> Your Catholic bashing attitude is showing.

>Not at all. All primitive, disgusting religions are disgusting and
>primitive, not just yours.

Yet you are totally unable to reveal your understanding of Christianity

>So what's the real reason that the rest of us here are constantly
>bashing and taunting you and dukie?

Your ignorance.

>It's coz you just happen to be here, you and duke, all the rest of the
>godbots have had the sense to either flee the newsgroups completely,
>or are reduced to post-and-run tactics, where they start a thread and
>then don't read or respond to any of the replies generated.
>
>Just be clear on something. It's not courage that makes you and duke
>stay when all others have fled - it's your stupidity and arrogance.
>You actually think you are helping and supporting your cause by
>posting all the nasty stupid malodorous crap that you and dookie leave
>lying around here.

>And I for one hope that you both stay

Been here kicking atheist wannabe ass for about 15-18 years now. No plans to
leave.

, and continue to do what you are
>doing. You are helping me push my agenda in ways that you will always
>be too stupid and arrogant ever to understand, and you vindicate my
>anti-religion biases in a most comforting and affirming way. And
>admittedly, you both satisfy the school-yard bully within me.
>
> I'd love to tell you to fuck off.
>
>Please don't go.
>
>But if you ever do decide to go, would you please leave it until just
>after I've told you to fuck off? It'd mean a lot to me.

The dukester, American - American
********************************************
You can't fix stupid.
********************************************

PATRICK

2/4/2013 1:21:00 PM

0

On Mon, 4 Feb 2013 03:22:08 -0000, "Chuck Spears"
<fishbowl2011@gmail.com> wrote:

>
>
>"Patrick" wrote in message
>news:ukatg8plj0qslohdljq9l2r5pbusarl9n1@4ax.com...
>
>On Sat, 2 Feb 2013 20:07:46 -0000, "Chuck Spears"
><fishbowl2011@gmail.com> wrote:
>
>>
>>
>>"Patrick" wrote in message
>>news:aeoqg819jpmu9ba0qf8b13bqiq7iieg1oj@4ax.com...
>>
>>On Sat, 2 Feb 2013 03:06:39 -0000, "Chuck Spears"
>><fishbowl2011@gmail.com> wrote:
>>
>>>
>>>
>>>"Patrick" wrote in message
>>>news:kn5og81u92s60jbbfa7mh150j4rejfrrsb@4ax.com...
>>>
>>>On Thu, Mozzer <mozzer.mozzer@yahoo.co.uk> wrote:
>>>
>>>>No, science can hardly answer anything. We are still in the infancy of
>>>>our primate mammalian species evolution. That is the true definition of
>>>>an educated person, "someone who understands just how little they know."
>>>>However, your "god of the gaps" argument is just juvenile and you know
>>>>less.
>>>
>>>
>>>I don't have a god of the gaps argument.
>>>Just as you said, we cannot prove the existence or the knowledge of
>>>how eeverything in the universe works. Stop whining about it.
>>>It is obvious that you are not able to understand just how little you
>>>know. If you have questions about God, just ask. I can help you a
>>>little. However, no one has all the answers. I certainly have enough
>>>for my own existence and compacency.
>>>
>>>
>>> What is God?
>>
>>Your creator.
>>
>>
>>I didn't ask what you think it/he/she had done, what IS god.
>
>He IS your creator.
>
>Ok, you think he created me, that I already knew but what is god?


I found a little ditty that might explain it to you.
Mind you, these are NOT my words.
But, I still like them.

God is the physics of the universe, the law of all matters, the past
and the future of time. All matters have their physics.

Moon rotates around the Earth, and Earth surrounds the Sun. Nobody
can defy this fact. An orange seed produces an orange tree. How
else can it be?

The universe itself also needs a system to back it up, or else the
universe cannot function.
God is the physics of the universe, the DNA of space, the fulfillment
of time. Some say that God is a living being. But life usually
connotes a beginning and an end. God created time.

But I know that God is much more than that. He is the mathematical
system which governs and runs the entire universe. You can be measured
with only natural signs and numbers. I know this because the entire
bible is full of numbers, signs and symbols. (Cool - huh?)

One day, God's identity will be enlightened to all,
Studied by all,
From land to land, sea to sea,
For eternity.


PATRICK

2/4/2013 1:24:00 PM

0

On Mon, 4 Feb 2013 03:18:44 -0000, "Chuck Spears"
<fishbowl2011@gmail.com> wrote:

>
>
>"duke" wrote in message news:s7msg85d99tba88f6i39g9cq1ub02rnb79@4ax.com...
>
>On Sat, 2 Feb 2013 20:07:20 -0000, "Chuck Spears" <fishbowl2011@gmail.com>
>wrote:
>
>>
>>
>>"duke" wrote in message news:6r3qg8lpnv1mout0uiv0s9sa2tcmh83qde@4ax.com...
>>
>>On Sat, 2 Feb 2013 03:06:39 -0000, "Chuck Spears" <fishbowl2011@gmail.com>
>>wrote:
>>
>>>
>>>
>>>"Patrick" wrote in message
>>>news:kn5og81u92s60jbbfa7mh150j4rejfrrsb@4ax.com...
>>>
>>>On Thu, Mozzer <mozzer.mozzer@yahoo.co.uk> wrote:
>>>
>>>>No, science can hardly answer anything. We are still in the infancy of
>>>>our primate mammalian species evolution. That is the true definition of
>>>>an educated person, "someone who understands just how little they know."
>>>>However, your "god of the gaps" argument is just juvenile and you know
>>>>less.
>>
>>>I don't have a god of the gaps argument.
>>>Just as you said, we cannot prove the existence or the knowledge of
>>>how eeverything in the universe works. Stop whining about it.
>>
>>We don't. It's you atheist wannabes that whine about it.
>>
>>>It is obvious that you are not able to understand just how little you
>>>know. If you have questions about God, just ask. I can help you a
>>>little. However, no one has all the answers. I certainly have enough
>>>for my own existence and compacency.
>>
>>> What is God?
>>
>>Supreme Creator . God is his name.
>
>> I didn't ask what you think it/he/she had done, what IS god.
>
>Can you read? Supreme creator.
>
> So you don't know what god is, but you think he created everything. When
>you find you what god is, let us know.

You do not have the intellectual capacity to absorb all this
knowledge.
You keep trying, though.
It is fun to watch a blind retard fumble around.

Alan Ferris

2/4/2013 2:44:00 PM

0

On Sun, 03 Feb 2013 06:34:08 -0600, duke <duckgumbo32@cox.net> wrote:

>>> What is God?
>>
>>Supreme Creator . God is his name.
>
>> I didn't ask what you think it/he/she had done, what IS god.
>
>Can you read? Supreme creator.

Is that Chicken Supreme he created?

----
"Now, did I want to go? Hell no. "
-Duke (Earl Weber),
explaining why it was patriotic for
him to skip out on Vietnam, 3/30/2004
----

Alan Ferris

2/4/2013 2:47:00 PM

0

On Sun, 03 Feb 2013 14:25:44 -0800, Jeanne Douglas <hlwdjsd2@NOSPAMgmail.com>
wrote:

>In article <eratg8dimsq8u11c783bsndrqiq00hgl1p@4ax.com>,
> Patrick <pbarker001@woh.rr.com> wrote:
>
>> On Sat, 02 Feb 2013 23:20:01 +0000, Alan Ferris
>>
>> >>In case you are unaware of it, the Catholic Church has always defended
>> >>and tried to advance science and knowlege.
>> >
>> >ROFLAMO! Yeah right. Like how to hide child abuse and then claim you had no
>> >idea it was wrong to rape children.
>>
>> The church has never hidden your abuse or your child raping.
>
>So good to see Patrick's admission that he's been lying.

Like Earl it is what they think Catholicism is all about.
----
"Tough.
He was probably a Jew.
Not a Christian."
- PB Barker on Jesus

Alan Ferris

2/4/2013 2:49:00 PM

0

On Sun, 03 Feb 2013 13:26:32 -0500, Patrick <pbarker001@woh.rr.com> wrote:

>On Sat, 02 Feb 2013 23:34:53 +0000, Alan Ferris
><hairy.ferrit@yahoo.co.uk> wrote:
>
>>On Sat, 02 Feb 2013 14:03:06 -0500, Patrick <pbarker001@woh.rr.com> wrote:
>>
>>>>To get us as far away from primitive superstitious religion-inspired
>>>>nonsense fallacies just as quick as our cerebellums can take us :)
>>>
>>>Your Catholic bashing attitude is showing.
>>
>>Child molesters and those who cover it up deserve a good bashing.
>
>Yes.
>So stop it, or we will bash you some more, ass-wipe.

Barker has never recovered from abusing his adopted children.

----
"+I married a woman, adopted children, I lived the Catholic life that
the Church teaches. I did not demand that I be allowed to live a
sinful life. I lived the life laid doen by the Church and the Bible.
+Today I have two lovely daughters. They have grown up understanding
my need to dress in womens clothes. They understand that we are all
sinners and can be forgiven each week.
+They understand the times that I have been week and allowed my lust
to overcome me. They understand that I can be forgiven."
- Patrick Barker
Message-ID: <885e59d699ffec864a103aa207742a5d@news.teranews.com>
----

alanp-s

2/4/2013 7:56:00 PM

0

On Feb 5, 12:48 am, Alan Ferris <hairy.fer...@yahoo.co.uk> wrote:
> On Sun, 03 Feb 2013 13:26:32 -0500, Patrick <pbarker...@woh.rr.com> wrote:
> >On Sat, 02 Feb 2013 23:34:53 +0000, Alan Ferris
> ><hairy.fer...@yahoo.co.uk> wrote:
>
> >>On Sat, 02 Feb 2013 14:03:06 -0500, Patrick <pbarker...@woh.rr.com> wrote:
>
> >>>>To get us as far away from primitive superstitious religion-inspired
> >>>>nonsense fallacies just as quick as our cerebellums can take us :)
>
> >>>Your Catholic bashing attitude is showing.
>
> >>Child molesters and those who cover it up deserve a good bashing.
>
> >Yes.
> >So stop it, or we will bash you some more, ass-wipe.
>
> Barker has never recovered from abusing his adopted children.
>
> ----
> "+I married a woman, adopted children, I lived the Catholic life that
> the Church teaches.  I did not demand that I be allowed to live a
> sinful life.  I lived the life laid doen by the Church and the Bible.
> +Today I have two lovely daughters.  They have grown up understanding
> my need to dress in womens clothes.  They understand that we are all
> sinners and can be forgiven each week.
> +They understand the times that I have been week and allowed my lust
> to overcome me.  They understand that I can be forgiven."
> - Patrick Barker
> Message-ID: <885e59d699ffec864a103aa207742a5d@news.teranews.com>
> ----

Wow. This Barker is one troubled muddafek eh? Damaged Goods fer sure.

And I thought Dukie was bad.

Maybe it's true that society needs religion to keep it's crazed
looneys at least partially functioninal.

PATRICK

2/4/2013 9:09:00 PM

0

alanp-s@hotmail.co.uk wrote:
Alan Ferris <hairy.fer...@yahoo.co.uk> wrote:
>> , Patrick <pbarker...@woh.rr.com> wrote:
>> >On Sat, 02 Feb 2013 23:34:53 +0000, Alan Ferris

>> Barker has never recovered from abusing his adopted children.
>> "+I married a woman, adopted children, I lived the Catholic life that
>> the Church teaches. ?I did not demand that I be allowed to live a
>> sinful life. ?I lived the life laid doen by the Church and the Bible.
>> +Today I have two lovely daughters. ?They have grown up understanding
>> my need to dress in womens clothes. ?They understand that we are all
>> sinners and can be forgiven each week.
>> +They understand the times that I have been week and allowed my lust
>> to overcome me. ?They understand that I can be forgiven."
>> - Patrick Barker
>> Message-ID: <885e59d699ffec864a103aa207742a5d@news.teranews.com>
>> ----
>
>Wow. This Barker is one troubled muddafek eh? Damaged Goods fer sure.
>And I thought Dukie was bad.
>Maybe it's true that society needs religion to keep it's crazed
>looneys at least partially functioninal.

That's why you are such entertainment to me.
One of you lies.
And the other high-fives him.
Whatta dork!

Chuck Spears

2/5/2013 3:48:00 AM

0



"Patrick" wrote in message
news:rgdvg8di16hdntl2fkbdcmkbafsst4v021@4ax.com...

On Mon, 4 Feb 2013 03:18:44 -0000, "Chuck Spears"
<fishbowl2011@gmail.com> wrote:

>
>
>"duke" wrote in message news:s7msg85d99tba88f6i39g9cq1ub02rnb79@4ax.com...
>
>On Sat, 2 Feb 2013 20:07:20 -0000, "Chuck Spears" <fishbowl2011@gmail.com>
>wrote:
>
>>
>>
>>"duke" wrote in message
>>news:6r3qg8lpnv1mout0uiv0s9sa2tcmh83qde@4ax.com...
>>
>>On Sat, 2 Feb 2013 03:06:39 -0000, "Chuck Spears" <fishbowl2011@gmail.com>
>>wrote:
>>
>>>
>>>
>>>"Patrick" wrote in message
>>>news:kn5og81u92s60jbbfa7mh150j4rejfrrsb@4ax.com...
>>>
>>>On Thu, Mozzer <mozzer.mozzer@yahoo.co.uk> wrote:
>>>
>>>>No, science can hardly answer anything. We are still in the infancy of
>>>>our primate mammalian species evolution. That is the true definition of
>>>>an educated person, "someone who understands just how little they know."
>>>>However, your "god of the gaps" argument is just juvenile and you know
>>>>less.
>>
>>>I don't have a god of the gaps argument.
>>>Just as you said, we cannot prove the existence or the knowledge of
>>>how eeverything in the universe works. Stop whining about it.
>>
>>We don't. It's you atheist wannabes that whine about it.
>>
>>>It is obvious that you are not able to understand just how little you
>>>know. If you have questions about God, just ask. I can help you a
>>>little. However, no one has all the answers. I certainly have enough
>>>for my own existence and compacency.
>>
>>> What is God?
>>
>>Supreme Creator . God is his name.
>
>> I didn't ask what you think it/he/she had done, what IS god.
>
>Can you read? Supreme creator.
>
> So you don't know what god is, but you think he created everything.
> When
>you find you what god is, let us know.

You do not have the intellectual capacity to absorb all this
knowledge.
You keep trying, though.
It is fun to watch a blind retard fumble around.

I knew this would end in fumbling insults, you don't know what god is,
that is clear. You don't know what you are worshipping, you don't understand
what you are worshipping and resort to weak meaningless clich?s like
'Supreme creator' when asked a probing question. There's nothing new here,
time to move on.