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
best platform focused for solving problems including logic tasks and python programming challenges.
Читать полностью…https://wiki.python.org/moin/BeginnersGuide/NonProgrammers
Читать полностью…Hey All.., I want to learn python programming. Can anyone suggest me what's the best way to learn from beginner level.
Читать полностью…Ok, but sometimes I didn't even think about the logic...So what would u suggest for that except practice, because that's what will do for sure...
Читать полностью…Hey admin can u kindly tell me how to master a programming language for example python??
I mean I am trying from basic by writing codes on my own...But still I am lagging in file I/O and recursion...
But you can validate it before you read it. That said, you could use monkey patching to replace the whole object, not only an attribute of an object, so the whole journey appears unnecessary.
Читать полностью…It looks the resulting code will be unnecessarily complex.
Читать полностью…I want not to mistakenly insert something which may cause a bug. So even if I monkeypatch any field to change any value, the value will be verified before assigning. That's why I was wanting to use descriptor or property.
Читать полностью…It is something like an utility package for my other projects.
Читать полностью…but this will not work if user try to monkeypatch and change the value. I want to add checking there as well.
Читать полностью…or should I use something like a descriptor factory (a function which will create and return a descriptor) to prevent repeating myself?
Читать полностью…Pick a resource, stick to it. Avoid youtube and tutorials.
Читать полностью…Check out @PythonRes, a channel for Python resources - video courses, pdf books, tutorials and other info to help you learn Python.
Читать полностью…Anything that challenges you but is still accomplishable.
Читать полностью…I have practiced a lot in basic programming...So should I solve challenger problems for evolving my thinking ability??
Читать полностью…This is not Java. You don't try to protect developers at all costs from shooting themselves in the foot.
Читать полностью…Oh, and to answer you question a bit more directly, neither with properties nor with descriptors you can prevent that the value will be changed without validation.
Читать полностью…There are quite a few things that I don't understand in your request. Most bind boggling is the intent to make it work correctly with monkey patching, although you don't want to do it. Second is that with monkey patching attribute values are changed (that means new values are assigned). There is no protection against that in Python, unless you put variables in a closure or use slots. But what's the point? You say you want to make sure the value is validated when changed in mysterious ways, which you, in most cases, cannot do. But you can do validation when you read the value. Still, it looks unnecessary. I don't see a reason to do it.
Читать полностью…So, you want to prevent yourself from being able to change the values after they have been validated?
Читать полностью…Or you use the initialization function of the class to validate and will have gotten away with using less magic.
Читать полностью…I am trying to create a data type which will have only 3 fields for storing exitcode
, output_message
, error_message
. I want to validate value before assigning. Should I use property or descriptor in this case? Which one will be better?
Python programming by Reema thareja,brother do you have any idea that is this good for beginners?
Читать полностью…