rupython 1.5.7__tar.gz → 1.5.8__tar.gz
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.
- {rupython-1.5.7 → rupython-1.5.8}/PKG-INFO +1 -1
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/237/320/276/321/202/320/276/320/272/320/270.py +11 -11
- {rupython-1.5.7 → rupython-1.5.8}/rupython.egg-info/PKG-INFO +1 -1
- {rupython-1.5.7 → rupython-1.5.8}/setup.py +1 -1
- {rupython-1.5.7 → rupython-1.5.8}/LICENSE +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/README.md +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython/__main__.py +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython/__/320/227/320/260/320/263/320/276/320/273/320/276/320/262/320/276/321/207/320/275/321/213/320/271_/320/272/320/276/320/264__.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython/__/320/236/320/261/321/211/320/270/320/265_/321/204/321/203/320/275/320/272/321/206/320/270/320/270__.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython/__/320/241/320/276/320/276/320/261/321/211/320/265/320/275/320/270/321/217__.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython/__/320/241/320/276/320/276/321/202/320/262/320/265/321/202/321/201/321/202/320/262/320/270/321/217__.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/220/321/201/320/270/320/275/321/205/321/200/320/276/320/275/320/275/320/276/321/201/321/202/321/214.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/221/320/224.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/222/321/200/320/265/320/274/321/217.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/224/320/260/321/202/320/260/320/222/321/200/320/265/320/274/321/217.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/232/320/276/320/273/320/273/320/265/320/272/321/206/320/270/320/270.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/232/321/203/321/207/320/260.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/234/320/260/321/202/320/265/320/274.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/236/321/207/320/265/321/200/320/265/320/264/321/214.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/240/320/265/320/263/320/222/321/213/321/200.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/241/320/270/321/201/321/202/320/265/320/274/320/260.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/241/320/273/321/203/321/207.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/234/320/276/320/264/321/203/320/273/320/270//320/244/320/260/320/271/320/273/321/213.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython//320/237/321/200/320/265/320/276/320/261/321/200/320/260/320/267/320/276/320/262/320/260/321/202/320/265/320/273/321/214.py" +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython.egg-info/SOURCES.txt +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython.egg-info/dependency_links.txt +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/rupython.egg-info/top_level.txt +0 -0
- {rupython-1.5.7 → rupython-1.5.8}/setup.cfg +0 -0
|
@@ -5,7 +5,7 @@ from rupython import __Общие_функции__
|
|
|
5
5
|
|
|
6
6
|
Словарь_параметров = {
|
|
7
7
|
'цель': 'target',
|
|
8
|
-
'
|
|
8
|
+
'название': 'name',
|
|
9
9
|
'аргументы': 'args',
|
|
10
10
|
'именовАргументы': 'kwargs',
|
|
11
11
|
'после_окончания': 'daemon',
|
|
@@ -26,12 +26,12 @@ from rupython import __Общие_функции__
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
class Поток:
|
|
29
|
-
def __init__(экземпляр, цель = None,
|
|
29
|
+
def __init__(экземпляр, цель = None, название = None, аргументы = (), именовАргументы = None, после_окончания = None):
|
|
30
30
|
ИА = {}
|
|
31
31
|
if цель is not None:
|
|
32
32
|
ИА['target'] = цель
|
|
33
|
-
if
|
|
34
|
-
ИА['name'] =
|
|
33
|
+
if название is not None:
|
|
34
|
+
ИА['name'] = название
|
|
35
35
|
if аргументы:
|
|
36
36
|
ИА['args'] = аргументы
|
|
37
37
|
if именовАргументы is not None:
|
|
@@ -52,11 +52,11 @@ class Поток:
|
|
|
52
52
|
def Живой(экземпляр):
|
|
53
53
|
return экземпляр._thread.is_alive()
|
|
54
54
|
|
|
55
|
-
def Получить_
|
|
55
|
+
def Получить_название(экземпляр):
|
|
56
56
|
return экземпляр._thread.getName()
|
|
57
57
|
|
|
58
|
-
def Установить_
|
|
59
|
-
экземпляр._thread.setName(
|
|
58
|
+
def Установить_название(экземпляр, название):
|
|
59
|
+
экземпляр._thread.setName(название)
|
|
60
60
|
|
|
61
61
|
def Получить_идентификатор(экземпляр):
|
|
62
62
|
return экземпляр._thread.ident
|
|
@@ -68,7 +68,7 @@ class Поток:
|
|
|
68
68
|
экземпляр._thread.daemon = после_окончания
|
|
69
69
|
|
|
70
70
|
def __str__(экземпляр):
|
|
71
|
-
return f"Поток(
|
|
71
|
+
return f"Поток(название={экземпляр.Получить_название()}, живой={экземпляр.Живой()})"
|
|
72
72
|
|
|
73
73
|
class Блокование:
|
|
74
74
|
def __init__(экземпляр):
|
|
@@ -261,13 +261,13 @@ class Таймер(Поток):
|
|
|
261
261
|
return f"Таймер(интервал={экземпляр._timer.interval}, завершён={экземпляр.Завершён()})"
|
|
262
262
|
|
|
263
263
|
def Текущий_поток():
|
|
264
|
-
return Поток(цель = lambda: None,
|
|
264
|
+
return Поток(цель = lambda: None, название = threading.current_thread().getName())
|
|
265
265
|
|
|
266
266
|
def Количество_активных_потоков():
|
|
267
267
|
return threading.active_count()
|
|
268
268
|
|
|
269
269
|
def Перечислить_потоки():
|
|
270
|
-
return [Поток(цель = lambda: None,
|
|
270
|
+
return [Поток(цель = lambda: None, название = поток.getName()) for поток in threading.enumerate()]
|
|
271
271
|
|
|
272
272
|
def Получить_основной_поток():
|
|
273
|
-
return Поток(цель = lambda: None,
|
|
273
|
+
return Поток(цель = lambda: None, название = threading.main_thread().getName())
|
|
@@ -3,7 +3,7 @@ from pathlib import Path as Путь
|
|
|
3
3
|
|
|
4
4
|
Установить(
|
|
5
5
|
name = 'rupython',
|
|
6
|
-
version = '1.5.
|
|
6
|
+
version = '1.5.8',
|
|
7
7
|
description = "Исполнитель кода Русского Питона",
|
|
8
8
|
packages = [ 'rupython', 'rupython.Модули' ],
|
|
9
9
|
long_description = (Путь(__file__).parent / 'README.md').read_text('UTF-8'),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|