Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #41196
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'error:': 0.05; 'prefix': 0.07; 'python': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'splitting': 0.09; 'library': 0.15; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'subject:File': 0.16; 'subject:too': 0.16; 'wed,': 0.16; 'subject:] ': 0.19; 'error.': 0.21; 'somewhere': 0.24; 'linux': 0.24; 'header:X-Complaints-To:1': 0.28; 'subject::[': 0.29; 'probably': 0.29; 'call.': 0.30; 'expect': 0.31; 'code': 0.31; 'file': 0.32; 'url:home': 0.33; 'to:addr:python-list': 0.33; 'produced': 0.33; 'hi,': 0.33; 'another': 0.33; 'version': 0.34; 'skip:f 40': 0.35; 'there': 0.35; 'received:org': 0.36; 'should': 0.36; 'charset:us-ascii': 0.36; 'subject:: ': 0.38; 'files': 0.38; 'sure': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'relatively': 0.62; 'provide': 0.62; 'email addr:gmail.com': 0.63; 'confirm': 0.64; '2013': 0.84; 'newcomer': 0.84; 'dennis': 0.91 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
| Subject | Re: IOError:[Errno 27] File too large |
| Date | Wed, 13 Mar 2013 18:27:42 -0400 |
| Organization | > Bestiaria Support Staff < |
| References | <b4fcf481-f673-4004-b145-bbb24864e605@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Content-Transfer-Encoding | 7bit |
| X-Gmane-NNTP-Posting-Host | adsl-76-253-103-24.dsl.klmzmi.sbcglobal.net |
| X-Newsreader | Forte Agent 3.3/32.846 |
| X-No-Archive | YES |
| 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 | <http://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 | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3272.1363213676.2939.python-list@python.org> (permalink) |
| Lines | 37 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1363213676 news.xs4all.nl 6913 [2001:888:2000:d::a6]:41447 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:41196 |
Show key headers only | View raw
On Wed, 13 Mar 2013 09:53:17 -0700 (PDT), ch.valderanis@gmail.com
declaimed the following in gmane.comp.python.general:
> Hi,
>
> Relatively newcomer here.
> The following code fails with the above error:
> python version used 2.6.2 under linux
>
> filestring='somestring'
> for files in glob.glob('*'):
> f2=open(files.replace('.xml','.sub'),'w')
"Danger Will Robinson, Danger"
What do you expect to have happen for files that did NOT have ".xml"
somewhere in the name. If you only want to do this for *.xml you should
probably ask for that in the glob() call.
Also, the standard library has functions for splitting file names
into prefix and extension...
> f2.write(filestring+files)
> f2.close()
<snip>
> I am pretty sure that the files is less than 1kB. Is there another reason for the operation to fail?
>
> Any other comments,remarks welcomed.
>
Provide the full traceback, so we can confirm what line produced the
error.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
IOError:[Errno 27] File too large ch.valderanis@gmail.com - 2013-03-13 09:53 -0700
Re: IOError:[Errno 27] File too large Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-13 17:32 +0000
Re: IOError:[Errno 27] File too large ch.valderanis@gmail.com - 2013-03-13 15:35 -0700
Re: IOError:[Errno 27] File too large Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-03-14 02:46 +0000
Re: IOError:[Errno 27] File too large ch.valderanis@gmail.com - 2013-03-14 13:12 -0700
Re: IOError:[Errno 27] File too large Dave Angel <davea@davea.name> - 2013-03-14 21:32 -0400
Re: IOError:[Errno 27] File too large Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-03-13 18:27 -0400
csiph-web