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


Groups > de.comp.lang.python > #4744

Re: [Python-de] Warum liefert // ein float?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From "Sven R. Kunze" <srkunze@mail.de>
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 <mailman.32.1491845341.2951.python-de@python.org> (permalink)
References <ea8deb7d-44d8-4f77-3922-90e41b49a439@xgm.de> <a5f1d6f1-89bf-b1f6-b688-c932620ce23f@chrisarndt.de> <afbefdbe-7546-6912-7732-d68a9f78bf46@xgm.de> <bfafcc88-c006-08e4-289f-a3d4ff74cfee@mail.de>
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 <srkunze@mail.de>
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 <afbefdbe-7546-6912-7732-d68a9f78bf46@xgm.de>
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 <python-de.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-de>, <mailto:python-de-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-de/>
List-Post <mailto:python-de@python.org>
List-Help <mailto:python-de-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-de>, <mailto:python-de-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <bfafcc88-c006-08e4-289f-a3d4ff74cfee@mail.de>
X-Mailman-Original-References <ea8deb7d-44d8-4f77-3922-90e41b49a439@xgm.de> <a5f1d6f1-89bf-b1f6-b688-c932620ce23f@chrisarndt.de> <afbefdbe-7546-6912-7732-d68a9f78bf46@xgm.de>
Xref csiph.com de.comp.lang.python:4744

Show key headers only | View raw


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

Back to de.comp.lang.python | Previous | Next | Find similar


Thread

Re: [Python-de] Warum liefert // ein float? "Sven R. Kunze" <srkunze@mail.de> - 2017-04-10 19:19 +0200

csiph-web