The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
After writing a few "enumerators" there is no mystery.
(Identified, and MSFT acknowledges, I found an issue in Net Framework 4.7.2 that negated the whole "is 100% compatible" with Net Core 3.0, after all the "forum experts" (not here) said blah, blah because they assumed it must be blah, blah).
It was only in wine that he laid down no limit for himself, but he did not allow himself to be confused by it.
― Confucian Analects: Rules of Confucius about his food
The problem reported by the Daily news applies to all computer languages. While most computer languages honor simple algebraic operation orders => 1+2*3+4 becomes 1 + (2*3) + 4, no computer language can honor order of operations at a high level when it is fed those operations discreetly and asked for a result before receiving the next set of data and operations.
I've seen this type of issue occur in Excel, SQL Server, Scheme (Lisp), Prolog, Java, C++, C#.
In the case of this Python script, it was being asked to process the contents of each file as a unit and generate an intermediate result, which was then passed to the processing of the next file. The flaw in the script was assuming that all operating systems sort file enumerations in the same manner.
Lisp, by the way, is the only language I can think of that doesn't honor algebraic ordering, but it doesn't need to because of a syntax that forces the programmer to specify the desired order of operations.
Adam was hanging around the garden of Eden feeling very lonely... God asked him, "What's wrong with you?" Adam said he didn't have anyone to talk to. God said that He was going to make Adam a companion and that it would be a woman.
He said, "This pretty lady will gather food for you, she will cook for you, and when you discover clothing, she will wash it for you. She will always agree with every decision you make and she will not nag you, and will always be the first to admit she was wrong when you've had a disagreement. She will praise you! She will bear your children. and never ask you to get up in the middle of the night to take care of them. She will never have a headache and will freely give you love and passion whenever you need it."
Adam asked God, "What will a woman like this cost?"
God replied, "An arm and a leg."
Then Adam asked, "What can I get for a rib?"
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
So every company in the Netherlands has a VAT-number, which I also have and which identifies me at the tax authorities.
The issue with these VAT-numbers is that it contains people's citizen service number, which is used by the government to uniquely identify a person.
It's also used on passports and banks and doctors must use it too.
Other companies may not ask for, or use, your citizen number (although it used to be on my salary specification, what's up with that?)
Anyway, there's no need to give it to everyone you do business with, which is what you do with your VAT-number because it must be placed on invoices.
So the Dutch tax authorities just send me a new VAT-number which does not include my personal ID.
Which is great, except... I'm supposed to share this new number with my clients, starting next year.
But I still have to use the old number for any correspondence with the tax authorities...
So now I have TWO NUMBERS!
My guess is that my old ID is a primary key in a SQL database, which they can't just change for so many users (and that's why you shouldn't use functional keys as primary keys).
Because their internal software uses the old ID everywhere they can't just change it to look at the new ID (although how hard can it be?).
The new ID is just a new field that's right next to the old ID.
So now everyone just has two IDs because that's certainly more maintainable.
The tax authorities had this slogan, freely translated, "we can't make it more fun, but we can make it easier."
Apparently, they can't make it easier either
I have a "personal ID".
My company has a "VAT ID", which includes the personal ID.
To get rid of the personal ID in the VAT ID I got a new VAT ID for my company.
But I also still have to use the old VAT ID.
So now I have one personal ID and two VAT IDs for my company.
The two VAT IDs have the same purpose, except one is used for communication with tax authorities while the other is used for communication with clients.