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


Groups > comp.lang.python > #61826

Re: Need help with file object

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bgailer@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:file': 0.07; 'subject:help': 0.08; 'typed': 0.09; 'buffer,': 0.16; 'prog': 0.16; 'subject:object': 0.16; 'traceback.': 0.16; 'typeerror:': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'appears': 0.22; 'header :User-Agent:1': 0.23; 'error': 0.23; 'header:In-Reply-To:1': 0.27; 'to:2**1': 0.27; 'unix': 0.29; 'getting': 0.31; 'file': 0.32; 'not.': 0.33; 'subject:with': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'raising': 0.36; 'message- id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'future': 0.60; 'entire': 0.61; 'subject:Need': 0.64; 'to:addr:gmail.com': 0.65; 'obvious,': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=vr9FBqJULtf4Gk7m1OCyGKCLe4c5q3635HUQNYuFLag=; b=vPrxxst4vP/3I+G+05HifD42Rc31VxPdIeCjDVpVz8dlySVeGeWNG6SFNIDwKBGsK4 8OTgGk5ArtOLElbkhujjXj6f84G22XkNeCm7JwZkDo8lCQDUB5q604zduSqUJRhfET+y QZexsItJTIgpWFHHnJj58hgcS50RqmOmeSVjqcqPpjTCzWAY7l5A6+FY9KztA1teF29E cM79vKww/kjRaBh9DUSaSW+aXoc2YeEKX8RNJEt7+I72KrtVC89HqHz//3+G/fEG+nIS rU/lAk3cQ5gybdHnk0bvbrrYkA5aMXfC+eZ8ru6J+UMkMtP2dt/QUj8R8VsGm1bzueMp ppzw==
X-Received by 10.224.15.130 with SMTP id k2mr5784135qaa.101.1386950251588; Fri, 13 Dec 2013 07:57:31 -0800 (PST)
Date Fri, 13 Dec 2013 10:57:25 -0500
From bob gailer <bgailer@gmail.com>
User-Agent Mozilla/5.0 (Windows NT 6.3; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0
MIME-Version 1.0
To Unix SA <d.joshi84@gmail.com>, python-list@python.org
Subject Re: Need help with file object
References <CACDG_KfbVuPbBpMWVcgVMQLjZ5N+mm-oPAaqyPoBKV62cW80hA@mail.gmail.com>
In-Reply-To <CACDG_KfbVuPbBpMWVcgVMQLjZ5N+mm-oPAaqyPoBKV62cW80hA@mail.gmail.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
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 <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.4073.1386950259.18130.python-list@python.org> (permalink)
Lines 11
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1386950259 news.xs4all.nl 2968 [2001:888:2000:d::a6]:45010
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:61826

Show key headers only | View raw


On 12/12/2013 11:29 PM, Unix SA wrote:
> ...
>
> With above prog I am getting error
> TypeError: coercing to Unicode: need sting or buffer, file found
>
In future please copy and paste the entire traceback. It appears that 
you typed in just one line of it.

In this case the line raising the exception was obvious, but often it is 
not.

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


Thread

Re: Need help with file object bob gailer <bgailer@gmail.com> - 2013-12-13 10:57 -0500

csiph-web