1. 10 Jan, 2015 5 commits
    • Kevin Modzelewski's avatar
      Add some nonzero-related tests · 417e1c5f
      Kevin Modzelewski authored
      417e1c5f
    • Kevin Modzelewski's avatar
      Basic functools support · eae111dd
      Kevin Modzelewski authored
      They do a refcount==1 optimization, where they mutate a tuple
      if they see that it isn't shared.  I don't know if we can have
      a good way of supporting this.
      
      Maybe we can always tell extensions that refcounts are >1?  Not sure
      if there's any macro magic we can do to make "obj->ob_refcnt" return
      something of our choosing.
      eae111dd
    • Kevin Modzelewski's avatar
      Merge branch 'tp_dictoffset' · 2358b49b
      Kevin Modzelewski authored
      2358b49b
    • Kevin Modzelewski's avatar
      Support extension classes that specify tp_dictoffset · 5b2747b1
      Kevin Modzelewski authored
      I think there are a couple ways we can go about this.  It looks like
      extensions just specify tp_dictoffset if they want their instances
      to have instance attributes, but don't usually actually look at the
      dict or really make use of the fact that it's a real dict.  So possibly,
      we have the ability to stuff a non-dict into the slot they reserved for
      us.
      
      Seems risky though.  Instead, the approach in this commit is to create
      an actual dict and put it in like they expect.  All the attribute-accessing
      paths have been updated to look at both the fast Pyston HCAttrs method, and
      the CAPI dict method.
      5b2747b1
    • Kevin Modzelewski's avatar
      Tests for tp_dictoffset · 2bae36f6
      Kevin Modzelewski authored
      2bae36f6
  2. 09 Jan, 2015 16 commits
  3. 08 Jan, 2015 19 commits