rip off collections.namedtuple for Query so that it can be pickled

Issue #1437 resolved
Mike Bayer repo owner created an issue

For 2.4 and 2.5 support, use the source to Py2.6's "collections.namedtuple", which execs a class from string source thus allowing pickle-ability.

questions:

  1. do we use namedtuple's API verbatim ? or modify it for SQLA purposes (such as the "keys" attribute??)
  2. is this version of namedtuple much slower than the quickie method we are doing ?

Comments (2)

  1. Mike Bayer reporter

    collections.namedtuple is not even pickleable. in 0.6 we are using a new tuple that just has a module-level class.

  2. Log in to comment