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: 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: References: Date: Thu, 27 Feb 2014 23:27:16 +1100 Subject: Re: posting code snippets From: Chris Angelico Cc: "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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 On Thu, Feb 27, 2014 at 11:13 PM, Mark H. Harris 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