[tahoe-lafs-trac-stream] [tahoe-lafs] #1658: drop support for Python < 2.6

tahoe-lafs trac at tahoe-lafs.org
Tue May 15 18:06:58 UTC 2012


#1658: drop support for Python < 2.6
----------------------------+----------------------------------------------
     Reporter:  zooko       |      Owner:  somebody
         Type:              |     Status:  new
  enhancement               |  Milestone:  1.10.0
     Priority:  normal      |    Version:  1.9.0
    Component:  packaging   |   Keywords:  packaging backward-compatibility
   Resolution:              |
Launchpad Bug:              |
----------------------------+----------------------------------------------

Comment (by warner):

 I found some of my old notes for what we could clean up if we required a
 newer python version. If we dropped 2.4 and required >=2.5, we could:

 * replace {{{DictOfSets}}} with collections.defaultdict(set)
 * replace pycryptopp.hash.SHA256 with hashlib.sha256
 * replace {{{pysqlite2|sqlite3}}} with stdlib {{{sqlite3}}}
 * switch to PEP328 relative imports

 And then >=2.6 would get us stdlib {{{json}}}, and could replace our LRU
 cache (unless we already got rid of it?) with
 {{{collections.dequeue(maxlen=)}}}. It might even be possible to get a
 codebase that works with py2.6 and py3.3 simultaneously, since 2.6 adds
 b"", print-as-function (guarded by {{{__future__}}}), and "{{{except
 FooError as e:}}}" (although, of course, we kind of have to wait for our
 dependencies to move to py3 first).

-- 
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1658#comment:16>
tahoe-lafs <https://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list