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 | ||||||||||
|
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 |