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


Groups > comp.lang.python > #67141

Re: posting code snippets

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.025
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'subject:code': 0.07; 'subject:posting': 0.09; 'useless': 0.09; 'cc:addr:python-list': 0.11; 'creates': 0.14; 'folks,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'length,': 0.16; 'two,': 0.16; 'way;': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'seems': 0.21; 'feb': 0.22; 'rules': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'script': 0.25; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'external': 0.29; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'code': 0.31; 'posting': 0.31; 'embedding': 0.31; 'could': 0.34; "can't": 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'too': 0.37; 'convention': 0.38; 'pm,': 0.38; 'resource': 0.38; 'itself': 0.39; 'read': 0.60; 'around.': 0.60; 'length': 0.61; 'more': 0.64; 'here': 0.66; 'hang': 0.67; 'nobody': 0.68; 'email,': 0.69; 'cut': 0.74; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=WdPf+TvTS83I51QoyjkeMniDxmJHfTWvUVnH7HRwRCQ=; b=ClQzn/gPTVwZl/TOekZlgTA0FKMlGwqy2cBdQ19p1D20OpE4R65nS0wGtnWW/uw6s7 zMD3Y2ACXmYazOCB6NEaYFYtGCQA+ouOZQKWtEiWp2zmW5Or9ntsjANZS+lvgOg8rtEY E/CkYE+2P8dZwGkuvg2On9IKMYNHM75aHAdiAZev74nq/OjCm77LtZOTAnM728TQqMKI G/A7PjEAcSHEfNK5xLa/Fm+RA3PnRV4hdFee2QUZ1Go6R0/bG/g42Lr1ke9lOAu5vBFZ 7MoySD7mqTDUblVfDB7kALh9UQ5EKSlHEIlqxrmeGRYl8L6UWxWtNc57DftWb3BRbnym gDpQ==
MIME-Version 1.0
X-Received by 10.68.201.10 with SMTP id jw10mr13090684pbc.25.1393504036642; Thu, 27 Feb 2014 04:27:16 -0800 (PST)
In-Reply-To <e77aff42-6ec3-4749-9683-6ebb2a33ac1a@googlegroups.com>
References <e77aff42-6ec3-4749-9683-6ebb2a33ac1a@googlegroups.com>
Date Thu, 27 Feb 2014 23:27:16 +1100
Subject Re: posting code snippets
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.7421.1393504040.18130.python-list@python.org> (permalink)
Lines 23
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393504040 news.xs4all.nl 2879 [2001:888:2000:d::a6]:49013
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67141

Show key headers only | View raw


On Thu, Feb 27, 2014 at 11:13 PM, Mark H. Harris <harrismh777@gmail.com> wrote:
> hi folks,
>    Its been too long... can't remember... are there rules here about posting code snippets, or length considerations, and so forth?
>    Seems like there was a place to share code snips outside of the message area?

The convention is to post it in-line, just have it right there in the
body of the email. There's no specific rule on length, but if it goes
over a screenful or two, a lot of people won't bother to read it.

Keeping the code in the message itself is the best way to carry it
around. Not every transmission medium supports attachments, and they
don't cut down on size in any way; and a link to an external resource
creates a dependency. But if your code really is too long to be
practical, you could post it to pastebin or somesuch. It's not as good
as keeping it in the email, but it can work. Do try to make your code
more consumable, though - posting a link to a thousand-line script is
just as useless as embedding it, as nobody will bother to read through
it.

> tnx...   happy Thursday!
I never could get the hang of Thursdays.

ChrisA

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


Thread

posting code snippets "Mark H. Harris" <harrismh777@gmail.com> - 2014-02-27 04:13 -0800
  Re: posting code snippets Chris Angelico <rosuav@gmail.com> - 2014-02-27 23:27 +1100
  Re: posting code snippets Jerry Hill <malaclypse2@gmail.com> - 2014-02-27 10:01 -0500
    Re: posting code snippets "Mark H. Harris" <harrismh777@gmail.com> - 2014-02-27 07:23 -0800
  Re: posting code snippets Tim Chase <python.list@tim.thechases.com> - 2014-02-27 09:56 -0600
  Re: posting code snippets Ben Finney <ben+python@benfinney.id.au> - 2014-02-28 09:15 +1100
    Re: posting code snippets "Mark H. Harris" <harrismh777@gmail.com> - 2014-02-27 15:13 -0800
      Re: posting code snippets Dave Angel <davea@davea.name> - 2014-02-28 00:05 -0500
  Re: posting code snippets Chris Angelico <rosuav@gmail.com> - 2014-02-28 16:41 +1100
    Re: posting code snippets Grant Edwards <invalid@invalid.invalid> - 2014-02-28 14:31 +0000
      Re: posting code snippets Gene Heskett <gheskett@wdtv.com> - 2014-03-01 16:55 -0500
      Re: posting code snippets Chris Angelico <rosuav@gmail.com> - 2014-03-02 09:16 +1100
        Re: posting code snippets Alister <alister.ware@ntlworld.com> - 2014-03-02 11:25 +0000
          Re: posting code snippets Gene Heskett <gheskett@wdtv.com> - 2014-03-02 07:20 -0500
      Re: posting code snippets Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-03-02 17:20 +1300

csiph-web