1. 11 Jan, 2015 2 commits
    • Kevin Modzelewski's avatar
      Support StopIteration-based for loop iteration · a14ebbec
      Kevin Modzelewski authored
      At runtime, we can detect if something supports the new Pyston iteration
      protocol (__hasnext__) or not.
      
      Statically, when we lower a for loop, we assume that the iterator supports
      the new protocol, and we can't check it
      
      This commit adds a check to getiter() which wraps a Python-style iterator
      with an IterWrapper which adds the __hasnext__ method.
      a14ebbec
    • Kevin Modzelewski's avatar
      Force the setting of ->lineno Name ast nodes · e02fbb7c
      Kevin Modzelewski authored
      I think this addresses most of the remaining cases where we
      have a traceback including "Line 0".  Most of these Name nodes
      can't cause an exception themselves, but other nodes copy their
      lineno values from these nodes, so just go ahead and set them
      appropriately.
      e02fbb7c
  2. 10 Jan, 2015 11 commits
  3. 09 Jan, 2015 16 commits
  4. 08 Jan, 2015 11 commits