rupython 1.1.0__tar.gz → 1.1.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rupython
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Исполнитель кода Русского Питона
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -110,7 +110,7 @@ import importlib as Импортование
110
110
  'Срез': ( 'slice', None, True ),
111
111
  'Статический_метод': ( 'staticmethod', None, False ),
112
112
  'Степень': ( 'pow', None, False ),
113
- 'Строка': ( 'str', { 'кодование': 'encoding', 'при_ошибках': 'errors' }, True ),
113
+ 'Строка': ( 'str', { 'кодование': 'encoding', 'при_ошибках': 'errors' }, True ), # Текст
114
114
  'Сумма': ( 'sum', { 'начало': 'start' }, False ),
115
115
  'Тип': ( 'type', None, True ),
116
116
  'Удалить_поле': ( 'delattr', None, False ),
@@ -438,22 +438,19 @@ def Проверить_соответствие_слов(слова, путь_к
438
438
 
439
439
  for сл in ('Подключить', 'Если', 'Иначе'):
440
440
  for поз in [i for i, x in enumerate(слова) if x[1] == сл]:
441
- if поз > 0 and слова[поз - 1][0] not in (4, 5, 6):
442
- print(слова[поз])
443
- print(слова[поз - 1])
444
- print(слова)
441
+ if поз > 0 and слова[поз - 1][0] not in (4, 5, 6, 61):
445
442
  Вывести_исключение(сл); return False
446
443
  сл_ = сл.lower()
447
444
  for поз in [i for i, x in enumerate(слова) if x[1] == сл_]:
448
- if поз == 0 or слова[поз - 1][0] in (4, 5, 6):
445
+ if поз == 0 or слова[поз - 1][0] in (4, 5, 6, 61):
449
446
  Вывести_исключение(сл_); return False
450
447
 
451
448
  for поз in [i for i, x in enumerate(слова) if x[1] == 'Вернуть']:
452
- if поз == len(слова) - 1 or слова[поз + 1][0] == 4:
449
+ if поз == len(слова) - 1 or слова[поз + 1][0] in (4, 61):
453
450
  Вывести_исключение('Вернуть'); return False
454
451
 
455
452
  for поз in [i for i, x in enumerate(слова) if x[1] == 'Возврат']:
456
- if поз != len(слова) - 1 and слова[поз + 1][0] != 4:
453
+ if поз != len(слова) - 1 and слова[поз + 1][0] not in (4, 61):
457
454
  Вывести_исключение('Возврат'); return False
458
455
 
459
456
  return True
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: rupython
3
- Version: 1.1.0
3
+ Version: 1.1.1
4
4
  Summary: Исполнитель кода Русского Питона
5
5
  Description-Content-Type: text/markdown
6
6
  License-File: LICENSE
@@ -3,7 +3,7 @@ from pathlib import Path as Путь
3
3
 
4
4
  Установить(
5
5
  name = 'rupython',
6
- version = '1.1.0',
6
+ version = '1.1.1',
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