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


Groups > comp.lang.python > #67171

Re: posting code snippets

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.009
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'repository': 0.05; 'subject:code': 0.07; 'suggestions,': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'sake': 0.09; 'subject:posting': 0.09; '\xe2\x80\x94': 0.09; 'contribute': 0.11; 'python': 0.11; 'project,': 0.12; 'thread': 0.14; '"mark': 0.16; 'etc?': 0.16; 'patches': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'uploading': 0.16; ':-)': 0.16; 'later': 0.20; 'example': 0.22; 'rules': 0.22; 'header:User- Agent:1': 0.23; 'post': 0.26; 'asking': 0.27; 'header:X -Complaints-To:1': 0.27; 'patch': 0.29; 'related': 0.29; 'to?': 0.30; 'code': 0.31; 'posting': 0.31; 'about.': 0.31; 'complete,': 0.31; 'maintains': 0.31; 'writes:': 0.31; 'run': 0.32; 'everyone': 0.33; 'message.': 0.35; "can't": 0.35; 'there': 0.35; 'received:com.au': 0.36; 'url:org': 0.36; 'should': 0.36; 'searching': 0.37; 'too': 0.37; 'project': 0.37; 'question,': 0.38; 'whatever': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'expect': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'ensure': 0.60; 'even': 0.60; 'simple,': 0.60; 'length': 0.61; "you're": 0.61; "you'll": 0.62; 'complete': 0.62; 'making': 0.63; 'skip:\xe2 10': 0.65; 'here': 0.66; 'invalid': 0.68; 'readers': 0.68; 'home': 0.69; 'demonstrates': 0.84; 'received:125': 0.84; 'short,': 0.84; 'reasons,': 0.91; 'wanting': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Ben Finney <ben+python@benfinney.id.au>
Subject Re: posting code snippets
Date Fri, 28 Feb 2014 09:15:16 +1100
References <e77aff42-6ec3-4749-9683-6ebb2a33ac1a@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 8bit
X-Gmane-NNTP-Posting-Host vmx15867.hosting24.com.au
X-Public-Key-ID 0xBD41714B
X-Public-Key-Fingerprint 9CFE 12B0 791A 4267 887F 520C B7AC 2E51 BD41 714B
X-Public-Key-URL http://www.benfinney.id.au/contact/bfinney-gpg.asc
X-Post-From Ben Finney <bignose+hates-spam@benfinney.id.au>
User-Agent Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock sha1:eSQnhExG4g35r+bZzHm2Eph6qF0=
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.7445.1393539336.18130.python-list@python.org> (permalink)
Lines 30
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393539336 news.xs4all.nl 2950 [2001:888:2000:d::a6]:37553
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67171

Show key headers only | View raw


"Mark H. Harris" <harrismh777@gmail.com> writes:

>    Its been too long... can't remember... are there rules here about
>    posting code snippets, or length considerations, and so forth?

Post your code in-line with your message. This is for the sake of the
people whose time you're requesting, and of later readers who will find
the thread when searching the archives — URLs to snippets are likely to
be invalid later.

Since you'll be posting the code in-line, make sure it's short. Since
it'll be short, make sure it's complete — we should need nothing else to
run the code and expect to see the same behaviour you're seeing.

Since you'll be making it short, complete, and still demonstrating the
behaviour, you may even get the result that you understand the cause of
the behaviour before posting it. Everyone wins! :-)

For these and other reasons, ensure the example you're showing us is a
Simple, Self-Contained, Complete Example <URL:http://www.sscce.org/>
which demonstrates the issue you're asking about.

>    A related question, is there a python repository for uploading py
>    files, patches, suggestions, etc?

The place to contribute patches and suggestions is to the project that
maintains whatever it is your patch or suggestion is for. What code
project are you wanting to contribute to? Look to the home page of that
project, and see what resources it has for “Developers” etc.

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