1w6 uRPG 1w6 uRPG
  • Anmelden
  • Öffentlich

    • Öffentlich
    • Gruppen
    • Beliebt
    • Verzeichnis

http://sn.1w6.org/file/clacke-20200908T152737-qcl5sxx.html

http://sn.1w6.org/file/clacke-20200908T152737-qcl5sxx.html
Single question mark thing: If you type a question mark after a Python object, it shows you annotations and documentation related to that object:
In [1]: from dataclasses import dataclass
In [2]: @dataclass
   ...: class Asdf:
   ...:     """This thing does stuff.
   ...:
   ...:     It can foo and bar.
   ...:     """
   ...:
   ...:     qwer: int
   ...:     zxcv: str
   ...:
In [3]: Asdf?
Init signature: Asdf(qwer: int, zxcv: str) -> None
Docstring:
This thing does stuff.

It can foo and bar.
Type:           type
Subclasses:
Cool stuff. Very useful. Very helpful. Don't leave home without it.

Nachrichten, in denen dieser Anhang erscheint

  1. clacke clacke

    Single question mark thing: If you type a question mark after a Python object, it shows you annotations and documentation related to that object: In [1]: from dataclasses import dataclass In [2]: @dataclass ..…

    Tuesday, 08-Sep-20 15:26:00 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.