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


Groups > comp.lang.python > #67145

Re: posting code snippets

Path csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <malaclypse2@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'url:pypi': 0.03; 'repository': 0.05; 'subject:code': 0.07; 'suggestions,': 0.07; 'assuming': 0.09; 'chunk': 0.09; 'posting.': 0.09; 'subject:posting': 0.09; 'url:activestate': 0.09; 'cc:addr:python- list': 0.11; 'python': 0.11; 'bug': 0.12; 'times,': 0.14; 'at,': 0.16; "chris'": 0.16; 'etc?': 0.16; 'folks,': 0.16; 'uploading': 0.16; 'demonstrate': 0.16; 'appropriate': 0.16; 'url:)': 0.16; 'language': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'thu,': 0.19; 'feb': 0.22; 'example': 0.22; 'issue.': 0.22; 'rules': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'right.': 0.26; 'tracker': 0.26; 'post': 0.26; 'header:In-Reply-To:1': 0.27; 'correct': 0.29; 'feature': 0.29; 'on,': 0.29; 'url:bugs': 0.29; 'am,': 0.29; 'url:code': 0.29; 'related': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'posting': 0.31; 'requests': 0.31; 'raised': 0.31; 'probably': 0.32; 'figure': 0.32; 'url:python': 0.33; 'bugs': 0.33; 'problem': 0.35; "can't": 0.35; 'advice': 0.35; 'beyond': 0.35; 'good.': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'belong': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'too': 0.37; 'list': 0.37; 'minimum': 0.38; 'question,': 0.38; 'issue': 0.38; 'short': 0.38; 'itself': 0.39; 'mailing': 0.39; 'url:mail': 0.40; 'read': 0.60; 'length': 0.61; 'full': 0.61; "you're": 0.61; 'here:': 0.62; 'act': 0.63; 'show': 0.63; 'places': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'here': 0.66; 'attention.': 0.68; 'inline': 0.74; 'bare': 0.84; 'short,': 0.84; 'understand,': 0.84; 'cutting': 0.91
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:to :cc:content-type; bh=rhRa5gFtT/vv6h3X6VkBepXlbne0C2WsKfDf2MUWWcA=; b=AejpWA6gWn6Tyqt1jvL4K+zPg9iKdXIdhvauYcjoWnXA5XdrqSFVSs8NOL1a4wT2iq 1R24B8k0RZSmS6+jvhqUFWljjcS9QzFyTTiEmuTeopuyeOUXcxV4tl6LTdmfiwJbzopZ P7w4CzuLlhlO0fDwubHw7eIGaSsVrOO6qXhLwZp0MNVhzfX6cVyCLkF+k29mKKvAs77o ATOTApND9GciPWQ2kUVYis/ssVO/DyT1IwpYmnDnqLjspyNubLJu0uhTmwhGH21cCsqB UJGjkjQrC+4eX4PPlA9zqzj33zJH6gfxVru7/elLx0bwesVaknvAIPtKRJPyRsoAfh9V QKOQ==
MIME-Version 1.0
X-Received by 10.66.16.131 with SMTP id g3mr15772347pad.138.1393513310192; Thu, 27 Feb 2014 07:01:50 -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 10:01:50 -0500
Subject Re: posting code snippets
From Jerry Hill <malaclypse2@gmail.com>
To "Mark H. Harris" <harrismh777@gmail.com>
Content-Type text/plain; charset=UTF-8
Cc "python-list \(General\)" <python-list@python.org>
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.7424.1393513319.18130.python-list@python.org> (permalink)
Lines 37
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1393513319 news.xs4all.nl 2856 [2001:888:2000:d::a6]:47277
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:67145

Show key headers only | View raw


On Thu, Feb 27, 2014 at 7:13 AM, 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?

Chris' advice about just posting your code inline with your message is
good.  If the problem is that you think your code is too long to post
inline, you're probably right.  That means it's probably also too long
for people to give it much attention.  If you really want people to
help figure out what is going on with code you don't understand, the
best thing to do is to post a Short, Self Contained, Correct Example
(http://www.sscce.org/).  That means cutting the code down to the bare
minimum required to demonstrate your issue.  Many times, the very act
of cutting the code down to a digestible chunk will show you the
problem without posting.  And if you still don't understand what's
going on, you're much more likely to get help when you present a
problem that can be read in a single screenful or so of code.

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

Assuming this goes beyond posting code for people on the list to look
at, yes, there are lots of places to post python code.

For short bits, Activestate has a repository of python recipes:
http://code.activestate.com/recipes/langs/python/

For publishing full modules and packages, there's the python package
index: https://pypi.python.org/pypi

Patches, bugs and feature requests for the python language itself
belong here: http://bugs.python.org/ attached to an appropriate
tracker issue.  Feature requests should probably be raised on the
python-ideas mailing list
(https://mail.python.org/mailman/listinfo/python-ideas) before opening
an issue on the bug tracker.

-- 
Jerry

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