python: better support for Python 3

* wrap/python/spot.i (spot::ltl::parse_error_list,
spot::tgba_parse_error_list): Add a __bool__ method, that is used
instead of __nonzero__ in Python 3.
* wrap/python/tests/interdep.py, wrap/python/tests/parsetgba.py:
Force destruction order.
* NEWS: Update.
This commit is contained in:
Alexandre Duret-Lutz 2014-02-02 15:33:11 +01:00
parent a6714119f9
commit b6e5ce7e15
4 changed files with 28 additions and 6 deletions

View file

@ -1,6 +1,6 @@
# -*- mode: python; coding: utf-8 -*-
# Copyright (C) 2010, 2012 Laboratoire de Recherche et Développement
# de l'EPITA.
# Copyright (C) 2010, 2012, 2014 Laboratoire de Recherche et
# Développement de l'EPITA.
# Copyright (C) 2003, 2004 Laboratoire d'Informatique de Paris 6
# (LIP6), département Systèmes Répartis Coopératifs (SRC), Université
# Pierre et Marie Curie.
@ -42,3 +42,7 @@ while not iter.done():
# it means buddy can grok spot's objects.
iter.next()
sys.stdout.write("%s\n" % b)
del b
del c
del f
del a