Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.mixmin.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed2a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.033 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'tree': 0.05; 'subject:Python': 0.06; 'string': 0.09; 'bytes.': 0.09; 'means,': 0.09; 'cc:addr:python-list': 0.11; 'filenames,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'bytes': 0.24; 'passes': 0.24; 'string,': 0.24; 'cc:2**0': 0.24; "i've": 0.25; 'pass': 0.26; 'header:In-Reply-To:1': 0.27; 'appear': 0.29; 'character': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; 'subject:some': 0.31; 'file': 0.32; 'fri,': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'remote': 0.38; 'handle': 0.38; 'issue': 0.38; 'pm,': 0.38; 'system.': 0.39; 'real': 0.63; 'such': 0.63; 'places': 0.64; 'deals': 0.65; 'levels': 0.65; 'here': 0.66; 'samba': 0.84; 'that),': 0.91; 'to:none': 0.92; 'mount': 0.93 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=NOgeZgLsJ1dKboO8GuUbE9W9B6OcLwqktnSqmEWz188=; b=BF1nj/jbRtWHDSURRFZm+ymczfR9NYnUYedS7bFIfOzn4yrafEyYwXzBXAmEWPoE/u /amquKAl/Gtr3/oY//lkWa36fm9g4HUDKQHtes0Cy5OhE+J2ZBq+sj2Uunk+71LTaz9i 2+9BAWX4GNKxR/d0pXdj3hdAXJa/2p1hkUUPhQzxtuvblMMG3VlxJFRvlMMJ42er7CbB beBUrRdY4wKzpc5iOKVjDRpALt/GVj9OMlEYUCX5IWrQhGRS2cTkspE/CrmHN3qlro+t /byEAPOAQtoG3VlZRacfKL6QIm0Ae0024qVDFR1HKPqA+e3+feGVN0qID7obm+o3WjN7 nNiQ== MIME-Version: 1.0 X-Received: by 10.52.136.98 with SMTP id pz2mr1484758vdb.70.1402024857899; Thu, 05 Jun 2014 20:20:57 -0700 (PDT) In-Reply-To: References: <538a8f48$0$29978$c3e8da3$5496439d@news.astraweb.com> <538bcfff$0$29978$c3e8da3$5496439d@news.astraweb.com> <538C5BB8.1020702@chamonix.reportlab.co.uk> <538f1a61$0$29978$c3e8da3$5496439d@news.astraweb.com> <53902bb1$0$11109$c3e8da3@news.astraweb.com> <87wqcvu20h.fsf@elektro.pacujo.net> <7b3543f6-6f62-49c5-abdc-e2783fd6d629@googlegroups.com> <87oay7tnxt.fsf@elektro.pacujo.net> <53908dd0$0$29978$c3e8da3$5496439d@news.astraweb.com> <87ha3zti2h.fsf@elektro.pacujo.net> <4256f797-d70e-4c0d-ba97-00cdffddc082@googlegroups.com> Date: Fri, 6 Jun 2014 13:20:57 +1000 Subject: Re: Python 3.2 has some deadly infection From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1402024865 news.xs4all.nl 2838 [2001:888:2000:d::a6]:38653 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72814 On Fri, Jun 6, 2014 at 1:11 PM, Rustom Mody wrote: > All character strings, including > | filenames, are treated by the kernel in such a way that THEY > | APPEAR TO IT ONLY AS STRINGS OF BYTES. Yep, the real issue here is file systems, not the kernel. But yes, this is one of the very few places where the kernel deals with a string - and because of the hairiness of having to handle myriad file systems in a single path (imagine multiple levels of remote mounts - I've had a case where I mount via sshfs a tree that includes a Samba mount point, and you can go a lot deeper than that), the only thing it can do is pass the bytes on unchanged. Which means, in reality, the kernel doesn't actually do *anything* with the string, it just passes it right along to the file system. ChrisA