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


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

The Signature Module for PySide2

Started byChristian Tismer <tismer@stackless.com>
First post2017-09-21 15:19 +0200
Last post2017-09-21 15:19 +0200
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python.announce

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#2633 — The Signature Module for PySide2

FromChristian Tismer <tismer@stackless.com>
Date2017-09-21 15:19 +0200
SubjectThe Signature Module for PySide2
Message-ID<mailman.123.1506006516.2730.python-announce-list@python.org>

[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

[toc] | [standalone]


Back to top | Article view | comp.lang.python.announce


csiph-web