Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pygobject pygobject
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 180
    • Issues 180
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 27
    • Merge requests 27
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • pygobjectpygobject
  • Issues
  • #334

compare method from GLib.DateTimes raises an error

See the following code. It fails with this message: Pointer arguments are restricted to integers, capsules, and None. See: https://bugzilla.gnome.org/show_bug.cgi?id=683599

pygobject 3.32.0

#!/usr/bin/env python3
 
from gi.repository import GLib
 
a = GLib.DateTime.new_now_utc()
b = GLib.DateTime.new_now_utc()
 
try:
 GLib.DateTime.compare(a, b)
except ValueError as e:
 # Pointer arguments are restricted to integers, capsules, and None.
 # See: https://bugzilla.gnome.org/show_bug.cgi?id=683599
 print("failed: ", e)
Edited Jun 05, 2019 by Jean Felder
Assignee
Assign to
Time tracking