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


Groups > comp.lang.python > #93155

Re: windows and file names > 256 bytes

Path csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!bcyclone03.am1.xlned.com!bcyclone03.am1.xlned.com!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <random832@fastmail.us>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'apis': 0.07; 'strings.': 0.07; 'subject:file': 0.07; 'mentions': 0.09; 'received:internal': 0.09; 'underlying': 0.09; 'python': 0.11; 'thu,': 0.15; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:messagingengine.com': 0.16; 'subject:windows': 0.16; 'wrote:': 0.16; 'byte': 0.18; 'versions': 0.20; 'errors': 0.23; 'passing': 0.23; 'header:In-Reply-To:1': 0.24; 'michael': 0.33; 'to:addr:python-list': 0.35; 'unicode': 0.35; 'problem.': 0.35; 'received:10': 0.37; 'subject:: ': 0.37; 'received:66': 0.38; 'to:addr:python.org': 0.39; 'him': 0.60; 'even': 0.61; 'from:no real name:2**0': 0.61; 'header:Message- Id:1': 0.62; 'more': 0.62; '2.7.': 0.84
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=qipkgTVbIVOhvx01CI8uAodBQ+c=; b=fItAWF 0yI3PXNsn8/Ipjp9SmSFzgUWvbzhLQutL8IudzKa1CwlzKfMUUpTRTmt0X3zAXnc U1z4GA9JNEG9YdF+l/FpLk8cVOLatQAQYWUS3k+3RH/lSFUpWCY05YrCvYgX7ARF 6XAIwgkI4KSzVhuabnORMogs28QJJ4OcoWnLU=
DKIM-Signature v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=qipkgTVbIVOhvx0 1CI8uAodBQ+c=; b=SisyoatQPRUU90NQfUljYuYp4rThc9JAqtutLEfmLxSlt1e cen4bfCbvyBU+ywfqzkEWBqNuLjsinWhQnvhHj+diYJhCDVlvPEt8fkGka/5vY7U TK0RoTmGoOo/8Hli8PUMK+FoYQUQ9InrLienmrxqIrRsy4/H7AVOdoeQKqIE=
X-Sasl-Enc pVQmTHLXgNFtGXMW7/2Qd1/lo1c+zr8K40SnM6UCFpmw 1435254824
From random832@fastmail.us
To python-list@python.org
MIME-Version 1.0
Content-Transfer-Encoding 7bit
Content-Type text/plain
X-Mailer MessagingEngine.com Webmail Interface - ajax-eecef38c
Subject Re: windows and file names > 256 bytes
Date Thu, 25 Jun 2015 13:53:44 -0400
In-Reply-To <558C038A.5010103@gmail.com>
References <mmgce2$cd4$1@ger.gmane.org> <mmgnbt$u0o$1@ger.gmane.org> <CAB1GNpS=7F3ebrHenUu7+MvyWuk5v60G6N6L81c0W3C-mQPi2w@mail.gmail.com> <558BF55C.2010701@timgolden.me.uk> <558C038A.5010103@gmail.com>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.74.1435254833.3674.python-list@python.org> (permalink)
Lines 7
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1435254833 news.xs4all.nl 2965 [2001:888:2000:d::a6]:53412
X-Complaints-To abuse@xs4all.nl
X-Received-Bytes 3850
X-Received-Body-CRC 1200890553
Xref csiph.com comp.lang.python:93155

Show key headers only | View raw


On Thu, Jun 25, 2015, at 09:35, Michael Torrie wrote:
> The OP mentions that even when he manually supplies extended paths,
> os.mkdir, os.getsize, and shutil.rmtree return errors for him in Python
> 2.7.  So there's more to this problem.

The byte versions of the underlying OS APIs use a 256-character buffer
to do conversion - he needs to also be passing unicode strings.

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


Thread

Re: windows and file names > 256 bytes random832@fastmail.us - 2015-06-25 13:53 -0400

csiph-web