Tuple (version 0.0.1)
index
Tuple.html

This package implements tools to build python package and tools.
 
>>> from Tuple import tuple
>>> t = tuple(("a", 'b', 1))
>>> _ = t | print
a
b
1
>>> t |= print
a
b
1
>>> t
(None, None, None)
>>> t = tuple(("a", 'b', 1))
>>> ~t
(1, 'b', 'a')
>>> l = [0, 1]
>>> t -l
('a', 'b')
>>> t -= l
>>> t
('a', 'b')
>>> t = tuple(("a", 'b', 1))
>>> l = ["a", "b"]
>>> t -= l
>>> t
(1,)
>>> str_tuple = tuple(["0", '2', "1"])
>>> int_tuple = str_tuple | int
>>> int_tuple
(0, 2, 1)
>>>

 
Classes
       
builtins.tuple(builtins.object)
tuple

 
class tuple(builtins.tuple)
    tuple(iterable=(), /)
 

 
 
Method resolution order:
tuple
builtins.tuple
builtins.object

Methods defined here:
__inv__(self) -> Tuple[Any]
This function implements '~<tuple>'.
__invert__(self) -> Tuple[Any]
This function implements '~<tuple>'.
__ior__(self, other: collections.abc.Callable) -> Tuple[Any]
This function implements '<tuple> |= <function>'.
__isub__(self, other: collections.abc.Iterator[typing.Any]) -> Tuple[Any]
This function implements '<tuple> -= <Iterator>'
__or__(self, other: collections.abc.Callable) -> Tuple[Any]
This function implements '<tuple> | <function>'.
__sub__(self, other: collections.abc.Iterator[typing.Any]) -> Tuple[Any]
This function implements '<tuple> - <Iterator>'

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)

Methods inherited from builtins.tuple:
__add__(self, value, /)
Return self+value.
__contains__(self, key, /)
Return key in self.
__eq__(self, value, /)
Return self==value.
__ge__(self, value, /)
Return self>=value.
__getattribute__(self, name, /)
Return getattr(self, name).
__getitem__(self, key, /)
Return self[key].
__getnewargs__(self, /)
__gt__(self, value, /)
Return self>value.
__hash__(self, /)
Return hash(self).
__iter__(self, /)
Implement iter(self).
__le__(self, value, /)
Return self<=value.
__len__(self, /)
Return len(self).
__lt__(self, value, /)
Return self<value.
__mul__(self, value, /)
Return self*value.
__ne__(self, value, /)
Return self!=value.
__repr__(self, /)
Return repr(self).
__rmul__(self, value, /)
Return value*self.
count(self, value, /)
Return number of occurrences of value.
index(self, value, start=0, stop=9223372036854775807, /)
Return first index of value.
 
Raises ValueError if the value is not present.

Class methods inherited from builtins.tuple:
__class_getitem__(...) from builtins.type
See PEP 585

Static methods inherited from builtins.tuple:
__new__(*args, **kwargs) from builtins.type
Create and return a new object.  See help(type) for accurate signature.

 
Data
        __all__ = ['tuple']
__author_email__ = 'mauricelambert434@gmail.com'
__copyright__ = '\nPythonToolsKit Copyright (C) 2022 Maurice Lam...ome to redistribute it\nunder certain conditions.\n'
__description__ = '\nThis package implements tools to build python package and tools.\n'
__license__ = 'GPL-3.0 License'
__maintainer__ = 'Maurice Lambert'
__maintainer_email__ = 'mauricelambert434@gmail.com'
__url__ = 'https://github.com/mauricelambert/PythonToolsKit'

 
Author
        Maurice Lambert