Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #87470
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.010 |
| X-Spam-Evidence | '*H*': 0.98; '*S*': 0.00; 'here?': 0.09; 'received:internal': 0.09; 'subject:using': 0.09; 'message- id:@webmail.messagingengine.com': 0.16; 'received:10.202': 0.16; 'received:10.202.2': 0.16; 'received:10.202.2.212': 0.16; 'received:66.111': 0.16; 'received:66.111.4': 0.16; 'received:66.111.4.27': 0.16; 'received:messagingengine.com': 0.16; 'received:out3-smtp.messagingengine.com': 0.16; 'simpson': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'header:In-Reply-To:1': 0.27; 'received:66': 0.35; 'something': 0.35; 'but': 0.35; '14,': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'from:no real name:2**0': 0.61; "you're": 0.61; 'header:Message-Id:1': 0.63; 'mar': 0.68; 'obvious': 0.74 |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.us; h= message-id:x-sasl-enc:from:to:mime-version :content-transfer-encoding:content-type:in-reply-to:references :subject:date; s=mesmtp; bh=A8JS9Cx7qsOkyw5rZrXbHDTVWMg=; b=YIRg 6am1coOWkWIzmXNWh7Zo2cmz+ApPQtv3KVFvcPoloCCEP76UKntPXmZX50qazFnx xHopsChrlEUCbj7UnPTXkwT0qdnwa+ee/G3+XYy6/Fi49TCTWjCsCjs7YjLC2UkQ jI01uAbC+GoAfuVynB+ahZt16122A9Oq4z3Vafc= |
| DKIM-Signature | v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:x-sasl-enc:from:to :mime-version:content-transfer-encoding:content-type:in-reply-to :references:subject:date; s=smtpout; bh=A8JS9Cx7qsOkyw5rZrXbHDTV WMg=; b=XIeyWOhe9IVWv9IYQ8Ni/B/T424G5we0R8/Cabxsi/PEKvIRAuad25d+ jiCMwJuQttAhPtmwLDqrfXURkECXtvuI/lsgkqKT0wAxcAIZ+vx6PzH/5GQbTknv 6yCzMv8OFYvl8i2WezJUPE9zHpqBy3ryoA2XQS8NZoArOYmHxB4= |
| X-Sasl-Enc | qIrXsVc2uDYAm1mi/XAvnamTcYosh5zxHNbeHNPhmyWf 1426419695 |
| 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-15db86eb |
| In-Reply-To | <20150314220907.GA67310@cskk.homeip.net> |
| References | <me1k2i$ljt$1@ger.gmane.org> <20150314220907.GA67310@cskk.homeip.net> |
| Subject | Re: Odd ValueError using float |
| Date | Sun, 15 Mar 2015 07:41:35 -0400 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.19 |
| 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.389.1426419698.21433.python-list@python.org> (permalink) |
| Lines | 9 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1426419698 news.xs4all.nl 2946 [2001:888:2000:d::a6]:45647 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 3716 |
| X-Received-Body-CRC | 2035167140 |
| Xref | csiph.com comp.lang.python:87470 |
Show key headers only | View raw
On Sat, Mar 14, 2015, at 18:09, Cameron Simpson wrote: > >So there's still something amiss. > > Am I missing something obvious here? int() likes only ints, not floats: What you're missing is that when directly examined in pdb, the value appeared to be '4', but then when passed to the int constructor, it appeared to be '41.700000000000003'. Something seriously messed-up is going on.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Odd ValueError using float random832@fastmail.us - 2015-03-15 07:41 -0400
csiph-web