No project description provided
Project description
autostr
Небольшой модуль, который добавляет класс AutostrMixin
Вы можете наследоваться от данного класса и тогда вам не придётся писать __str__
Пример:
class A(AutostrMixin):
b = 0
def __init__(self):
self.a = 1
t = A()
print(t)
Вывод:
Экземпляр класса: A
Атрибуты класса:
·b: 0
Атрибуты экземпляра:
·a: 1
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
autostr-1.7.tar.gz
(2.6 kB
view details)
File details
Details for the file autostr-1.7.tar.gz.
File metadata
- Download URL: autostr-1.7.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a84e3f43325d8624823aae7a3f9a4e5df9d28f6b87c94f2ae66e77055927b84
|
|
| MD5 |
e893c3791bac0dd86709959c7d5215f4
|
|
| BLAKE2b-256 |
3c369791d48f53c7e23dfd313c124ac9be499e56d84afab6bec6abf0aaaf7806
|