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


Groups > comp.lang.python > #67171

Re: posting code snippets

From Ben Finney <ben+python@benfinney.id.au>
Subject Re: posting code snippets
Date 2014-02-28 09:15 +1100
References <e77aff42-6ec3-4749-9683-6ebb2a33ac1a@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.7445.1393539336.18130.python-list@python.org> (permalink)

Show all headers | 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