Size: a a a

Сообщество Python Программистов

2020 March 25

VA

Vadim Apenko in Сообщество Python Программистов
Артемий
ну он же сепециально написал про версию питона 4
Это то, что отличило его в моих глазах от спама.
источник

VK

Vohman Ko in Сообщество Python Программистов
Vadim Apenko
Кто спросил - тому в личку ответь.
Ну так тема думаю актуальная и для Питонистов )))
источник

VA

Vadim Apenko in Сообщество Python Программистов
Vohman Ko
Ну так тема думаю актуальная и для Питонистов )))
Ещё раз.
Этому не место в данном чате.
источник

VK

Vohman Ko in Сообщество Python Программистов
Vadim Apenko
Ещё раз.
Этому не место в данном чате.
Оки... Не вопрос.
источник

БГ

Бензофуран Гетероцик... in Сообщество Python Программистов
@Rud356 есть комп с питоном поблизости?
источник

R3

Rud 356 in Сообщество Python Программистов
Я на нем :^)
источник

БГ

Бензофуран Гетероцик... in Сообщество Python Программистов
import pip
pip.main(args=['install', 'requests'])
источник

БГ

Бензофуран Гетероцик... in Сообщество Python Программистов
Чекни в питоне, сработает или нет
источник

R3

Rud 356 in Сообщество Python Программистов
Как бы да, но нет
источник

R3

Rud 356 in Сообщество Python Программистов
От админа стартануть питошку и будет ок
источник

БГ

Бензофуран Гетероцик... in Сообщество Python Программистов
Ну йопта
источник

R3

Rud 356 in Сообщество Python Программистов
От адмена норм
источник

R3

Rud 356 in Сообщество Python Программистов
хочешь кой-какую утилиту глянуть?)
источник

VA

Vadim Apenko in Сообщество Python Программистов
Rud 356
Как бы да, но нет
А если из венв запускать?
источник

R3

Rud 356 in Сообщество Python Программистов
Vadim Apenko
А если из венв запускать?
Ну, мне лень венв ставить, но поидее без админки тож сработает
источник

R3

Rud 356 in Сообщество Python Программистов
У меня питошка стоит для всех пользователей
источник

БГ

Бензофуран Гетероцик... in Сообщество Python Программистов
Rud 356
хочешь кой-какую утилиту глянуть?)
Ты лучше сам посмотри на вот это
источник

БГ

Бензофуран Гетероцик... in Сообщество Python Программистов
Language:
py3


Source:
import os
help(os.access)


Result:
Help on built-in function access in module posix:

access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
   Use the real uid/gid to test for access to a path.
   
     path
       Path to be tested; can be string, bytes, or open-file-descriptor int.
     mode
       Operating-system mode bitfield.  Can be F_OK to test existence,
       or the inclusive-OR of R_OK, W_OK, and X_OK.
     dir_fd
       If not None, it should be a file descriptor open to a directory,
       and path should be relative; path will then be relative to that
       directory.
     effective_ids
       If True, access will use the effective uid/gid instead of
       the real uid/gid.
     follow_symlinks
       If False, and the last element of the path is a symbolic link,
       access will examine the symbolic link itself instead of the file
       the link points to.
   
   dir_fd, effective_ids, and follow_symlinks may not be implemented
     on your platform.  If they are unavailable, using them will raise a
     NotImplementedError.
   
   Note that most operations will use the effective uid/gid, therefore this
     routine can be used in a suid/sgid environment to test if the invoking user
     has the specified access to the path.
источник

R3

Rud 356 in Сообщество Python Программистов
Бензофуран Гетероцикл
Language:
py3


Source:
import os
help(os.access)


Result:
Help on built-in function access in module posix:

access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
   Use the real uid/gid to test for access to a path.
   
     path
       Path to be tested; can be string, bytes, or open-file-descriptor int.
     mode
       Operating-system mode bitfield.  Can be F_OK to test existence,
       or the inclusive-OR of R_OK, W_OK, and X_OK.
     dir_fd
       If not None, it should be a file descriptor open to a directory,
       and path should be relative; path will then be relative to that
       directory.
     effective_ids
       If True, access will use the effective uid/gid instead of
       the real uid/gid.
     follow_symlinks
       If False, and the last element of the path is a symbolic link,
       access will examine the symbolic link itself instead of the file
       the link points to.
   
   dir_fd, effective_ids, and follow_symlinks may not be implemented
     on your platform.  If they are unavailable, using them will raise a
     NotImplementedError.
   
   Note that most operations will use the effective uid/gid, therefore this
     routine can be used in a suid/sgid environment to test if the invoking user
     has the specified access to the path.
Так, зочем смотрим?
источник

БГ

Бензофуран Гетероцик... in Сообщество Python Программистов
Rud 356
Так, зочем смотрим?
Ты там хотел проверять можно ли создать файл
источник