Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!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.049 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; 'suppose': 0.07; 'cc:addr :python-list': 0.11; '>the': 0.16; 'antoine': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'merely': 0.16; 'message- id:@cskk.homeip.net': 0.16; 'received:211.29': 0.16; 'received:211.29.132': 0.16; 'received:optusnet.com.au': 0.16; 'received:syd.optusnet.com.au': 0.16; 'simpson': 0.16; 'subject:usage': 0.16; 'unix,': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'module': 0.19; 'dependent': 0.19; 'finished': 0.19; 'cc:addr:python.org': 0.22; 'load': 0.23; 'header:User-Agent:1': 0.23; 'cheers,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; "i've": 0.25; 'holds': 0.26; 'header:In-Reply-To:1': 0.27; 'piece': 0.31; 'probably': 0.32; 'linux': 0.33; 'maybe': 0.34; 'could': 0.34; 'but': 0.35; 'version': 0.36; 'functions.': 0.36; 'received:com.au': 0.36; 'whilst': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'should': 0.36; 'half': 0.37; 'received:211': 0.38; 'window': 0.38; 'issue': 0.38; 'users': 0.40; 'how': 0.40; 'skip:u 10': 0.60; 'new': 0.61; "you're": 0.61; 'back': 0.62; 'content-disposition:inline': 0.62; "you've": 0.63; 'more': 0.64; 'great': 0.65; 'close': 0.67; 'hour': 0.70; 'obvious': 0.74; 'article': 0.77; 'adrenaline': 0.84; 'answer:': 0.84; 'p.s.:': 0.84; 'pain': 0.84; 'subject:skip:o 10': 0.84; 'mortal': 0.91 Date: Fri, 31 May 2013 09:21:42 +1000 From: Cameron Simpson To: Wolfgang Maier Subject: Re: usage of os.posix_fadvise MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) References: X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.0 cv=e/de0tV/ c=1 sm=1 a=wom5GMh1gUkA:10 a=kj9zAlcOel0A:10 a=vrnE16BAAAAA:8 a=ZtCCktOnAAAA:8 a=R_K73qnlozsA:10 a=cexIBkohAAAA:8 a=4hqGlpXTmv9shgO9eWUA:9 a=CjuIK1q_8ugA:10 a=ChdAjXE5lkUvdteQbhpnkQ==:117 Cc: python-list@python.org 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: 32 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1369957163 news.xs4all.nl 15923 [2001:888:2000:d::a6]:39084 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:46560 On 30May2013 17:54, Wolfgang Maier wrote: | Antoine Pitrou wrote: | >The Linux version of "man posix_fadvise" probably holds the answer: [...] | | Hi Antoine, | you're right and thanks a lot for this great piece of information. [...] | P.S.: Maybe these new os module features could use a bit more documentation? This suggestion comes up a lot WRT to the os.* functions. Unfortunately, the required doco for your issue is very platform dependent as you've just discovered; not merely your distro but the very kernel revisions. Maybe it should be made much more obvious that users _must_ go and consult their platform's documentation for specifics on how their platform implents the interface. On UNIX, that means "man 2 blah" or "man 3 blah", depending. Cheers, -- Cameron Simpson I suppose the solution would be to close the composition window and let my article sit for half an hour or so once I've finished with it, and then go back and proofread it once more. But that would be a pain in the proverbial bifurcated derriere. Part of the experience of flaming is to load a searing missive into the conceptual breech of my SPARCcannon and pull the imaginary lanyard whilst flushed with the adrenaline of mortal combat. - Geoff Miller,