Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > cz.comp.lang.python > #3271 > unrolled thread
| Started by | Vláďa Macek <macek@sandbox.cz> |
|---|---|
| First post | 2018-03-30 15:17 +0200 |
| Last post | 2018-03-30 15:17 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to cz.comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [python] Porovnání některých Ruby a Pythonu 3 Vláďa Macek <macek@sandbox.cz> - 2018-03-30 15:17 +0200
| From | Vláďa Macek <macek@sandbox.cz> |
|---|---|
| Date | 2018-03-30 15:17 +0200 |
| Subject | Re: [python] Porovnání některých Ruby a Pythonu 3 |
| Message-ID | <mailman.5.1522415835.12408.python@py.cz> |
On 30.3.2018 10:31, starenka . wrote: > Je nejakej duvod, proc vsude, kde resis neco s polem je 'array[0] if > len(array) > 0 else None' na misto kratsiho a stejne citelnyho 'array[0] > if len(array) else None' ? Odkazovaný doc jsem ještě neviděl a předem za něj díky. Ale myslím, že do podobnných "promo" matrošů patří výhradně (lambda i: None, lambda i: array[i])[bool(array)](0) :-) V.
Back to top | Article view | cz.comp.lang.python
csiph-web