Posts by Victor Dantas • 63 points
5 posts
-
0
votes0
answers22
viewsQ: Is it possible to establish a download directory with urllib.request.urlretrieve?
I am trying to set a default download forwarding directory after using urllib.request.urlretrieve, to avoid having to move the file with and shutil. Does anyone know if it’s possible and how to do?…
-
1
votes1
answer63
viewsA: Help with this terrible riddle for a beginner!
To be honest, the code is very confusing... I will try to pass some tips and demonstrate how I would do. Soon, is with a cool logic, but it is good to evolve some more classes to see the basics…
pythonanswered Victor Dantas 63 -
-1
votes2
answers44
viewsA: Use the class to add the object itself into a vector that stays in another object
The code is, in fact, somewhat confused and I believe that the arfnet recommendation is excellent... the matricular should be an attribute of the school. In an excerpt of your code you use…
-
0
votes2
answers50
viewsA: Does every attribute need advisory methods?
In fact, no... Getters and setters are usually used when there is encapsulation assigned to the given variable/method. If there is no encapsulation I see no reason necessary for the treatment of the…
-
0
votes1
answer55
viewsA: Error using Decorator in a Setter method
When assigning an _ or __ (private and protected) you should treat the attributes using a getter before passing it through the Setter. This assignment is performed through @Property, followed by the…