Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #2633

The Signature Module for PySide2

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Christian Tismer <tismer@stackless.com>
Newsgroups comp.lang.python.announce
Subject The Signature Module for PySide2
Date Thu, 21 Sep 2017 15:19:46 +0200
Lines 72
Approved python-announce-list@python.org
Message-ID <mailman.123.1506006516.2730.python-announce-list@python.org> (permalink)
References <7e9b66f7-186c-0eb7-e572-f747c870895f@stackless.com>
Reply-To python-list@python.org
Mime-Version 1.0
Content-Type multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="G9A1Mx3NOfQXx2celttNk3MCdgcGe6uWx"
X-Trace news.uni-berlin.de e/7mCkuFltijSALucTtHMgan0qlSYHMbHJc35oScOh2g==
Return-Path <tismer@stackless.com>
X-Original-To python-announce-list@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; 'skip:p 60': 0.05; 'url:github': 0.05; 'defaults': 0.07; 'python': 0.09; '173': 0.09; 'filename:fname piece:signature': 0.09; 'gpg': 0.09; 'tismer': 0.09; '2.7': 0.11; '776': 0.16; 'annotations,': 0.16; 'content- type:application/pgp-signature': 0.16; 'content- type:multipart/signed': 0.16; 'filename:fname piece:asc': 0.16; 'filename:fname:signature.asc': 0.16; 'from:addr:stackless.com': 0.16; 'from:addr:tismer': 0.16; 'from:name:christian tismer': 0.16; 'message-id:@stackless.com': 0.16; 'received:stackless.com': 0.16; 'subject:Module': 0.16; 'url:stackless': 0.16; 'url:tree': 0.16; 'attribute': 0.18; '>>>': 0.18; 'url:io': 0.23; 'module': 0.23; 'cheers': 0.24; 'header:User-Agent:1': 0.27; '+49': 0.27; 'example': 0.28; 'feature': 0.28; 'chris': 0.31; 'print': 0.31; 'values.': 0.33; 'skip:_ 10': 0.34; 'up.': 0.34; 'there': 0.37; 'christian': 0.38; 'received:de': 0.38; 'proto:https': 0.39; 'to:addr:python.org': 0.39; 'received:io': 0.39; 'received:psf.io': 0.39; 'info': 0.39; 'subject:for': 0.40; 'received:ams1.psf.io': 0.40; 'received:mail1.ams1.psf.io': 0.40; 'content-type:multipart/mixed': 0.60; 'url:5': 0.64; 'further': 0.65; 'received:176': 0.66; 'subject:The': 0.67; 'header:Reply- To:1': 0.68; 'phone': 0.68; 'to:addr:python-announce-list': 0.72; 'reply-to:no real name:2**0': 0.72; '3.4': 0.84; 'received:176.9': 0.84; 'received:176.9.65': 0.84; 'reply-to:addr:python.org': 0.84
User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0
X-Mailman-Approved-At Thu, 21 Sep 2017 11:08:36 -0400
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.24
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <7e9b66f7-186c-0eb7-e572-f747c870895f@stackless.com>
Xref csiph.com comp.lang.python.announce:2633

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Hi friends,

there is the new signature module for PySide2.
It adds the __signature__ attribute to all PySide2
functions and constructors.

Example usage:

>>> PySide2.QtWidgets.QGraphicsAnchorLayout.addAnchors.__signature__
>>> PySide2.QtWidgets.QGraphicsAnchorLayout.__signature__

will print all annotations, defaults and return values.

The feature supports Python 2.7 and Python 3.4 and up.
See further info at

    https://bugreports.qt.io/browse/PYSIDE-510


https://github.com/pyside/pyside2-setup/blob/5.6/sources/shiboken2/libshiboken/signature.cpp


https://github.com/pyside/pyside2-setup/tree/5.6/sources/pyside2/PySide2/support/signature

Cheers -- Chris

-- 
Christian Tismer             :^)   tismer@stackless.com
Software Consulting          :     http://www.stackless.com/
Karl-Liebknecht-Str. 121     :     https://github.com/PySide
14482 Potsdam                :     GPG key -> 0xFB7BEE0E
phone +49 173 24 18 776  fax +49 (30) 700143-0023

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

The Signature Module for PySide2 Christian Tismer <tismer@stackless.com> - 2017-09-21 15:19 +0200

csiph-web