Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Sven R. Kunze" Newsgroups: de.comp.lang.python Subject: Re: [Python-de] Warum liefert // ein float? Date: Mon, 10 Apr 2017 19:19:46 +0200 Lines: 12 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.uni-berlin.de hNxSIkKWBXiNoCi/NiH8OQ7IlembDbinJ4UFEno+u2Jg== Return-Path: X-Original-To: python-de@python.org Delivered-To: python-de@mail.python.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=mail.de; s=mailde201610; t=1491844788; bh=vNU5mR2ZBc4S4xTAY1dq9/bvXHexF1pvZeiGq+hEaz8=; h=Subject:To:References:From:Date:In-Reply-To:From; b=E1CyIJvzNVSmCyYRXMNI3hL1SQLZDoS2PULbPAIIziairFYKqfcIx+4oLjqwS06cB dtvWlFiQTSBWOXgXCV6YnFDzehFURlrPsmS+rWnexrlxXeERyOuxB3b/mqKNgqwFuL GKrC45f+S6PKKYRVcij5MquvdkiD+eNDxBMkpEiY= In-Reply-To: X-purgate: clean X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate-type: clean X-purgate-Ad: Categorized by eleven eXpurgate (R) http://www.eleven.de X-purgate: This mail is considered clean (visit http://www.eleven.de for further information) X-purgate: clean X-purgate-size: 437 X-purgate-ID: 154282::1491844788-000070F2-18CC8FF9/0/0 X-BeenThere: python-de@python.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Die Deutsche Python Mailingliste List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com de.comp.lang.python:4744 On 06.04.2017 11:02, Florian Lindner wrote: > siehe https://www.python.org/dev/peps/pep-0238/ > > Finde es so auch logisch, also 6 / 3 -> float. > > Fände es aber umgedreht auch logischer, wenn 6.0 // 3.0 -> int, da (. // .) prinzipiell eine Ganzzahl zurückgibt. Interessant. Könnte man glatt mal auf der python-ideas/dev Mailing-Liste nachhaken. Ich fände das von dir vorgeschlagene Verhalten sehr nachvollziehbar. Sven