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: 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 Subject: Re: posting code snippets Date: Fri, 28 Feb 2014 09:15:16 +1100 References: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 "Mark H. Harris" 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 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.