1w6 uRPG 1w6 uRPG
  • Anmelden
  • Öffentlich

    • Öffentlich
    • Gruppen
    • Beliebt
    • Verzeichnis

Unterhaltung

Nachrichten

  1. drak drak Python

    Why oh why does the index in [ !python list comprehensions] spill to the outer context?? 20 lost minutes later…

    Monday, 02-Jun-14 15:07:50 UTC von web
    • oldnds oldnds Python

      can you pastebin an example?

      Monday, 02-Jun-14 15:11:24 UTC
    • drak drak Python , oldnds

      @nds I can even give it here: L = range(2);for i in range(2): print [i for i in range(3)]; print L[i] # add some linebreaks !python

      Monday, 02-Jun-14 15:24:07 UTC
    • drak drak Python , oldnds

      Generally I know that !Python acts that way, but when changing some code it can happen that I miss some loop variable…

      Monday, 02-Jun-14 15:32:28 UTC
    • drak drak Python , oldnds

      that’s part of the “clutter up the namespace” problem of !Python loops I named here http://draketo.de/light/english/recursion-wins

      Monday, 02-Jun-14 15:34:58 UTC
    • oldnds oldnds Python

      gotcha.

      Monday, 02-Jun-14 15:36:00 UTC

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Hilfe
  • Über
  • FAQ
  • AGB
  • Privatsphäre
  • Quellcode
  • Version
  • Kontakt

1w6 uRPG ist ein Mikrobloggingdienst von Arne (Drak) Babenhauserheide. Es wird mit der Mikrobloggingsoftware StatusNet (Version 1.1.1-release) betrieben, die unter der GNU Affero General Public License erhältlich ist. The running version includes the patches from draketo.de/proj/statusnet-patches.

Creative Commons Attribution 3.0 Alle Inhalte und Daten von 1w6 uRPG sind unter der Creative Commons Attribution 3.0 Lizenz verfügbar.