Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'pointers': 0.09; 'questions?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'wrote': 0.14; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'thursday,': 0.16; 'wrote:': 0.18; 'file,': 0.19; 'later': 0.20; 'help.': 0.21; 'earlier': 0.24; 'file.': 0.24; 'header:X-Complaints-To:1': 0.27; 'direction': 0.30; 'code': 0.31; 'post.': 0.31; 'file': 0.32; 'sense': 0.34; 'january': 0.37; 'version,': 0.38; 'to:addr:python- list': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; "you've": 0.63; '30,': 0.65; 'reply': 0.66 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dave Angel Subject: Re: fseek In Compressed Files Date: Thu, 30 Jan 2014 13:46:59 -0500 (EST) Organization: news.gmane.org References: <68316d1a-e52e-48b5-87df-7119f46ebabc@googlegroups.com> X-Gmane-NNTP-Posting-Host: dpc6744192077.direcpc.com X-Newsreader: PiaoHong Usenet NewsReaders 1.36 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: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391107470 news.xs4all.nl 2969 [2001:888:2000:d::a6]:42229 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65034 Ayushi Dalmia Wrote in message: > On Thursday, January 30, 2014 4:20:26 PM UTC+5:30, Ayushi Dalmia wrote: >> Hello, >> >> >> >> I need to randomly access a bzip2 or gzip file. How can I set the offset for a line and later retreive the line from the file using the offset. Pointers in this direction will help. > > We are not allowed to use databases! I need to do this without database. > Why do you reply to your own message? Makes it hard for people to make sense of your post. Have you any answers to earlier questions? How big is this file, what python version, do you care about performance, code you've tried, ... -- DaveA