Projet

Général

Profil

Development #57268

Fix build with Python 3.10

Ajouté par Jakub Hrozek il y a plus de 2 ans. Mis à jour il y a plus de 2 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
24 septembre 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

The attached patch was contributed by Miro Hroncok (miro at hroncok dot cz). It fixes lasso python bindings usage with py 3.10.


Fichiers

Révisions associées

Révision a28fb8c8 (diff)
Ajouté par Benjamin Dauvergne il y a plus de 2 ans

Does not decref boolean constants (#57268)

TRUE/FALSE are special references in CPython bindings whose reference
count must never be updated.

Historique

#1

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

Could you state why you think the reference count is wrong here ?

#2

Mis à jour par Jakub Hrozek il y a plus de 2 ans

Benjamin Dauvergne a écrit :

Could you state why you think the reference count is wrong here ?

I'm sorry, but I don't have many more details than those that are in the RHBZ: https://bugzilla.redhat.com/show_bug.cgi?id=1900651
The closes they came to an explanation is comment 18 (https://bugzilla.redhat.com/show_bug.cgi?id=1900651#c18)

#3

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

  • Assigné à mis à Benjamin Dauvergne
#4

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

Ok, I understood the issue but the patch applied to Fedora is wrong, the line should be kept for non-boolean constants.

Here is a better fix I think, could you check with downstream if they agree (maybe Simo).

#5

Mis à jour par Benjamin Dauvergne il y a plus de 2 ans

  • Statut changé de Solution proposée à Résolu (à déployer)
commit a28fb8c8e1a01c7c226e016c91bef2e5b4436e23
Author: Benjamin Dauvergne <bdauvergne@entrouvert.com>
Date:   Mon Sep 27 14:14:23 2021 +0200

    Does not decref boolean constants (#57268)

    TRUE/FALSE are special references in CPython bindings whose reference
    count must never be updated.
#6

Mis à jour par Transition automatique il y a plus d'un an

Automatic expiration

Formats disponibles : Atom PDF