Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #4635
| Path | csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Hermann Riemann <nospam.gerct08@hermann-riemann.de> |
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Wie sieht Python fuer mich aus? |
| Date | Mon, 9 Jan 2017 19:11:44 +0100 |
| Lines | 20 |
| Message-ID | <edi231F5oeuU1@mid.individual.net> (permalink) |
| References | <Python-20170108184230@ram.dialup.fu-berlin.de> <3dee2ce4-274a-3b59-756c-3559e7c568c1@mail.de> <mailman.382.1483969007.2395.python-de@python.org> <edhsa2F4aukU1@mid.individual.net> <ujuckd-qjg.ln1@gate.homenet> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Trace | individual.net 5/oC7hC7BD5q7s4RgyQQ8ABIcwz5SOZWQxSZwHVp4I2gBoxeX2 |
| Cancel-Lock | sha1:MSG/QOszqXxyiVini2byaNX/jTg= |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 |
| In-Reply-To | <ujuckd-qjg.ln1@gate.homenet> |
| Xref | csiph.com de.comp.lang.python:4635 |
Show key headers only | View raw
Am 09.01.2017 um 18:41 schrieb Thomas Orgelmacher:
>> Verwenden tue ich eher den Typvergleich etwa:
>> if type(variable)==type([]):
>> for elem in variable:
>> ..
> "type(var) is list" oder ggf. "isinstance(var, list)"
Dazu müsste ich die Sprachkenntnisse erweitern.
Das type([]) ist für mich besser verständlich
und leichter lesbar als is list oder gar isinstance.
Der Zeitunterschied beim Ablauf dürfte kaum merkbar sein.
Hermann
der sprachabhängige Spezialfälle für problematisch hält.
--
http://www.hermann-riemann.de
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
Re: [Python-de] Wie sieht Python fuer mich aus? "Sven R. Kunze" <srkunze@mail.de> - 2017-01-09 14:31 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Hermann Riemann <nospam.gerct08@hermann-riemann.de> - 2017-01-09 17:33 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? "Sven R. Kunze" <srkunze@mail.de> - 2017-01-09 18:45 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Hermann Riemann <nospam.gerct08@hermann-riemann.de> - 2017-01-09 19:25 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? "Sven R. Kunze" <srkunze@mail.de> - 2017-01-09 20:08 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Hermann Riemann <nospam.gerct08@hermann-riemann.de> - 2017-01-09 20:59 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? "Sven R. Kunze" <srkunze@mail.de> - 2017-01-09 21:44 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Hermann Riemann <nospam.gerct08@hermann-riemann.de> - 2017-01-09 19:37 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Thomas Orgelmacher <trash@odbs.org> - 2017-01-09 18:41 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Hermann Riemann <nospam.gerct08@hermann-riemann.de> - 2017-01-09 19:11 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Thomas Orgelmacher <trash@odbs.org> - 2017-01-09 19:56 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Hans-Peter Jansen <hpj@urpla.net> - 2017-01-09 19:51 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Hermann Riemann <nospam.gerct08@hermann-riemann.de> - 2017-01-09 20:19 +0100
Re: [Python-de] Wie sieht Python fuer mich aus? Stefan Schwarzer <sschwarzer@sschwarzer.net> - 2017-01-13 08:40 +0100
csiph-web