Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4368
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Thomas Güttler <guettliml@thomas-guettler.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Syntax-Erweiterung für Schleifen in Python3 |
| Date | Thu, 7 Apr 2016 15:38:08 +0200 |
| Lines | 33 |
| Message-ID | <mailman.30.1460036295.2253.python-de@python.org> (permalink) |
| References | <57040A52.9020404@thomas-guettler.de> <F355D502-7753-4583-AABF-325BB68D2143@zopyx.com> <5704A110.4030006@behnel.de> <6E439C3C-FC40-4CAA-827C-8ACDE3DC85F2@zopyx.com> <57051734.6020207@thomas-guettler.de> <57051C5F.1080808@chrisarndt.de> <570553C5.80101@sschwarzer.net> <570662C0.3090304@thomas-guettler.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | news.uni-berlin.de Vvx0xEV1nty9BvI2CZZ/UQUf8rg8HActbUaUWCtJlumw== |
| Return-Path | <guettliml@thomas-guettler.de> |
| X-Original-To | python-de@python.org |
| Delivered-To | python-de@mail.python.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
| In-Reply-To | <570553C5.80101@sschwarzer.net> |
| X-BeenThere | python-de@python.org |
| X-Mailman-Version | 2.1.21 |
| 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 | <570662C0.3090304@thomas-guettler.de> |
| X-Mailman-Original-References | <57040A52.9020404@thomas-guettler.de> <F355D502-7753-4583-AABF-325BB68D2143@zopyx.com> <5704A110.4030006@behnel.de> <6E439C3C-FC40-4CAA-827C-8ACDE3DC85F2@zopyx.com> <57051734.6020207@thomas-guettler.de> <57051C5F.1080808@chrisarndt.de> <570553C5.80101@sschwarzer.net> |
| Xref | csiph.com de.comp.lang.python:4368 |
Show key headers only | View raw
Am 06.04.2016 um 20:21 schrieb Stefan Schwarzer: > On 2016-04-06 16:25, Christopher Arndt wrote: >> Am 06.04.2016 um 16:03 schrieb Thomas Güttler: > - Bevor man über Syntax-Erweiterungen nachdenkt, sollte man > meines Erachtens erst mal schauen, ob man nicht eine > Möglichkeit findet, diese Schleifen-Sonderfälle mit einer > jetzt schon funktionierenden Python-API zu behandeln. Es > kann natürlich sein, dass das schwerfällig wird, aber ich > finde es besser, das auszuprobieren als es nur zu > vermuten. :-) Der Schleifen-Sonderfall "pre-first" ist hier sehr schon durch Mike Müller gelöst worden: http://stackoverflow.com/questions/36399808/loop-in-python-do-stuff-before-first-iteration Die anderen Sonderfälle sind leichter und durch ein "senital=object()" lösbar. Was spricht gegen eine Syntax-Erweiterung? Ich kann mir gut vorstellen, dass andere Programmiersprachen das auch übernehmen würden. Und falls nicht, auch nicht schlimm. Ich denke mal sollte Idee und Träume besprechen Wer Visionen hat .... der sollte aber vielleicht doch lieber zum Arzt gehen :-) Gruß, Thomas -- Thomas Guettler http://www.thomas-guettler.de/
Back to de.comp.lang.python | Previous | Next | Find similar
Re: [Python-de] Syntax-Erweiterung für Schleifen in Python3 Thomas Güttler <guettliml@thomas-guettler.de> - 2016-04-07 15:38 +0200
csiph-web