Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92208 > unrolled thread

Function to show time to execute another function

Started byCecil Westerhof <Cecil@decebal.nl>
First post2015-06-07 08:39 +0200
Last post2015-06-07 11:56 -0400
Articles 20 on this page of 31 — 12 participants

Back to article view | Back to comp.lang.python


Contents

  Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 08:39 +0200
    Re: Function to show time to execute another function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-07 08:39 +0100
      Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 10:22 +0200
        Re: Function to show time to execute another function Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-06-07 11:06 +0200
          Is it a newsgroup or a list? random832@fastmail.us - 2015-06-07 07:20 -0400
            Re: Is it a newsgroup or a list? Steven D'Aprano <steve@pearwood.info> - 2015-06-07 21:45 +1000
              Re: Is it a newsgroup or a list? Chris Warrick <kwpolska@gmail.com> - 2015-06-07 15:10 +0200
              Re: Is it a newsgroup or a list? Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-06-07 16:12 +0200
          Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 13:53 +0200
          Re: Is it a newsgroup or a list? Tim Golden <mail@timgolden.me.uk> - 2015-06-07 14:57 +0100
        Re: Function to show time to execute another function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-07 11:16 +0100
          [OT] Re: Function to show time to execute another function Marko Rauhamaa <marko@pacujo.net> - 2015-06-07 14:02 +0300
            Re: [OT] Re: Function to show time to execute another function Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-06-07 12:12 +0100
          Re: Function to show time to execute another function Steven D'Aprano <steve@pearwood.info> - 2015-06-07 21:29 +1000
          Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 14:03 +0200
        Re: Function to show time to execute another function Tim Golden <mail@timgolden.me.uk> - 2015-06-07 12:05 +0100
          Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 14:43 +0200
        Re: Function to show time to execute another function Laura Creighton <lac@openend.se> - 2015-06-07 15:03 +0200
        Re: Function to show time to execute another function Johannes Bauer <dfnsonfsduifb@gmx.de> - 2015-06-07 20:51 +0200
          Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 22:35 +0200
            Re: Function to show time to execute another function Johannes Bauer <dfnsonfsduifb@gmx.de> - 2015-06-08 07:04 +0200
              Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-08 08:32 +0200
    Re: Function to show time to execute another function Steven D'Aprano <steve@pearwood.info> - 2015-06-07 19:28 +1000
      Re: Function to show time to execute another function Luca Menegotto <otlucaDELETE@DELETEyahoo.it> - 2015-06-07 11:44 +0200
      Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 14:14 +0200
      Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 14:58 +0200
    Re: Function to show time to execute another function Steven D'Aprano <steve@pearwood.info> - 2015-06-07 19:51 +1000
      Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 14:27 +0200
    Re: Function to show time to execute another function Cecil Westerhof <Cecil@decebal.nl> - 2015-06-07 11:31 +0200
    Re: Is it a newsgroup or a list? Gene Heskett <gheskett@wdtv.com> - 2015-06-07 11:49 -0400
    Re: Is it a newsgroup or a list? Larry Martell <larry.martell@gmail.com> - 2015-06-07 11:56 -0400

Page 1 of 2  [1] 2  Next page →


#92208 — Function to show time to execute another function

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-07 08:39 +0200
SubjectFunction to show time to execute another function
Message-ID<87k2vgowco.fsf@Equus.decebal.nl>
Sometimes I just want to know how much time a function takes, but at
the same time I also want the result of the function. For this I wrote
the following function:
    def time_test(function, *args):
        startTime   = time.time()
        results     = function(*args)
        endTime     = time.time()
        print('It took {0} seconds'.format(endTime - startTime))
        return results

I can do:
    time_test(test_random, 100, 10 ** 5)
This outputs:
    It took 17.01685857772827 seconds
and returns:
    (98592, 100833, 0.977775133140936)

When executing:
    time_test(test_random, 100, 10 ** 6)
it outputs:
    It took 165.26371836662292 seconds
and returns:
    (997103, 1002009, 0.9951038363926871)

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [next] | [standalone]


#92209

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-06-07 08:39 +0100
Message-ID<mailman.231.1433662792.13271.python-list@python.org>
In reply to#92208
On 07/06/2015 07:39, Cecil Westerhof wrote:
> Sometimes I just want to know how much time a function takes, but at
> the same time I also want the result of the function. For this I wrote
> the following function:
>      def time_test(function, *args):
>          startTime   = time.time()
>          results     = function(*args)
>          endTime     = time.time()
>          print('It took {0} seconds'.format(endTime - startTime))
>          return results
>
> I can do:
>      time_test(test_random, 100, 10 ** 5)
> This outputs:
>      It took 17.01685857772827 seconds
> and returns:
>      (98592, 100833, 0.977775133140936)
>
> When executing:
>      time_test(test_random, 100, 10 ** 6)
> it outputs:
>      It took 165.26371836662292 seconds
> and returns:
>      (997103, 1002009, 0.9951038363926871)
>

https://docs.python.org/3/library/timeit.html
https://docs.python.org/3/library/profile.html

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#92213

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-07 10:22 +0200
Message-ID<87fv64orly.fsf@Equus.decebal.nl>
In reply to#92209
On Sunday  7 Jun 2015 09:39 CEST, Mark Lawrence wrote:

> On 07/06/2015 07:39, Cecil Westerhof wrote:
>> Sometimes I just want to know how much time a function takes, but
>> at the same time I also want the result of the function. For this I
>> wrote the following function: def time_test(function, *args):
>> startTime = time.time() results = function(*args) endTime =
>> time.time() print('It took {0} seconds'.format(endTime -
>> startTime)) return results
>>
>> I can do:
>> time_test(test_random, 100, 10 ** 5)
>> This outputs:
>> It took 17.01685857772827 seconds
>> and returns:
>> (98592, 100833, 0.977775133140936)
>>
>> When executing:
>> time_test(test_random, 100, 10 ** 6)
>> it outputs:
>> It took 165.26371836662292 seconds
>> and returns:
>> (997103, 1002009, 0.9951038363926871)
>>
>
> https://docs.python.org/3/library/timeit.html
> https://docs.python.org/3/library/profile.html

That only times the function. I explicitly mentioned I want both the
needed time AND the output.

Sadly the quality of the answers on this list is going down. Here I
get an alternative that does only half what I want and when writing an
alternative for ‘!find’ I am told I could use ‘!find’ (which only
works in ipython, not python and which also not works with Windows).

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


#92215

FromLuca Menegotto <otlucaDELETE@DELETEyahoo.it>
Date2015-06-07 11:06 +0200
Message-ID<ml11i1$31j$1@speranza.aioe.org>
In reply to#92213
Il 07/06/2015 10:22, Cecil Westerhof ha scritto:
 > That only times the function. I explicitly mentioned I want both the
 > needed time AND the output.
 >
 > Sadly the quality of the answers on this list is going down....

First of all, thank God it's a newsgroup, not a list.

Second, often the quality of an answer is deeply connected to the 
quality of a question. I've red your question, and I still have not 
clear what you want.

If you want a function that returns a result and a time elapsed, why 
don't you pack the time and the result in a tuple, a list or a 
dictionary? it takes 20 seconds, if you are slow.

Else if you want a function that prints time and result, why don't you 
print result more or less in the same manner you do with the time 
elapsed? it takes 20 seconds, if you are slow.

Else, can you explain exactly what do you want?


-- 
Ciao!
Luca

[toc] | [prev] | [next] | [standalone]


#92231 — Is it a newsgroup or a list?

Fromrandom832@fastmail.us
Date2015-06-07 07:20 -0400
SubjectIs it a newsgroup or a list?
Message-ID<mailman.240.1433676054.13271.python-list@python.org>
In reply to#92215
On Sun, Jun 7, 2015, at 05:06, Luca Menegotto wrote:
> Il 07/06/2015 10:22, Cecil Westerhof ha scritto:
>  > That only times the function. I explicitly mentioned I want both the
>  > needed time AND the output.
>  >
>  > Sadly the quality of the answers on this list is going down....
> 
> First of all, thank God it's a newsgroup, not a list.
...
> -- 
> https://mail.python.org/mailman/listinfo/python-list

I've always thought of this as a list that is mirrored to a newsgroup,
not a newsgroup that is mirrored to a list. What is the true nature of
python-list (and others such as python-ideas)? What is it primarily,
what was it first, etc?

[toc] | [prev] | [next] | [standalone]


#92234 — Re: Is it a newsgroup or a list?

FromSteven D'Aprano <steve@pearwood.info>
Date2015-06-07 21:45 +1000
SubjectRe: Is it a newsgroup or a list?
Message-ID<55742ebc$0$12980$c3e8da3$5496439d@news.astraweb.com>
In reply to#92231
On Sun, 7 Jun 2015 09:20 pm, random832@fastmail.us wrote:

> On Sun, Jun 7, 2015, at 05:06, Luca Menegotto wrote:
>> Il 07/06/2015 10:22, Cecil Westerhof ha scritto:
>>  > That only times the function. I explicitly mentioned I want both the
>>  > needed time AND the output.
>>  >
>>  > Sadly the quality of the answers on this list is going down....
>> 
>> First of all, thank God it's a newsgroup, not a list.
> ...
>> --
>> https://mail.python.org/mailman/listinfo/python-list
> 
> I've always thought of this as a list that is mirrored to a newsgroup,
> not a newsgroup that is mirrored to a list. What is the true nature of
> python-list (and others such as python-ideas)? What is it primarily,
> what was it first, etc?

It's a mailing list mirrored to one official newsgroup, and at least one
unofficial newsgroup (gmane). It's also archived on various websites, plus
Google Groups.

As far as I know, python-list a.k.a. comp.lang.python is the only one of the
Python mailing lists with an official newsgroup mirror.

In *practice*, there's not much difference which comes first. Apart from
some spam, which gets filtered from the mailing list but not the newsgroup,
or vise versa, you can post to the mailing list or the newsgroup and the
message will show up on both.



-- 
Steven

[toc] | [prev] | [next] | [standalone]


#92249 — Re: Is it a newsgroup or a list?

FromChris Warrick <kwpolska@gmail.com>
Date2015-06-07 15:10 +0200
SubjectRe: Is it a newsgroup or a list?
Message-ID<mailman.246.1433683085.13271.python-list@python.org>
In reply to#92234
On Sun, Jun 7, 2015 at 1:45 PM, Steven D'Aprano <steve@pearwood.info> wrote:
> As far as I know, python-list a.k.a. comp.lang.python is the only one of the
> Python mailing lists with an official newsgroup mirror.

comp.lang.python.announce also exists.

Sent via mailing list.

-- 
Chris Warrick <https://chriswarrick.com/>
PGP: 5EAAEA16

[toc] | [prev] | [next] | [standalone]


#92255 — Re: Is it a newsgroup or a list?

FromLuca Menegotto <otlucaDELETE@DELETEyahoo.it>
Date2015-06-07 16:12 +0200
SubjectRe: Is it a newsgroup or a list?
Message-ID<ml1jg6$bte$1@speranza.aioe.org>
In reply to#92234
Il 07/06/2015 13:45, Steven D'Aprano ha scritto:

> As far as I know, python-list a.k.a. comp.lang.python is the only one of the
> Python mailing lists with an official newsgroup mirror.

OK. So let me rephrase: Thank God the list is mirrired to a newsgroup...

-- 
Ciao!
Luca

[toc] | [prev] | [next] | [standalone]


#92238

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-07 13:53 +0200
Message-ID<877frfpwep.fsf@Equus.decebal.nl>
In reply to#92215
On Sunday  7 Jun 2015 11:06 CEST, Luca Menegotto wrote:

> Il 07/06/2015 10:22, Cecil Westerhof ha scritto:
>> That only times the function. I explicitly mentioned I want both
>> the needed time AND the output.
>>
>> Sadly the quality of the answers on this list is going down....
>
> First of all, thank God it's a newsgroup, not a list.

My bad.


> Second, often the quality of an answer is deeply connected to the
> quality of a question. I've red your question, and I still have not
> clear what you want.

Well, it was not a question, it was sharing. I wanted something that
showed the needed time, but also the result. It was not a piece of
art, but something I thought could be useful to share.


> If you want a function that returns a result and a time elapsed, why
> don't you pack the time and the result in a tuple, a list or a
> dictionary? it takes 20 seconds, if you are slow.

I already did that. Sort of. I made a version that defaults to
printing the needed time and returning the result, but can me made to
put the time in a tuple with the result.

I must be very slow. :'-( It took more as 20 seconds.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


#92254 — Re: Is it a newsgroup or a list?

FromTim Golden <mail@timgolden.me.uk>
Date2015-06-07 14:57 +0100
SubjectRe: Is it a newsgroup or a list?
Message-ID<mailman.249.1433685481.13271.python-list@python.org>
In reply to#92215
On 07/06/2015 12:20, random832@fastmail.us wrote:
> On Sun, Jun 7, 2015, at 05:06, Luca Menegotto wrote:
>> Il 07/06/2015 10:22, Cecil Westerhof ha scritto:
>>   > That only times the function. I explicitly mentioned I want both the
>>   > needed time AND the output.
>>   >
>>   > Sadly the quality of the answers on this list is going down....
>>
>> First of all, thank God it's a newsgroup, not a list.
> ...
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
> I've always thought of this as a list that is mirrored to a newsgroup,
> not a newsgroup that is mirrored to a list. What is the true nature of
> python-list (and others such as python-ideas)? What is it primarily,
> what was it first, etc?
>

It's both: they're mirrored to each other and I consider both to be 
first class citizens. In strict chronology I believe comp.lang.python 
existed first, but python-list has been around for long enough that the 
distinction now is really quite academic.

I would not be surprised to find that a fair majority of people told off 
on this list for abusing newsgroup etiquette in one way or another not 
only have no idea that this is (also) a newsgroup but don't even know 
what a newsgroup *is*.

They may also not know that it's a mailing list, nor what that is, 
because they're coming via Google Groups -- which uses the Usenet 
gateway -- or through gmane -- which comes in through the mailing list 
-- or some other web mirror.


TJG

[toc] | [prev] | [next] | [standalone]


#92224

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-06-07 11:16 +0100
Message-ID<mailman.235.1433672222.13271.python-list@python.org>
In reply to#92213
On 07/06/2015 09:22, Cecil Westerhof wrote:
> On Sunday  7 Jun 2015 09:39 CEST, Mark Lawrence wrote:
>
>> On 07/06/2015 07:39, Cecil Westerhof wrote:
>>> Sometimes I just want to know how much time a function takes, but
>>> at the same time I also want the result of the function. For this I
>>> wrote the following function: def time_test(function, *args):
>>> startTime = time.time() results = function(*args) endTime =
>>> time.time() print('It took {0} seconds'.format(endTime -
>>> startTime)) return results
>>>
>>> I can do:
>>> time_test(test_random, 100, 10 ** 5)
>>> This outputs:
>>> It took 17.01685857772827 seconds
>>> and returns:
>>> (98592, 100833, 0.977775133140936)
>>>
>>> When executing:
>>> time_test(test_random, 100, 10 ** 6)
>>> it outputs:
>>> It took 165.26371836662292 seconds
>>> and returns:
>>> (997103, 1002009, 0.9951038363926871)
>>>
>>
>> https://docs.python.org/3/library/timeit.html
>> https://docs.python.org/3/library/profile.html
>
> That only times the function. I explicitly mentioned I want both the
> needed time AND the output.
>
> Sadly the quality of the answers on this list is going down. Here I
> get an alternative that does only half what I want and when writing an
> alternative for ‘!find’ I am told I could use ‘!find’ (which only
> works in ipython, not python and which also not works with Windows).
>

I suggest that you stop asking so many question here.  Get your cheque 
book and go for paid support.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#92228 — [OT] Re: Function to show time to execute another function

FromMarko Rauhamaa <marko@pacujo.net>
Date2015-06-07 14:02 +0300
Subject[OT] Re: Function to show time to execute another function
Message-ID<87pp57ye6v.fsf_-_@elektro.pacujo.net>
In reply to#92224
Mark Lawrence <breamoreboy@yahoo.co.uk>:

> Get your cheque book and go for paid support.

Are checks still in use in Britain? I thought only Americans still did
that.


Marko

[toc] | [prev] | [next] | [standalone]


#92230 — Re: [OT] Re: Function to show time to execute another function

FromMark Lawrence <breamoreboy@yahoo.co.uk>
Date2015-06-07 12:12 +0100
SubjectRe: [OT] Re: Function to show time to execute another function
Message-ID<mailman.239.1433675572.13271.python-list@python.org>
In reply to#92228
On 07/06/2015 12:02, Marko Rauhamaa wrote:
> Mark Lawrence <breamoreboy@yahoo.co.uk>:
>
>> Get your cheque book and go for paid support.
>
> Are checks still in use in Britain? I thought only Americans still did
> that.
>
> Marko
>

Cheques are still in use in Britain.  There was a move a year or so ago 
to get rid of them but too many people complained.  However I feel that 
they're doomed in the same way that cash is on the way out as reported 
here http://www.bbc.co.uk/news/business-32778196

-- 
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.

Mark Lawrence

[toc] | [prev] | [next] | [standalone]


#92232

FromSteven D'Aprano <steve@pearwood.info>
Date2015-06-07 21:29 +1000
Message-ID<55742b36$0$12975$c3e8da3$5496439d@news.astraweb.com>
In reply to#92224
On Sun, 7 Jun 2015 08:16 pm, Mark Lawrence wrote:


> I suggest that you stop asking so many question here.  Get your cheque
> book and go for paid support.

Mark, that remark is uncalled for and completely out of line. Cecil is
perfectly entitled to ask questions here, and you are entitled to ignore
them. You're just pissed off because he rightly noted that your answer to
his question *doesn't solve his problem*.



-- 
Steven

[toc] | [prev] | [next] | [standalone]


#92241

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-07 14:03 +0200
Message-ID<873823pvy8.fsf@Equus.decebal.nl>
In reply to#92224
On Sunday  7 Jun 2015 12:16 CEST, Mark Lawrence wrote:

> I suggest that you stop asking so many question here. Get your
> cheque book and go for paid support.

First of all: it was not a question: I shared something I thought was
useful. You can disagree about it being useful, but there is in my
opinion no need for this kind of responses.

Giving a ‘solution’ that only does half of my solution is not very
useful. Also giving a solution I rejected/replaced is not useful. You
can disagree with the rejection/replacement, but giving it as an
alternative …

Giving disparaging remarks will not improve the quality of this
newsgroup. You will get rid of my ‘stupid’ questions and shares. But I
found that some of the things that I thought would be of very slight
interest resulted in very interesting discussions. If I and other
people do not post those ‘stupid’ things anymore, we will lose those
gems.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


#92229

FromTim Golden <mail@timgolden.me.uk>
Date2015-06-07 12:05 +0100
Message-ID<mailman.238.1433675117.13271.python-list@python.org>
In reply to#92213
On 07/06/2015 11:16, Mark Lawrence wrote:
> On 07/06/2015 09:22, Cecil Westerhof wrote:
>> That only times the function. I explicitly mentioned I want both the
>> needed time AND the output.
>>
>> Sadly the quality of the answers on this list is going down. Here I
>> get an alternative that does only half what I want and when writing an
>> alternative for ‘!find’ I am told I could use ‘!find’ (which only
>> works in ipython, not python and which also not works with Windows).
>>
>
> I suggest that you stop asking so many question here.  Get your cheque
> book and go for paid support.
>

Mark: that was too abrupt, even if the OP was being serious (and I 
suspect he may not have been, despite the absence of a smiley).

Cecil: I don't know if you really meant that seriously, but it certainly 
comes across as ungracious if you did. If you meant it half-humorously, 
then you need to throw in a smiley or a wink to show that you were joking.

TJG

[toc] | [prev] | [next] | [standalone]


#92244

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-07 14:43 +0200
Message-ID<87pp57ofi2.fsf@Equus.decebal.nl>
In reply to#92229
On Sunday  7 Jun 2015 13:05 CEST, Tim Golden wrote:

> On 07/06/2015 11:16, Mark Lawrence wrote:
>> On 07/06/2015 09:22, Cecil Westerhof wrote:
>>> That only times the function. I explicitly mentioned I want both
>>> the needed time AND the output.
>>>
>>> Sadly the quality of the answers on this list is going down. Here
>>> I get an alternative that does only half what I want and when
>>> writing an alternative for ‘!find’ I am told I could use ‘!find’
>>> (which only works in ipython, not python and which also not works
>>> with Windows).
>>>
>>
>> I suggest that you stop asking so many question here. Get your
>> cheque book and go for paid support.
>>
>
> Mark: that was too abrupt, even if the OP was being serious (and I
> suspect he may not have been, despite the absence of a smiley).
>
> Cecil: I don't know if you really meant that seriously, but it
> certainly comes across as ungracious if you did. If you meant it
> half-humorously, then you need to throw in a smiley or a wink to
> show that you were joking.

Yes, I was serious, but maybe I should have used some ‘honey’. When I
started posting questions here I was pleasantly surprised with the
very helpful responses, but lately I must say I see ‘answers’ that are
not only unhelpful, but potentially chasing people away. As I
explained in another post.

Maybe I am not very smart, but what is ungracious in pointing out that
in the reply on something I shared I think could be useful, the
‘solution’ does something else as what I shared?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


#92246

FromLaura Creighton <lac@openend.se>
Date2015-06-07 15:03 +0200
Message-ID<mailman.245.1433682198.13271.python-list@python.org>
In reply to#92213
In a message of Sun, 07 Jun 2015 11:16:30 +0100, Mark Lawrence writes:
>I suggest that you stop asking so many question here.  Get your cheque 
>book and go for paid support.

Knock this off, please.  Some of us dearly like to teach
people who want to explore and learn things.

Laura

[toc] | [prev] | [next] | [standalone]


#92288

FromJohannes Bauer <dfnsonfsduifb@gmx.de>
Date2015-06-07 20:51 +0200
Message-ID<ml23r8$htm$1@news.albasani.net>
In reply to#92213
On 07.06.2015 10:22, Cecil Westerhof wrote:

> That only times the function. I explicitly mentioned I want both the
> needed time AND the output.

And you also posted your solution. I fail to find any question in your
original posting at all.

> Sadly the quality of the answers on this list is going down. 

Maybe you should start asking questions that people are able to
comprehend so that you get an answer that you like.

> Here I
> get an alternative that does only half what I want and when writing an
> alternative for ‘!find’ I am told I could use ‘!find’ (which only
> works in ipython, not python and which also not works with Windows).

Protip: Ditch the shitty attitude. I don't know if you're a jerk or not
but I know for sure that you sound like one. Makes it also much less
likely to get the answers you'd like.

Cheers,
Johannes

-- 
>> Wo hattest Du das Beben nochmal GENAU vorhergesagt?
> Zumindest nicht öffentlich!
Ah, der neueste und bis heute genialste Streich unsere großen
Kosmologen: Die Geheim-Vorhersage.
 - Karl Kaos über Rüdiger Thomas in dsa <hidbv3$om2$1@speranza.aioe.org>

[toc] | [prev] | [next] | [standalone]


#92304

FromCecil Westerhof <Cecil@decebal.nl>
Date2015-06-07 22:35 +0200
Message-ID<878ubvnto4.fsf@Equus.decebal.nl>
In reply to#92288
On Sunday  7 Jun 2015 20:51 CEST, Johannes Bauer wrote:

> On 07.06.2015 10:22, Cecil Westerhof wrote:
>
>> That only times the function. I explicitly mentioned I want both
>> the needed time AND the output.
>
> And you also posted your solution. I fail to find any question in
> your original posting at all.

That is because there was no question: I just wanted to share
something I thought that could be useful. If you would have taken the
trouble to read a little, you would have known that.


>> Sadly the quality of the answers on this list is going down. 
>
> Maybe you should start asking questions that people are able to
> comprehend so that you get an answer that you like.

I do not want answer I like, but an answer that is useful.


>> Here I get an alternative that does only half what I want and when
>> writing an alternative for ‘!find’ I am told I could use ‘!find’
>> (which only works in ipython, not python and which also not works
>> with Windows).
>
> Protip: Ditch the shitty attitude. I don't know if you're a jerk or
> not but I know for sure that you sound like one. Makes it also much
> less likely to get the answers you'd like.

So if someone gives an answer that is completely useless it is a
shitty attitude when I point this out? Very interesting indeed.

I do not think I have to expect something useful from you, it looks
like you prefer name calling. Luckily there are a lot of people that
have a different attitude.

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.python


csiph-web