@Lilienthal Thanks a lot !!! It worked! They replied me to come on the original date. I don't know how to thank you for your nice answer. — Crazy Ninja2 hours ago
It might help to also add "what does repr stand for" or "why would you use this vs str?" - the definitions suggest str is "string" and "repr" is "representation" though
I also feel frustrated at the give-away answers that got accepted in the early days of the site and earned their owners big rep since then. Maybe I don't "deserve" it as much because I haven't the tenure. I only got active in answering 2 years ago. But still.
yep, in general, don't use private api. It's there if you need to, but you're the programmer and there's nobody going to stop you from shooting yourself in the foot
Public (no prefix underscore) should not change, private ... well, test your code well before you release new stuff to production.
Sometimes you're expected to use the special names e.g. from my answer which cites the standard library: self.__class__.__name__ but not always. you could do the same with type(self).__name__ and there's a lot more with the builtin inspect library (but no getname, if I recall...)
I've helped other people who were using selenium, but their problems were usually that they didn't know Python.
Or how to program, really.
There's about 30 keywords (depending on your version) in Python.
You should know what they are even if what you know is you shouldn't use them.
And know what generator expressions and list comprehensions are, and generators, and decorators, and slice notation, and I think you'll be able to say you know the language.
And popular standard lib modules are: os, sys, itertools, functools, collections etc...
Seems like I'm always learning about a new one.
atexit is cool - you can register callables to be called when the program exits
I think there's a similar function in C?
Use subprocess to kick off new processes. Use multiprocessing to get separate processes that work like threads. Use threading to do real os threading, but you'll only use one processor at a time, thanks to the GIL.
Some foreign functions (compiled binary code called by Python) releases the GIL, but I don't have any experience with that stuff.
some of the keywords do double (quadruple) duty, so you want to know if which contexts they do what.
from can be used in importing and subroutine delegation (Python 3) and raising exceptions
else applies to 1) final clause in if elif else, 2) "nobreak" in for or while loop, 3) exception handling (no exception) 4) ternary condition