SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

python311-dataclasses rpm build for : openSUSE Tumbleweed. For other distributions click python311-dataclasses.

Name : python311-dataclasses
Version : 0.6 Vendor : obs://build_opensuse_org/home:ocurero
Release : 1.44 Date : 2023-02-20 03:15:28
Group : Development/Languages/Python Source RPM : python-dataclasses-0.6-1.44.src.rpm
Size : 0.09 MB
Packager : (none)
Summary : A backport of the dataclasses module for Python 36
Description :
.. image:: https://img.shields.io/pypi/v/dataclasses.svg


This is an implementation of PEP 557, Data Classes. It is a backport
for Python 3.6. Because dataclasses will be included in Python 3.7,
any discussion of dataclass features should occur on the python-dev
mailing list at https://mail.python.org/mailman/listinfo/python-dev.
At this point this repo should only be used for historical purposes
(it\'s where the original dataclasses discussions took place) and for
discussion of the actual backport to Python 3.6.

See https://www.python.org/dev/peps/pep-0557/ for the details of how
Data Classes work.

A test file can be found at
https://github.com/ericvsmith/dataclasses/blob/master/test_dataclasses.py,
or in the sdist file.

Installation
-------------

.. code-block::

pip install dataclasses


Example Usage
-------------

.. code-block:: python

from dataclasses import dataclass

AATTdataclass
class InventoryItem:
name: str
unit_price: float
quantity_on_hand: int = 0

def total_cost(self) -> float:
return self.unit_price * self.quantity_on_hand

item = InventoryItem(\'hammers\', 10.49, 12)
print(item.total_cost())

Some additional tools can be found in dataclass_tools.py, included in
the sdist.

Compatibility
-------------

This backport assumes that dict objects retain their sort order. This
is true in the language spec for Python 3.7 and greater. Since this
is a backport to Python 3.6, it raises an interesting question: does
that guarantee apply to 3.6? For CPython 3.6 it does. As of the time
of this writing, it\'s also true for all other Python implementations
that claim to be 3.6 compatible, of which there are none. Any new
3.6 implementations are expected to have ordered dicts. See the
analysis at the end of this email:

https://mail.python.org/pipermail/python-dev/2017-December/151325.html

As of version 0.4, this code no longer works with Python 3.7. For 3.7,
use the built-in dataclasses module.

Release History
---------------

+---------+------------+-------------------------------------+
| Version | Date | Description |
+=========+============+=====================================+
| 0.6 | 2018-05-17 | Equivalent to Python 3.7.0rc1 |
+---------+------------+-------------------------------------+
| 0.5 | 2018-03-28 | Equivalent to Python 3.7.0b3 |
+---------+------------+-------------------------------------+

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/home:/ocurero:/openbm:/Tumbleweed/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  python311-dataclasses-0.6-1.44.noarch.rpm
     

Provides :
python3.11dist(dataclasses)
python311-dataclasses
python3dist(dataclasses)

Requires :
python(abi) = 3.11
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PartialHardlinkSets) <= 4.0.4-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/python3.11/site-packages/__pycache__
/usr/lib/python3.11/site-packages/__pycache__/dataclasses.cpython-311.opt-1.pyc
/usr/lib/python3.11/site-packages/__pycache__/dataclasses.cpython-311.pyc
/usr/lib/python3.11/site-packages/dataclasses-0.6-py3.11.egg-info
/usr/lib/python3.11/site-packages/dataclasses-0.6-py3.11.egg-info/PKG-INFO
/usr/lib/python3.11/site-packages/dataclasses-0.6-py3.11.egg-info/SOURCES.txt
/usr/lib/python3.11/site-packages/dataclasses-0.6-py3.11.egg-info/dependency_links.txt
/usr/lib/python3.11/site-packages/dataclasses-0.6-py3.11.egg-info/top_level.txt
/usr/lib/python3.11/site-packages/dataclasses.py
/usr/share/doc/packages/python311-dataclasses
/usr/share/doc/packages/python311-dataclasses/LICENSE.txt
/usr/share/doc/packages/python311-dataclasses/README.rst

 
ICM