Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D5148429E26 for ; Wed, 14 Dec 2011 02:58:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id KzMBAFNwQHrS for ; Wed, 14 Dec 2011 02:58:50 -0800 (PST) Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 6428D429E25 for ; Wed, 14 Dec 2011 02:58:50 -0800 (PST) Received: from mail.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.cryptobitch.de (Postfix) with ESMTPSA id 3C3D350F614 for ; Wed, 14 Dec 2011 11:58:49 +0100 (CET) Received: by mail.jade-hamburg.de (Postfix, from userid 401) id 4ECCCDF29F; Wed, 14 Dec 2011 11:58:48 +0100 (CET) Received: from thinkbox.jade-hamburg.de (unknown [85.183.11.228]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: teythoon) by mail.jade-hamburg.de (Postfix) with ESMTPSA id 768E0DF29F for ; Wed, 14 Dec 2011 11:58:42 +0100 (CET) Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77) (envelope-from ) id 1RamXo-0004MN-Sn for notmuch@notmuchmail.org; Wed, 14 Dec 2011 11:58:40 +0100 From: Justus Winter <4winter@informatik.uni-hamburg.de> To: notmuch@notmuchmail.org Subject: [python] RFC: supporting python 2 and 3 with one codebase Date: Wed, 14 Dec 2011 11:58:18 +0100 Message-Id: <1323860305-15802-1-git-send-email-4winter@informatik.uni-hamburg.de> X-Mailer: git-send-email 1.7.7.3 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Dec 2011 10:58:51 -0000 Hi everyone :) attached is a patch series that makes the notmuch python bindings compatible with both python 2.x and python 3.x. There are some workarounds, but those are mostly in globals.py and in my opinion the benefit of supporting both versions with one codebase is totally worth it. Patch seven adds missing unicode conversions that should be applied even if the rest of the patchset is not. Cheers, Justus