Toot

Written by Ned Batchelder on 2025-01-18 at 18:10

In #Python, @classmethod can used to create alternate constructors for making objects in other ways. Here's a simple example:

=> View attached media

=> More informations about this toot | View the thread | More toots from nedbat@hachyderm.io

Mentions

Tags

=> View python tag

Proxy Information
Original URL
gemini://mastogem.picasoft.net/toot/113850699714498142
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
221.651649 milliseconds
Gemini-to-HTML Time
0.358339 milliseconds

This content has been proxied by September (3851b).