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


Groups > comp.lang.python > #75003

Re: Fastest I/O on Python ?

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!217.188.199.168.MISMATCH!takemy.news.telefonica.de!telefonica.de!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.004
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'output': 0.05; 'subject:Python': 0.06; 'sys': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'inputs': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject: ?': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'options.': 0.19; 'typing': 0.19; 'print': 0.22; 'header:User-Agent:1': 0.23; 'subject:/': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In- Reply-To:1': 0.27; 'wondering': 0.29; 'am,': 0.29; 'besides': 0.30; 'skip:( 20': 0.30; "i'm": 0.30; 'fast.': 0.31; 'option': 0.32; 'open': 0.33; 'limitation': 0.33; 'device': 0.34; 'there': 0.35; 'disk': 0.36; 'doubt': 0.36; 'thank': 0.38; 'to:addr:python- list': 0.38; 'sure': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'received:org': 0.40; 'solve': 0.60; 'competitive': 0.61; 'between': 0.67; 'rendering': 0.68; 'received:pacbell.net': 0.84; 'responses': 0.93
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From emile <emile@fenx.com>
Subject Re: Fastest I/O on Python ?
Date Tue, 22 Jul 2014 09:18:06 -0700
References <ac753254-9b33-457d-8ba9-92af4b063da4@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Gmane-NNTP-Posting-Host adsl-69-226-129-65.dsl.pltn13.pacbell.net
User-Agent Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
In-Reply-To <ac753254-9b33-457d-8ba9-92af4b063da4@googlegroups.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.12184.1406045913.18130.python-list@python.org> (permalink)
Lines 26
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1406045913 news.xs4all.nl 2841 [2001:888:2000:d::a6]:46170
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:75003

Show key headers only | View raw


On 07/22/2014 09:06 AM, Orochi wrote:
> Is there in any other input/output faster than ("raw_input","input" / "print")

The limitation is with the device -- either the human typing in 
responses or the output device rendering the output.  If you have the 
option to read/write to disk that'd open up additional options.

Otherwise I'm not sure there's much to be gained.

Emile



> As I am trying to solve competitive Programs on codechef.com using python i was wondering if there is any other way to print and scan the inputs fast.
>
>
> I have seen other people codes and there are using sys library(stdin and stdout) for I/O.
>
> So I was thinking is there any other way to take input/output besides using 'sys library'.
>
> And also I had doubt about what is the difference between (raw_input,input/print) and (stdin/stdout)
>
> Thank You.....
>

Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Fastest I/O on Python ? Orochi <kartikjagdale11@gmail.com> - 2014-07-22 09:06 -0700
  Re: Fastest I/O on Python ? Chris Angelico <rosuav@gmail.com> - 2014-07-23 02:17 +1000
  Re: Fastest I/O on Python ? emile <emile@fenx.com> - 2014-07-22 09:18 -0700

csiph-web