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


Groups > comp.lang.python > #78632

Re: Function passed as an argument returns none

References (2 earlier) <mailman.14538.1412222580.18130.python-list@python.org> <542d05f7$0$12998$c3e8da3$5496439d@news.astraweb.com> <0aaba2f6-dfa4-4ec1-9460-a97c65f2e0eb@googlegroups.com> <542de98e$0$12981$c3e8da3$5496439d@news.astraweb.com> <ea04c593-e1ec-4656-b20e-a5919219ebed@googlegroups.com>
Date 2014-10-03 12:08 +1000
Subject Re: Function passed as an argument returns none
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.14567.1412302126.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Fri, Oct 3, 2014 at 11:49 AM, Rustom Mody <rustompmody@gmail.com> wrote:
> Ok so there is no conventional attribution line because it was
> cut-pasted from elsewhere in the thread but there is a clear
> and unequivocal prefix of "OP subject as well as post".

When I respond to this part...

> Why/how should there be any ambiguity that that is Shiva??

... and then to this, the normal assumption is that, since both are at
the same indentation level, they're both covered by the same heading
line. Compare:

def rustom():
    yield "... there is no conventional ..."
    yield "... elsewhere in the thread ..."
    yield "... unequivocal ..."

# I respond to this...

    yield "... any ambiguity ..."

# Is there any expectation that the above line of code isn't part of
the same function?

And there IS an unequivocal prefix of "OP subject as well as post". It
looks like this:

On Thu, Oct 2, 2014 at 8:37 AM, Shiva
<shivaji_tn@yahoo.com.dmarc.invalid> wrote:
> Any idea why 'None' is getting passed even though calling the donuts(4)
> alone returns the expected value?

And there's even an unambiguous way to indicate that you're responding
to the original poster, but not the original post. Watch!

On Thu, Oct 2, 2014 at 6:46 PM, Shiva
<shivaji_tn@yahoo.com.dmarc.invalid> wrote:
> * return 'Number of donuts: ',count    returns a tuple like:
> ('Number of donuts: ',9)

I can correctly attribute every piece that I respond to. It's really
not hard. In this particular case, I opened two additional replies,
and copied and pasted the bits I want into this reply. Some people
short-cut it, when they're responding to separate posts, and just do
something like this:

[Rustom Mode]
> Are you for real Steven??

Complete with a demonstration of what happens all too often when
things are done manually: a spelling error in the attribution line.
It's still unambiguous as to who wrote what, though a little less
helpful as regards chronology.

Attribution lines are part of being honest about who said what. I
wouldn't say that your post was evidence of malicious intent, but it
was sloppiness that led to an easily misunderstood post. On rereading,
I can see that you did try to indicate (by your text) that it was
meant to be followed by the OP's words, but you didn't put that into
the structure, and you certainly didn't distinguish between the
original post and the one made a little bit later. Please, if you
don't want to be called out for misattribution, just be a bit more
careful. It doesn't take a huge amount of effort.

ChrisA

Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Function passed as an argument returns none Shiva <shivaji_tn@yahoo.com> - 2014-10-01 22:37 +0000
  Re: Function passed as an argument returns none Denis McMahon <denismfmcmahon@gmail.com> - 2014-10-02 00:23 +0000
  Re: Function passed as an argument returns none Rustom Mody <rustompmody@gmail.com> - 2014-10-01 19:29 -0700
    Re: Function passed as an argument returns none Chris Angelico <rosuav@gmail.com> - 2014-10-02 14:02 +1000
      Re: Function passed as an argument returns none Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-02 17:59 +1000
        Re: Function passed as an argument returns none cl@isbd.net - 2014-10-02 10:43 +0100
          Re: Function passed as an argument returns none Rustom Mody <rustompmody@gmail.com> - 2014-10-02 04:30 -0700
        Re: Function passed as an argument returns none Rustom Mody <rustompmody@gmail.com> - 2014-10-02 04:38 -0700
          Re: Function passed as an argument returns none Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-10-03 10:10 +1000
            Re: Function passed as an argument returns none Rustom Mody <rustompmody@gmail.com> - 2014-10-02 18:49 -0700
              Re: Function passed as an argument returns none Chris Angelico <rosuav@gmail.com> - 2014-10-03 12:08 +1000

csiph-web