Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #75719
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| 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; 'subject:error': 0.03; 'subject:not': 0.03; "subject:' ": 0.07; 'subject:trying': 0.09; 'subject:while': 0.09; 'cc:addr:python-list': 0.11; "'data'": 0.16; 'file.read()': 0.16; 'fine.': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject: \n ': 0.16; 'subject:object': 0.16; 'wrote:': 0.18; 'aug': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply- To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'received:google.com': 0.35; 'pm,': 0.38; "you'll": 0.62; "you've": 0.63; 'name': 0.63; 'pick': 0.64; 'different': 0.65; 'to:none': 0.92 |
| 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=SDodFDTJj0GRxUhrw0Vp7JcR+bH0TtHJGOo2NWpWjGc=; b=lZsK9xzw6jObmd2trRbzUWal4FKbyLSQr0EHuq0NTcerN0qfFJ38dUjr6DQFY+9ief KJc+Tysbn5e6TspAVraH+RywxheCDhHp2E5PU4XazD5KendORawc4vvzk3sj8rNhhQwD 79wCHkiW9rGeM8cTfVaRhZtr5zay/fWD6sPcYeQ8a8YI41XTqxTSDaJyXB75O0Hf3YpT /UOAX5oaq34fWWFGiY843iPNd98Md16oTNGClrcEyCDDLIF6y4ONvSixTFONY5QNpjo0 +20mVpeVgV8g/5/TwhWnV92I3NYSBRTcg7tXLOhwCo4zOz9Qlc2o0NX1NSmIw1Ftt7EJ JZUA== |
| MIME-Version | 1.0 |
| X-Received | by 10.51.17.2 with SMTP id ga2mr3409881igd.2.1407218252906; Mon, 04 Aug 2014 22:57:32 -0700 (PDT) |
| In-Reply-To | <02baad14-39b1-41a0-a47d-28772c97ea54@googlegroups.com> |
| References | <02baad14-39b1-41a0-a47d-28772c97ea54@googlegroups.com> |
| Date | Tue, 5 Aug 2014 15:57:32 +1000 |
| Subject | Re: TypeError: 'bytes' object is not callable error while trying to converting to bytes. |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <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 <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.12660.1407218261.18130.python-list@python.org> (permalink) |
| Lines | 7 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1407218261 news.xs4all.nl 2871 [2001:888:2000:d::a6]:33177 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:75719 |
Show key headers only | View raw
On Tue, Aug 5, 2014 at 3:47 PM, Satish ML <satishmlwizpro@gmail.com> wrote: >>>>bytes = file.read() You've just shadowed the built-in type 'bytes' with your own 'bytes'. Pick a different name for this, and you'll be fine. 'data' would work. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
TypeError: 'bytes' object is not callable error while trying to converting to bytes. Satish ML <satishmlwizpro@gmail.com> - 2014-08-04 22:47 -0700 Re: TypeError: 'bytes' object is not callable error while trying to converting to bytes. Ben Finney <ben+python@benfinney.id.au> - 2014-08-05 15:57 +1000 Re: TypeError: 'bytes' object is not callable error while trying to converting to bytes. Chris Angelico <rosuav@gmail.com> - 2014-08-05 15:57 +1000 Re: TypeError: 'bytes' object is not callable error while trying to converting to bytes. Travis Griggs <travisgriggs@gmail.com> - 2014-08-05 22:31 -0700 Re: TypeError: 'bytes' object is not callable error while trying to converting to bytes. Chris Angelico <rosuav@gmail.com> - 2014-08-06 15:37 +1000
csiph-web