135201
You will be muted until you read the rules. Read them! @Rules_for_Python A group about the Python programming language. Offtopic things go here: @pythonofftopic Resources to learn python: @pythonres Group for Hy: @hylang Selenium: @SeleniumPython
The tutorial on the official website is not detailed enough
Читать полностью…
I want want to learn tkinter Do you have any tutorials on tkinter?
Читать полностью…
also i don't understand why you're using the decorators for those things... anyway... i recommend u to read a python book or a python doc online that explain how to use decorators in python
Читать полностью…
and over all... why did you added the "age" parameter if u don't use it inside the called function?
i'm sorry for my english
Nevermind, it was an --extra-checks flag issue with mypy enabled by --strict flag.
Code: https://hastebin.com/share/ayucutover.php
Hello everyone, i am trying to create a decorator which calculates the age based length of the name.
But i have never had added parameters explicitly to the wrapper function (except for *args, **kwargs) ever while writing decorators.
Now with mypy, it complains if i do not put '/' marker before *args/**kwargs in wrapper (and i don't want to make them positional-only).
Is there a proper way to write parameters as-is without accessing raw args/kwargs while being type-safe?
https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
Читать полностью…
This is not a Python specific question, please delete your offtopic message, move to @PythonOfftopic and ask there.
Читать полностью…
your english is better than my chill bro 👍😂
anyway this make sense... read python doc or a python book and learn how to use them, then try again
It's just for learning about decorator injection and manipulation purposes.
My english is bad too, lol.
Actually I never had written parameters on an inner function of a decorator (wrapper), except writing out *args and **kwargs, so I was thinking how does one write parameters correctly on an inner function without messing up. Mypy was telling me something but i didn't understand and i do not know if there's another way of doing this, although it doesn't raise an error on not putting '/' if i disable extra checks flag.
Читать полностью…
i understood you want to do something on the wrapper's parameters
Читать полностью…
If any body wants to start, python coding practice or building project.
Let's connect?
Rules of conduct. number 8
/channel/rules_for_python
Adim please i need pythone software or appulication.can you sent to me
Читать полностью…