Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eweka.nl!lightspeed.eweka.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4.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.015 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'example:': 0.03; 'subject:text': 0.05; 'subject:code': 0.07; 'mercurial': 0.09; 'nice!': 0.09; 'pages.': 0.09; 'subject:Source': 0.09; 'cc:addr :python-list': 0.11; '24,': 0.16; 'sidebar.': 0.16; 'url:file': 0.16; 'url:py': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'sends': 0.24; 'cc:2**0': 0.24; 'source': 0.25; '>': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "i'm": 0.30; 'code': 0.31; 'there.': 0.32; 'option': 0.32; 'url:python': 0.33; "i'd": 0.34; 'case,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'version': 0.36; 'url:org': 0.36; 'skip:& 10': 0.38; 'url:library': 0.38; 'pm,': 0.38; 'numbers': 0.61; 'such': 0.63; 'skip:n 10': 0.64; 'click': 0.77; 'as:': 0.81; '9:02': 0.84; 'sender:addr:chris': 0.84; 'text/plain': 0.84; 'url:cpython': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rebertia.com; s=google; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=pNrpLpR0gCeAZ5sNRa4K6r9q3Mgj3EbgIirPTGRJc9w=; b=IAuNhrIVpXh241XBcfLJlYNxZ2VzHXATwH/dt+cX1NQxWIuowygzu4/bOCaaC2Y81d Lw3Dm7f5l5b+zJdMdmjUDuIr/AmnPvhQ7ZFzunMW/oizZJpeREuYyLRJjVeN7m43n/9F weMLHnoX2SEZH9IzArIZDC2HxfluX61joiwHc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :x-gm-message-state; bh=pNrpLpR0gCeAZ5sNRa4K6r9q3Mgj3EbgIirPTGRJc9w=; b=eoH+79H7g6fSDWLaAMXqZvOonTfIsHDeFqXS4DPDk/iXP+FlNiWgI32MmZm3m0pqMP MOmf+qp5aG78m7jkApIUR9XGMEvVfEXmeHiBvQEz51NXnECbJpxU3j/Zn5ywE5Xz/bqZ BSRVCRf3hdxnNfidiPZFVYZOZ2qbon0GzpCAUkW4wgo1hOpU7Z5u449+ZmTXW+SEGzJp J21veHYRule5It2dgs9JglNQ6sIuFRoOKSQR+5Qp0En0xY98GyLVQ/TH7jRuIupR5GgY GFH8+Q/eG3ICXf3SnuEuct6SEmW+zdiIdToDU/+jMHvmItGP4QuAhYNX4oHBlgz+ocao xlSw== MIME-Version: 1.0 X-Received: by 10.50.83.102 with SMTP id p6mr977306igy.45.1369454765854; Fri, 24 May 2013 21:06:05 -0700 (PDT) Sender: chris@rebertia.com In-Reply-To: References: Date: Fri, 24 May 2013 21:06:05 -0700 X-Google-Sender-Auth: xdbHmr2n5ELCQYtp5g5bEQkBb78 Subject: Re: Source code as text/plain From: Chris Rebert To: Carlos Nepomuceno Content-Type: multipart/alternative; boundary=089e0111bce2dae3b604dd8308dd X-Gm-Message-State: ALoCoQk6cKT7BzneS7Edmjqg11oUOwfZBUPT4eYCpCtsBNYke/jbrKVv7pXCkqMhPQcQ2ze7L7jT Cc: Python 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: 48 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369454775 news.xs4all.nl 15997 [2001:888:2000:d::a6]:56756 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:45955 --089e0111bce2dae3b604dd8308dd Content-Type: text/plain; charset=UTF-8 On May 24, 2013 9:02 PM, "Carlos Nepomuceno" wrote: > > I'd like to have the option to download the source code as text/plain from the docs.python.org pages. > > For example: when I'm a docs page, such as: > > http://docs.python.org/2/library/string.html > > and I click the source code link I'm taken to a Mercurial page: > > http://hg.python.org/cpython/file/2.7/Lib/string.py > > but over there there's no way to get a clean text/plain version of the code because the line numbers are included. > > A link to the text/plain version on that page would be nice! It's already there. Click the "raw" link in the sidebar. In this case, at this moment, it sends you to http://hg.python.org/cpython/raw-file/f4981d8eb401/Lib/string.py --089e0111bce2dae3b604dd8308dd Content-Type: text/html; charset=UTF-8

On May 24, 2013 9:02 PM, "Carlos Nepomuceno" <carlosnepomuceno@outlook.com> wrote:
>
> I'd like to have the option to download the source code as text/plain from the docs.python.org pages.
>
> For example: when I'm a docs page, such as:
>
> http://docs.python.org/2/library/string.html
>
> and I click the source code link I'm taken to a Mercurial page:
>
> http://hg.python.org/cpython/file/2.7/Lib/string.py
>
> but over there there's no way to get a clean text/plain version of the code because the line numbers are included.
>
> A link to the text/plain version on that page would be nice!

It's already there. Click the "raw" link in the sidebar. In this case, at this moment, it sends you to
http://hg.python.org/cpython/raw-file/f4981d8eb401/Lib/string.py

--089e0111bce2dae3b604dd8308dd--