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


Groups > comp.lang.python > #45954 > unrolled thread

Source code as text/plain

Started byCarlos Nepomuceno <carlosnepomuceno@outlook.com>
First post2013-05-25 06:59 +0300
Last post2013-05-28 16:31 +0300
Articles 2 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  Source code as text/plain Carlos Nepomuceno <carlosnepomuceno@outlook.com> - 2013-05-25 06:59 +0300
    Re: Source code as text/plain Anssi Saari <as@sci.fi> - 2013-05-28 16:31 +0300

#45954 — Source code as text/plain

FromCarlos Nepomuceno <carlosnepomuceno@outlook.com>
Date2013-05-25 06:59 +0300
SubjectSource code as text/plain
Message-ID<mailman.2104.1369454400.3114.python-list@python.org>
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! 		 	   		  

[toc] | [next] | [standalone]


#46282

FromAnssi Saari <as@sci.fi>
Date2013-05-28 16:31 +0300
Message-ID<vg338t7i62y.fsf@coffee.modeemi.fi>
In reply to#45954
Carlos Nepomuceno <carlosnepomuceno@outlook.com> writes:

> 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! 		 	   		  

The 'raw' link on the left spews the source as application/binary so
most likely your browser will download it instead of showing it. Which
is what you asked but if you wanted to view in browser sans the line
numbers, there doesn't seem to be a way.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web