Notice: file_put_contents(): Write of 17859 bytes failed with errno=28 No space left on device in /var/www/tgoop/post.php on line 50
[PYTHON:TODAY]@python2day P.5946
PYTHON2DAY Telegram 5946
⚡️ Полезные библиотеки Python

Vulture
— простая в использовании утилита, которая находит неиспользуемый код в программах Python, что полезно для очистки и поиска ошибок.

Использование
$ vulture myscript.py  # or
$ python3 -m vulture myscript.py
$ vulture myscript.py mypackage/
$ vulture myscript.py --min-confidence 100 # Only report 100% dead code.

Пример
import os

class Greeter:
def greet(self):
print("Hi")

def hello_world():
message = "Hello, world!"
greeter = Greeter()
func_name = "greet"
greet_func = getattr(greeter, func_name)
greet_func()

if __name__ == "__main__":
hello_world()

Вызов
$ vulture dead_code.py

Результат
dead_code.py:1: unused import 'os' (90% confidence)
dead_code.py:4: unused function 'greet' (60% confidence)
dead_code.py:8: unused variable 'message' (60% confidence)


⚙️ GitHub/Инструкция

#python #github #soft
Please open Telegram to view this post
VIEW IN TELEGRAM
👍42🔥166🫡2



tgoop.com/python2day/5946
Create:
Last Update:

⚡️ Полезные библиотеки Python

Vulture
— простая в использовании утилита, которая находит неиспользуемый код в программах Python, что полезно для очистки и поиска ошибок.

Использование

$ vulture myscript.py  # or
$ python3 -m vulture myscript.py
$ vulture myscript.py mypackage/
$ vulture myscript.py --min-confidence 100 # Only report 100% dead code.

Пример
import os

class Greeter:
def greet(self):
print("Hi")

def hello_world():
message = "Hello, world!"
greeter = Greeter()
func_name = "greet"
greet_func = getattr(greeter, func_name)
greet_func()

if __name__ == "__main__":
hello_world()

Вызов
$ vulture dead_code.py

Результат
dead_code.py:1: unused import 'os' (90% confidence)
dead_code.py:4: unused function 'greet' (60% confidence)
dead_code.py:8: unused variable 'message' (60% confidence)


⚙️ GitHub/Инструкция

#python #github #soft

BY [PYTHON:TODAY]




Share with your friend now:
tgoop.com/python2day/5946

View MORE
Open in Telegram


Telegram News

Date: |

For crypto enthusiasts, there was the “gm” app, a self-described “meme app” which only allowed users to greet each other with “gm,” or “good morning,” a common acronym thrown around on Crypto Twitter and Discord. But the gm app was shut down back in September after a hacker reportedly gained access to user data. Select: Settings – Manage Channel – Administrators – Add administrator. From your list of subscribers, select the correct user. A new window will appear on the screen. Check the rights you’re willing to give to your administrator. Today, we will address Telegram channels and how to use them for maximum benefit. Although some crypto traders have moved toward screaming as a coping mechanism, several mental health experts call this therapy a pseudoscience. The crypto community finds its way to engage in one or the other way and share its feelings with other fellow members. How to create a business channel on Telegram? (Tutorial)
from us


Telegram [PYTHON:TODAY]
FROM American