I believe that there is some answer to any question. It is not the task of the users here to lecture others or criticize them for laziness or stupidity. There is little educational value in sarcasm.

If a question is badly formulated, one can give advice on how to do better.

If important information is missing, one can kindly ask for it.

Someone else being unfriendly or badly mannered is no justification for being so yourself.

Before posting any question about a problem with your code, please read this (twice).

Favorite Answers

Jul
20
awarded Enlightened
Jul
20
awarded Nice Answer
Jul
17
awarded Popular Question
Jul
12
awarded Yearling
Jul
12
awarded Yearling
Jul
8
awarded Notable Question
Jul
2
awarded Popular Question
Jul
1
awarded Good Answer
Jun
23
revised Writing then reading in-memory bytes (BytesIO) gives a blank result
Added link to documentation of seek
Jun
15
revised Cancel last line iteration on a file
Added link to documentation and some inline code formatting
Jun
15
comment How to apply functions with multiple arguments on Pandas selected columns data frame
If it fails please print the exact error message you are getting. This makes it much easier for people to help you.
Jun
13
awarded Popular Question
Jun
12
revised How to document overridden/implemented functions without Doxygens @copydoc?
Updated link to point to correct section again
Jun
2
awarded Informed
May
22
answered Why SGI STL don't use the copy-and-swap idiom?
May
11
revised How to use __del__ in a reliable way?
Updated link to jump to anchor
May
9
comment How to generate __init__ for class with custom descriptors in Python?
@Veedrac, yes indeed. I have been playing around with a metaclass to make this work, and it is indeed working, although it is still a bit ugly. I'll post an answer when I've completed it.
May
9
comment How to generate __init__ for class with custom descriptors in Python?
I agree, but in this case the list of allowed arguments is actually right above the __init__ function.
May
9
comment How to generate __init__ for class with custom descriptors in Python?
Thanks, this significantly reduces the manual work, but it still requires me to list each property twice (once in the class, and once in the argument list of the initialiser). There should be a way to fix that as well.
May
9
comment How to generate __init__ for class with custom descriptors in Python?
ConfigurationProperty is implemented using the descriptor protocol. So yes, there is magic, but that is Python's built-in magic.
1 2 3 4 5