Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4744
| From | "Sven R. Kunze" <srkunze@mail.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Warum liefert // ein float? |
| Date | 2017-04-10 19:19 +0200 |
| 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> |
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
Re: [Python-de] Warum liefert // ein float? "Sven R. Kunze" <srkunze@mail.de> - 2017-04-10 19:19 +0200
csiph-web