Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!us.feeder.erje.net!newsfeed.straub-nv.de!weretis.net!feeder4.news.weretis.net!ecngs!feeder2.ecngs.de!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.064 X-Spam-Evidence: '*H*': 0.87; '*S*': 0.00; 'def': 0.10; 'language': 0.14; 'c++.': 0.16; 'guessing': 0.16; 'wrote:': 0.17; 'versions': 0.20; 'subject:problem': 0.22; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'wrote': 0.26; "d'aprano": 0.29; 'steven': 0.29; 'probably': 0.29; "i'm": 0.29; 'to:addr:python- list': 0.33; 'pm,': 0.35; 'michael': 0.36; 'subject:: ': 0.38; 'comment': 0.38; 'instead': 0.39; 'to:addr:python.org': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'more': 0.63; 'received:74.208': 0.71; 'received:74.208.4.194': 0.84 Date: Sat, 02 Feb 2013 21:20:49 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130106 Thunderbird/17.0.2 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Floating point calculation problem References: <510dbc76$0$29984$c3e8da3$5496439d@news.astraweb.com> In-Reply-To: <510dbc76$0$29984$c3e8da3$5496439d@news.astraweb.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:wLyW2c5TOYUNGFwJyn4LhCdS35QRoY7ytS6QooQI66+ oRO9TpMORSfE5VyPaQcLt3DuU7+vwvPvK/tjrNRouJauY2hjzq LYkSh/ADi/kSDv3KfUP1AUZx0SFX3PQ5tK/Fq6wjzgIHtPPBGJ A6s95rIXPI/Hnpcj70Kr4BG0p3XVH+Mj89V0b6zxxFHYPWXh45 gwGgSsWetRpsI6MbaQ2klkcwQ2uzlx4Tpgvgbflc+3/1gQI8GS WTi+j2rL9r8y4qe2DeZ5KGZyvkh1tCEmCuZCnuMasvwfvxFCRF OJKSWCXdLljN13JA8LYOe54kyQ+pudns/RfKmnkJ903Kg4lDw= = X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1359858071 news.xs4all.nl 6891 [2001:888:2000:d::a6]:59181 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:38094 On 02/02/2013 08:25 PM, Steven D'Aprano wrote: > Michael Torrie wrote: > >> def squeeze_duck (duck): >> // return the quack >> return duck.squeeze() > > I'm curious, what language were you thinking of when you wrote the comment > using // instead of # ? > > I'm guessing that would probably be C++. Or more recent versions of C. -- DaveA