1w6 uRPG 1w6 uRPG
  • Anmelden
  • Öffentlich

    • Öffentlich
    • Gruppen
    • Beliebt
    • Verzeichnis

http://sn.1w6.org/file/clacke-20200908T161518-tslb2fl.html

http://sn.1w6.org/file/clacke-20200908T161518-tslb2fl.html
Double question mark thing: If you type two question marks after a Python object in ipython, it shows the annotations and source code related to that object:
In [1]: from asdf import Asdf

In [2]: Asdf??
Init signature: Asdf(qwer: int, zxcv: str) -> None
Source:
class Asdf:
    """This thing does stuff.

    It can foo and bar.
    """

    qwer: int
    zxcv: str
File:           ~/asdf.py
Type:           type
Subclasses:
A W E S O M E S A U C E

I have probably wanted this every day without knowing it!

@python group #python #ipython

Nachrichten, in denen dieser Anhang erscheint

  1. clacke clacke

    Double question mark thing: If you type two question marks after a Python object in ipython, it shows the annotations and source code related to that object: In [1]: from asdf import Asdf In [2]: Asdf?? Init si…

    Tuesday, 08-Sep-20 15:29:13 UTC
  • Hilfe
  • Über
  • FAQ
  • AGB
  • Privatsphäre
  • Quellcode
  • Version
  • Kontakt

1w6 uRPG ist ein Mikrobloggingdienst von Arne (Drak) Babenhauserheide. Es wird mit der Mikrobloggingsoftware StatusNet (Version 1.1.1-release) betrieben, die unter der GNU Affero General Public License erhältlich ist. The running version includes the patches from draketo.de/proj/statusnet-patches.

Creative Commons Attribution 3.0 Alle Inhalte und Daten von 1w6 uRPG sind unter der Creative Commons Attribution 3.0 Lizenz verfügbar.