xloft 0.4.4__py3-none-any.whl → 0.4.5__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of xloft might be problematic. Click here for more details.

xloft/quantum.py CHANGED
@@ -40,7 +40,7 @@ def count_qubits() -> int:
40
40
  Quantum of algorithm is a function for data processing.
41
41
 
42
42
  Examples:
43
- >>> from quantum import count_qubits
43
+ >>> from xloft.quantum import count_qubits
44
44
  >>> count_qubits()
45
45
  16
46
46
 
@@ -54,12 +54,11 @@ class QuantumLoop:
54
54
  """Separation of the cycle into quantum algorithms for multiprocessing data processing.
55
55
 
56
56
  Examples:
57
- >>> from quantum import QuantumLoop
57
+ >>> from xloft.quantum import QuantumLoop
58
58
  >>> def task(item):
59
59
  ... return item * item
60
60
  >>> data = range(10)
61
- >>> qloop = QuantumLoop(task, data)
62
- >>> qloop.run()
61
+ >>> QuantumLoop(task, data).run()
63
62
  [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
64
63
 
65
64
  Args:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xloft
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: (XLOFT) X-Library of tools
5
5
  Project-URL: Homepage, https://github.com/kebasyaty/xloft
6
6
  Project-URL: Repository, https://github.com/kebasyaty/xloft
@@ -186,8 +186,7 @@ def task(item):
186
186
  data = range(10)
187
187
 
188
188
  # Separation of the cycle into quantum algorithms for multiprocessing data processing.
189
- qloop = QuantumLoop(task, data)
190
- results = qloop.run()
189
+ results = QuantumLoop(task, data).run()
191
190
  print(results) # => [0, 1, 4, 9, 16, 25, 36, 49, 64, 81]
192
191
  ```
193
192
 
@@ -3,8 +3,8 @@ xloft/errors.py,sha256=hZcmF0QVVdvE5oM1jsXymRk_pPGgDSnUDM9wx9zJAYQ,895
3
3
  xloft/human.py,sha256=odRbUF_58YuFWC_VQeRDZ-6ifHDiiAH2HNb5G5K6JIM,1106
4
4
  xloft/namedtuple.py,sha256=a_l3bZF-L2I7MGxuF2CXzAHgNai-Vyj6SY1ODwxs7TU,6856
5
5
  xloft/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- xloft/quantum.py,sha256=-if8m-gX-lydiFpGgg6dXj3RBijpP2dcXbBfPmJ3N_E,4694
7
- xloft-0.4.4.dist-info/METADATA,sha256=n8av4ZnoCfSsd3PCFu74hFvnNwb1VYws6eLHKFqHG9c,7255
8
- xloft-0.4.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
- xloft-0.4.4.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
10
- xloft-0.4.4.dist-info/RECORD,,
6
+ xloft/quantum.py,sha256=ZkFqqFROC9j5JbwJmej3yL9VJcqElPrrimFTz0Pe3Mk,4679
7
+ xloft-0.4.5.dist-info/METADATA,sha256=0cAqqMXQdh5I_DMw9Rm5UU6agFU13OlYlyOpNpYZIgc,7241
8
+ xloft-0.4.5.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
9
+ xloft-0.4.5.dist-info/licenses/LICENSE,sha256=2zZINd6m_jNYlowdQImlEizyhSui5cBAJZRhWQURcEc,1095
10
+ xloft-0.4.5.dist-info/RECORD,,
File without changes